@font-face {
    font-family: Bravura;
    src: url("./engraving/Bravura.woff2") format("woff2");
    font-display: block;
}

.notation-glyph { font: 40px Bravura; fill: currentColor; }
.notation-rule { stroke: currentColor; stroke-width: .95; }
.notation-barline { stroke: currentColor; stroke-width: 1.75; }
.notation-beam { stroke: currentColor; stroke-width: 4.5; }
.notation-tie { fill: none; stroke: currentColor; stroke-width: 1.4; }

.notation-teaching { max-width: 53rem; }
.notation-teaching h3 { margin: .9rem 0 .32rem; color: var(--editorial-accent); }
.notation-teaching p { max-width: 70ch; margin: .35rem 0 .6rem; }
.notation-palette {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: .45rem;
    padding: 0;
    margin: .55rem 0 .8rem;
    list-style: none;
    max-width: 52rem;
}
.notation-palette li {
    min-width: 0;
    padding: .35rem;
    border: 1px solid var(--elements-rule);
    background: var(--elements-deep);
}
.notation-palette li > span { display: block; color: var(--editorial-muted); margin-block: .05rem .33rem; font-size: .81rem; }
.notation-palette li > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .28rem; }
.notation-palette button, .notation-equivalent button {
    min-width: 0;
    min-height: 44px;
    border: 1px solid var(--editorial-line);
    border-radius: 3px;
    padding: .2rem .45rem;
    font: inherit;
    color: var(--editorial-text);
    background: var(--editorial-bg);
    cursor: pointer;
}
.notation-palette button:enabled:hover, .notation-equivalent button:enabled:hover { border-color: var(--editorial-accent); }
.notation-equivalent button[aria-pressed="true"] { color: var(--editorial-bg); background: var(--editorial-accent); }
.notation-equivalent button:disabled { opacity: .6; cursor: default; }
.notation-palette button span { display: block; font-size: .76rem; }
.notation-palette button svg { display: block; width: 1.6rem; max-width: 100%; height: 2.15rem; margin-inline: auto; }
.elements-panel .notation-palette button { padding-inline: .16rem; }
#notation-status { color: var(--editorial-muted); font-size: .88rem; }

.engraved-bar { display: block; width: min(100%,52rem); height: auto; color: #14272b; background: #f5f4ed; }
#equivalent-staff, #duration-staff { margin: .48rem 0; }
.notation-current { display: none; }
[data-notationslot][data-current] .notation-current { display: block; }
#duration-bar .palette-symbol { width: min(100%,1.25rem); height: 2rem; }
#duration-bar [data-kind="silence"] span { max-width: 100%; overflow: hidden; font-size: .68rem; }
#duration-bar [data-current] { box-shadow: inset 0 -4px #748987; }
.notation-compose legend { margin-top: .26rem; }
[data-element="duration"] #learn figure { max-width: 40rem; }
[data-element="duration"] #listen { margin-top: .85rem; }

@media (max-width: 780px) {
    .notation-palette { grid-template-columns: repeat(auto-fit,minmax(min(8rem,100%),1fr)); }
}
@media (max-width: 385px) {
    .notation-palette { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
