/* Jamalong. A tool first: a slim bar, a short set-list header that says what
   this is, then the songs as a list you work from. The colours are the winter
   poster's: night indigo, northern-lights green, the cats' laser magenta and
   cyan. Gold is Sit In's gold, so the two pages belong together.
   jamalong/songs/ shares the bar and the tokens. */

:root {
  --night: #080b1e;
  --night2: #0e1331;
  --raise: #121839;
  --panel: rgba(140, 165, 255, 0.05);
  --panel2: rgba(140, 165, 255, 0.09);
  --line: rgba(170, 190, 255, 0.12);
  --line2: rgba(170, 190, 255, 0.26);
  --snow: #eef1ff;     /* 16.6:1 on --night */
  --dim: #b4bce0;      /* 10.1:1 */
  --faint: #8790bd;    /* 6.0:1 */
  --gold: #f2b33d;     /* 10.4:1 */
  --on-gold: #1a1206;
  --aurora: #4fe3a6;
  --magenta: #ff5fd2;
  --cyan: #5fd4ff;
  --violet: #9d7bff;
  --ember: #ff8a3d;
  --mark: 'Bungee', 'Bebas Neue', Impact, sans-serif;
  --display: 'Bebas Neue', 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 10px;
  --wide: 1160px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --edge: max(var(--gutter), calc((100% - var(--wide)) / 2));
  --bar: 56px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 16px); }
body {
  margin: 0;
  background: var(--night);
  color: var(--snow);
  font: 400 0.95rem/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--gold); }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
main { overflow-x: clip; }
.ja-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- The night: a little of the poster's aurora behind the header, fading out fast ---- */
.ja-sky {
  position: absolute; inset: 0 0 auto; height: 360px; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 11, 30, 0.35) 0%, rgba(8, 11, 30, 0.82) 55%, var(--night) 100%),
    url('img/aurora.jpg') center 30% / cover no-repeat;
  opacity: 0.75;
}

/* ---- Tooltips: [data-tip] on anything; data-tip-at = start | end | below | below-end ---- */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip); position: absolute; z-index: 40; left: 50%; bottom: calc(100% + 8px); translate: -50% 4px;
  width: max-content; max-width: min(280px, calc(100vw - 32px)); padding: 9px 12px; border-radius: 8px;
  background: var(--raise); border: 1px solid var(--line2); color: var(--snow);
  font: 400 0.8rem/1.45 var(--font); letter-spacing: 0; text-transform: none; text-align: left; white-space: pre-line;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.12s, translate 0.12s, visibility 0.12s;
}
[data-tip]:hover::after, [data-tip]:focus-visible::after, [data-tip].tip-on::after { opacity: 1; visibility: visible; translate: -50% 0; transition-delay: 0.25s; }
[data-tip]:focus-visible::after, [data-tip].tip-on::after { transition-delay: 0s; }
[data-tip-at~="start"]::after { left: 0; translate: 0 4px; }
[data-tip-at~="end"]::after, [data-tip-at~="below-end"]::after { left: auto; right: 0; translate: 0 4px; }
[data-tip-at~="start"]:is(:hover, :focus-visible, .tip-on)::after,
[data-tip-at~="end"]:is(:hover, :focus-visible, .tip-on)::after,
[data-tip-at~="below-end"]:is(:hover, :focus-visible, .tip-on)::after { translate: 0 0; }
[data-tip-at~="below"]::after, [data-tip-at~="below-end"]::after { bottom: auto; top: calc(100% + 8px); }

