/* Beats widget (widgets/beats/beats.js): the chapters against three structures, one row each. */
.bt__grid { display: grid; grid-template-columns: 92px minmax(0, 1fr); row-gap: 14px; column-gap: 14px; align-items: center; }
.bt__lbl { font-family: var(--wk-display); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bt__row { position: relative; height: 30px; }
.bt__row > *, .bt__parts > *, .bt__chs > * { position: absolute; }
.bt__row--book { height: 54px; }
.bt__parts { position: absolute; left: 0; right: 0; top: 0; height: 18px; }
.bt__part { top: 0; height: 18px; display: flex; align-items: center; justify-content: center; font-family: var(--wk-serif); font-weight: 600; font-size: 13px; color: var(--wk-copper); border-bottom: 1px solid var(--wk-copper); }
.bt__part.is-alt { color: var(--ink); border-bottom-color: var(--ink); }
.bt__chs { position: absolute; left: 0; right: 0; top: 24px; height: 26px; }
.bt__ch { top: 0; height: 100%; box-shadow: inset 0 0 0 .5px var(--bg); }
.bt__ch.is-locked, .bt__key .is-locked { background: var(--ink); }
.bt__ch.is-drafted, .bt__key .is-drafted { background: repeating-linear-gradient(-45deg, var(--ink) 0 1.2px, transparent 1.2px 3.4px); }
.bt__ch.is-next, .bt__ch.is-outlined, .bt__key .is-outlined { background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--ink) 30%, transparent) 0 .8px, transparent .8px 5px); }
.bt__ch.is-interlude::after, .bt__key .is-interlude::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--wk-copper); }
.bt__mile { top: 14px; bottom: -6px; width: 22px; margin-left: -11px; display: flex; justify-content: center; }
.bt__mile i { display: block; width: 2px; height: 100%; background: var(--wk-copper); box-shadow: 0 0 0 1px var(--bg); }
.bt__mile::before { content: ''; position: absolute; top: -5px; width: 9px; height: 9px; transform: rotate(45deg); background: var(--wk-copper); box-shadow: 0 0 0 1.5px var(--bg); }
.bt__band { top: 0; bottom: 0; background: color-mix(in srgb, var(--wk-copper) 22%, transparent); border-left: 1px dashed var(--wk-copper); border-right: 1px dashed var(--wk-copper); }
.bt__block { top: 4px; bottom: 4px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--ink); border-left-width: 0; font-size: 11.5px; overflow: hidden; white-space: nowrap; }
.bt__block.is-first { border-left-width: 1px; }
.bt__row--cat .bt__span { top: calc(5px + var(--y) * 7px); height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 40%, transparent); }
.bt__pt { top: 6px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--bg); }
.bt__tick { top: 6px; height: 18px; width: 9px; margin-left: -4.5px; }
.bt__tick::before { content: ''; position: absolute; left: 4px; top: 0; bottom: 0; width: 1.5px; background: var(--ink); }
.bt__tick:nth-child(odd)::before { top: 5px; }
.bt__span:hover, .bt__span:focus-visible, .bt__pt:hover, .bt__pt:focus-visible, .bt__tick:hover::before, .bt__tick:focus-visible::before, .bt__block:hover, .bt__block:focus-visible { background: var(--wk-copper); outline: none; }
.bt__axis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bt__key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 11.5px; color: var(--muted); }
.bt__key span { display: inline-flex; align-items: center; gap: 6px; }
.bt__key i { position: relative; display: inline-block; width: 14px; height: 10px; box-shadow: inset 0 0 0 .5px var(--line); }
.bt__key .is-interlude { box-shadow: none; }
.bt__key .is-interlude::after { bottom: 2px; }
.bt__keymile { background: var(--wk-copper); width: 2px !important; }
.bt__keyband { background: color-mix(in srgb, var(--wk-copper) 22%, transparent); border-left: 1px dashed var(--wk-copper); border-right: 1px dashed var(--wk-copper); }
@media (max-width: 560px) {
  .bt__grid { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .bt__lbl { margin-top: 6px; }
  .bt__grid > span:empty { display: none; }
  .bt__block { font-size: 9.5px; }
}
