/*
 * Setlist Print — a real performance setlist.
 *
 * What a setlist actually looks like: single column, large readable
 * text that a musician can scan from a few feet away on a dim stage.
 * Title prominent and bold, key visible at a glance, singer when
 * relevant. Generous line spacing. No fancy typography.
 */

body:has(.setlist-print-page) {
  background: #fff !important;
  color: #000 !important;
}

.setlist-print-page {
  max-width: 6in;
  margin: 0 auto;
  padding: 0.1in 0.4in 0.2in;
  background: #fff;
  color: #000;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* ── Header ──────────────────────────────────────────────── */

.setlist-print-page .sp-title {
  font-family: inherit;
  font-size: 16pt;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid #000;
  padding-bottom: 0.1em;
  margin: 0 0 0.1em;
  color: #000;
  line-height: 1.1;
}

.setlist-print-page .sp-meta {
  text-align: center;
  font-size: 9pt;
  color: #444;
  margin-bottom: 0.25em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.setlist-print-page .sp-meta-project + .sp-meta-date::before {
  content: " · ";
  margin: 0 0.4em;
}

/* ── Song list ───────────────────────────────────────────── */

.setlist-print-page .sp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: song;
}

.setlist-print-page .sp-row {
  counter-increment: song;
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  padding: 0.08em 0;
  border-bottom: 1px dotted #bbb;
  font-size: 21pt;
  line-height: 1.15;
  color: #000;
}

.setlist-print-page .sp-row::before {
  content: counter(song) ".";
  flex-shrink: 0;
  min-width: 1.4em;
  font-weight: 700;
  color: #888;
  font-size: 15pt;
  text-align: right;
}

.setlist-print-page .sp-song {
  flex: 1;
  font-weight: 700;
}

.setlist-print-page .sp-singer {
  font-style: italic;
  color: #555;
  font-size: 12pt;
  white-space: nowrap;
}

.setlist-print-page .sp-key {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  color: #000;
  font-size: 17pt;
  min-width: 2.5em;
  text-align: right;
  white-space: nowrap;
}

/* ── Print (paper) ───────────────────────────────────────── */

@media print {
  @page { margin: 0.25in; }

  body {
    background: #fff !important;
    color: #000 !important;
    /* Keep the black title underline & dotted row rules from being dropped. */
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Strip site chrome on paper. */
  .toolbar,
  .toolbar-bar,
  .toolbar-tray,
  .gin-secondary-toolbar,
  nav.tabs,
  .tabs,
  .breadcrumb,
  .messages,
  .skip-link,
  header,
  footer,
  nav,
  .site-header,
  .site-footer,
  .mailing-list-banner,
  .region-header,
  .region-footer {
    display: none !important;
  }

  .setlist-print-page {
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  /* Keep rows from breaking across pages mid-line. */
  .setlist-print-page .sp-row {
    page-break-inside: avoid;
  }
}
