/* Song, song list and guide pages (generated by tool/web/build_song_pages.py).
   Uses the tokens of styles.css; loaded after it. */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.narrow { max-width: 780px; }
.crumbs { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.crumbs a { color: var(--text-muted); }
.site-nav .lang-switch { font-size: 14px; opacity: .85; }
.page h1 { font-size: clamp(30px, 5vw, 46px); }

/* ---- song page ---- */
.facts { list-style: none; padding: 0; margin: 8px 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 6px 12px; display: flex; flex-direction: column; min-width: 84px;
}
.facts span { font-size: 12px; color: var(--text-muted); }
.facts strong { font-size: 15px; }
.diff-beginner { color: var(--accent); }
.diff-advanced { color: var(--primary); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.cta-row .btn { border: 0; cursor: pointer; font: inherit; }
.notice {
  background: var(--surface-2); border-left: 4px solid var(--wood-light);
  padding: 10px 14px; border-radius: 8px; font-size: 15px;
}
.sheet-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 18px 8px; box-shadow: var(--shadow); margin: 8px 0 28px;
}
.model-picker { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.model-btn, .chip-btn {
  font: inherit; font-size: 14px; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); border-radius: 999px; padding: 6px 12px; cursor: pointer;
}
.model-btn[aria-pressed="true"], .chip-btn[aria-pressed="true"] {
  background: var(--primary); color: var(--on-primary); border-color: transparent;
}
.model-btn:disabled { opacity: .45; cursor: not-allowed; }
.model-fit { font-size: 14px; color: var(--text-muted); margin: 4px 0 8px; }

/* Notation tabs: radio inputs, no JS needed. */
.notation-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.notation-tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.notation-tabs > label {
  font-size: 14px; padding: 6px 12px; border-radius: 10px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border);
}
.notation-tabs > input:checked + label { background: var(--text); color: var(--bg); }
.notation-tabs > input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 2px; }
.sheet { display: none; width: 100%; padding: 14px 0 6px; line-height: 1; }
#nt-numbers:checked ~ .sheet-numbers,
#nt-letters:checked ~ .sheet-letters,
#nt-tab:checked ~ .sheet-tab { display: flex; flex-wrap: wrap; align-items: flex-start; row-gap: 26px; }

.sheet .sec {
  flex-basis: 100%; font-size: 13px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em; margin-top: 4px;
}
.sheet .bar {
  display: inline-flex; align-items: flex-start; gap: 2px; padding: 14px 10px 12px;
  border-right: 1.5px solid var(--text-muted); font-size: 21px; font-variant-numeric: tabular-nums;
  border-radius: 4px; transition: background .15s;
}
.sheet .bar.now { background: color-mix(in srgb, var(--glow) 45%, transparent); }
.ev { position: relative; display: inline-flex; align-items: flex-start; padding: 0 3px 6px; min-width: 18px; justify-content: center; }
.ev.u1 { box-shadow: inset 0 -1.5px 0 currentColor; }
.ev.u2 { box-shadow: inset 0 -1.5px 0 currentColor, inset 0 -5px 0 var(--surface), inset 0 -6.5px 0 currentColor; }
.ev.u3 { box-shadow: inset 0 -1.5px 0 currentColor, inset 0 -5px 0 var(--surface), inset 0 -6.5px 0 currentColor, inset 0 -10px 0 var(--surface), inset 0 -11.5px 0 currentColor; }
.chord { display: inline-flex; flex-direction: column-reverse; gap: 14px; }
.dash { padding: 0 4px; color: var(--text-muted); }
.aug { font-weight: 700; padding-left: 1px; }
.rest { color: var(--text-muted); }
.tie::after { content: "‿"; position: absolute; right: -6px; top: -14px; font-size: 14px; color: var(--text-muted); }
.lt, .st { font-weight: 600; }
.st { color: var(--accent); }

/* Number notation octave dots: data-o = dots above (>0) / below (<0). */
.jp { position: relative; display: inline-block; font-weight: 600; padding: 0 1px; }
.jp[data-o="1"]::before, .jp[data-o="2"]::before {
  content: "•"; position: absolute; left: 50%; transform: translateX(-50%); top: -.62em; font-size: .55em;
}
.jp[data-o="2"]::before { content: "••"; letter-spacing: -.1em; writing-mode: vertical-lr; top: -1.15em; }
.jp[data-o="-1"]::after, .jp[data-o="-2"]::after {
  content: "•"; position: absolute; left: 50%; transform: translateX(-50%); bottom: -.68em; font-size: .55em;
}
.jp[data-o="-2"]::after { content: "••"; writing-mode: vertical-lr; letter-spacing: -.1em; bottom: -1.2em; }
.how { margin-top: 10px; }
.fit-table td.fit-bigger, .fit-table td.fit-out { color: var(--text-muted); }
.fit-table td.fit-playable { color: var(--accent); }
.link-list { columns: 2 220px; padding-left: 18px; }
.link-list li { margin: 4px 0; }

/* ---- song list ---- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 18px; }
.strings-filter { margin-left: auto; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.strings-filter select { font: inherit; padding: 5px 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.song-group h2 { font-size: 24px; margin-top: 28px; }
.song-grid { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.song-card a {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  text-decoration: none; color: var(--text);
}
.song-card a:hover { border-color: var(--wood-light); }
.song-card[hidden], .song-group[hidden] { display: none; }
.song-card .meta { font-size: 14px; }

/* ---- guides ---- */
.guide-page p, .guide-page li { font-size: 17px; line-height: 1.7; }
.guide-page h2 { font-size: clamp(24px, 3.4vw, 32px); margin-top: 1.6em; scroll-margin-top: 80px; }
.tip { background: var(--surface-2); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 10px; }
.fig { margin: 24px 0; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; color: var(--text); }
.fig-svg { width: 100%; height: auto; }
.fig figcaption, .notation-fig figcaption { font-size: 14px; color: var(--text-muted); margin-top: 8px; }
.notation-fig { margin: 20px 0; }
.notation-line {
  font-size: 22px; padding: 22px 16px 18px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline;
}
.bar-line { color: var(--text-muted); }
.cta-box {
  margin: 28px 0; padding: 20px 22px; border-radius: var(--radius);
  background: var(--hero-grad); border: 1px solid var(--border);
}
.cta-box h3 { margin-top: 0; }
.faq-section { margin-top: 36px; }

/* styles.css pads every <section> for the landing page; not here. */
.page section { padding: 0; }
.page .about, .page .related, .page .faq-section { margin-top: 36px; }
