/* WalkAmp song-list pages — extends guides.css */
.songs-hero { padding: 84px 0 36px; }
.songs-hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 900; margin: 12px 0 16px; max-width: 820px; }
@media (max-width: 720px) { .songs-hero { padding: 56px 0 28px; } }

.jump { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 0 8px; }
.jump a {
  font-size: 13px; font-weight: 700; color: var(--text-sub); background: var(--card);
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px;
  transition: border-color .15s ease, color .15s ease;
}
.jump a:hover { border-color: var(--accent-border); color: var(--text); }

.song-section { padding: 36px 0 8px; }
.song-section h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 6px; scroll-margin-top: 84px; }
.song-section .sub { color: var(--text-sub); font-size: 15px; max-width: 640px; margin-bottom: 20px; }

.song-list { display: grid; gap: 10px; list-style: none; }
.song {
  display: flex; gap: 16px; align-items: baseline; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px;
}
.song .n { flex: none; width: 28px; text-align: right; font-weight: 800; font-size: 14px; color: var(--link); }
.song .t { font-weight: 800; font-size: 15.5px; }
.song .a { color: var(--text-sub); font-weight: 600; font-size: 14px; }
.song .why { color: var(--text-muted); font-size: 13.5px; margin-top: 2px; }
.song > div { min-width: 0; }
@media (max-width: 480px) { .song { padding: 12px 14px; gap: 12px; } }

.faq-block { padding: 48px 0 16px; }
.faq-block h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 20px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; margin-bottom: 12px; }
.faq-item h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 8px; }
.faq-item p { color: var(--text-sub); font-size: 14.5px; }
.faq-item a { color: var(--link); font-weight: 600; }

/* prose article (field setup) */
.article { max-width: 720px; }
.article h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin: 40px 0 12px; scroll-margin-top: 84px; }
.article p { color: var(--text-sub); font-size: 15.5px; margin-bottom: 14px; }
.article p b, .article p strong, .article li b { color: var(--text); }
.article a { color: var(--link); font-weight: 600; }
.article ul, .article ol { color: var(--text-sub); font-size: 15.5px; margin: 0 0 14px 22px; }
.article li { margin-bottom: 8px; }

.checklist { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; margin: 24px 0; }
.checklist h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 12px; }
.checklist ul { list-style: none; margin: 0; }
.checklist li { display: flex; gap: 10px; color: var(--text-sub); font-size: 14.5px; margin-bottom: 8px; }
.checklist li::before { content: "✓"; color: var(--green); font-weight: 800; }

html.light .song, html.light .faq-item, html.light .checklist { box-shadow: 0 1px 2px rgba(15,23,42,0.04); }

/* ============ song finder (/walk-up-songs/finder) ============ */
/* Motion tokens come from the homepage :root; guides.css lacks them, so they
   are declared here rather than hand-typing a near-identical curve. */
:root { --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --dur-press: 120ms; }

.finder { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 26px 28px; margin-top: 8px; }
.finder fieldset { border: 0; padding: 0; min-width: 0; margin: 0 0 20px; }
.finder legend {
  display: block; padding: 0; margin-bottom: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; display: inline-block; }
/* Keep the native radio in the tab order for keyboard and screen-reader
   users, but out of sight. The span is the visible control. */
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 9px 15px; border-radius: 999px; cursor: pointer;
  font-size: 14.5px; font-weight: 700; color: var(--text-sub); background: var(--bg); border: 1px solid var(--border);
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform var(--dur-press) var(--ease-out);
}
.chips label:hover span { border-color: var(--accent-border); color: var(--text); }
.chips label:active span { transform: scale(0.97); }
.chips input:checked + span { background: var(--accent-bg); border-color: var(--accent-border); color: var(--link); }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.finder-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
.finder .hint, .finder-results .hint { color: var(--text-muted); font-size: 13px; }
.finder .hint a { color: var(--link); font-weight: 600; }
.btn:active { transform: scale(0.97); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent-border); color: var(--link); }
@media (max-width: 480px) {
  .finder { padding: 20px 18px; }
  .finder-actions .btn { width: 100%; }
}

.finder-results { padding: 36px 0 8px; scroll-margin-top: 84px; }
.finder-results h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 6px; outline: none; }
.finder-results .sub { color: var(--text-sub); font-size: 15px; margin-bottom: 6px; }
.finder-results .preview-credit { margin: 0 0 18px; }
.finder-results .finder-actions { margin-top: 18px; }
.clean {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; vertical-align: middle;
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--green); border: 1px solid rgba(124,255,79,0.35);
}
.no-match { background: var(--card); border: 1px dashed var(--border); border-radius: 14px; padding: 18px 20px; color: var(--text-sub); font-size: 14.5px; }

/* New picks slide in so a fresh set reads as a change, not a flicker. Each
   render inserts new nodes, so the one-shot keyframe never has to retarget. */
@media (prefers-reduced-motion: no-preference) {
  #results-list .song { animation: song-in 220ms var(--ease-out) both; }
  #results-list .song:nth-child(2) { animation-delay: 35ms; }
  #results-list .song:nth-child(3) { animation-delay: 70ms; }
  #results-list .song:nth-child(4) { animation-delay: 105ms; }
  #results-list .song:nth-child(5) { animation-delay: 140ms; }
  @keyframes song-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* Four related cards go 2x2 instead of leaving an orphan under a row of three. */
.related-4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .related-4 { grid-template-columns: 1fr; } }

html.light .finder, html.light .no-match { box-shadow: 0 1px 2px rgba(15,23,42,0.04); }
html.light .clean { color: #2f7d1e; border-color: rgba(47,125,30,0.35); }

/* Reduced motion: the entrance above is gated behind no-preference and the
   only hover effects here are color and border, so nothing moves. Press
   feedback stays on purpose. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Apple Music previews (assets/preview.js adds a button to each .song card) */
.play-btn {
  flex: none; align-self: center; width: 36px; height: 36px; border-radius: 50%;
  display: inline-grid; place-items: center; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg); color: var(--link);
  font-size: 13px; line-height: 1; padding-left: 2px; /* nudge the ▶ glyph to optical center */
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform var(--dur-press) var(--ease-out);
}
.play-btn:hover { border-color: var(--accent-border); }
.play-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* Smaller control, larger ratio: 36px needs more scale to read as a press. */
.play-btn:active { transform: scale(0.93); }
.play-btn.playing { background: var(--accent); color: #000; border-color: var(--accent); padding-left: 0; }
.preview-credit { color: var(--text-muted); font-size: 13px; margin: 8px 0 20px; }
html.light .play-btn { background: var(--card-alt); }