/* ---- The bar ---- */
.ja-top {
  position: sticky; top: 0; z-index: 30; min-height: var(--bar);
  display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; padding: 8px var(--edge);
  background: rgba(8, 11, 30, 0.78); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
}
.ja-home { font: 600 0.88rem/1 var(--font); color: var(--faint); text-decoration: none; }
.ja-home:hover { color: var(--snow); }
.ja-crumb { color: var(--line2); margin: 0 -6px; }
.ja-app { font: 400 1rem/1 var(--mark); letter-spacing: 0.02em; color: var(--gold); text-decoration: none; }
.ja-when { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 0.86rem; font-weight: 500; }
.ja-dot { display: inline-block; width: 4px; height: 4px; rotate: 45deg; background: var(--gold); opacity: 0.8; vertical-align: middle; }
.ja-nav { margin-left: auto; display: flex; gap: 2px; }
.ja-nav a { font-size: 0.88rem; font-weight: 500; color: var(--dim); text-decoration: none; padding: 7px 11px; border-radius: 8px; }
.ja-nav a:hover { color: var(--snow); background: var(--panel2); }
.ja-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  background: rgba(242, 179, 61, 0.1); border: 1px solid rgba(242, 179, 61, 0.45); color: var(--gold); font-weight: 600; font-size: 0.85rem;
}
.ja-chip:hover { background: rgba(242, 179, 61, 0.18); }
.ja-chip svg { width: 16px; height: 16px; }
.ja-chip-change { color: var(--faint); font-weight: 500; }
.ja-chip-change::before { content: '·'; margin-right: 7px; color: var(--line2); }

