/* Small shims so EmDash's Portable Text output looks like the Ghost markup the
   ghost-plain theme (built/screen.css) was written for. Not part of the theme. */

/* EmDash's <hr> carries its own scoped margin and border; restore the theme's hr. */
main hr.emdash-break.emdash-break-line { margin: 24px auto; border: 0; }

/* Ghost wrapped quote text in <p>; EmDash renders a one-paragraph quote as bare
   <blockquote>. Same hanging quote marks as `blockquote p:first-child:before/p:after`. */
blockquote:not(:has(> p))::before { content: open-quote; position: absolute; height: 16px; transform: translateX(-100%); }
blockquote:not(:has(> p))::after { content: close-quote; position: absolute; height: 16px; transform: translateX(1px); }

/* <center> from Markdown cards is imported as a centred paragraph. */
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }
