/* song570.css — v570 layer for the song book (hub + six lists). Page-owned; loaded after songs.css and dark.css.
   Scoped to body.sg570 so nothing outside these pages can match. */
body.sg570 [hidden] { display: none !important; }
body.sg570 { --gutter: clamp(16px, 2.82vw, 36px); --s5-accent: #C2410C; --s5-accent-hi: #9A3412; --s5-on: #FFFFFF; }
body.sg570 .so-page { --gutter: clamp(16px, 2.82vw, 36px); --measure: 1265px; --header-h: var(--nav-h, 74px); --accent: #C2410C; overflow-x: clip; }
html[data-dark] body.sg570 { --s5-accent: #EA580C; --s5-accent-hi: #F97316; }
html[data-dark] body.sg570 .so-page { --accent: #F97316; }

/* ---- the dock: one sticky row, 50px ---- */
body.sg570 .s5-dock { position: sticky; top: var(--nav-h, 74px); z-index: 95; height: 50px; box-sizing: border-box;
  background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft); }
@supports not (background: color-mix(in srgb, red 50%, blue)) { body.sg570 .s5-dock { background: var(--paper); } }
body.sg570 .s5-dock__in { max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); height: 100%;
  display: flex; align-items: center; gap: 6px; }
body.sg570 .s5-dock .search { flex: 1 1 8rem; min-width: 0; position: relative; }
body.sg570 .s5-dock .search input { height: 38px; box-sizing: border-box; padding-block: 0; font-size: 16px; }
@media (min-width: 720px) { body.sg570 .s5-dock .search input { font-size: .9rem; } }
body.sg570 .s5-ib { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; height: 38px; min-width: 40px;
  padding: 0 .7rem; box-sizing: border-box; border-radius: 10px; border: 1px solid var(--line); background: var(--paper-soft); color: var(--ink);
  font: inherit; font-size: .8rem; font-weight: 600; white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .12s ease, box-shadow .18s ease; }
body.sg570 .s5-ib svg { width: 17px; height: 17px; flex: 0 0 auto; }
body.sg570 .s5-ib:hover { border-color: var(--s5-accent); color: var(--s5-accent); transform: translateY(-1px); box-shadow: 0 4px 12px -6px rgba(194, 65, 12, .45); }
body.sg570 .s5-ib:active { transform: translateY(0); }
body.sg570 .s5-ib--go { background: var(--s5-accent); border-color: var(--s5-accent); color: var(--s5-on); }
body.sg570 .s5-ib--go:hover { background: var(--s5-accent-hi); border-color: var(--s5-accent-hi); color: var(--s5-on); }
body.sg570 .s5-ib[aria-pressed="true"] { background: var(--s5-accent); border-color: var(--s5-accent); color: var(--s5-on); }
body.sg570 .s5-ib[aria-pressed="true"]:hover { color: var(--s5-on); background: var(--s5-accent-hi); }
body.sg570 .s5-ib .s5-n { font-variant-numeric: tabular-nums; opacity: .78; font-weight: 500; }
body.sg570 .s5-lbl { display: none; }
body.sg570 .s5-sel { flex: 0 1 auto; height: 38px; box-sizing: border-box; max-width: 9.5rem; min-width: 64px; padding: 0 1.7rem 0 .6rem; border-radius: 10px;
  border: 1px solid var(--line); background-color: var(--paper-soft); color: var(--ink); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 13px) 50%, calc(100% - 8px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
  transition: border-color .18s ease, color .18s ease; }
body.sg570 .s5-sel:hover { border-color: var(--s5-accent); }
@media (min-width: 560px) { body.sg570 .s5-lbl { display: inline; } body.sg570 .s5-sel { max-width: 12rem; } }
@media (max-width: 380px) { body.sg570 .s5-ib { padding: 0 .55rem; } body.sg570 .s5-dock__in { gap: 5px; } body.sg570 .s5-sel { max-width: 5.6rem; padding-right: 1.4rem; } }

/* typeahead */
body.sg570 .s5-ta { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 120; margin: 0; padding: 6px; list-style: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .35); max-height: min(60vh, 340px); overflow: auto; }
@media (max-width: 560px) { body.sg570 .s5-ta { position: fixed; left: var(--gutter); right: var(--gutter); top: calc(var(--nav-h, 62px) + 50px); } }
body.sg570 .s5-ta li { display: flex; align-items: baseline; gap: .6rem; padding: .55rem .6rem; border-radius: 7px; cursor: pointer; font-size: .88rem; color: var(--ink); }
body.sg570 .s5-ta li small { margin-left: auto; color: var(--ink-55); font-size: .72rem; white-space: nowrap; }
body.sg570 .s5-ta li b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
body.sg570 .s5-ta li[aria-selected="true"], body.sg570 .s5-ta li:hover { background: var(--accent-bg, rgba(194, 65, 12, .1)); }

/* the old console stays in the page, no longer sticky (the dock is) */
body.sg570 .so-page .so-console { position: static; top: auto; backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; }
@media (max-width: 720px) {
  body.sg570 .so-page .console__row { grid-template-areas: "shuffle pickn" "sort sort"; }
}

/* ---- buttons: accent primaries, lift hover, focus ring ---- */
body.sg570 .so-page .so-btn:not(.so-btn--ghost) { background: var(--s5-accent); color: var(--s5-on); border-color: var(--s5-accent); border-radius: 10px;
  transition: background-color .18s ease, transform .12s ease, box-shadow .18s ease; }
body.sg570 .so-page .so-btn:not(.so-btn--ghost):hover { opacity: 1; background: var(--s5-accent-hi); transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(194, 65, 12, .6); }
body.sg570 .so-page .so-btn--ghost { border-radius: 10px; }
body.sg570 .so-page .so-btn--ghost:hover:not(:disabled) { border-color: var(--s5-accent); color: var(--s5-accent); background: var(--accent-bg, rgba(194, 65, 12, .08)); }
body.sg570 .so-page .so-btn:disabled { transform: none; box-shadow: none; }
body.sg570 .so-page .pickn__b { transition: background-color .18s ease, color .18s ease; }
body.sg570 .so-page .pickn__b:hover { background: var(--accent-bg, rgba(194, 65, 12, .1)); color: var(--s5-accent); }
body.sg570 .so-page .lnk { transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
body.sg570 .so-page .lnk:hover { color: var(--s5-accent); }
body.sg570 .so-page .trk { transition: background-color .15s ease; }
body.sg570 .so-page .trk:hover { background: color-mix(in srgb, var(--s5-accent) 5%, transparent); }
body.sg570 a:focus-visible, body.sg570 button:focus-visible, body.sg570 select:focus-visible, body.sg570 input:focus-visible, body.sg570 [tabindex]:focus-visible {
  outline: 2px solid var(--s5-accent); outline-offset: 2px; border-radius: 10px; }
body.sg570 .so-page .search input:focus { border-color: var(--s5-accent); }

/* In-the-know tag */
body.sg570 .so-page .tag--itk { background: rgba(194, 65, 12, .12); color: #9A3412; letter-spacing: .03em; }
html[data-dark] body.sg570 .so-page .tag--itk { background: rgba(249, 115, 22, .18); color: #FDBA74; }

/* ---- hero art ---- */
body.sg570 .so-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 clamp(24px, 4vw, 56px); align-items: center; }
body.sg570 .so-hero > * { grid-column: 1; }
body.sg570 .s5-art { margin: 1.4rem 0 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--paper-soft); }
body.sg570 .s5-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
body.sg570 .s5-art:hover img { transform: scale(1.025); }
@media (min-width: 960px) {
  body.sg570 .so-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  body.sg570 .s5-art { grid-column: 2; grid-row: 1 / span 6; margin: 0; aspect-ratio: 720 / 483; }
}
body.sg570 .s5-stat { margin: .9rem 0 0; font-size: .86rem; color: var(--ink-55); line-height: 1.55; }
body.sg570 .s5-stat a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); white-space: nowrap; transition: color .15s ease, border-color .15s ease; }
body.sg570 .s5-stat a:hover { color: var(--s5-accent); border-color: var(--s5-accent); }
body.sg570 .s5-stat b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
body.sg570 .so-page .eras a { padding-inline: 2px; }
body.sg570 .so-page .eras a:hover { color: var(--s5-accent); }

