/* CHART STYLE: HANDWRITTEN (includes/pg-chart-look.php; Phil 11-16, "Prob real book").
   The fake-book look on the same chart: hand-lettered chords and slashes
   (Petaluma Script, SIL OFL), plain barlines a little heavier, no boxes, and
   a % for a measure that repeats the one before (chart-style.js tags it).
   Colors stay the chart's own, so night mode and the green playing beat work
   as before. Not in the chart editor, which keeps its boxes. */
@font-face {
    font-family: 'PG Petaluma Script';
    src: url('fonts/PetalumaScript.woff2') format('woff2');
    font-display: swap;
}

html.pg-look-hand .pg-chart:not(.pg-chart--edit) .pg-rt-chart__beat,
html.pg-look-hand .pg-chart:not(.pg-chart--edit) .pg-rt-chart__slash {
    font-family: 'PG Petaluma Script', 'Marker Felt', 'Comic Sans MS', cursive;
    font-weight: 400;
    letter-spacing: 0;
}
html.pg-look-hand .pg-chart:not(.pg-chart--edit) .pg-rt-chart__beat { font-size: calc(var(--pgc-chord) * 1.14); }
html.pg-look-hand .pg-chart:not(.pg-chart--edit) .pg-rt-chart__beat sup { font-size: .62em; vertical-align: .45em; }
/* The slashes are written, as the chords are: ink, a touch lighter. */
html.pg-look-hand .pg-chart:not(.pg-chart--edit) .pg-rt-chart__beat.is-slash,
html.pg-look-hand .pg-chart:not(.pg-chart--edit) .pg-rt-chart__slash { color: var(--pgc-ink-2); opacity: .7; font-weight: 400; }
html.pg-look-hand .pg-chart:not(.pg-chart--edit) .pg-rt-chart__beat.is-active .pg-rt-chart__slash { opacity: 1; }

/* Barlines, in ink, on every chart (boxed or flat). */
html.pg-look-hand .pg-chart:not(.pg-chart--edit) .pg-rt-chart__row { gap: 0; }
html.pg-look-hand .pg-chart:not(.pg-chart--edit) .pg-rt-chart__measure {
    border: 0; border-left: 2px solid var(--pgc-ink); border-radius: 0; background: transparent;
}
html.pg-look-hand .pg-chart:not(.pg-chart--edit) .pg-rt-chart__row > .pg-rt-chart__measure:last-child { border-right: 2px solid var(--pgc-ink); }
html.pg-look-hand .pg-chart:not(.pg-chart--edit) .pg-rt-chart__measure.is-unsure { background: rgba(245, 166, 35, .14); }
/* 4/4's joined pair: no line inside, as in the standard look. */
html.pg-look-hand.pg-meter-44 .pg-chart:not(.pg-chart--edit) .pg-rt-chart__measure.pg-m44-b { border-left-width: 0 !important; }

/* The part's name and the stacked time, hand-lettered too. */
html.pg-look-hand .pg-chart:not(.pg-chart--edit) .pg-rt-chart__label {
    font-family: 'PG Petaluma Script', 'Marker Felt', cursive; font-weight: 400; font-size: 19px; color: var(--pgc-ink);
}
html.pg-look-hand .pg-chart:not(.pg-chart--edit) .pg-rt-chart__label .pg-rt-chart__label-count { font-family: inherit; font-weight: 400; font-size: 16px; }
html.pg-look-hand .pg-chart:not(.pg-chart--edit) .pg-meter-ts { font-family: 'PG Petaluma Script', 'Marker Felt', cursive; }
html.pg-look-hand .pg-chart:not(.pg-chart--edit) .pg-meter-ts b { font-weight: 400; }

/* A measure that repeats the one before: %, the way a fake book writes it.
   The beats stay (the playing beat still lights), their writing hides. */
html.pg-look-hand .pg-chart:not(.pg-chart--edit) .pg-rt-chart__measure.pg-look-same > .pg-rt-chart__beat { color: transparent !important; }
html.pg-look-hand .pg-chart:not(.pg-chart--edit) .pg-rt-chart__measure.pg-look-same > .pg-rt-chart__beat .pg-rt-chart__slash,
html.pg-look-hand .pg-chart:not(.pg-chart--edit) .pg-rt-chart__measure.pg-look-same > .pg-rt-chart__beat::before { visibility: hidden; }
html.pg-look-hand .pg-chart:not(.pg-chart--edit) .pg-rt-chart__measure.pg-look-same::after {
    content: '%'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-family: 'PG Petaluma Script', 'Marker Felt', cursive; font-size: calc(var(--pgc-chord) * 1.05); color: var(--pgc-ink);
    pointer-events: none;
}
/* (A loop is the one gold tint in this look too, chart.css; it was green here.) */
