:root {
  --paper: #f7f7f4;
  --surface: #ffffff;
  --ink: #171717;
  --muted: #626262;
  --line: #d9d9d5;
  --link: #124f9c;
  --notice: #f0f6ff;
  --notice-line: #c7dcff;
  --warm: #fff7e8;
  --warm-line: #e4c781;
  --new: #eaf4eb;
  --new-ink: #255d35;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

a {
  color: var(--link);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
a:hover { color: #0a3770; }

.shell {
  width: min(1540px, calc(100% - 40px));
  margin: 0 auto;
}

.masthead {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.masthead-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.masthead-label {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 760;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
a.masthead-label { color: var(--ink); text-decoration: none; }
a.masthead-label:hover { color: var(--link); }
.masthead-meta {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: right;
}
.masthead-meta div + div { margin-top: 1px; }
.masthead-meta strong {
  margin-right: 5px;
  color: var(--ink);
  font-weight: 760;
}

main { padding: 28px 0 34px; }
.list-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--ink);
}
.eyebrow {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(1.42rem, 2.3vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 760;
}
.list-heading p {
  max-width: 700px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.profile-heading { max-width: 820px; }
.profile-scope {
  display: grid;
  gap: 2px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}
.profile-scope strong {
  display: inline-block;
  min-width: 61px;
  margin-right: 5px;
  color: var(--ink);
  font-weight: 760;
}
.window {
  min-width: 232px;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.35;
  text-align: right;
}
.window strong {
  display: block;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 720;
}

.summary {
  display: flex;
  flex-wrap: wrap;
  margin: 16px 0 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.summary-item {
  padding: 10px 15px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.79rem;
}
.summary-item:last-child { border-right: 0; }
.summary-item strong {
  color: var(--ink);
  font-weight: 760;
}

.notice {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--notice-line);
  background: var(--notice);
  color: #334155;
  font-size: 0.78rem;
}
.notice strong { color: var(--ink); }
.notice.watch {
  background: var(--warm);
  border-color: var(--warm-line);
}

.table-kicker {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 21px 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
}
.table-kicker strong {
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}
.show-table {
  width: 100%;
  min-width: 1260px;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--surface);
  font-size: 0.79rem;
  line-height: 1.42;
}
.show-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 11px;
  background: #f0f0ed;
  border-bottom: 1px solid #bfc0bb;
  color: #454545;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}
.show-table td {
  padding: 12px 11px;
  border-bottom: 1px solid #e4e4e1;
  color: #333;
  vertical-align: top;
}
.show-table tr:last-child td { border-bottom: 0; }
.show-table tbody tr:nth-child(even) td { background: #fcfcfa; }
.show-table tbody tr:hover td { background: #f5f8fa; }

.show-table th:nth-child(1), .show-table td:nth-child(1) { width: 13%; }
.show-table th:nth-child(2), .show-table td:nth-child(2) { width: 41%; }
.show-table th:nth-child(3), .show-table td:nth-child(3) { width: 11%; }
.show-table th:nth-child(4), .show-table td:nth-child(4) { width: 19%; }
.show-table th:nth-child(5), .show-table td:nth-child(5) { width: 8%; }
.show-table th:nth-child(6), .show-table td:nth-child(6) { width: 8%; }

.when-cell {
  color: #4f4f4f;
  font-weight: 630;
}
.when-date { color: var(--ink); }
.when-time,
.when-city { margin-top: 2px; }
.when-city { color: var(--muted); }
.show-table td:nth-child(2) a {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-weight: 690;
  text-decoration-color: #aeb8c6;
}
.show-table td:nth-child(2) a:hover { color: var(--link); }
.show-table td:nth-child(3) a,
.show-table td:nth-child(5) a {
  font-weight: 690;
}
.status {
  display: inline-block;
  margin: 0 0 5px;
  padding: 2px 5px;
  border: 1px solid #c6dfc8;
  background: var(--new);
  color: var(--new-ink);
  font-size: 0.61rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.venue-type {
  display: inline-flex;
  align-items: center;
  margin: 0 0 7px;
  padding: 3px 6px;
  border: 1px solid #c8d1d8;
  border-radius: 999px;
  background: #f4f6f7;
  color: #3d4d5c;
  font-size: 0.6rem;
  font-weight: 820;
  letter-spacing: 0.07em;
  line-height: 1.15;
  text-transform: uppercase;
}
.venue-type--diy {
  border-color: #c6dfc8;
  background: var(--new);
  color: var(--new-ink);
}
.venue-type--small {
  border-color: #c6dce7;
  background: #f0f7fb;
  color: #26546b;
}
.venue-type--mid {
  border-color: #d8cfe5;
  background: #f7f3fb;
  color: #55466d;
}
.venue-type--major {
  border-color: #d6cec4;
  background: #f9f6f1;
  color: #4d4136;
}
.venue-type--special {
  border-color: var(--warm-line);
  background: var(--warm);
  color: #70551b;
}
.venue-copy { display: block; }

.share-cell { position: relative; }
.show-table td:nth-child(2) a {
  display: inline-block;
  margin-right: 9px;
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.show-table td[data-label="Artists"] .artist-name {
  display: inline-block;
  margin-right: 9px;
  color: var(--text);
  font-weight: 780;
}
.artist-profiles { display: grid; gap: 7px; }
.artist-profile { line-height: 1.48; }
.artist-profile a,
.artist-profile .artist-name { margin: 0; }
.artist-summary { color: #444; }
.artist-description {
  margin: 9px 0 0;
  padding-top: 8px;
  border-top: 1px solid #ecece8;
  color: #444;
  line-height: 1.48;
}
.share-menu { position: relative; }
.share-menu > summary {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  cursor: pointer;
  border: 1px solid #b9c8d9;
  border-radius: 4px;
  background: #f9fbfd;
  color: #173f70;
  font-size: 0.74rem;
  font-weight: 720;
  line-height: 1;
  list-style: none;
  padding: 7px 9px;
  user-select: none;
}
.share-menu > summary::-webkit-details-marker { display: none; }
.share-menu > summary::after {
  content: "⌄";
  margin-left: 6px;
  font-size: 0.8rem;
}
.share-menu[open] > summary::after { content: "⌃"; }
.share-menu > summary:hover { background: #eef5fc; }
.share-popover {
  position: absolute;
  z-index: 4;
  top: calc(100% + 5px);
  left: 0;
  width: max-content;
  min-width: 142px;
  padding: 5px;
  border: 1px solid #bac4cd;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 7px 19px rgba(17, 24, 39, 0.14);
}
.share-popover a,
.share-popover button {
  display: block;
  width: 100%;
  min-height: 33px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #173f70;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  padding: 8px;
  text-align: left;
  text-decoration: none;
}
.share-popover a:hover,
.share-popover button:hover { background: #eef5fc; }
.share-native[hidden] { display: none; }
.share-feedback {
  display: block;
  color: var(--muted);
  font-size: 0.67rem;
  padding: 3px 8px 5px;
}

.scan-note {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}
.scan-note strong { color: var(--ink); }
footer {
  margin-top: 25px;
  padding: 17px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

.home-main {
  min-height: calc(100vh - 168px);
  padding-top: clamp(52px, 10vw, 116px);
  padding-bottom: clamp(52px, 10vw, 116px);
}
.home-main h1 { max-width: 660px; }
.home-intro {
  max-width: 610px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}
.home-update {
  margin: 13px 0 0;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 720;
}
.region-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;
  margin-top: 34px;
}
.region-card {
  display: flex;
  min-height: 278px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.region-card-kicker,
.genre-group-label {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.region-card h2 {
  margin: 7px 0 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
a.region-card-title {
  color: var(--ink);
  text-decoration: none;
}
a.region-card-title:hover { color: var(--link); }
.region-card p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.5;
}
.genre-group {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.genre-group-label { margin-bottom: 7px; }
.genre-list {
  display: grid;
  gap: 0;
}
.genre-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  color: var(--link);
  text-decoration: none;
}
.genre-link + .genre-link { border-top: 1px solid #e7e7e3; }
.genre-link:hover { color: #0a3770; }
.genre-link strong,
.genre-link small {
  display: block;
}
.genre-link strong {
  font-size: 0.8rem;
  font-weight: 760;
}
.genre-link strong em {
  margin-left: 4px;
  color: var(--muted);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.genre-link small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.4;
}
.genre-link:hover small { color: #4f5f72; }
.genre-link-arrow {
  flex: 0 0 auto;
  font-size: 1rem;
  font-weight: 760;
}

@media (max-width: 860px) {
  .shell { width: calc(100% - 24px); }
  .masthead-inner {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 10px 0;
  }
  .masthead-label { font-size: 0.72rem; }
  .masthead-meta { font-size: 0.7rem; text-align: left; }
  main { padding: 16px 0 26px; }
  .list-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 13px;
  }
  h1 { font-size: 1.48rem; line-height: 1.08; }
  .list-heading p { font-size: 0.82rem; line-height: 1.4; }
  .window { min-width: auto; text-align: left; font-size: 0.73rem; }
  .window strong { font-size: 0.8rem; }
  .profile-scope { margin-top: 8px; font-size: 0.73rem; }
  .profile-scope strong { min-width: 55px; }
  .home-main { min-height: calc(100vh - 134px); padding-top: 42px; }
  .home-intro { font-size: 0.88rem; }
  .home-update { margin-top: 11px; font-size: 0.74rem; }
  .region-grid { grid-template-columns: 1fr; margin-top: 25px; }
  .region-card { min-height: 0; padding: 19px; }
  .summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 12px 0 9px;
  }
  .summary-item {
    width: auto;
    min-width: 0;
    padding: 9px 10px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 0.72rem;
  }
  .summary-item:nth-child(2n) { border-right: 0; }
  .summary-item:nth-last-child(-n + 2) { border-bottom: 0; }
  .notice { margin-bottom: 9px; padding: 9px 10px; font-size: 0.72rem; }
  .notice:not(.watch) { display: none; }
  .table-kicker { margin: 16px 0 7px; }
  .table-kicker span { display: inline; }

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .show-table,
  .show-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .show-table {
    background: transparent;
    font-size: 0.82rem;
  }
  .show-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .show-table tbody {
    display: grid;
    gap: 10px;
  }
  .show-table tbody tr,
  .show-table tbody tr:nth-child(even) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    overflow: visible;
    border: 1px solid #d2d2ce;
    border-radius: 7px;
    background: var(--surface);
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03);
  }
  .show-table tbody tr:hover td { background: transparent; }
  .show-table td,
  .show-table td:nth-child(n) {
    display: block;
    width: auto;
    min-width: 0;
    padding: 9px 11px;
    border: 0;
    background: transparent;
    color: #333;
    font-weight: 400;
  }
  .show-table td::before {
    content: attr(data-label);
    display: block;
    margin: 0 0 3px;
    color: #777;
    font-size: 0.59rem;
    font-weight: 820;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .show-table td.when-cell {
    order: 1;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    padding: 10px 11px;
    border-bottom: 1px solid #deded9;
    border-radius: 7px 7px 0 0;
    background: #f6f6f2;
    color: #4f4f4f;
    font-weight: 630;
  }
  .show-table td.when-cell::before { display: none; }
  .when-date { grid-column: 1; grid-row: 1; font-size: 0.86rem; font-weight: 780; }
  .when-date br { display: none; }
  .when-time { grid-column: 1; grid-row: 2; margin-top: 1px; font-size: 0.75rem; }
  .when-city {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    margin: 0;
    color: #474747;
    font-size: 0.78rem;
    font-weight: 740;
    text-align: right;
  }
  .status { margin: 0 5px 0 0; vertical-align: 1px; }
  .show-table td[data-label="Artists"] {
    order: 2;
    grid-column: 1 / -1;
    padding-top: 9px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ecece8;
    line-height: 1.55;
  }
  .show-table td[data-label="Artists"]::before {
    display: block;
    margin-bottom: 5px;
  }
  .show-table td[data-label="Artists"] br { display: none; }
  .show-table td[data-label="Artists"] a {
    display: inline-block;
    margin: 0 10px 3px 0;
    color: var(--link);
    font-size: 0.91rem;
    font-weight: 730;
    line-height: 1.55;
  }
  .show-table td[data-label="Venue type & about"] {
    display: block;
    grid-column: 1 / -1;
    border-top: 1px solid #ecece8;
    color: #444;
    line-height: 1.48;
  }
  .show-table td[data-label="Venue type & about"] { order: 5; }
  .show-table td[data-label="Venue"] {
    order: 3;
    grid-column: 1;
    border-right: 1px solid #ecece8;
  }
  .show-table td[data-label="Tickets"] {
    order: 4;
    grid-column: 2;
    text-align: right;
  }
  .show-table td[data-label="Venue"],
  .show-table td[data-label="Tickets"] {
    min-height: 58px;
  }
  .show-table td[data-label="Venue"] a,
  .show-table td[data-label="Tickets"] a {
    color: var(--link);
    font-weight: 700;
    overflow-wrap: anywhere;
  }
  .show-table td.share-cell {
    order: 6;
    grid-column: 1 / -1;
    display: grid;
    padding: 8px;
    border-top: 1px solid #deded9;
    border-radius: 0 0 7px 7px;
    background: #fbfbf9;
  }
  .show-table td.share-cell::before { display: none; }
  .share-menu { position: static; width: 100%; }
  .share-menu > summary {
    width: 100%;
    min-height: 40px;
    justify-content: center;
    border-radius: 5px;
    font-size: 0.78rem;
  }
  .share-menu > summary::after { margin-left: 7px; }
  .share-popover {
    top: calc(100% - 3px);
    right: 8px;
    left: 8px;
    width: auto;
    min-width: 0;
    padding: 6px;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.18);
  }
  .share-popover a,
  .share-popover button {
    min-height: 40px;
    font-size: 0.8rem;
  }
}

@media (max-width: 440px) {
  .notice { font-size: 0.7rem; }
}
