/* Consistent hierarchy for existing content, new posts, previews and the editor. */
:is(.public, .dashboard) :is(h1, h2, h3, h4, h5, h6) {
    text-align: center;
    text-align-last: center;
    font-weight: 850;
    overflow-wrap: anywhere;
}
.public .reader-intro h1 {
    font-size: max(2rem, calc(var(--reading-size, 1.18rem) * 1.7));
    line-height: 1.65;
}
:is(.public .prose, .dashboard .rich) :is(h1, h2) { font-size: 1.5em; }
:is(.public .prose, .dashboard .rich) h3 { font-size: 1.35em; }
:is(.public .prose, .dashboard .rich) h4 { font-size: 1.25em; }
:is(.public .prose, .dashboard .rich) h5 { font-size: 1.18em; }
:is(.public .prose, .dashboard .rich) h6 { font-size: 1.12em; }
.public .reader .prose :is(h1, h2, h3, h4, h5, h6),
.dashboard .rich :is(h1, h2, h3, h4, h5, h6) {
    margin-block: 1.1em .6em;
    line-height: 1.75;
    font-weight: 850;
    text-wrap: balance;
}
.public .cardbody h3 { font-size: 1.28rem; line-height: 1.8; }
.public .illuminated-title h2 { font-size: clamp(1.25rem, 1.8vw, 1.8rem); }
.public .edition-footer h2, .dashboard .panel h2 { font-size: 1.25rem; }
.public :is(.hero-copy p, .cardbody p, .reader-intro p, .prose, .bio p, .profile-cta p, .edition-footer p, .comment-prose, .contact-heading p),
.public .reader .prose :is(p, li, dd, dt, td, th, blockquote, figcaption),
.dashboard :is(.rich, .rich p, .rich li, .rich td, .checks li, .panel-heading p, .panel-title p),
.ticket-prose p, .comment-prose p, .biography-prose p {
    text-align: justify;
    text-align-last: start;
    text-justify: auto;
    white-space: normal;
    overflow-wrap: anywhere;
}
.public .cardbody p { font-size: 1rem; -webkit-line-clamp: 4; }
.public .hero-copy p { line-height: 2; }
.public .reader .prose p, .dashboard .rich p,
.ticket-prose p, .comment-prose p, .biography-prose p {
    margin-block: 0 .8em;
    line-height: 2.1;
}
.public .reader .prose :is(h1, h2, h3, h4, h5, h6) {
    text-align: center;
    text-align-last: center;
}
.public .prose :is(pre, code), .dashboard .rich :is(pre, code) {
    white-space: pre-wrap;
    text-align: start;
    text-align-last: auto;
}
.public .reader .prose .scripture { color: var(--text-blue, #174c9a); }
.public .cardbody, .public .reader-intro, .dashboard .panel-heading > div { min-width: 0; }
.text-format-status { color: var(--muted); font-size: .88rem; }
@media print {
    .public .reader-intro h1 { font-size: 20pt; }
    .public .reader .prose :is(h2, h3, h4, h5, h6) { break-after: avoid; }
}

/* Full box centering for headings whose parent also contains controls. */
.dashboard .panel-heading { flex-wrap: wrap; justify-content: center; }
.dashboard .panel-heading > div { flex: 1 1 100%; width: 100%; }
.dashboard .panel-title { flex-wrap: wrap; justify-content: center; }
.dashboard .panel-title > h2, .dashboard .panel-title > div { flex: 1 1 100%; }
.public .hero-actions, .public .cardread { text-align: center; justify-content: center; }
.public .cardread { align-self: center; }
.editor-conflict { grid-column: 1 / -1; border: 2px solid #ba9857; }
.editor-conflict details { margin-block: 16px; }
.conflict-copy { max-height: 360px; overflow: auto; }
.dashboard .comment-prose p, .dashboard .help-card p, .dashboard .help-card li { text-align: justify; text-align-last: start; }
