@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,500..900,0..100,0..1&display=swap");

:root {
  color-scheme: light;
  --display: "Fraunces", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #f7f5ef;
  --ink: #181716;
  --muted: #68625d;
  --line: #d9d2c7;
  --paper: #fffdfa;
  --card: #fbf7ef;
  --field: #fffefa;
  --queue-active: #ecf5f1;
  --accent: #0f6b5f;
  --on-accent: #fffdfa;
  --accent-2: #b9432f;
  --statement-sky: #385d87;
  --statement-light-1: #d85a49;
  --statement-light-2: #d5a13a;
  --statement-light-3: #168b83;
  --statement-night: #2b214b;
  --statement-glow: rgba(43, 33, 75, 0.2);
  --gold: #a46f09;
  --blue: #345f99;
  --badge-rejected: #77706a;
  --danger-line: #c48f84;
  --danger-ink: #8f2d1f;
  --map-water: #dcefed;
  --map-land: #fbf1da;
  --map-latitude: #168b83;
  --map-longitude: #d85a49;
  --map-coast: #345f99;
  --map-gradient-start: #168b83;
  --map-gradient-end: #d5a13a;
  --shadow: 0 16px 38px rgba(37, 31, 23, 0.09);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11100f;
  --ink: #f4eee6;
  --muted: #b8ada2;
  --line: #37302a;
  --paper: #1b1917;
  --card: #221f1b;
  --field: #151311;
  --queue-active: #17332f;
  --accent: #4fc2ad;
  --on-accent: #11100f;
  --accent-2: #f08167;
  --statement-sky: #93b8df;
  --statement-light-1: #ff7f6e;
  --statement-light-2: #f1b74f;
  --statement-light-3: #62d6c5;
  --statement-night: #b598ff;
  --statement-glow: rgba(103, 65, 160, 0.34);
  --gold: #d19a2c;
  --blue: #78a6de;
  --badge-rejected: #6d665f;
  --danger-line: #8c4f45;
  --danger-ink: #ffad9d;
  --map-water: #102542;
  --map-land: #21352e;
  --map-latitude: #62d6c5;
  --map-longitude: #ff7f6e;
  --map-coast: #93b8df;
  --map-gradient-start: #2e8f7f;
  --map-gradient-end: #9a6f24;
  --shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
}

@supports (background-clip: text) {
  .statement-type {
    color: transparent;
    background:
      linear-gradient(
        180deg,
        var(--statement-sky) 0%,
        var(--statement-sky) 34%,
        var(--statement-light-1) 43%,
        var(--statement-light-2) 51%,
        var(--statement-light-3) 59%,
        var(--statement-night) 70%,
        var(--statement-night) 100%
      );
    background-clip: text;
    -webkit-background-clip: text;
    text-shadow: 0 18px 44px var(--statement-glow);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}

body.theme-transition,
body.theme-transition *,
body.theme-transition *::before,
body.theme-transition *::after {
  transition:
    background-color 320ms ease,
    border-color 320ms ease,
    box-shadow 320ms ease,
    color 320ms ease,
    opacity 320ms ease,
    transform 320ms ease;
}

.topbar {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 52px) 22px;
  border-bottom: 1px solid var(--line);
}

.kicker {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  font-variation-settings: "SOFT" 35, "WONK" 1;
  font-weight: 820;
  line-height: 0.92;
  letter-spacing: 0;
}

#detailTitle {
  color: var(--statement-sky);
}

h2 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 30, "WONK" 1;
  font-weight: 720;
}

strong,
.event-date,
.queue-item strong,
.form-heading h2,
.appearances h3,
.section-heading h3,
.summary strong {
  font-family: var(--display);
  font-variation-settings: "SOFT" 28, "WONK" 1;
  font-weight: 760;
}

.source-link,
.artist-links a,
.artist-name a,
.event-venue a,
.detail-show {
  color: var(--ink);
  text-decoration: none;
}

.source-link,
.chip,
.theme-toggle,
.menu-toggle,
.artist-links a,
.icon-button {
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.source-link:hover,
.chip:hover,
.theme-toggle:hover,
.menu-toggle:hover,
.artist-links a:hover,
.icon-button:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(37, 31, 23, 0.1);
  transform: translateY(-1px);
}

.source-link:active,
.chip:active,
.theme-toggle:active,
.menu-toggle:active,
.artist-links a:active,
.icon-button:active {
  box-shadow: none;
  transform: translateY(1px) scale(0.98);
}