/* ---- The header: what this is, in one breath ---- */
.ja-intro {
  max-width: var(--wide); margin: 0 auto; padding: 36px var(--gutter) 28px;
  display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 22px 26px; align-items: center;
}
.ja-cover { width: 128px; aspect-ratio: 1; object-fit: cover; border-radius: 14px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--line2); }
.ja-intro-text { display: grid; gap: 8px; min-width: 0; }
.ja-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; color: var(--faint); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.ja-mark {
  font: 400 clamp(1.9rem, 4vw, 2.6rem)/1 var(--mark); letter-spacing: 0.01em; width: fit-content;
  background: linear-gradient(176deg, #fff0bf 0%, var(--gold) 45%, var(--ember) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ja-lede { color: var(--dim); font-size: 1rem; max-width: 40em; text-wrap: pretty; }

.ja-how {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: 12px; background: rgba(14, 19, 49, 0.6);
}
.ja-how li {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 1px 10px; align-content: start; padding: 12px 14px;
  cursor: help; border-radius: 12px;
}
.ja-how li + li { border-left: 1px solid var(--line); border-radius: 0; }
.ja-how li:hover { background: var(--panel); }
.ja-how svg { grid-row: span 2; align-self: start; margin-top: 1px; color: var(--gold); }
.ja-how li:nth-child(2) svg { color: var(--cyan); }
.ja-how li:nth-child(3) svg { color: var(--magenta); }
.ja-how li:nth-child(4) svg { color: var(--aurora); }
.ja-how b { font-weight: 600; font-size: 0.9rem; }
.ja-how span { color: var(--faint); font-size: 0.82rem; line-height: 1.35; }

/* ---- The songs ---- */
.ja-songs { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter) 56px; }
.ja-toolbar {
  position: sticky; top: var(--bar); z-index: 20; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px;
  padding: 10px 0; margin-bottom: 4px; background: var(--night); border-bottom: 1px solid var(--line);
  box-shadow: 0 0 0 100vmax var(--night); clip-path: inset(0 -100vmax);
}
.ja-ask { display: flex; align-items: center; gap: 10px; }
.ja-q { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.ja-parts { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.ja-part {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 0; border-radius: 7px; background: transparent;
  color: var(--dim); font-weight: 600; font-size: 0.85rem; transition: background 0.12s, color 0.12s;
}
.ja-part svg { width: 17px; height: 17px; }
.ja-part:hover { background: var(--panel2); color: var(--snow); }
.ja-part.on { background: var(--gold); color: var(--on-gold); }
.ja-ask-says { color: var(--faint); font-size: 0.85rem; flex: 1 1 260px; min-width: 0; }

/* The column heads: one key for the whole list. */
.ja-cols, .ja-row {
  display: grid; align-items: center; column-gap: 16px;
  grid-template-columns: 28px minmax(0, 1fr) 108px 250px 116px 196px;
}
.ja-cols {
  grid-template-areas: ". song parts kit facts ."; padding: 12px 8px 6px;
  color: var(--faint); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.ja-col-song { grid-area: song; }
.ja-col-parts { grid-area: parts; }
.ja-col-kit { grid-area: kit; }
.ja-col-facts { grid-area: facts; white-space: nowrap; }
.ja-cols [data-tip] { cursor: help; width: fit-content; text-decoration: underline dotted var(--line2); text-underline-offset: 4px; }

.ja-sections { display: grid; gap: 30px; margin-top: 10px; }
.ja-loading, .ja-error { color: var(--dim); }
.ja-error { border: 1px solid var(--ember); border-radius: var(--radius); padding: 14px 16px; }

.ja-sec-head, .ja-fold-sum { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ja-sec-h { font: 400 1.45rem/1 var(--display); letter-spacing: 0.06em; color: var(--snow); }
.ja-count { font-size: 0.8rem; font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; }
.ja-sec-blurb { color: var(--faint); font-size: 0.86rem; margin: 3px 0 10px; max-width: 52em; }

.ja-rows { display: grid; border-top: 1px solid var(--line); }
.ja-row {
  row-gap: 2px; padding: 11px 8px; border-bottom: 1px solid var(--line); border-radius: 0;
  grid-template-areas: "num main parts kit facts acts" "num says says says says acts";
}
.ja-row:hover { background: var(--panel); }
.ja-num { grid-area: num; align-self: start; padding-top: 2px; color: var(--faint); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.ja-row-main { grid-area: main; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 1px; }
.ja-row-main .ja-title { flex: 1 0 100%; }
.ja-title { font-weight: 600; font-size: 0.98rem; line-height: 1.3; overflow-wrap: anywhere; }
.ja-artist { color: var(--faint); font-size: 0.84rem; }
.ja-asked { color: var(--aurora); font-size: 0.78rem; font-weight: 500; }
.ja-artist + .ja-asked::before { content: '·'; color: var(--faint); margin-right: 8px; }
.ja-row-parts { grid-area: parts; display: flex; gap: 5px; align-items: center; width: fit-content; }
.ja-g { color: rgba(170, 190, 255, 0.18); display: grid; }
.ja-g svg { width: 17px; height: 17px; }
.ja-g.can { color: var(--dim); }
.ja-g.mine { color: var(--gold); filter: drop-shadow(0 0 5px rgba(242, 179, 61, 0.55)); }
.ja-facts { grid-area: facts; color: var(--faint); font-size: 0.82rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ja-kit { grid-area: kit; display: flex; flex-wrap: wrap; gap: 3px; }
.ja-kit li {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em; padding: 3px 6px; border-radius: 5px; line-height: 1.2;
  border: 1px solid transparent; color: rgba(170, 190, 255, 0.3); background: rgba(140, 165, 255, 0.04); cursor: default;
}
.ja-kit li.on { color: var(--aurora); background: rgba(79, 227, 166, 0.1); border-color: rgba(79, 227, 166, 0.28); }
.ja-kit li.draft { color: var(--gold); background: rgba(242, 179, 61, 0.09); border-color: rgba(242, 179, 61, 0.3); }
.ja-kit small { display: none; }
.ja-kit li.draft::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.ja-says { grid-area: says; color: var(--faint); font-size: 0.8rem; }

.ja-acts { grid-area: acts; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.ja-play {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 13px; border-radius: 8px;
  background: var(--gold); color: var(--on-gold); text-decoration: none; font-weight: 700; font-size: 0.84rem; white-space: nowrap;
}
.ja-play::before { content: ''; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.ja-play:hover { background: #ffc85c; }
.ja-act {
  display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line2);
  color: var(--dim); font-size: 0.82rem; font-weight: 500; white-space: nowrap; text-decoration: none;
}
.ja-act:hover { color: var(--snow); border-color: var(--dim); background: var(--panel2); }
.ja-icon { width: 34px; height: 32px; padding: 0; justify-content: center; }
.ja-icon.learn { color: var(--cyan); }
.ja-icon.words { color: var(--aurora); }
.ja-icon:hover { color: var(--snow); }
.ja-takes { color: var(--magenta) !important; border-color: rgba(255, 95, 210, 0.4); }

/* No recording yet, or one with no recording at all. */
.ja-row.soon { grid-template-areas: "num main soon soon facts acts"; }
.ja-row.soon .ja-title { color: var(--dim); font-weight: 500; }
.ja-row-soon { grid-area: soon; color: var(--faint); font-size: 0.8rem; }
.ja-row.book .ja-title { color: var(--snow); }
.ja-play.book { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1px rgba(242, 179, 61, 0.6); }
.ja-play.book::before { display: none; }
.ja-play.book:hover { background: rgba(242, 179, 61, 0.12); }
.ja-row.ghost { border: 1px dashed var(--line2); border-radius: var(--radius); margin-top: 8px; grid-template-areas: "num main main main main acts"; }
.ja-row.ghost .ja-num { color: var(--gold); }
.ja-row.ghost .ja-title { color: var(--dim); }
.ja-row.ghost .ja-play::before { display: none; }
.ja-rows:has(.ghost) { border-top: 0; }
.ja-more { color: var(--faint); font-size: 0.85rem; margin-top: 10px; }
.ja-all { margin-top: 22px; }

/* The long list, folded */
.ja-fold { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--panel); }
.ja-fold-sum { cursor: pointer; list-style: none; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: baseline; column-gap: 10px; }
.ja-fold-sum .ja-fold-open { justify-self: end; }
.ja-fold-sum::-webkit-details-marker { display: none; }
.ja-fold-open {
  margin-left: auto; align-self: center; font-weight: 600; font-size: 0.82rem; color: var(--dim);
  border: 1px solid var(--line2); border-radius: 8px; padding: 6px 11px; display: inline-flex; gap: 8px; align-items: center;
}
.ja-fold-open::after { content: ''; width: 6px; height: 6px; border-right: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor; rotate: 45deg; translate: 0 -2px; }
.ja-fold[open] .ja-fold-open::after { rotate: -135deg; translate: 0 2px; }
.ja-fold-sum:hover .ja-fold-open { color: var(--snow); border-color: var(--dim); }
.ja-fold .ja-sec-blurb { grid-column: 1 / -1; margin: 3px 0 0; }
.ja-fold[open] .ja-fold-sum { margin-bottom: 14px; }
.ja-fold-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.ja-search {
  flex: 0 1 320px; min-width: 0; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line2);
  background: var(--night); color: var(--snow); font: inherit; font-size: 0.88rem;
}
.ja-search::placeholder { color: var(--faint); }
.ja-genres { display: flex; flex-wrap: wrap; gap: 4px; }
.ja-genre { padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line); background: transparent; color: var(--dim); font-size: 0.8rem; font-weight: 500; }
.ja-genre:hover { border-color: var(--line2); color: var(--snow); }
.ja-genre.on { background: var(--snow); border-color: var(--snow); color: var(--night); font-weight: 600; }
.ja-swap { display: grid; }
.ja-swap-row {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 52px minmax(0, 1.1fr); gap: 2px 16px; align-items: baseline;
  padding: 8px 6px; border-top: 1px solid var(--line); text-decoration: none; color: var(--snow); font-size: 0.88rem;
}
.ja-swap-row:hover { background: var(--panel2); }
.ja-swap-title { font-weight: 600; overflow-wrap: anywhere; }
.ja-swap-artist { color: var(--faint); }
.ja-swap-key { color: var(--gold); font-weight: 600; }
.ja-swap-loop { color: var(--faint); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.ja-none { color: var(--faint); padding: 12px 6px; }

/* ---- Section heads below the list ---- */
.ja-h { font: 400 1.9rem/1 var(--display); letter-spacing: 0.05em; }

/* ---- The wall ---- */
.ja-wall { max-width: var(--wide); margin: 0 auto; padding: 32px var(--gutter) 56px; border-top: 1px solid var(--line); display: grid; gap: 18px; }
.ja-wall-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; align-items: end; }
.ja-wall-text { display: grid; gap: 6px; }
.ja-wall-lede { color: var(--faint); font-size: 0.9rem; max-width: 44em; }
.ja-steps { display: flex; gap: 6px; counter-reset: step; }
.ja-steps li {
  counter-increment: step; display: flex; align-items: baseline; gap: 4px; padding: 7px 12px 7px 10px;
  border: 1px solid var(--line); border-radius: 8px; color: var(--faint); font-size: 0.8rem; white-space: nowrap;
}
.ja-steps li::before { content: counter(step); font-weight: 700; color: var(--magenta); margin-right: 4px; }
.ja-steps b { color: var(--snow); font-weight: 600; }
.ja-wall-board { display: grid; gap: 12px; min-width: 0; }
.ja-wall-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.ja-wall-tools[hidden] { display: none; }
.ja-wall-song { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 0.85rem; }
.ja-select { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line2); background: var(--night); color: var(--snow); font: inherit; font-size: 0.88rem; max-width: 100%; }
.ja-wall-parts { display: flex; flex-wrap: wrap; gap: 4px; }
.ja-wall-status { color: var(--faint); font-size: 0.9rem; padding: 18px; border: 1px dashed var(--line2); border-radius: var(--radius); text-align: center; }
.ja-wall-status:empty { display: none; }
.ja-wall-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 10px; }
.ja-card {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "g who meta" "g song song" "acts acts acts";
  gap: 2px 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--night2);
}
.ja-card.playing { border-color: var(--magenta); box-shadow: 0 0 0 1px var(--magenta) inset; }
.ja-card-part { grid-area: g; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(242, 179, 61, 0.12); color: var(--gold); }
.ja-card-part svg { width: 18px; height: 18px; }
.ja-card-who { grid-area: who; color: var(--faint); font-size: 0.86rem; min-width: 0; overflow-wrap: anywhere; }
.ja-card-who b { color: var(--snow); font-weight: 600; }
.ja-card-song { grid-area: song; font-weight: 600; font-size: 0.92rem; color: var(--snow); }
.ja-card-meta { grid-area: meta; color: var(--faint); font-size: 0.78rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ja-card-acts { grid-area: acts; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ja-card-btn { display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line2); background: var(--snow); color: var(--night); font-weight: 600; font-size: 0.8rem; text-decoration: none; cursor: pointer; }
.ja-card-btn.gold { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.ja-card-btn.ghost { background: transparent; color: var(--dim); }
.ja-card-btn.quiet { background: transparent; color: var(--faint); border-color: var(--line); font-weight: 500; }
.ja-card-btn:hover { filter: brightness(1.08); }

/* ---- At the jam ---- */
.ja-fest { max-width: var(--wide); margin: 0 auto; padding: 32px var(--gutter) 56px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.ja-fest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ja-fest-card {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-radius: 12px;
  text-decoration: none; color: var(--faint); font-size: 0.85rem; line-height: 1.4;
  background: var(--panel); border: 1px solid var(--line); transition: border-color 0.12s, background 0.12s;
}
.ja-fest-card svg { color: var(--aurora); margin-top: 1px; }
.ja-fest-card b { display: block; color: var(--snow); font-weight: 600; font-size: 0.92rem; margin-bottom: 2px; }
.ja-fest-card:hover { border-color: var(--line2); background: var(--panel2); }

.ja-foot { border-top: 1px solid var(--line); padding: 22px var(--gutter) calc(30px + env(safe-area-inset-bottom, 0px)); text-align: center; color: var(--faint); font-size: 0.85rem; display: grid; gap: 4px; }
.ja-foot-small a { color: var(--faint); }

/* ---- Narrower: the row wraps its actions under the song ---- */
@media (max-width: 1100px) {
  .ja-cols, .ja-row { grid-template-columns: 28px minmax(0, 1fr) 108px 250px 116px; }
  .ja-cols { grid-template-areas: ". song parts kit facts"; }
  .ja-row { grid-template-areas: "num main parts kit facts" "num says says says says" "num acts acts acts acts"; }
  .ja-row.soon { grid-template-areas: "num main soon soon facts"; }
  .ja-row.ghost { grid-template-areas: "num main main main main" "num acts acts acts acts"; }
  .ja-acts { justify-content: flex-start; margin-top: 6px; }
}
@media (max-width: 860px) {
  .ja-nav { display: none; }
  .ja-chip { margin-left: auto; }
  .ja-toolbar { position: static; }
  .ja-intro { grid-template-columns: 76px minmax(0, 1fr); padding-top: 22px; gap: 16px 16px; align-items: start; }
  .ja-cover { width: 76px; border-radius: 10px; }
  .ja-lede { grid-column: 1 / -1; }
  .ja-intro-text { display: contents; }
  .ja-intro-text > .ja-eyebrow, .ja-intro-text > .ja-mark { grid-column: 2; }
  .ja-intro { grid-template-rows: auto auto; }
  .ja-eyebrow { align-self: end; }
  .ja-mark { align-self: start; margin-top: -8px; }
  .ja-how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ja-how li:nth-child(3) { border-left: 0; }
  .ja-how li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .ja-how li::after, .ja-how li:is(:hover, :focus-visible, .tip-on)::after { translate: 0 0; }
  .ja-how li:nth-child(odd)::after { left: 0; right: auto; }
  .ja-how li:nth-child(even)::after { left: auto; right: 0; }
  .ja-cols { display: none; }
  .ja-row {
    grid-template-columns: 24px minmax(0, 1fr) auto; column-gap: 10px; row-gap: 6px;
    grid-template-areas: "num main parts" "num kit kit" "num facts facts" "num says says" "num acts acts";
  }
  .ja-row-parts { justify-self: end; align-self: start; padding-top: 3px; }
  .ja-row.soon { grid-template-areas: "num main main" "num facts facts" "num soon soon"; }
  .ja-row.ghost { grid-template-areas: "num main main" "num acts acts"; }
  .ja-acts { margin-top: 2px; }
  .ja-wall-head { grid-template-columns: minmax(0, 1fr); }
  .ja-steps { flex-wrap: wrap; }
  .ja-steps li { white-space: normal; }
  .ja-fest-grid { grid-template-columns: minmax(0, 1fr); }
  .ja-swap-row { grid-template-columns: minmax(0, 1fr) 46px; }
  .ja-swap-artist { grid-column: 1; grid-row: 2; }
  .ja-swap-key { grid-column: 2; grid-row: 1; justify-self: end; }
  .ja-swap-loop { grid-column: 1 / -1; }
  .ja-fold { padding: 14px 12px; }
}
@media (max-width: 560px) {
  .ja-toolbar { gap: 6px; }
  .ja-ask { width: 100%; }
  .ja-q { display: none; }
  .ja-parts { flex: 1; }
  .ja-part { flex: 1; flex-direction: column; gap: 3px; padding: 6px 2px; font-size: 0.72rem; }
  .ja-ask-says { flex-basis: 100%; font-size: 0.8rem; }
  .ja-how li { padding: 10px 12px; }
  .ja-how span { display: none; }
  .ja-how li { grid-template-rows: auto; }
  .ja-app { font-size: 0.92rem; }
  .ja-top:has(#part-chip) { flex-wrap: nowrap; }
  .ja-chip { white-space: nowrap; padding: 6px 10px; }
  .ja-chip-change { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* The set on Spotify (made with /jamalong/spotify/) */
.ja-spotify { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 7px; border-radius: 999px; border: 1px solid #1ed760; color: #1ed760; font-weight: 700; font-size: 0.9rem; text-decoration: none; white-space: nowrap; }
.ja-spotify::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #1ed760; }
.ja-spotify:hover { background: rgba(30, 215, 96, 0.12); }
.ja-spotify[hidden] { display: none; }
