/* Theme-owned box styles. Legacy class names keep existing authored HTML intact. */
:is(.su-box, .dainote-box) { margin: 0 0 1.5em; border-width: 2px; border-style: solid; }
:is(.su-box-title, .dainote-box__title) { display: block; padding: .5em 1em; font-weight: 700; font-size: 1.1em; }
:is(.su-box-content, .dainote-box__content) { background-color: #fff; color: #444; padding: 1em; }
:is(.su-box-style-soft .su-box-title, .dainote-box--soft .dainote-box__title) { background-image: url('../assets/box-styles/soft.png'); background-position: 0 0; background-repeat: repeat-x; }
:is(.su-u-clearfix, .dainote-box__content)::after { content: ""; display: table; clear: both; }
:is(.su-u-trim, .dainote-box__content) > :first-child { margin-top: 0; }
:is(.su-u-trim, .dainote-box__content) > :last-child { margin-bottom: 0; }
/* Native paragraph blocks use the compact component rhythm. Legacy HTML is unchanged. */
:is(.post-content__text, .editor-styles-wrapper) .dainote-box:not(.dainote-box--legacy) > .dainote-box__content p:not(:where(table *)) { margin: 0 0 1em; font-size: inherit; line-height: inherit; color: inherit; }
:is(.post-content__text, .editor-styles-wrapper) .dainote-box:not(.dainote-box--legacy) > .dainote-box__content p:not(:where(table *)):last-child { margin-bottom: 0; }
:is(.post-content__text, .editor-styles-wrapper) .dainote-box:not(.dainote-box--legacy) > .dainote-box__content :is(ul, ol):not(:where(table *)) { padding: 0 0 0 1.5em; background: transparent; list-style: revert; }
:is(.post-content__text, .editor-styles-wrapper) .dainote-box:not(.dainote-box--legacy) > .dainote-box__content li:not(:where(table *)) { background: none; padding: 0; list-style: inherit; }
:is(.post-content__text, .editor-styles-wrapper) .dainote-box:not(.dainote-box--legacy) > .dainote-box__content li:not(:where(table *))::before { content: none; }
.editor-styles-wrapper .dainote-box__content .block-editor-block-list__layout > :first-child { margin-top: 0; }
.editor-styles-wrapper .dainote-box__content .block-editor-block-list__layout > :last-child { margin-bottom: 0; }
.editor-styles-wrapper .dainote-box__title { margin: 0; }
.editor-styles-wrapper .dainote-box .block-list-appender { position: relative; }
