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

.phish-detail-table-title {
  margin-bottom: 10px;
}

.phish-detail-lead {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
}

.phish-detail-copy {
  color: #000;
  font-size: 1rem;
  line-height: 1.6;
}

.phish-detail-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #000;
  font-weight: 700;
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.phish-detail-nav-link:hover,
.phish-detail-nav-link:focus {
  color: #000;
}

.phish-detail-table-link {
  color: #000;
  font-weight: 700;
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.phish-detail-table-link:hover,
.phish-detail-table-link:focus {
  color: #000;
}

.phish-detail-chart-wrap {
  position: relative;
  height: 320px;
}

.phish-detail-chart-wrap-compact {
  height: 280px;
}

.phish-detail-breakdown-chart {
  height: 400px;
}

.phish-detail-breakdown-body {
  display: grid;
  grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.phish-detail-legend-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.phish-detail-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.phish-detail-legend-swatch {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 3px solid #000;
  box-shadow: 2px 2px 0 0 #000;
}

.phish-detail-legend-text {
  color: #000;
}

.data-table-shell.detail-table-shell.phish-detail-table-shell {
  padding: 0 !important;
}

.data-table-shell.detail-table-shell.phish-detail-table-shell .data-table-scroll {
  padding: 0;
}

.data-table-shell.detail-table-shell.phish-detail-table-shell table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 0 !important;
}

.data-table-shell.detail-table-shell.phish-detail-table-shell thead th {
  background: var(--neo-secondary) !important;
  color: #000 !important;
  border-bottom: 4px solid #000 !important;
}

.data-table-shell.detail-table-shell.phish-detail-table-shell tbody td {
  color: #000 !important;
  border-top: 2px solid #000 !important;
  font-weight: 700;
  vertical-align: top;
}

.data-table-shell.detail-table-shell.phish-detail-table-shell tbody tr:nth-child(odd) td {
  background: rgba(var(--neo-secondary-rgb), 0.18) !important;
}

.data-table-shell.detail-table-shell.phish-detail-table-shell tbody tr:nth-child(even) td {
  background: rgba(var(--neo-muted-rgb), 0.22) !important;
}

.data-table-shell.detail-table-shell.phish-detail-table-shell table.dataTable {
  width: 100% !important;
}

#phishSongShowsTable th:first-child,
#phishSongShowsTable td:first-child {
  min-width: 126px;
  white-space: nowrap;
}

#phishSongShowsTable td:first-child .phish-detail-table-link {
  white-space: nowrap;
}

.phish-detail-chart-wrap > canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
}

.phish-detail-map {
  min-height: 420px;
  border: 4px solid #000;
  box-shadow: none;
}

.row > .phish-detail-copy {
  margin: 0 0 2px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .phish-detail-breakdown-body {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .phish-detail-legend-list {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px 18px;
  }
}

@media (max-width: 700px) {
  .phish-detail-chart-wrap {
    height: 260px;
  }

  .phish-detail-chart-wrap-compact {
    height: 240px;
  }

  .phish-detail-breakdown-chart {
    height: 320px;
  }

  .phish-detail-map {
    min-height: 300px;
  }

  #phishSongShowsTable {
    min-width: 760px;
  }
}

#showSongTable {
  font-size: 0.95rem;
  min-width: 860px;
}

#showSongTable td.center {
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
}

#showSongTable .set-row td {
  padding: 10px 12px;
  background: var(--neo-secondary) !important;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000 !important;
  font-weight: 700;
  letter-spacing: 0.02em;
}
