/* Shared page geometry. Center the reading column, not the individual sentences. */
:root{--page-width:1180px;--reading-width:860px;--layout-gap:24px}
.site-header .site-bar,.site-footer .site-bar{max-width:var(--page-width);padding-inline:24px}
main{width:100%;max-width:var(--page-width);padding-inline:24px}
main.narrow{max-width:var(--reading-width);margin-inline:auto}
main.narrow :is(p,ul,ol,pre,table,audio){max-width:100%}
main.narrow p{width:auto}
main.narrow :is(h1,h2,h3,p,li){overflow-wrap:break-word}
.quick-home{max-width:var(--page-width)!important}
.quick-home .tool-intro,.quick-home .workbench{max-width:1120px;margin-inline:auto}
.quick-home .tool-intro p{max-width:none}
.quick-home>.home-section,.quick-home>.reading-path{max-width:1120px;margin-inline:auto}
.home-section>p{max-width:none}
.home-section :is(.card,.cards,.home-answers){min-width:0}
.home-section .card p{max-width:none}
/* A full-width section with two readable text columns instead of a short left block. */
#epub-to-audiobook{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 32px}
#epub-to-audiobook>h2,#epub-to-audiobook>p:last-child{grid-column:1/-1}
#epub-to-audiobook>h2{margin-bottom:0}
#epub-to-audiobook>p{margin-block:0}
#epub-to-audiobook>p:last-child{padding-top:18px;border-top:1px solid var(--line)}
/* Document tools: a balanced information grid, independent of the converter. */
.quick-home>.seo-copy{max-width:1120px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--layout-gap);margin:48px auto}
.quick-home>.seo-copy>section{min-width:0;margin:0;padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:16px}
.quick-home>.seo-copy>section>h2{margin:0 0 14px;font-size:1.4rem}
.quick-home>.seo-copy p{max-width:none;margin-block:10px}
.quick-home>.seo-copy :is(h2,h3,p,li){overflow-wrap:break-word}
.quick-home>.seo-copy>section:has(>article),.quick-home>.seo-copy>.seo-related{grid-column:1/-1}
.quick-home>.seo-copy>section:has(>article){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 28px}
.quick-home>.seo-copy>section:has(>article)>h2{grid-column:1/-1;margin-bottom:0}
.quick-home>.seo-copy article{min-width:0;margin:0;padding-top:16px}
.quick-home>.seo-copy>.seo-related{background:#eff3e9}
.quick-home>.seo-copy>.seo-related ul{margin-bottom:0}
.reading-path{padding-block:12px 0}
.format-directory{max-width:var(--page-width);padding-inline:24px}
/* The cast editor is a wide workspace; its introduction should share its edges. */
main.cast-page{max-width:var(--page-width)}
.cast-page>.lead{max-width:none}
.cast-page>.cast-note{max-width:none}
.cast-page>.cast-guide{max-width:var(--reading-width);margin-inline:auto}
.cast-page>section:not(.cast-editor) p{max-width:none}
/* Compact hints span their containing panel, while inputs retain their own layout. */
.work-surface :is(.work-lead,.work-privacy,.work-hint){max-width:none}
.work-summary p,.book-card p{max-width:none}
@media(max-width:760px){
 main,main.narrow,.quick-home,main.cast-page{padding-inline:18px}
 .site-header .site-bar,.site-footer .site-bar{padding-inline:18px}
 .quick-home>.seo-copy,#epub-to-audiobook{grid-template-columns:minmax(0,1fr);gap:18px}
 .quick-home>.seo-copy>section{padding:20px}
 .quick-home>.seo-copy>section:has(>article){grid-template-columns:minmax(0,1fr);gap:14px}
 .quick-home>.seo-copy>.seo-related ul{grid-template-columns:minmax(0,1fr)}
 .format-directory{padding-inline:18px}
}
@media(max-width:420px){
 main,main.narrow,.quick-home,main.cast-page{padding-inline:14px}
 .site-header .site-bar,.site-footer .site-bar{padding-inline:14px}
 .quick-home>.seo-copy>section{padding:18px}
}
