/* Drama extension: load after the unchanged site stylesheet. */
body.is-drama { --max: 48rem; }
.is-drama .work-title { font-size: .95rem; color: var(--muted); margin-bottom: .6rem; }
.is-drama .scene-heading { font-size: 1.4rem; line-height: 1.5; }
.is-drama .cast-list { list-style: none; padding: 0; margin: 0; }
.is-drama .cast-list li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); column-gap: 1rem; align-items: baseline; margin: 0 0 .8rem; line-height: 1.5; }
.is-drama .cast-name { font-family: var(--ui); font-size: 15px; font-weight: 700; letter-spacing: .035em; line-height: 1.5; }
.is-drama .cast-description { min-width: 0; }
.is-drama .dramatis-personae > h2 { white-space: nowrap; }
.is-drama.is-drama-contents, .is-drama .edition-front { line-height: 1.5; }
.is-drama.is-drama-contents h1, .is-drama.is-drama-contents h2,
.is-drama .edition-front h1, .is-drama .edition-front h2 { line-height: 1.5; }
.is-drama .scene-toc { margin-bottom: 2rem; }
.drama-text { font-size: 19px; line-height: 1.75; overflow-wrap: break-word; }
.drama-text .speaker { font-family: var(--ui); font-size: 15px; font-weight: 700; letter-spacing: .035em; line-height: 1.5; margin: 1.75rem 0 .4rem; break-after: avoid; }
.drama-text .speaker-cue { margin-top: .8rem; }
.drama-text .speaker em { font-weight: 400; letter-spacing: normal; }
.drama-text .dialogue--prose { margin: 0 0 1rem; max-width: 65ch; }
.drama-text .dialogue--verse { margin: .25rem 0 1.25rem 1.4rem; line-height: 1.8; }
.drama-text .verse-line { display: block; padding-left: 1.25em; text-indent: -1.25em; white-space: pre-wrap; }
.drama-text .stage-direction { font-style: italic; font-size: 18px; line-height: 1.7; margin: 1.25rem 1.4rem; }
.drama-text .scene-end { text-align: center; font-style: italic; margin: 2.5rem 0; }
.scene-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem; font-size: .9rem; border-top: 1px solid var(--rule); margin-top: 2rem; padding-top: .75rem; }
.scene-nav > :last-child { text-align: right; }
.scene-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.scene-nav a:last-child { justify-content: flex-end; }
.skip-link { position: absolute; left: 1rem; top: -6rem; background: var(--bg); padding: .5rem; font-family: var(--ui); }
.skip-link:focus { top: .5rem; }
@media (max-width: 600px) {
 .is-drama .cast-list li { display: block; margin-bottom: 1.1rem; }
 .is-drama .cast-name { display: block; }
 .is-drama .cast-description { display: block; margin-top: .25rem; }
}
@media (max-width: 480px) {
 body.is-drama { --pad: 1rem; }
 .is-drama main { padding-top: 1.5rem; }
 .drama-text { font-size: 19px; }
 .drama-text .stage-direction { margin-left: .65rem; margin-right: .25rem; }
 .drama-text .dialogue--verse { margin-left: .65rem; }
 .scene-nav { gap: .4rem; font-size: .8rem; }
}
@media print {
 @page { size: A4; margin: 18mm 19mm 20mm; }
 body.is-drama { font-size: 11pt; line-height: 1.4; }
 .is-drama .skip-link, .is-drama .download { display: none !important; }
 .is-drama .meta, .is-drama small { color: #000; }
 .is-drama h1 { font-size: 17pt; }
 .is-drama .title-page { padding-top: 45mm; break-after: page; }
 .is-drama .work-header > h1:not(.scene-heading),
 .is-drama .work-header > .subtitle,
 .is-drama .work-header > .byline { text-align: center; }
 .is-drama h2 { font-size: 13pt; break-after: avoid; }
 .is-drama .scene-heading { font-size: 14pt; break-after: avoid; }
 .is-drama hr { margin: 12pt 0; }
 .drama-text { font-size: 12pt; line-height: 1.4; }
 .drama-text .speaker { font-size: 10pt; margin: 12pt 0 3pt; break-after: avoid-page; }
 .drama-text .speaker-cue { margin-top: 6pt; }
 .drama-text .dialogue--prose { line-height: 1.4; margin-bottom: 7pt; }
 .drama-text .dialogue--verse { line-height: 1.45; margin: 3pt 0 9pt 14pt; orphans: 2; widows: 2; }
 .drama-text .verse-line { break-inside: avoid; }
 .drama-text .stage-direction { font-size: 11.5pt; line-height: 1.4; margin: 9pt 14pt; }
 .drama-text .scene-end { margin: 15pt 0; }
 .print-scene { break-before: page; }
 .is-drama .cast-list li { display: grid; grid-template-columns: 100pt minmax(0, 1fr); column-gap: 10pt; margin-bottom: 6pt; }
 .is-drama .cast-name { font-size: 10pt; }
 .is-drama .cast-description { margin-top: 0; }
 .is-drama .scene-toc { margin-bottom: 10pt; }
 .is-drama .scene-toc li { margin: 0; }
 .is-drama .scene-toc a { padding: 0; }
 /* Keep contents visible: it is a section, not navigational chrome. */
 .is-drama a[href^="http"]::after { content: none; }
}

/* The edition metadata is visible on the contents page; the colophon belongs to print. */
.edition-colophon { display: none; }
@media print {
 .is-drama .edition-meta { display: none; }
 .is-drama .edition-colophon { display: flex; flex-direction: column; justify-content: flex-end; height: 258mm; break-before: page; break-inside: avoid; }
 .is-drama .edition-colophon p { margin: 0; font-family: var(--body); font-size: 10pt; line-height: 1.3; }
}
