/* Styles are scoped to blocks modified by AI Layout; other content is untouched. */
:where(.entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.ai-layout-style-editorial,.ai-layout-style-minimal,.ai-layout-style-bookish) {
  box-sizing: border-box;
  max-width: min(100%, 740px);
  overflow-wrap: break-word;
}
:where(.entry-content, .wp-block-post-content, .editor-styles-wrapper) p.ai-layout-style-editorial,
:where(.entry-content, .wp-block-post-content, .editor-styles-wrapper) p.ai-layout-style-minimal,
:where(.entry-content, .wp-block-post-content, .editor-styles-wrapper) p.ai-layout-style-bookish {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.9;
  margin-block: 0 1.25em;
  letter-spacing: .012em;
}
:where(.entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(h2,h3).ai-layout-style-editorial,
:where(.entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(h2,h3).ai-layout-style-minimal,
:where(.entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(h2,h3).ai-layout-style-bookish {
  line-height: 1.35;
  letter-spacing: -.015em;
  margin-block: 1.8em .8em;
  font-weight: 700;
}
:where(.entry-content, .wp-block-post-content, .editor-styles-wrapper) h2.ai-layout-style-editorial {font-size: clamp(24px,2.3vw,30px);padding: 0 0 .48em;border-bottom:2px solid #bd7858;}
:where(.entry-content, .wp-block-post-content, .editor-styles-wrapper) h3.ai-layout-style-editorial {font-size: clamp(20px,2vw,23px);padding-left:.65em;border-left:3px solid #bd7858;}
:where(.entry-content, .wp-block-post-content, .editor-styles-wrapper) .wp-block-quote.ai-layout-style-editorial {border-left:4px solid #bd7858;background:#fbf6f1;color:#44362f;padding:1.1em 1.4em;margin-block:1.7em;}
:where(.entry-content, .wp-block-post-content, .editor-styles-wrapper) h2.ai-layout-style-minimal {font-size:clamp(23px,2.2vw,28px);padding-bottom:.5em;border-bottom:1px solid #c7cbd0;}
:where(.entry-content, .wp-block-post-content, .editor-styles-wrapper) h3.ai-layout-style-minimal {font-size:clamp(19px,1.8vw,22px);}
:where(.entry-content, .wp-block-post-content, .editor-styles-wrapper) .wp-block-quote.ai-layout-style-minimal {border-left:2px solid #767e88;padding:.5em 1.35em;color:#4a515a;margin-block:1.7em;}
:where(.entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(h2,h3).ai-layout-style-bookish {font-family:Georgia,'Noto Serif SC','Songti SC',serif;}
:where(.entry-content, .wp-block-post-content, .editor-styles-wrapper) h2.ai-layout-style-bookish {font-size:clamp(25px,2.4vw,31px);}
:where(.entry-content, .wp-block-post-content, .editor-styles-wrapper) h3.ai-layout-style-bookish {font-size:clamp(20px,2vw,23px);}
:where(.entry-content, .wp-block-post-content, .editor-styles-wrapper) p.ai-layout-style-bookish {font-family:Georgia,'Noto Serif SC','Songti SC',serif;line-height:2.05;}
:where(.entry-content, .wp-block-post-content, .editor-styles-wrapper) .wp-block-quote.ai-layout-style-bookish {font-family:Georgia,'Noto Serif SC','Songti SC',serif;border-left:3px solid #847560;padding:.7em 1.35em;background:#f8f6f1;margin-block:1.7em;}
@media (prefers-color-scheme:dark){
  :where(.entry-content, .wp-block-post-content, .editor-styles-wrapper) .wp-block-quote.ai-layout-style-editorial,
  :where(.entry-content, .wp-block-post-content, .editor-styles-wrapper) .wp-block-quote.ai-layout-style-bookish {background:rgba(150,130,110,.13);color:inherit;}
}

/* v0.3.2 safe layout: role styling on existing paragraphs, no block reconstruction */
:where(.entry-content,.wp-block-post-content,.editor-styles-wrapper) p.ai-layout-role-h2 {font-size:clamp(24px,2.3vw,30px)!important;font-weight:700;line-height:1.35;margin-block:1.8em .8em;letter-spacing:-.015em;}
:where(.entry-content,.wp-block-post-content,.editor-styles-wrapper) p.ai-layout-role-h3 {font-size:clamp(20px,2vw,23px)!important;font-weight:700;line-height:1.4;margin-block:1.5em .65em;}
:where(.entry-content,.wp-block-post-content,.editor-styles-wrapper) p.ai-layout-role-quote {font-style:italic;padding:1.1em 1.4em;margin-block:1.7em;}
:where(.entry-content,.wp-block-post-content,.editor-styles-wrapper) p.ai-layout-role-h2.ai-layout-style-editorial {border-bottom:2px solid #bd7858;padding-bottom:.48em;}
:where(.entry-content,.wp-block-post-content,.editor-styles-wrapper) p.ai-layout-role-h3.ai-layout-style-editorial {border-left:3px solid #bd7858;padding-left:.65em;}
:where(.entry-content,.wp-block-post-content,.editor-styles-wrapper) p.ai-layout-role-quote.ai-layout-style-editorial {border-left:4px solid #bd7858;background:#fbf6f1;}
:where(.entry-content,.wp-block-post-content,.editor-styles-wrapper) p.ai-layout-role-h2.ai-layout-style-minimal {border-bottom:1px solid #c7cbd0;padding-bottom:.5em;}
:where(.entry-content,.wp-block-post-content,.editor-styles-wrapper) p.ai-layout-role-quote.ai-layout-style-minimal {border-left:2px solid #767e88;}
:where(.entry-content,.wp-block-post-content,.editor-styles-wrapper) p.ai-layout-role-h2.ai-layout-style-bookish,
:where(.entry-content,.wp-block-post-content,.editor-styles-wrapper) p.ai-layout-role-h3.ai-layout-style-bookish {font-family:Georgia,'Noto Serif SC','Songti SC',serif;}
:where(.entry-content,.wp-block-post-content,.editor-styles-wrapper) p.ai-layout-role-quote.ai-layout-style-bookish {border-left:3px solid #847560;background:#f8f6f1;}
