/* Multilingual Shakespeare Plays — everything is scoped to .msp-play so the theme is not affected. */

.msp-play {
	--msp-ink: #1f2328;
	--msp-muted: #5f6670;
	--msp-line: #e3e5e8;
	--msp-bg: #ffffff;
	--msp-soft: #f6f7f8;
	--msp-accent: #7a2e2e;
	--msp-gap: 1.5rem;

	/* Language colours (chosen to stay readable on white). */
	--msp-c0: #1d5fa8;
	--msp-c1: #b0451b;
	--msp-c2: #2e7d4f;
	--msp-c3: #8a3fa0;
	--msp-c4: #a8326a;
	--msp-c5: #00748a;
	--msp-c6: #7a5c00;
	--msp-c7: #5a5fc2;
	--msp-c8: #8f4a2a;
	--msp-c9: #3f7a1f;
	--msp-c10: #6b6b6b;
	--msp-c11: #b02a2a;
	--msp-c12: #2f6f6f;
	--msp-c13: #9c5a00;
	--msp-c14: #6a3d9a;
	--msp-c15: #4b6584;

	color: var(--msp-ink);
	line-height: 1.55;
	position: relative;
}

.msp-play *,
.msp-play *::before,
.msp-play *::after { box-sizing: border-box; }

.msp-sr {
	position: absolute !important;
	width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

/* Toolbar ---------------------------------------------------------------- */

.msp-toolbar {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--msp-bg);
	border-bottom: 1px solid var(--msp-line);
	padding: 0.75rem 0;
	margin-bottom: 1rem;
}
.admin-bar .msp-toolbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .msp-toolbar { top: 0; } }

.msp-tb-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.msp-play select,
.msp-play input[type="search"],
.msp-play button {
	font: inherit;
	font-size: 0.9rem;
	line-height: 1.2;
	min-height: 2.4rem;
	border: 1px solid #c9ccd1;
	border-radius: 6px;
	background: var(--msp-bg);
	color: var(--msp-ink);
	padding: 0.45rem 0.7rem;
	margin: 0;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
}
.msp-play button { cursor: pointer; }
.msp-play button:hover,
.msp-play select:hover { border-color: #9aa0a8; background: var(--msp-soft); color: var(--msp-ink); }
.msp-play button:focus-visible,
.msp-play select:focus-visible,
.msp-play input:focus-visible { outline: 2px solid var(--msp-accent); outline-offset: 1px; }

.msp-field { margin: 0; }
.msp-field-scene { flex: 1 1 15rem; }
.msp-field-scene select { width: 100%; }
.msp-field-search { flex: 1 1 12rem; }
.msp-field-search input { width: 100%; }

.msp-seg { display: inline-flex; }
.msp-seg button { border-radius: 0; margin-left: -1px; }
.msp-seg button:first-child { border-radius: 6px 0 0 6px; margin-left: 0; }
.msp-seg button:last-child { border-radius: 0 6px 6px 0; }
.msp-play .msp-seg button.is-on,
.msp-play .msp-lang-toggle.is-active {
	background: var(--msp-ink);
	border-color: var(--msp-ink);
	color: #fff;
	position: relative;
}

.msp-lang-count:empty { display: none; }
.msp-lang-count {
	display: inline-block;
	min-width: 1.3em;
	padding: 0 0.35em;
	margin-left: 0.25em;
	border-radius: 999px;
	background: #fff;
	color: var(--msp-ink);
	font-size: 0.8em;
	text-align: center;
}

.msp-langs { padding-top: 0.75rem; }
.msp-langs[hidden] { display: none; }
.msp-langs-help { margin: 0 0 0.5rem; font-size: 0.85rem; color: var(--msp-muted); }
.msp-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.msp-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border: 1px solid color-mix(in srgb, var(--msp-c) 45%, white);
	border-radius: 999px;
	padding: 0.25rem 0.7rem 0.25rem 0.5rem;
	font-size: 0.85rem;
	cursor: pointer;
	user-select: none;
	margin: 0;
}
.msp-chip input { accent-color: var(--msp-c); margin: 0; }
.msp-chip:has(input:checked) { background: color-mix(in srgb, var(--msp-c) 12%, white); border-color: var(--msp-c); }
.msp-chip span::before {
	content: "";
	display: inline-block;
	width: 0.6em; height: 0.6em;
	border-radius: 50%;
	background: var(--msp-c);
	margin-right: 0.35em;
	vertical-align: 0.05em;
}
.msp-play .msp-clear {
	margin-top: 0.6rem;
	min-height: 0;
	padding: 0.2rem 0;
	border: 0;
	background: none;
	color: var(--msp-accent);
	text-decoration: underline;
	font-size: 0.85rem;
}
.msp-play .msp-clear:hover { background: none; }

