/* Guides (/midi-keyboard/, /audio-to-piano/, /alternatives/ and their /fr/
   pairs). Loaded after /songs/song.css and /home.css. */
.updated { color: var(--muted); font-size: 13px; margin: 0 0 22px; }
.answer {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: 12px;
  padding: 16px 18px; margin: 0 0 26px;
}
.answer p:last-child { margin-bottom: 0; }
.guide main h3 { font-size: 17px; margin: 26px 0 8px; }
.guide main ul.list, .guide main ol.list { padding-left: 22px; margin: 0 0 18px; }
.guide main ul.list li, .guide main ol.list li { margin-bottom: 7px; }
.guide main p a, .guide main li a, .guide main td a, .guide main dd a, .guide main .sources a { color: var(--accent); }
.guide main strong.ui { color: var(--text); font-weight: 600; white-space: nowrap; }
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border); border-radius: 12px; margin: 0 0 12px;
}
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 540px; font-size: 14px; line-height: 1.5; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.table-wrap thead th { background: var(--surface); font-size: 13px; color: var(--text); }
.table-wrap tbody th { font-weight: 600; color: var(--text); background: rgba(26, 31, 40, 0.55); }
.table-wrap tr:last-child td, .table-wrap tr:last-child th { border-bottom: 0; }
.table-wrap td { color: var(--muted); }
.table-note { color: var(--muted); font-size: 13px; margin: 0 0 22px; }
.fig { margin: 4px 0 26px; }
.fig img { display: block; width: 100%; max-width: 380px; height: auto; border: 1px solid var(--border); border-radius: 14px; }
.fig figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; }
.sources { color: var(--muted); font-size: 13.5px; padding-left: 20px; overflow-wrap: anywhere; }
.sources li { margin-bottom: 6px; }
.guide .facts dd { font-size: 14.5px; }
.table-wrap table.cmp { min-width: 900px; font-size: 13.5px; }
.table-wrap table.cmp tbody th { min-width: 130px; }

/* Comparison table (/alternatives/): PianoPulse column framed in gold,
   one mark per cell, sticky feature column when the table scrolls. */
:root { --gold: #F5C451; --gold-soft: rgba(245, 196, 81, 0.08); }
.table-wrap table.cmp { border-collapse: separate; border-spacing: 0; }
.cmp thead th { vertical-align: bottom; white-space: nowrap; }
.cmp tbody tr:nth-child(even) td, .cmp tbody tr:nth-child(even) th { background-color: #141920; }
.cmp thead th:first-child, .cmp tbody th {
  position: sticky; left: 0; z-index: 2; background: #161b23;
  border-right: 1px solid var(--border);
}
.cmp td.us, .cmp th.us {
  background: var(--gold-soft) !important; color: var(--text);
  border-left: 2px solid var(--gold); border-right: 2px solid var(--gold);
}
.cmp thead th.us { border-top: 2px solid var(--gold); color: var(--gold); font-size: 14px; }
.cmp tbody tr:last-child td.us { border-bottom: 2px solid var(--gold); }
.cmp .badge {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  background: var(--gold); color: #1a1405; font-size: 11px; font-weight: 700;
  letter-spacing: 0.2px; vertical-align: 1px;
}
.mk { display: inline-block; min-width: 1.1em; font-weight: 700; }
.mk.y { color: var(--right); }
.mk.n { color: #4a525d; }
.cmp td .d { color: inherit; }
.cmp td.n { text-align: center; }
.cmp td.us .mk.y { color: var(--gold); }
.legend .mk { margin-right: 2px; }
.cards.glance { margin-bottom: 30px; }
.cards.glance .card { border-color: rgba(245, 196, 81, 0.35); }
.cards.glance .card h3 { color: var(--gold); }
/* On wide screens the comparison table breaks out of the 760px text column. */
@media (min-width: 900px) {
  .guide .table-wrap.cmp-wrap {
    width: min(1120px, calc(100vw - 48px));
    margin-left: 50%; transform: translateX(-50%);
  }
  .table-wrap.cmp-wrap table.cmp { min-width: 0; }
}
.cards.glance .card h3, .guide main .cards.glance .card h3 { margin-top: 0; }
.cards.glance .card { padding-top: 16px; }
