/* Kalimba tab pages (newellabs.com/play/kalimba/tabs/). System fonts only. */
:root {
  color-scheme: light dark;
  --bg: #f5f0e6; --card: #fffcf7; --ink: #1b2130; --ink-2: #3a4254; --muted: #596070; --faint: #a39d92;
  --line: #e1d7c5; --line-strong: #cdbfa6; --accent: #875810; --accent-bright: #dfa140; --focus: #2459d6;
  --tine: #b9bfc7; --tine-on: #d8962f; --bridge: #8b919a;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151c; --card: #1c212b; --ink: #ece7de; --ink-2: #d0cac0; --muted: #a4aab5; --faint: #5d6470;
    --line: #2a3140; --line-strong: #3b4354; --accent: #e9bb6c; --accent-bright: #e2a646; --focus: #93b4ff;
    --tine: #4a515d; --tine-on: #e2a646; --bridge: #6a7079;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); }
a { color: inherit; text-decoration-color: var(--accent-bright); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.top { border-bottom: 1px solid var(--line); }
.top-in { min-height: 54px; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; text-decoration: none; font-weight: 650; font-size: 15px; padding: 8px 0; }
.brand svg { width: 22px; height: 22px; color: var(--accent-bright); }
.brand-sub { color: var(--muted); font-weight: 500; margin-left: 2px; }
.brand-sub::before { content: "/"; margin-right: 6px; color: var(--faint); }
.crumbs { margin: 20px 0 8px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); display: inline-block; padding: 12px 0; } /* 44px-tall tap target */
h1 { font: 700 clamp(1.9rem, 6vw, 2.7rem)/1.1 var(--serif); letter-spacing: -.01em; margin: 0 0 10px; overflow-wrap: break-word; }
h2 { font: 700 1.35rem/1.25 var(--serif); margin: 34px 0 12px; }
h3 { font-size: 1rem; margin: 22px 0 6px; }
.lede { margin: 0; color: var(--ink-2); max-width: 640px; }
.flag { margin: 14px 0 0; color: var(--ink-2); font-size: 15px; }
.flag strong { color: var(--ink); }
.flag a { padding: 14px 0; } /* 44px-tall tap target; stays inline so the full stop can't wrap on its own */
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.flag + .cta { margin-top: 14px; }
.print-url { display: none; }
/* For screen readers only: the number tab in words (the drawn one can't be read out). */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--card); font-weight: 600; font-size: 15px; text-decoration: none; }
.btn:hover { border-color: var(--ink-2); color: inherit; }
.btn-main { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-main:hover { color: var(--bg); opacity: .92; }
.tab { display: flex; flex-wrap: wrap; gap: 24px 0; padding: 26px 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; counter-reset: g; }
/* A long bar wraps inside the card instead of pushing the page wider than the screen (12-note bars on a 320 px phone). */
.bar { display: inline-flex; flex-wrap: wrap; align-items: flex-end; gap: 2px; row-gap: 10px; max-width: 100%; padding: 0 10px; border-right: 1px solid var(--line-strong); position: relative; counter-increment: g; }
.bar:last-child { border-right: 0; }
/* Group numbers: a small number above the first note of each group, like bar numbers in printed music, so a tip can say
   "group 13". Counted by CSS, so they always match the groups; drawn in the row gap above the group. The second
   "content" gives them empty alternative text, so screen readers skip them where browsers support it. */
.bar::before { content: counter(g); content: counter(g) / ""; position: absolute; left: 10px; top: -17px; font: 500 10.5px/12px var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; pointer-events: none; }
.t { display: inline-flex; flex-direction: column; align-items: center; min-width: 22px; font-weight: 650; font-size: 19px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.t .dt { display: block; height: 8px; font-size: 9px; line-height: 8px; letter-spacing: 1px; }
.tab-let .t { font-size: 17px; min-width: 26px; }
.t sub { font-size: .62em; vertical-align: baseline; position: relative; top: .1em; margin-left: .5px; }
svg.tines { display: block; width: 100%; max-width: 440px; height: auto; margin: 4px 0 8px; }
svg.tines .off { fill: var(--tine); opacity: .55; }
svg.tines .on { fill: var(--tine-on); }
svg.tines .bridge { fill: var(--bridge); }
svg.tines text { fill: var(--ink); font: 700 11px var(--sans); text-anchor: middle; }
svg.tines text.dots { font-size: 8px; letter-spacing: 1px; }
.prose ul { padding-left: 1.2em; margin: 0; color: var(--ink-2); max-width: 700px; }
.prose li { margin: 0 0 10px; overflow-wrap: break-word; }
.prose li::marker { color: var(--accent-bright); }
.prose p, section > p { color: var(--ink-2); max-width: 700px; }
.prose strong { color: var(--ink); }
.prose li a, .prose p a { padding: 3px 0; }
.songlist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 18px; line-height: 1.35; }
.songlist li { padding: 5px 0; }
.songlist [aria-current] { color: var(--muted); }
.songlist .meta { display: block; color: var(--muted); font-size: 13px; }
.songlist.wide { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
@media (pointer: coarse), (max-width: 719px) { .songlist { row-gap: 8px; } .songlist li { padding: 0; } .songlist a, .songlist [aria-current] { display: inline-flex; align-items: center; min-height: 44px; } .songlist .meta { margin: -8px 0 6px; } } /* 44px tap targets */
.grp { border-top: 1px solid var(--line); }
.grp:last-of-type { border-bottom: 1px solid var(--line); }
.grp > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 2px; cursor: pointer; font-weight: 650; list-style: none; }
.grp > summary::-webkit-details-marker { display: none; }
.grp > summary::before { content: ""; flex: none; width: 7px; height: 7px; margin: 0 2px 0 3px; border: solid var(--ink-2); border-width: 0 2px 2px 0; transform: rotate(-45deg); }
.grp[open] > summary::before { transform: rotate(45deg); margin-top: -4px; }
.grp > summary:hover { color: var(--accent); }
.grp .n, .jump .n { color: var(--muted); font-weight: 500; }
.grp > .songlist { padding: 0 0 14px; }
.all { margin: 14px 0 0; }
.all a, .prose .all a { display: inline-block; padding: 10px 0; font-weight: 600; } /* 44px-tall tap target */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.jump a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.jump a:hover { border-color: var(--ink-2); color: inherit; }
.grp-note { margin: -4px 0 10px; color: var(--muted); font-size: 14px; max-width: 700px; }
.songlist + .grp-note { margin-top: 28px; }
/* Our songbooks: one short box that names them and links only to the songbooks page. No store, nothing from another site. */
.books { max-width: 700px; margin: 34px 0 0; padding: 12px 16px 4px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--ink-2); font-size: 15px; }
.books p { margin: 0; }
.books strong { color: var(--ink); }
.books a { display: inline-block; padding: 10px 0; font-weight: 600; } /* 44px-tall tap target */
/* On a song page the box is one sentence whose link is the book's title: the link stays inline, so the sentence wraps
   like text, and its padding makes it a 44px-tall tap target (as .flag a). */
