/* Japanese typography — additive layout rules; original poem lineation and data stay intact. */
html{line-break:strict}
main :is(h1,h2,h3){word-break:normal;overflow-wrap:break-word;line-break:strict;text-wrap:balance}
main :is(p,li){word-break:normal;overflow-wrap:break-word;line-break:strict}
@supports(text-wrap:pretty){main p{ text-wrap:pretty}}
main a{overflow-wrap:break-word;word-break:normal;line-break:strict}
a[href^="http"]{overflow-wrap:anywhere}
main :is(.poem-text,.poem-line,.poem-lines,.poetry-line,[data-poem-line]){text-wrap:wrap;word-break:normal;line-break:strict}
main :is(.grid,.section-inner,.section-head,.fact,.work,.player,.score-grid)>*{min-width:0}
main :is(.button,.cta){max-width:100%;white-space:normal;line-height:1.7;min-height:44px;align-content:center}
main :is(.work-title-line,.work-name-phrase){white-space:normal;max-width:100%;word-break:normal;overflow-wrap:break-word}
main :is(.work .name,h1){word-break:normal;overflow-wrap:break-word}
@supports(word-break:auto-phrase){main :is(.work .name,.work-name-phrase){word-break:auto-phrase}}
main :is(.work-link-caption,.caption,.note,.hero-meta,.under-title){line-height:1.8}
main :is(input,textarea,select){max-width:100%;min-width:0}
.site-header{gap:12px;flex-wrap:nowrap}
.site-header .site-brand{min-width:0;font-size:1.0625rem;overflow-wrap:normal;word-break:keep-all;line-height:1.5}
.site-header .site-brand span{font-size:.5rem;overflow-wrap:normal;letter-spacing:.1em}
.site-menu{flex:0 0 auto;min-width:0}
.site-menu summary{font-size:.6875rem;line-height:1.5;min-height:44px;padding:8px 12px;gap:12px;white-space:normal}
.site-menu nav{box-sizing:border-box;width:min(21rem,90vw);max-height:calc(100dvh - 100px);overflow-y:auto;overscroll-behavior:contain}
.site-menu nav a{box-sizing:border-box;min-height:44px;font-size:.75rem;line-height:1.7;white-space:normal;overflow-wrap:break-word;word-break:normal;letter-spacing:.06em}
/* The existing single player, photograph and caption are not restyled. */
.lyric-box-section #lyric-stage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;align-items:stretch}
.lyric-box-section #lyric-stage .fragment-card{min-width:0;min-height:0;height:auto;overflow:visible}
.lyric-box-section #lyric-stage .fragment-text{display:block;align-content:center;flex:1 1 auto;min-height:0;min-width:0;max-width:100%;font-size:clamp(1.125rem,2.45vw,2.125rem);line-height:1.55;font-weight:500;letter-spacing:0;word-break:normal;overflow-wrap:break-word;white-space:normal;text-wrap:balance;padding:14px 0}
.lyric-unit{display:inline-block;max-width:100%;vertical-align:baseline;white-space:normal;word-break:normal;overflow-wrap:break-word}
.lyric-box-section #lyric-stage .fragment-source{display:block;align-content:center;min-width:0;min-height:44px;font-size:.6875rem;line-height:1.6;overflow-wrap:break-word;word-break:normal;text-wrap:balance}
.lyric-box-section .lyric-controls-single #lyric-draw{min-width:0;min-height:48px;white-space:normal;line-height:1.6}
.lyric-box-section #lyric-share{white-space:normal;line-height:1.7;padding:12px!important}
.lyric-box-section .lyric-machine-head{flex-wrap:wrap;gap:8px}
.lyric-box-section .lyric-machine-label{overflow-wrap:break-word}
/***** Education: numbers have their own column; the actual questions remain unchanged. *****/
.page .questions ul{list-style:none;border-left:0;padding-left:0;counter-reset:educational-question;max-width:42rem}
.page .questions li{counter-increment:educational-question;position:relative;border-top:1px solid #d6d6d6;padding:14px 0 14px 2.5rem;margin:0;font-size:1rem;line-height:1.85}
.page .questions li::before{content:counter(educational-question,decimal-leading-zero);position:absolute;left:0;top:16px;font:700 .6875rem/1.8 Arial,sans-serif;letter-spacing:.05em;color:#666}
.page .questions li:last-child{border-bottom:1px solid #d6d6d6}
.page :is(#reflections,.practice-process) p{max-width:42rem;line-height:1.85}
.page .practice-process li{grid-template-columns:1.75rem minmax(0,1fr);gap:12px}
.page .practice-process h3{font-size:1.25rem;line-height:1.55}
.page .practice-process p{font-size:1rem}
@media(max-width:640px){
 .lyric-box-section .lyric-machine{padding:12px}
 .lyric-box-section #lyric-stage{gap:8px;padding:12px 0}
 .lyric-box-section #lyric-stage .fragment-card{padding:10px}
 .lyric-box-section #lyric-stage .fragment-text{font-size:clamp(1.0625rem,5.1vw,1.375rem);padding:10px 0;line-height:1.6}
 .page .questions li{font-size:.9375rem;padding-top:12px;padding-bottom:12px}
 .page .questions li::before{top:14px}
 .page .practice-process h3{font-size:1.125rem}
 .page .practice-process p,.page #reflections p{font-size:.9375rem}
}
@media(max-width:360px){
 .site-header{gap:8px;padding-left:5vw;padding-right:5vw}
 .site-header .site-brand{letter-spacing:.04em}
 .site-menu summary{gap:8px;padding-inline:10px}
 .lyric-box-section #lyric-stage .fragment-card{padding:8px}
 .lyric-box-section #lyric-stage .fragment-text{font-size:1.0625rem}
}
@media(prefers-reduced-motion:reduce){.lyric-box-section #lyric-stage *{transition:none!important}}

/* Keep numerals with their Japanese counter; balanced fallback for enlarged text. */
.type-unit{display:inline-block;max-width:100%;vertical-align:baseline;word-break:normal;overflow-wrap:break-word;text-wrap:balance}
.lyric-unit{text-wrap:balance}
/* Text enlargement must reflow rather than hide oversized content. */
.countdown-inner{flex-wrap:wrap;row-gap:10px;padding-block:12px}
.countdown-label{white-space:normal}
.countdown-days{margin-left:auto;max-width:100%}
.affiliation-line .affiliation-name{white-space:normal;overflow-wrap:break-word;word-break:normal}
.player-title .work-title-line{white-space:normal;overflow-wrap:break-word;word-break:normal;text-wrap:balance}
.poem-panel,.poem-panel>*{min-width:0;max-width:100%}
/* Preserve authored line elements and blank lines; allow only visual soft wrapping at narrow/enlarged sizes. */
.poem-text .poem-line{white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;max-width:100%}
.poem-share-start,.poem-share-start .share-guide,.poem-share-start button{min-width:0;max-width:100%;white-space:normal;overflow-wrap:break-word}
@media(max-width:820px){.poem-panel{grid-template-columns:minmax(0,1fr)}}

.site05-entrances strong{text-wrap:balance;overflow-wrap:break-word;word-break:normal}
@media(max-width:360px){.site05-entrances a:not(.entrance-thanks){padding-inline:10px;column-gap:3px}}