.source-link:focus-visible,
.chip:focus-visible,
.theme-toggle:focus-visible,
.menu-toggle:focus-visible,
.artist-links a:focus-visible,
.icon-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent), transparent 62%);
  outline-offset: 3px;
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 31, 23, 0.05);
}

.menu-toggle span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition:
    opacity 180ms ease,
    top 180ms ease,
    transform 180ms ease;
}

.menu-toggle.menu-toggle-activated {
  animation: menu-button-pop 380ms cubic-bezier(.18,.89,.32,1.28);
}

.menu-toggle span:nth-child(1) {
  top: 14px;
}

.menu-toggle span:nth-child(2) {
  top: 21px;
}

.menu-toggle span:nth-child(3) {
  top: 28px;
}

.source-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  background: var(--paper);
  font-weight: 700;
}

.nav-selection-pulse {
  animation: nav-selection-pulse 360ms cubic-bezier(.18,.89,.32,1.2);
}

@keyframes menu-button-pop {
  0% {
    transform: scale(1) rotate(0deg);
  }

  38% {
    transform: scale(0.9) rotate(-7deg);
  }

  72% {
    transform: scale(1.08) rotate(4deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes nav-selection-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(15, 107, 95, 0);
  }

  42% {
    transform: scale(0.97);
    box-shadow: 0 0 0 7px rgba(15, 107, 95, 0.14);
  }

  72% {
    transform: scale(1.03);
    box-shadow: 0 0 0 3px rgba(15, 107, 95, 0.08);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(15, 107, 95, 0);
  }
}

.source-link:hover {
  background: var(--card);
}

.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  overflow: visible;
  box-shadow: 0 8px 20px rgba(37, 31, 23, 0.05);
}

.theme-toggle:hover .theme-icon-sun,
.theme-toggle:hover .theme-icon-moon {
  transform: rotate(14deg) scale(1.08);
}

:root[data-theme="dark"] .theme-toggle:hover .theme-icon-sun {
  transform: translateX(-18px) rotate(100deg) scale(0.62);
}

:root[data-theme="dark"] .theme-toggle:hover .theme-icon-moon {
  transform: translateX(3px) rotate(-14deg) scale(1.08);
}

.theme-toggle::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background: var(--bg);
  opacity: 0.72;
}

.theme-icon {
  position: absolute;
  width: 26px;
  height: 26px;
  transform-origin: center;
}

