.editor-main{padding-top:40px;padding-bottom:72px;max-width:1240px}.editor-main h1{font-size:clamp(28px,4vw,42px);line-height:1.3}.demo-note{padding:20px;border:1px solid var(--accent);border-radius:8px;background:var(--surface);line-height:1.7}.editor-main label{display:flex;flex-direction:column;gap:8px;margin-bottom:20px;text-align:left}.editor-main input,.editor-main select,.editor-main textarea{width:100%;padding:12px;border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--ink);font:inherit;min-width:0}.editor-main textarea{min-height:160px;resize:vertical}.editor-main button{white-space:normal}.editor-main #login{max-width:640px}.workspace-heading,.editor-actions,.editor-tabs,.block-tools{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.workspace-heading{justify-content:space-between;margin:28px 0}.editor-tabs{margin:24px 0}.editor-tabs [aria-pressed=true]{background:var(--panel)}.editor-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;align-items:start}.preview{padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:10px;position:sticky;top:100px;max-height:75vh;overflow:auto}.preview h3{margin-top:0}.block-editor,.post-card{border:1px solid var(--line);background:var(--surface);border-radius:8px;padding:20px;margin-bottom:20px}.block-editor h3{margin-top:0}.block-tools .btn{padding:6px 12px;min-height:40px}.post-card h3{margin:0 0 12px}.post-card p{margin:12px 0}.post-card .editor-actions{margin-top:20px}.add-block{margin:24px 0}.preview .chapter-content{font-size:18px}.preview .project-body p{white-space:pre-wrap}.preview .project-details{margin:20px 0}.preview a{overflow-wrap:anywhere}.empty{padding:24px;border:1px dashed var(--line);border-radius:8px}.byline{color:var(--ink-3);font-size:14px}.comment{white-space:pre-wrap}#notice{position:sticky;bottom:12px;background:var(--panel);border-radius:8px;padding:12px}#notice:empty{display:none}@media(max-width:850px){.editor-columns{grid-template-columns:1fr}.preview{position:static;max-height:none}.editor-main .header-inner{display:flex}.editor-main{padding-inline:24px}}

.block-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.block-picker .btn{gap:8px;padding:12px;min-height:48px}@media(max-width:600px){.block-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}

.entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:28px 0}.entry-card{display:flex;flex-direction:column;align-items:flex-start;padding:28px;background:var(--surface);border:1px solid var(--line);border-radius:10px}.entry-card h3{margin:0 0 12px}.entry-card p{flex:1;margin:0 0 24px;line-height:1.7}.entry-card .btn{width:100%}#back-entry{margin-bottom:16px}@media(max-width:650px){.entry-grid{grid-template-columns:1fr}.entry-card{padding:24px}}

/* Center editorial navigation, headings and account entry. */
.editor-main{text-align:center}
.editor-main h1,.editor-main h2,.editor-main h3{text-align:center}
.demo-note{max-width:900px;margin:24px auto 32px}
#entry{max-width:720px;margin-inline:auto}
.editor-main #login{margin:32px auto 0}
#login-form{max-width:480px;margin:28px auto}
#login-form label{text-align:center}
#login-form input{text-align:center}
#login>p{margin:24px auto;max-width:600px}
#back-entry{display:flex;margin:0 auto 28px}
.workspace-heading,.editor-actions,.editor-tabs,.block-tools{justify-content:center}
.workspace-heading{gap:24px}
.entry-card{align-items:center}
.editor-main label{text-align:center}
.editor-main .chapter-content{text-align:left}

.preview .chapter-content,#dashboard .chapter-content{max-width:800px;margin-inline:auto;line-height:1.85;text-align:left}
.preview .chapter-content p{margin:0 0 var(--space-text)}
.preview .chapter-content h2,#dashboard .chapter-content h2{font-size:clamp(22px,2.6vw,28px);line-height:1.15;margin:0 0 24px;text-align:center}
.preview .chapter-content .section-sources,#dashboard .chapter-content .section-sources{text-align:center}

#dashboard .empty:empty{display:none}
.workspace-heading{margin-bottom:12px}
.editor-tabs{justify-content:center;margin-top:12px}

@media(max-width:760px){.preview .chapter-content{font-size:17px}}

.editorial-header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:20px}
.editorial-header .brand{grid-column:2;margin:0;text-align:center}
.editorial-header>a:first-child{justify-self:start}
.workspace-signout{display:flex;justify-content:center;margin:28px 0 36px}
.workspace-signout .btn{width:auto;min-height:40px;padding:8px 18px;font-size:15px}
@media(max-width:600px){.editorial-header{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px}.editorial-header>a:first-child{font-size:13px}.editorial-header .brand{font-size:16px}}