.books .also { margin: 0 0 8px; }
.books .also a { display: inline; padding: 14px 0; }
/* The book line at the end of a tab page's piano or bells section (2026-11-22): one quiet sentence; its link, the book's
   title, stays inline and its padding makes it a 44px-tall tap target (as .flag a). */
.book-line { margin: 12px 0 0; font-size: 15px; }
.book-line a { font-weight: 600; padding: 14px 0; }
/* The songbooks page (../songbooks/): a card per book with its editions and its songs. */
.book { max-width: 700px; margin: 26px 0 0; padding: 2px 18px 6px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.book h2 { margin: 16px 0 6px; }
.book > p { margin: 0 0 10px; color: var(--ink-2); }
.eds { list-style: none; margin: 0 0 8px; padding: 0; color: var(--ink-2); }
.eds li { padding: 8px 0 0; border-top: 1px solid var(--line); overflow-wrap: break-word; }
.eds strong { color: var(--ink); }
.eds a, .eds .soon { display: inline-block; padding: 10px 0; font-weight: 600; } /* 44px-tall tap target */
.eds .soon { color: var(--muted); }
.book .grp, .book .grp:last-of-type { border-bottom: 0; }
.book .grp h3 { margin: 12px 0 0; font-size: 15px; }
/* Our other Christmas songbooks (2026-11-22): a section after the kalimba books, a card per book with an h3 title; under
   the lede, a line whose link opens that section (inline, its padding makes it a 44px-tall tap target, as .flag a). A
   number joined to a word by a hyphen ("8-key", "8-note") stays on one line (.nw). */
.more-books > p { color: var(--ink-2); max-width: 700px; }
.book > h3 { font: 700 1.2rem/1.25 var(--serif); margin: 16px 0 6px; }
.here { margin: 12px 0 0; color: var(--ink-2); max-width: 640px; }
.here a { font-weight: 600; padding: 14px 0; }
.nw { white-space: nowrap; }
h2[id], li[id], section[id] { scroll-margin-top: 12px; }
.foot { border-top: 1px solid var(--line); margin-top: 56px; padding: 22px 0 32px; color: var(--muted); font-size: .9rem; }
.foot p { margin: 0; }
.foot a { color: var(--muted); display: inline-block; padding: 12px 0; } /* 44px-tall tap target */
@media (min-width: 600px) { .wrap { padding: 0 24px; } }
/* Printing a tab: the tab itself, the tines and how to read it. No site header, buttons, song lists, songbook box or book
   line, or footer, and no link to the explainer (on paper it would be a bold line that leads nowhere). A heading stays
   with what follows. */
@media print {
  :root { --bg: #fff; --card: #fff; --ink: #000; --ink-2: #1a1a1a; --muted: #444; --line: #bbb; --line-strong: #888; --tine: #c4c4c4; --tine-on: #666; --bridge: #888; }
  body { font-size: 11pt; }
  .top, .crumbs, .cta, .flag, .more, .jump, .books, .book-line, .here, .foot, #read-h ~ .all, .lede + .all { display: none; }
  .wrap { max-width: none; padding: 0; }
  h1 { font-size: 20pt; margin: 0 0 4pt; }
  h2 { font-size: 13pt; margin: 14pt 0 6pt; break-after: avoid; }
  h3 { break-after: avoid; }
  #hist-h ~ ol { font-size: 9.5pt; } /* the sources of a song's history, as references are printed */
  .print-url { display: block; margin: 4pt 0 0; font-size: 9.5pt; color: #444; }
  .tab, svg.tines, .prose li { break-inside: avoid; }
  .tab { gap: 18px 0; padding-top: 20px; } /* a little tighter on paper; still room for the group numbers (17 px above a group) */
  svg.tines { max-width: 320px; }
  a { text-decoration: none; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8.5pt; overflow-wrap: anywhere; }
}