.theme-icon-sun {
  color: #e9862a;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.5;
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-icon-sun circle {
  fill: currentColor;
  stroke: none;
}

.theme-icon-moon {
  color: #9fc1ff;
  fill: currentColor;
  stroke: none;
  opacity: 0;
  transform: translateX(18px) rotate(-35deg) scale(0.62);
}

.theme-icon-moon .theme-star {
  color: #f5d76e;
  fill: currentColor;
}

:root[data-theme="dark"] .theme-icon-sun {
  opacity: 0;
  transform: translateX(-18px) rotate(100deg) scale(0.62);
}

:root[data-theme="dark"] .theme-icon-moon {
  opacity: 1;
  transform: translateX(3px) rotate(0deg) scale(1);
}

.button-link {
  cursor: pointer;
  font: inherit;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.explorer-search {
  margin-bottom: 16px;
}

.controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.explorer-search .controls {
  grid-template-columns: 1fr;
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.search-customization {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}

.search-customization summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.search-customization-body {
  display: grid;
  gap: 14px;
  padding: 0 12px 12px;
}

.sticky-explorer-tools {
  position: sticky;
  top: 0;
  z-index: 18;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  max-height: 76px;
  overflow: visible;
  margin: -8px 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  box-shadow: var(--shadow);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 0s linear 180ms;
}

body.listing-tools-active .sticky-explorer-tools {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 0s;
}

.sticky-search {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.sticky-search span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.sticky-search input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.sticky-tools-menu {
  position: relative;
  display: block;
}

.sticky-tools-menu-button.menu-toggle {
  display: block;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
}

.sticky-tools-menu.menu-open .sticky-tools-menu-button span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.sticky-tools-menu.menu-open .sticky-tools-menu-button span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.sticky-tools-menu.menu-open .sticky-tools-menu-button span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.sticky-tools-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  display: grid;
  gap: 8px;
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.sticky-tools-popover[hidden] {
  display: none;
}

.sticky-tools-popover .chip {
  justify-content: start;
  width: 100%;
}

.search span,
.date-range span,
.advanced-filter-grid span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.search input,
.date-range input,
.advanced-filter-grid select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 14px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.date-range {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.date-range label {
  min-width: 145px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-filter-group {
  align-items: center;
}

.tag-filter-group {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}

.tag-filter-group summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.tag-filter-group .filter-group {
  padding: 0 12px 12px;
}

.source-filter {
  display: grid;
  gap: 8px;
}

.advanced-filters {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
}

.advanced-filters summary {
  cursor: pointer;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

body.listing-tools-active .advanced-filters:not([open]) {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}

.advanced-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 0 14px 14px;
}

.source-filter > span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.chip {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.chip:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.chip.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 22px rgba(15, 107, 95, 0.18);
}

.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.venue-map-summary {
  margin: 14px 0 0;
}

.venue-map-summary div {
  padding: 14px 16px;
}

.summary div {
  padding: 16px;
  background: var(--paper);
}

.summary strong {
  display: block;
  font-size: 1.5rem;
}

.summary span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.event-list {
  display: grid;
  gap: 18px;
}

.date-group-heading {
  margin: 8px 0 -4px;
  color: var(--accent-2);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1;
}

.listing-jump-actions {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  box-shadow: var(--shadow);
}

.listing-jump-actions .chip {
  min-height: 36px;
}

.venue-map {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.venue-map .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.venue-map summary.section-heading {
  cursor: pointer;
  list-style: none;
}

.venue-map summary.section-heading::-webkit-details-marker {
  display: none;
}

.venue-map summary.section-heading::after {
  content: "Hide";
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.venue-map:not([open]) summary.section-heading {
  margin-bottom: 0;
}

.venue-map:not([open]) summary.section-heading::after {
  content: "Show";
}

.venue-map .section-heading span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.venue-map svg,
.venue-google-map {
  display: block;
  width: 100%;
  height: clamp(260px, 40vw, 440px);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.venue-map svg,
.venue-google-map {
  height: clamp(300px, 28vw, 420px);
}

.venue-map svg {
  background: linear-gradient(145deg, var(--map-gradient-start), var(--map-gradient-end));
}

.venue-google-map {
  overflow: hidden;
  background: var(--map-land);
}

.venue-google-map[hidden] {
  display: none;
}

.map-info-window {
  display: grid;
  gap: 4px;
  min-width: 160px;
  color: #1d1d1d;
  font: 700 13px var(--sans);
}

.map-info-window strong {
  font-size: 0.94rem;
}

.map-info-window span {
  color: #555;
  font-weight: 650;
}

.map-info-window a {
  color: #1a73e8;
  font-weight: 850;
  text-decoration: none;
}

.venue-map-tint {
  width: 100%;
  height: 100%;
  fill: color-mix(in srgb, var(--paper), transparent 88%);
}

.venue-map-gradient {
  width: 100%;
  height: 100%;
  fill: url("#venue-map-terrain-gradient");
}

.venue-map-grid {
  vector-effect: non-scaling-stroke;
  stroke-width: 1.2;
  stroke-dasharray: 7 10;
  opacity: 0.34;
}

.venue-map-latitude {
  stroke: var(--map-latitude);
}

.venue-map-longitude {
  stroke: var(--map-longitude);
}

.venue-map-coordinate {
  fill: color-mix(in srgb, var(--ink), transparent 34%);
  font: 750 13px var(--sans);
  letter-spacing: 0;
  opacity: 0.72;
  pointer-events: none;
}

.venue-map-point {
  fill: var(--accent-2);
  stroke: var(--paper);
  stroke-width: 3;
  cursor: pointer;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.22));
  transition:
    fill 180ms ease,
    r 180ms ease,
    transform 180ms ease;
}

.venue-map-point:hover {
  fill: var(--accent);
  r: 12;
}

.venue-map-point:focus-visible {
  outline: none;
  stroke: var(--accent);
  stroke-width: 6;
}

.venue-modal {
  width: min(560px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.venue-modal::backdrop {
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(3px);
}

.modal-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.modal-heading .kicker {
  margin-bottom: 12px;
}

.modal-heading h2 {
  margin: 0;
  color: var(--statement-sky);
  font-size: clamp(1.7rem, 6vw, 2.7rem);
  line-height: 0.98;
}

.venue-modal[open] .modal-heading h2 {
  animation: modal-title-rise 420ms cubic-bezier(.18,.89,.32,1.18);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

@keyframes modal-title-rise {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  70% {
    opacity: 1;
    transform: translateY(-1px) scale(1.01);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.event {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(190px, 240px) minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.event-image-wrap {
  position: relative;
  overflow: hidden;
  align-self: start;
  height: 160px;
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
}

.event-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
}

.pick-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  border: 1px solid color-mix(in srgb, #fff 60%, var(--accent));
  border-radius: 999px;
  padding: 5px 9px;
  background: color-mix(in srgb, var(--accent) 88%, #fff);
  color: #fffdfa;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.event-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.meta-chip {
  border: 1px solid color-mix(in srgb, var(--accent), var(--line) 48%);
  border-radius: 999px;
  padding: 6px 9px;
  background: color-mix(in srgb, var(--accent), transparent 88%);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
}

.event-date {
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 780;
}

.event-venue {
  color: var(--accent-2);
}

.event-venue a {
  color: var(--accent-2);
}

.event-venue a:hover,
.artist-name a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.artist-list {
  display: grid;
  align-content: start;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--line), var(--accent) 16%);
  border-radius: 8px;
  padding: 8px;
  background: color-mix(in srgb, var(--card), var(--accent) 7%);
}

.artist-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.event-card {
  border-style: dashed;
}

.artist-main {
  display: grid;
  gap: 8px;
}

.artist-name {
  margin: 0 0 4px;
  font-size: 1.02rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.artist-tags,
.artist-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.32;
}

.artist-tags[hidden],
.artist-note[hidden] {
  display: none;
}

.confidence {
  justify-self: start;
  border-radius: 999px;
  padding: 4px 8px;
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.confidence.verified {
  background: var(--accent);
}

.confidence.likely {
  background: var(--blue);
}

.confidence.review {
  background: var(--gold);
}

.confidence.rejected {
  background: var(--badge-rejected);
}

.artist-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.artist-links a,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.78rem;
  font-weight: 750;
}

.artist-links a {
  padding: 6px 9px;
}

.detail-layout {
  width: min(1120px, calc(100% - 32px));
}

.detail-panel {
  display: grid;
  gap: 18px;
}

.detail-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.detail-back {
  color: var(--accent);
}

.detail-hero,
.detail-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.detail-hero {
  padding: clamp(22px, 4vw, 40px);
}

.detail-hero.has-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: center;
}

.detail-hero-image {
  order: 2;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  object-fit: cover;
}

.detail-hero-copy {
  min-width: 0;
}

.detail-hero h2 {
  margin: 0;
  color: var(--statement-sky);
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 0.95;
}

.detail-summary {
  max-width: 780px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.detail-chips,
.detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.detail-chips span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--card);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.detail-section {
  padding: 18px;
}

.detail-section h3 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-variation-settings: "SOFT" 28, "WONK" 1;
  font-size: 1.45rem;
}

.detail-list {
  display: grid;
  grid-template-columns: minmax(130px, 0.32fr) minmax(0, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.detail-list dt,
.detail-list dd {
  margin: 0;
  padding: 12px;
  background: var(--card);
}

.detail-list dt {
  color: var(--muted);
  font-family: var(--display);
  font-variation-settings: "SOFT" 28, "WONK" 1;
  font-weight: 850;
}

.detail-show-list {
  display: grid;
  gap: 10px;
}

.detail-show {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--card);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.detail-show:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(37, 31, 23, 0.1);
  transform: translateY(-1px);
}

.detail-show time {
  grid-row: span 2;
  color: var(--accent-2);
  font-weight: 850;
}

.detail-show strong {
  color: var(--ink);
}

.detail-show span {
  color: var(--muted);
  line-height: 1.4;
}

.empty-state {
  padding: 22px;
  text-align: center;
  color: var(--muted);
}

.admin-layout {
  width: min(980px, calc(100% - 32px));
}

.source-intro {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-card {
  display: grid;
  gap: 10px;
  min-height: 176px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.admin-card:hover {
  border-color: var(--accent);
  background: var(--card);
  box-shadow: 0 14px 28px rgba(37, 31, 23, 0.12);
  transform: translateY(-2px);
}

.admin-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent), transparent 62%);
  outline-offset: 3px;
}

.admin-card strong {
  font-size: 1.45rem;
  line-height: 1.05;
}

.admin-card span:last-child {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.source-card {
  cursor: default;
}

.source-card:hover {
  transform: none;
}

.source-card > span:not(.kicker) {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.admin-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-source-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.admin-source-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.suggestion-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.suggestion-list {
  display: grid;
  gap: 12px;
}

.suggestion-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.suggestion-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.suggestion-heading h2,
.suggestion-value {
  margin: 0;
}

.suggestion-heading h2 {
  font-size: 1.08rem;
  line-height: 1.2;
}

.suggestion-value {
  color: var(--ink);
  font-weight: 800;
}

.suggestion-note {
  margin: 0;
  border-left: 3px solid var(--gold);
  padding-left: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.suggestion-reasons {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 940px) {
  .event {
    grid-template-columns: minmax(150px, 180px) minmax(0, 1fr);
  }

  .event-image-wrap {
    grid-row: span 2;
  }
}

@media (max-width: 680px) {
  .event {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  .event-image-wrap,
  .event-image {
    height: clamp(118px, 34vw, 145px);
    min-height: 118px;
  }

  .event-meta {
    gap: 6px;
  }

  .event-date {
    font-size: 1.22rem;
  }

  .event-detail,
  .event-venue {
    font-size: 0.92rem;
    line-height: 1.3;
  }

  .event-links,
  .artist-links {
    gap: 5px;
  }

  .meta-chip,
  .artist-links a {
    padding: 5px 8px;
    font-size: 0.76rem;
  }

  .artist-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 7px;
  }

  .artist-list.single-artist {
    grid-template-columns: 1fr;
  }

  .event-card {
    grid-column: 1 / -1;
  }

  .artist-card {
    padding: 10px;
  }

  .artist-note {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
}

.review-layout {
  width: min(1320px, calc(100% - 32px));
}

.auth-layout {
  width: min(520px, calc(100% - 32px));
  margin: 42px auto;
}

.auth-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.auth-card h2,
.auth-card p {
  margin: 0;
}

body:not(.auth-admin) [data-admin-only] {
  display: none;
}

.review-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.queue-list,
.review-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.queue-list {
  display: grid;
  gap: 1px;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--line);
}

.queue-item {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 0;
  padding: 13px 14px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.queue-item.active {
  background: var(--queue-active);
}

.queue-item span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.review-panel {
  padding: 18px;
}

.form-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.form-heading h2,
.appearances h3 {
  margin: 0;
  letter-spacing: 0;
}

.record-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: -4px 0 6px;
}

.record-position {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

#artistForm,
#venueForm,
#eventForm {
  display: grid;
  gap: 14px;
}

#artistForm label span,
#venueForm label span,
#eventForm label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.field-source {
  margin-left: 6px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

#artistForm input,
#artistForm select,
#artistForm textarea,
#venueForm input,
#venueForm select,
#venueForm textarea,
#eventForm input,
#eventForm select,
#eventForm textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
}

#artistForm textarea,
#venueForm textarea,
#eventForm textarea {
  resize: vertical;
}

.field-grid {
  display: grid;
  gap: 12px;
}

.field-grid.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-grid.three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pick-toggle {
  align-self: end;
  justify-self: start;
  min-height: 43px;
}

.pick-toggle.active::before {
  content: "✓ ";
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.merge-panel {
  display: grid;
  gap: 0;
  margin: 6px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  box-shadow: none;
}

.merge-panel[open] {
  background: color-mix(in srgb, var(--paper) 88%, var(--accent));
}

.merge-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
}

.merge-panel summary::-webkit-details-marker {
  display: none;
}

.merge-panel summary > span {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.merge-panel[open] summary > span {
  color: var(--accent);
}

.merge-panel[open] summary > span {
  font-size: 0;
}

.merge-panel[open] summary > span::before {
  content: "Close merge";
  font-size: 0.76rem;
}

.merge-panel-body {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 12px;
}

.merge-panel h3,
.merge-panel p {
  margin: 0;
}

.merge-panel p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.duplicate-panel {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: color-mix(in srgb, var(--paper) 92%, var(--accent));
}

.duplicate-panel.is-empty {
  gap: 0;
  padding: 9px 12px;
  background: transparent;
}

.duplicate-panel.is-empty .section-heading {
  display: none;
}

.duplicate-panel.is-empty .empty-state {
  color: var(--muted);
  font-size: 0.82rem;
}

.compact-heading {
  margin-bottom: 0;
}

.duplicate-suggestions {
  display: grid;
  gap: 10px;
}

.duplicate-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.duplicate-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--paper);
}

.duplicate-card.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.duplicate-card h4,
.duplicate-card p {
  margin: 0;
}

.duplicate-card h4 {
  font-size: 0.98rem;
}

.duplicate-card p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.compact-empty {
  margin: 0;
}

.danger-chip {
  border-color: var(--danger-line);
  color: var(--danger-ink);
}

.save-status {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.appearances {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-heading h3 {
  margin: 0;
}

.links-editor {
  display: grid;
  gap: 8px;
}

.rejected-links-section {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.rejected-links-section summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 800;
}

.rejected-links-section .links-editor {
  margin-top: 10px;
}

.link-row {
  display: grid;
  grid-template-columns: minmax(105px, 0.75fr) minmax(105px, 0.85fr) minmax(180px, 1.5fr) minmax(92px, 0.7fr) minmax(74px, 0.45fr) minmax(104px, 0.65fr) 34px;
  gap: 8px;
  align-items: center;
}

.link-row select,
.link-row input {
  min-height: 38px;
}

.link-display-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 9px;
  background: var(--field);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.link-display-control input {
  width: auto;
  min-height: 0;
  margin: 0 6px 0 0;
}

.link-row.rejected {
  opacity: 0.55;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.appearance {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.appearance-control {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
}

.appearance-control p {
  margin: 0;
}

.compact-filter select,
.compact-filter input {
  min-height: 40px;
  max-width: 220px;
}

@media (max-width: 820px) {
  .topbar {
    align-items: start;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .sticky-explorer-tools {
    top: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    border-radius: 0 0 8px 8px;
  }

  body.listing-tools-active .sticky-explorer-tools {
    margin: -6px 0 12px;
  }

  .sticky-search span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .sticky-search input,
  .sticky-explorer-tools .chip {
    min-height: 38px;
  }

  .sticky-explorer-tools .chip {
    padding: 0 11px;
    white-space: nowrap;
  }

  .venue-map {
    padding: 14px;
  }

  .venue-map svg,
  .venue-google-map {
    height: clamp(220px, 58vw, 360px);
  }

  .controls,
  .event,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .queue-list {
    position: static;
    max-height: 42vh;
  }

  .summary {
    grid-template-columns: 1fr;
  }

  .venue-map-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .listing-jump-actions {
    right: 12px;
    bottom: 12px;
    left: 12px;
    justify-content: center;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .link-row {
    grid-template-columns: 1fr;
  }

  .field-grid.two-column,
  .field-grid.three-column {
    grid-template-columns: 1fr;
  }

  .detail-list,
  .detail-show {
    grid-template-columns: 1fr;
  }

  .detail-hero.has-image {
    grid-template-columns: 1fr;
  }

  .detail-hero-image {
    order: -1;
    max-height: 320px;
  }

  .detail-show time {
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .topbar {
    gap: 16px;
    padding-bottom: 16px;
  }

  .topbar h1 {
    font-size: clamp(2rem, 12vw, 3.4rem);
  }

  .menu-toggle {
    display: block;
    align-self: center;
  }

  .topbar.nav-open .menu-toggle span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
  }

  .topbar.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .topbar.nav-open .menu-toggle span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
  }

  .nav-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition:
      max-height 260ms ease,
      opacity 220ms ease,
      transform 220ms ease;
  }

  .nav-actions > * {
    transform: translateY(-6px);
    opacity: 0;
    transition:
      opacity 220ms ease,
      transform 220ms ease,
      background-color 180ms ease,
      border-color 180ms ease,
      box-shadow 180ms ease,
      color 180ms ease;
  }

  .topbar.nav-open .nav-actions {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
  }

  .topbar.nav-open .nav-actions > * {
    opacity: 1;
    transform: translateY(0);
  }

  .topbar.nav-open .nav-actions > *:nth-child(1) {
    transition-delay: 20ms;
  }

  .topbar.nav-open .nav-actions > *:nth-child(2) {
    transition-delay: 55ms;
  }

  .topbar.nav-open .nav-actions > *:nth-child(3) {
    transition-delay: 90ms;
  }

  .topbar.nav-open .nav-actions > *:nth-child(4) {
    transition-delay: 125ms;
  }

  .source-link,
  .theme-toggle {
    width: 100%;
  }

  .source-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }

  .theme-toggle {
    height: 44px;
  }

  .detail-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .detail-nav .source-link {
    min-height: 40px;
    padding: 8px 9px;
    text-align: center;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