.editor-main>h1{margin-bottom:0}
#entry .entry-grid{margin-top:48px}
/* Consistent vertical rhythm throughout contributor forms. */
.editor-main{--editor-section-space:48px;--editor-field-space:32px;line-height:1.7}
.editor-main #login{margin-top:var(--editor-section-space)}
#back-entry{margin-bottom:var(--editor-field-space)}
#login-title{margin:0;line-height:1.4}
#login-description:empty{display:none}
#login-form{margin:var(--editor-section-space) auto 0}
.editor-main label{gap:var(--editor-field-space);margin-bottom:var(--editor-field-space);line-height:1.7}
.editor-main input,.editor-main select,.editor-main textarea{line-height:1.7}
#composer>h2{margin:0 0 var(--editor-section-space);line-height:1.4}
.block-editor h3,.add-block h3{margin:0 0 var(--editor-field-space);line-height:1.4}
.block-editor,.post-card{padding:28px;margin-bottom:var(--editor-field-space)}
.editor-main .editor-actions,.editor-main .block-tools{gap:16px}
.workspace-title{margin:48px 0 32px;line-height:1.4}
.workspace-navigation{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:20px}
.workspace-navigation .editor-tabs{margin:0;gap:20px}
.workspace-navigation>.btn,.workspace-navigation .editor-tabs .btn{min-height:50px}
.workspace-signout{margin:32px 0 48px}
.editor-main label.anonymous-choice{flex-direction:row;justify-content:center;align-items:center;gap:12px}
.editor-main .anonymous-choice input{width:20px;height:20px;accent-color:var(--accent)}

.entry-back{display:flex;justify-content:center;margin:32px 0 0}

.composer-back{display:flex;justify-content:center;margin:0 0 32px}

/* Equal gaps around card titles, metadata and the expanded contribution. */
#dashboard .post-card>h3{margin:0 0 24px;line-height:1.5}
#dashboard .post-card>h3+p{margin:0 0 24px}
#dashboard .post-inspection>summary{line-height:1.7;text-align:center;cursor:pointer}
#dashboard .post-inspection[open]>.chapter-content{padding-top:24px}
#dashboard .chapter-content .contribution-header>h2,#dashboard .chapter-content .contribution-header>.byline,.preview .chapter-content .contribution-header>h2,.preview .chapter-content .contribution-header>.byline{margin:0;text-align:center;line-height:1.5}
#dashboard .chapter-content .contribution-body>*,.preview .chapter-content .contribution-body>*{margin:0}
#dashboard .chapter-content .contribution-body>.text-section>h2,.preview .chapter-content .contribution-body>.text-section>h2{margin:0;line-height:1.5}

#entry .entry-grid{grid-template-columns:minmax(0,1fr);max-width:360px;margin-inline:auto}

/* Card metadata leads the title; feedback sits beneath a centered action row. */
#dashboard .post-card>.post-meta{margin:0 0 24px;text-align:center;line-height:1.7}
#dashboard .post-card>.post-meta+h3{margin:0 0 24px;line-height:1.5}
#dashboard .post-card>.editor-actions{display:flex;justify-content:center;align-items:center;gap:16px;max-width:800px;margin:24px auto 0}
#dashboard .editor-actions>.feedback-field{flex:0 0 100%;width:100%;min-width:0;margin:8px 0 0;gap:16px;text-align:center}
#dashboard .feedback-field textarea{display:block;width:100%;margin:0;min-height:160px;box-sizing:border-box;text-align:left}
#dashboard .post-card>.editor-actions>.btn{flex:1 1 140px;min-width:0}

#dashboard .post-card>.editor-actions>.return-action{flex:0 0 100%;width:100%;margin-top:0}
.review-count{margin:-24px 0 32px;text-align:center;font-size:16px;line-height:1.7;color:var(--accent)}

.review-count{font-size:clamp(20px,2.5vw,24px);font-weight:600;line-height:1.5}

.updates-notice{padding:24px;margin:0 auto 32px;max-width:800px;border:1px solid var(--accent);border-radius:8px;background:var(--panel)}
.updates-notice p{margin:0 0 16px}.new-badge{display:inline-block;padding:4px 12px;margin:0 0 20px;border:1px solid var(--accent);color:var(--accent);border-radius:4px;font-size:14px;font-weight:600}
#dashboard .post-card.is-new{border-color:var(--accent)}
#recover-draft{margin:0 auto 32px}.autosave-status{font-size:14px;line-height:1.6;color:var(--accent);text-align:center}.autosave-status:empty{display:none}

.new-since-login{margin:-20px 0 32px;text-align:center;font-size:16px;line-height:1.7;color:var(--accent);font-weight:400}

.block-editor input,.block-editor textarea,.post-card{overflow-wrap:anywhere}

#dashboard .post-card>.editor-actions>.delete-action{flex:0 0 100%;margin-top:16px}
@media(max-width:600px){#dashboard .post-card>.editor-actions>.btn{flex:0 0 100%;width:100%}}