/* ---- hub cards: SVG art, even 3/2/1 grid, lift hover ---- */
body.sg570 .so-page .grid { grid-template-columns: minmax(0, 1fr); border-radius: 14px; }
@media (min-width: 560px) { body.sg570 .so-page .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { body.sg570 .so-page .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
html:not([data-dark]) body.sg570 .so-page .card__img, html:not([data-dark]) body.sg570 .so-page .so-card:hover .card__img,
html:not([data-dark]) body.sg570 .so-page .so-card:focus-visible .card__img, html[data-dark] body.sg570 .so-page .card__img { filter: none; }
html[data-dark] body.sg570 .so-page .so-card:hover .card__img { filter: none; }
body.sg570 .so-page .so-card:hover .card__img { transform: scale(1.035); }
body.sg570 .so-page a.so-card:hover .card__n { color: var(--s5-accent); }
body.sg570 .so-page a.so-card:hover { background: color-mix(in srgb, var(--s5-accent) 4%, var(--paper)); }
body.sg570 .so-page .card__itk { color: var(--s5-accent); font-weight: 600; }

/* ---- shuffle-all panel on the list pages ---- */
body.sg570 .s5-all { margin: 0 0 1.4rem; }

/* ---- landscape phones: keep the list in view ---- */
@media (orientation: landscape) and (max-height: 520px) {
  body.sg570 .so-page .so-hero { padding-block: 1.2rem .8rem; }
  body.sg570 .s5-art { display: none; }
  body.sg570 .so-page .hero__lede { display: none; }
  body.sg570 .so-page .facts { margin-top: .8rem; padding-top: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  body.sg570 *, body.sg570 *::before, body.sg570 *::after { transition: none !important; }
}

/* header button: the accent primary */
body.sg570 .nav .btn { background: var(--s5-accent); border-color: var(--s5-accent); color: #FFFFFF; border-radius: 10px; transition: background-color .18s ease, transform .12s ease, box-shadow .18s ease; }
body.sg570 .nav .btn:hover { background: var(--s5-accent-hi); color: #FFFFFF; transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(194, 65, 12, .6); }
html[data-dark] body.sg570 .nav .btn { background: #EA580C; border-color: #EA580C; color: #FFFFFF; }
/* long titles wrap on phones so the In-the-know mark is never cut off */
@media (max-width: 720px) { body.sg570 .so-page .trk__t { white-space: normal; overflow-wrap: anywhere; } }
@media (max-width: 380px) { body.sg570 .s5-ib { min-width: 38px; } }
body.sg570 .so-page .tag--itk { white-space: nowrap; }
@media (max-width: 720px) { body.sg570 .so-page .trk__a { white-space: normal; overflow-wrap: anywhere; } }
@media (max-width: 380px) {
  body.sg570 .s5-dock__in { gap: 4px; }
  body.sg570 .s5-ib { min-width: 36px; padding: 0 .45rem; }
  body.sg570 .s5-sel { max-width: 5.3rem; min-width: 0; padding: 0 1.25rem 0 .5rem; background-position: calc(100% - 11px) 50%, calc(100% - 6px) 50%; }
  body.sg570 .s5-dock .search input { padding-left: 1.85rem; padding-right: .3rem; }
  body.sg570 .s5-dock .search svg { left: .55rem; width: 14px; height: 14px; }
}
@media (max-width: 380px) { body.sg570 .s5-sel { max-width: 5.6rem; font-size: .76rem; letter-spacing: -.01em; } }
@media (max-width: 380px) { body.sg570 .s5-sel { flex: 0 0 auto; } }