.msp-status { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--msp-muted); }
.msp-status:empty { display: none; }

/* Text layout: line number | Shakespeare | translation ------------------------ */

.msp-colheads,
.msp-line,
.msp-direction {
	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, 1fr);
	column-gap: var(--msp-gap);
}

.msp-colheads {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--msp-muted);
	padding-bottom: 0.25rem;
}

.msp-act-title {
	margin: 2.5rem 0 0.5rem;
	font-size: 1.6rem;
	letter-spacing: 0.04em;
}
.msp-act:first-child .msp-act-title { margin-top: 0.5rem; }
.msp-scene-title {
	margin: 1.75rem 0 0.25rem;
	font-size: 1.15rem;
	scroll-margin-top: 9rem;
}
.msp-scene { scroll-margin-top: 9rem; }
.msp-location {
	margin: 0 0 1rem;
	font-style: italic;
	color: var(--msp-muted);
}

.msp-speech { margin: 0 0 0.9rem; }
.msp-speaker {
	padding-left: calc(2.5rem + var(--msp-gap));
	font-weight: 700;
	letter-spacing: 0.03em;
	font-size: 0.92rem;
	margin-bottom: 0.1rem;
}

.msp-line { padding: 0; }
.msp-line .msp-en,
.msp-line .msp-tr {
	border-left: 3px solid color-mix(in srgb, var(--msp-c) 55%, white);
	padding: 0.1rem 0 0.1rem 0.6rem;
}
.msp-line .msp-tr { border-left-style: dotted; }
.msp-indent .msp-en,
.msp-indent .msp-tr { padding-left: 4rem; }

.msp-n {
	text-align: right;
	font-size: 0.75rem;
	color: var(--msp-muted);
	padding-top: 0.25em;
	font-variant-numeric: tabular-nums;
}

.msp-same .msp-en { grid-column: 2 / 4; }

.msp-direction {
	font-style: italic;
	color: var(--msp-muted);
	margin: 0.5rem 0 0.9rem;
}

.msp-break { height: 0.8rem; }

.msp-tag {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 600;
	font-style: normal;
	letter-spacing: 0.02em;
	line-height: 1.4;
	padding: 0.05rem 0.45rem;
	border-radius: 999px;
	color: var(--msp-c);
	background: color-mix(in srgb, var(--msp-c) 11%, white);
	border: 1px solid color-mix(in srgb, var(--msp-c) 35%, white);
	vertical-align: 0.1em;
	white-space: nowrap;
}
.msp-speaker .msp-tag { margin-left: 0.3rem; white-space: normal; }

/* Inline language markers ---------------------------------------------------
 * Default ("dots"): a small coloured dot; the name appears on hover, focus or tap.
 * "labels": the name is shown as a pill, like the speaker tags.
 * The words that follow are underlined in the language's colour when they
 * differ from the line's main language. */

