/* Shared prose wrapping: keep Korean words intact and retain intentional paragraphs. */
/* One title/description rhythm for archives, boards and inquiry pages. */
body:not(.home-cover){--kd-heading-description-gap:8px}
body:not(.home-cover) [data-page] :is(.section-head h1,.custom-title){margin-bottom:var(--kd-heading-description-gap)}
body:not(.home-cover) [data-page] :is(#yearCaption,.section-head h1~p,.custom-title+.board-intro,.custom-title+.inquiry-intro,.custom-title+.others-intro){margin-top:0}
body:not(.home-cover) [data-page] .custom-title+.inquiry-intro>:first-child{margin-top:0}
body:not(.home-cover):not(.studio-mode) :is(main p,main li,main dd,main dt,main blockquote,main figcaption),
.work-modal :is(p,dd,dt),.kd-canvas-dialog :is(p,dd,dt),.ip-dialog :is(p,small),
#workForm textarea,#ipForm textarea{
 word-break:keep-all;overflow-wrap:break-word;line-break:auto;text-wrap:pretty;hyphens:none;
}
body:not(.home-cover) :is(.custom-page .extra-block[data-edit-type="text"],.custom-page .board-intro){white-space:pre-line;line-height:1.85}
.kd-copy-stack{white-space:normal;word-break:keep-all;overflow-wrap:break-word;text-wrap:pretty;line-height:1.85}
.kd-copy-stack>[lang]{display:block!important;white-space:normal;word-break:keep-all;overflow-wrap:break-word;text-wrap:pretty;visibility:visible!important}
.kd-copy-stack>[lang]+[lang]{margin-top:6px}
.kd-copy-stack>[lang=en]{word-break:normal}
#workModal #modalStatement,#workModal #modalStatement *,#workModal #modalMeta,#workGrid .work-info :is(h3,p),.member-inquiry :is(p,summary){overflow-wrap:break-word}
body:not(.home-cover) :is(main h1,main h2,main h3){word-break:keep-all;overflow-wrap:break-word;text-wrap:balance}
@media(max-width:600px){.canvas-archive-note{line-height:1.9}.canvas-archive-note.kd-copy-stack>span+span{margin-top:7px}}

/* Consistent reading measure and resilient spacing for the whole gallery. */
body:not(.home-cover) :is(main p,main li,main dd,main dt,main blockquote,main figcaption),
.work-modal :is(p,span),.kd-canvas-dialog :is(p,span),.member-inquiry :is(p,summary){
 word-spacing:normal;line-break:auto;hyphens:none;
}
body:not(.home-cover) .custom-page :is(.board-body,.board-intro,.extra-block[data-edit-type="text"]){text-align:start;text-wrap:pretty;word-break:keep-all;overflow-wrap:break-word}
body:not(.home-cover) :is(.about-copy p,.commission-info-row p,.inquiry-page .board-intro){max-width:70ch}
#workModal #modalStatement{max-width:68ch}
#workModal #modalStatement .artwork-paragraph{display:block;white-space:pre-wrap;overflow-wrap:break-word}
/* Paragraph spacing is owned by artwork-type.css. */
#workModal #modalTitle,#workGrid .work-info h3,.kd-bilingual,.kd-bilingual>[lang],.favorite-grid h3{overflow-wrap:break-word;text-wrap:balance;word-break:keep-all}
/* Captions keep their deliberate centered alignment. */
#workGrid .work-info p{text-align:center}
.kd-member-actions{flex-wrap:wrap;align-items:center}
.kd-member-actions>button{max-width:100%;white-space:normal;word-break:keep-all;overflow-wrap:break-word;line-height:1.6;text-wrap:balance}
.kd-order-summary :is(dt,dd),.kd-address-grid>label,.account-row>*{min-width:0;word-break:keep-all;overflow-wrap:break-word}
.kd-order-summary dd{font-variant-numeric:tabular-nums}
#authPanel :is(p,small,label),#accountPanel :is(p,small,label){word-break:keep-all;overflow-wrap:break-word;text-wrap:pretty}
@media(max-width:600px){
 body:not(.home-cover) .custom-page :is(.board-body,.board-intro,.extra-block[data-edit-type="text"]){letter-spacing:0;line-height:1.85}
 .account-row{flex-wrap:wrap;row-gap:8px}#profileForm label{min-width:0}
}