.msp-play button.msp-mk,
.msp-play button.msp-mk:hover,
.msp-play button.msp-mk:focus {
	position: relative;
	display: inline-block;
	width: 0.62em;
	height: 0.62em;
	min-height: 0;
	min-width: 0;
	margin: 0 0.12em;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--msp-c);
	color: inherit;
	font-size: 1em;
	line-height: 0;
	vertical-align: 0.08em;
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--msp-c) 18%, white);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
/* A finger-sized hit area around the dot, without changing the line spacing. */
.msp-play button.msp-mk::after {
	content: "";
	position: absolute;
	inset: -0.75rem -0.55rem;
}
.msp-play button.msp-mk:focus-visible { outline: 2px solid var(--msp-accent); outline-offset: 3px; }
.msp-play button.msp-mk.is-open { box-shadow: 0 0 0 3px color-mix(in srgb, var(--msp-c) 35%, white); }

/* The name inside the dot is for screen readers, copy-paste and search. */
.msp-mk-t {
	position: absolute;
	width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

.msp-ul {
	text-decoration-line: underline;
	text-decoration-color: color-mix(in srgb, var(--msp-c) 70%, white);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.22em;
	text-decoration-skip-ink: auto;
}

/* Reader chose "Show language names in the text": markers become pills. */
.msp-play[data-tags="labels"] button.msp-mk,
.msp-play[data-tags="labels"] button.msp-mk:hover,
.msp-play[data-tags="labels"] button.msp-mk:focus {
	width: auto;
	height: auto;
	margin: 0 0.1em;
	padding: 0.05rem 0.45rem;
	border: 1px solid color-mix(in srgb, var(--msp-c) 35%, white);
	border-radius: 999px;
	background: color-mix(in srgb, var(--msp-c) 11%, white);
	color: var(--msp-c);
	box-shadow: none;
	font-size: 0.7rem;
	font-weight: 600;
	font-style: normal;
	letter-spacing: 0.02em;
	line-height: 1.4;
	vertical-align: 0.1em;
	cursor: default;
}
.msp-play[data-tags="labels"] button.msp-mk::after { display: none; }
.msp-play[data-tags="labels"] .msp-mk-t {
	position: static;
	width: auto; height: auto; overflow: visible;
	clip: auto; white-space: normal;
}

/* Floating name bubble */
.msp-tip {
	position: fixed;
	z-index: 70;
	max-width: min(16rem, calc(100vw - 1rem));
	padding: 0.3rem 0.6rem;
	border-radius: 6px;
	background: var(--msp-ink);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	font-style: normal;
	line-height: 1.3;
	letter-spacing: 0.01em;
	pointer-events: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	border-left: 4px solid color-mix(in srgb, var(--msp-c, #888) 65%, white);
}
.msp-tip[hidden] { display: none; }

.msp-labels-opt {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
	cursor: pointer;
}
.msp-labels-opt input { margin: 0; width: 1.05rem; height: 1.05rem; accent-color: var(--msp-ink); }

.msp-play mark {
	background: #ffe58a;
	color: inherit;
	padding: 0 0.05em;
	border-radius: 2px;
}

/* Column view toggle */
.msp-play[data-view="en"] .msp-tr,
.msp-play[data-view="tr"] .msp-en:not(.msp-same .msp-en) { display: none; }
.msp-play[data-view="en"] .msp-en,
.msp-play[data-view="tr"] .msp-tr { grid-column: 2 / 4; }
.msp-play[data-view="en"] .msp-colheads .msp-en,
.msp-play[data-view="tr"] .msp-colheads .msp-tr { max-width: 40rem; }

/* Full text column (shown with "Show full text") ---------------------------
 * Order: full text | Shakespeare (production) | translation.
 * The production line numbers are hidden; Folger numbers sit inside the
 * full-text cell. Lines the production does not use come in .msp-xtra rows. */

.msp-full,
.msp-xtra,
.msp-sources { display: none; }

.msp-play[data-full="on"] .msp-colheads,
.msp-play[data-full="on"] .msp-line,
.msp-play[data-full="on"] .msp-direction,
.msp-play[data-full="on"] .msp-xtra {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.msp-play[data-full="on"] .msp-n { display: none; }
.msp-play[data-full="on"] .msp-full { display: block; grid-column: 1; }
.msp-play[data-full="on"] .msp-en { grid-column: 2; }
.msp-play[data-full="on"] .msp-tr { grid-column: 3; }
.msp-play[data-full="on"] .msp-same .msp-en,
.msp-play[data-full="on"][data-view="en"] .msp-en,
.msp-play[data-full="on"][data-view="tr"] .msp-tr { grid-column: 2 / 4; }
.msp-play[data-full="on"] .msp-speaker { padding-left: calc((100% - 2 * var(--msp-gap)) / 3 + var(--msp-gap)); }
.msp-play[data-full="on"] .msp-location { padding-left: calc((100% - 2 * var(--msp-gap)) / 3 + var(--msp-gap)); }
.msp-play[data-full="on"] .msp-sources { display: block; }

.msp-full {
	position: relative;
	padding: 0.1rem 0 0.1rem 2.3rem;
	font-style: normal;
	color: var(--msp-ink);
}
.msp-full .msp-fl { display: block; position: relative; }
.msp-fn {
	position: absolute;
	left: -2.3rem;
	width: 1.8rem;
	text-align: right;
	font-size: 0.72rem;
	font-style: normal;
	color: var(--msp-muted);
	padding-top: 0.25em;
	font-variant-numeric: tabular-nums;
}
.msp-fl-who {
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-style: normal;
}
.msp-fl-sd { font-style: italic; color: var(--msp-muted); }

/* Cut: greyed with a reddish rule; partly cut: dotted rule. */
.msp-fl-cut {
	color: #6e747c;
	border-left: 3px solid #d9a3a3;
	padding-left: 0.5rem;
	margin-left: -0.5rem;
	margin-left: calc(-0.5rem - 3px);
}
.msp-full .msp-fl-cut { background: #f7f5f5; }
.msp-fl-part {
	border-left: 3px dotted #c88a8a;
	padding-left: 0.5rem;
	margin-left: calc(-0.5rem - 3px);
}
.msp-key .msp-fl { display: inline; margin-left: 0; padding: 0 0.35rem; }
.msp-key .msp-fl-cut { background: #f7f5f5; }

/* Production lines that are not in the full text: a quiet dash. */
.msp-full-none::before { content: "—"; color: #b7bbc1; }

.msp-xtra { margin: 0.15rem 0 0.35rem; }
.msp-xtra .msp-full { grid-column: 1; }

/* Footnotes (always visible) */
.msp-fnref { font-size: 0.7em; line-height: 0; margin-left: 0.15em; font-style: normal; }
.msp-fnref a { color: var(--msp-accent); text-decoration: none; font-weight: 700; }
.msp-fnref a:hover, .msp-fnref a:focus { text-decoration: underline; }
.msp-notes {
	margin: 1.25rem 0 0;
	padding: 0.6rem 0 0;
	border-top: 1px solid var(--msp-line);
	font-size: 0.85rem;
	color: var(--msp-muted);
	max-width: 46rem;
}
.msp-notes ol { margin: 0 0 0 1.4rem; padding: 0; }
.msp-notes li { margin: 0 0 0.4rem; }
.msp-notes li:target { background: #fff6d6; }
.msp-note-back { text-decoration: none; }
.msp-sources {
	margin: 3rem 0 1rem;
	padding: 1rem 0 0;
	border-top: 2px solid var(--msp-line);
	font-size: 0.85rem;
	color: var(--msp-muted);
	max-width: 46rem;
}
.msp-sources-title { font-size: 1rem; margin: 0 0 0.5rem; color: var(--msp-ink); }
.msp-sources p { margin: 0 0 0.6rem; }

.msp-play .msp-full-toggle[aria-pressed="true"] {
	background: var(--msp-ink);
	border-color: var(--msp-ink);
	color: #fff;
}

/* Footnote side panel (1.9.0). Without JavaScript the end-of-scene list is used. */
.msp-np {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 80;
	width: min(24rem, 92vw);
	display: flex;
	flex-direction: column;
	background: var(--msp-bg);
	color: var(--msp-ink);
	border-left: 1px solid var(--msp-line);
	box-shadow: -6px 0 24px rgba(0, 0, 0, 0.12);
	font-size: 0.95rem;
	line-height: 1.55;
	transform: translateX(0);
	transition: transform 0.2s ease-out;
}
.admin-bar .msp-np { top: 32px; }
.msp-np[hidden] { display: none; }
.msp-np.is-entering { transform: translateX(100%); }
.msp-np-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.8rem 0.9rem 0.6rem 1.25rem;
	border-bottom: 1px solid var(--msp-line);
}
.msp-play .msp-np-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--msp-accent);
}
.msp-np-title:focus { outline: none; }
.msp-np-title:focus-visible { outline: 2px solid var(--msp-accent); outline-offset: 3px; }
.msp-play .msp-np-close {
	flex: none;
	width: 2.25rem; height: 2.25rem;
	padding: 0;
	border: 1px solid var(--msp-line);
	border-radius: 50%;
	background: var(--msp-bg);
	color: var(--msp-ink);
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}
.msp-play .msp-np-close:hover { background: var(--msp-soft); }
.msp-np-scroll { flex: 1 1 auto; overflow-y: auto; padding: 1rem 1.25rem 1.25rem; overscroll-behavior: contain; }
.msp-play .msp-np-where { margin: 0 0 0.5rem; font-size: 0.8rem; color: var(--msp-muted); }
.msp-play .msp-np-line {
	margin: 0 0 1rem;
	padding: 0.5rem 0.8rem;
	border: 0;
	border-left: 3px solid var(--msp-accent);
	background: var(--msp-soft);
	font-size: 0.9rem;
	font-style: italic;
	color: var(--msp-ink);
}
.msp-play .msp-np-line .msp-np-who { display: block; font-style: normal; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; color: var(--msp-muted); }
.msp-np-body p { margin: 0 0 0.75rem; }
.msp-np-body a { color: var(--msp-accent); }
.msp-np-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.6rem 0.9rem;
	border-top: 1px solid var(--msp-line);
	background: var(--msp-soft);
}
.msp-play .msp-np-nav button {
	padding: 0.4rem 0.75rem;
	border: 1px solid var(--msp-line);
	border-radius: 6px;
	background: var(--msp-bg);
	color: var(--msp-ink);
	font-size: 0.85rem;
	cursor: pointer;
}
.msp-play .msp-np-nav button:hover:not(:disabled) { border-color: var(--msp-accent); color: var(--msp-accent); }
.msp-play .msp-np-nav button:disabled { opacity: 0.45; cursor: default; }
.msp-np-count { font-size: 0.8rem; color: var(--msp-muted); }
/* The line the open note belongs to. */
.msp-line.is-noted { background: #fff6d6; box-shadow: inset 3px 0 0 var(--msp-accent); }
.msp-fnref a.is-current { background: var(--msp-accent); color: #fff; border-radius: 3px; padding: 0 0.2em; }
/* With the panel available, the end-of-scene lists stay only for print and screen readers' "notes" landmark is the panel. */
.msp-play.has-np .msp-notes { display: none; }
.msp-play.is-shifted { position: relative; transition: left .2s ease; }
@media (prefers-reduced-motion: reduce) { .msp-play.is-shifted { transition: none; } }
@media (prefers-reduced-motion: reduce) { .msp-np { transition: none; } }

/* Filtering */
.msp-play .is-hidden { display: none !important; }
.msp-empty { padding: 2rem 0; color: var(--msp-muted); text-align: center; }
.msp-empty[hidden] { display: none; }

.msp-top {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	width: 2.75rem; height: 2.75rem;
	border-radius: 50%;
	display: grid; place-items: center;
	background: var(--msp-ink);
	color: #fff !important;
	text-decoration: none !important;
	font-size: 1.2rem;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
	z-index: 60;
}
.msp-top.is-visible { opacity: 0.85; pointer-events: auto; }
.msp-top:hover { opacity: 1; }

.msp-error { padding: 0.75rem 1rem; border-left: 4px solid #b32d2e; background: #fcf0f1; }

/* Phones: translation sits under each line instead of beside it ------------- */

@media (max-width: 700px) {
	.msp-play { --msp-gap: 0.6rem; }
	.msp-colheads { display: none; }
	.msp-line,
	.msp-direction {
		grid-template-columns: 1.8rem minmax(0, 1fr);
	}
	.msp-line .msp-en,
	.msp-line .msp-tr,
	.msp-direction .msp-en,
	.msp-direction .msp-tr { grid-column: 2; }
	.msp-play[data-view] .msp-en,
	.msp-play[data-view] .msp-tr { grid-column: 2; }
	.msp-line .msp-en { padding-top: 0.3rem; }
	.msp-line .msp-tr { padding-bottom: 0.3rem; }
	.msp-play[data-view="both"] .msp-line:not(.msp-same) .msp-tr {
		color: var(--msp-muted);
	}
	.msp-speaker { padding-left: calc(1.8rem + var(--msp-gap)); }
	.msp-indent .msp-en,
	.msp-indent .msp-tr { padding-left: 2rem; }
	.msp-seg { flex: 1 1 100%; }
	.msp-seg button { flex: 1; }
	.msp-lang-toggle { flex: 1 1 100%; }
	/* Full text on phones: the full text sits above the production line. */
	.msp-play[data-full="on"] .msp-line,
	.msp-play[data-full="on"] .msp-direction,
	.msp-play[data-full="on"] .msp-xtra { grid-template-columns: minmax(0, 1fr); }
	.msp-play[data-full="on"] .msp-full,
	.msp-play[data-full="on"][data-view] .msp-en,
	.msp-play[data-full="on"][data-view] .msp-tr,
	.msp-play[data-full="on"] .msp-same .msp-en { grid-column: 1; }
	.msp-play[data-full="on"] .msp-line .msp-full { font-size: 0.85rem; color: var(--msp-muted); padding-top: 0.35rem; }
	.msp-play[data-full="on"] .msp-line .msp-full-none,
	.msp-play[data-full="on"] .msp-line .msp-full-rep,
	.msp-play[data-full="on"] .msp-line .msp-full:empty { display: none; }
	.msp-play[data-full="on"] .msp-speaker,
	.msp-play[data-full="on"] .msp-location { padding-left: 0; }
	.msp-play[data-full="on"] .msp-line .msp-en { margin-left: 2.3rem; }
	.msp-play[data-full="on"] .msp-line .msp-tr { margin-left: 2.3rem; }
	.msp-play[data-full="on"] .msp-direction .msp-en,
	.msp-play[data-full="on"] .msp-direction .msp-tr { padding-left: 2.3rem; }
	.msp-full-toggle { flex: 1 1 100%; }
	.msp-toolbar { position: static; }
	/* Footnote panel as a sheet at the bottom of the screen. */
	.msp-np,
	.admin-bar .msp-np {
		top: auto;
		left: 0;
		width: auto;
		max-height: 62vh;
		border-left: 0;
		border-top: 1px solid var(--msp-line);
		border-radius: 14px 14px 0 0;
		box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.15);
	}
	.msp-np.is-entering { transform: translateY(100%); }
	.msp-np-nav { padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px)); }
}

@media print {
	.msp-play[data-full="on"] .msp-xtra { break-inside: avoid; }
	.msp-toolbar, .msp-top, .msp-tip, .msp-np { display: none !important; }
	.msp-play.has-np .msp-notes { display: block; }
	.msp-play.is-shifted { left: 0 !important; }
	.msp-line.is-noted { background: none; box-shadow: none; }
	/* Dots mean nothing on paper: print the language names. */
	.msp-play button.msp-mk {
		width: auto; height: auto; padding: 0 0.3em; border-radius: 999px;
		background: none; color: var(--msp-c); border: 1px solid var(--msp-c);
		box-shadow: none; font-size: 0.7rem; line-height: 1.4;
	}
	.msp-mk-t { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}
