/* 0.1.7: shared article/editor rules. Loaded only on managed blog views/editors.
   No font-size changes to prose, headings, cards, navigation or property pages. */
:is(#hm-content-main.hm-blog .hm-blog-prose,.editor-styles-wrapper) {
 --hm-article-book:HMBlogBook,Avenir,'Avenir Next',Arial,sans-serif;
 --hm-article-bold:HMBlogBlack,Avenir,'Avenir Next',Arial,sans-serif;
}

/* One additional line of breathing room before a new section. No empty paragraphs. */
:is(#hm-content-main.hm-blog .hm-blog-prose,.editor-styles-wrapper) h2 {margin-top:72px;margin-bottom:17px}
:is(#hm-content-main.hm-blog .hm-blog-prose,.editor-styles-wrapper) h3 {margin-top:60px;margin-bottom:14px}
:is(#hm-content-main.hm-blog .hm-blog-prose,.editor-styles-wrapper) :is(h2,h3):first-child {margin-top:0}

/* Default content images are centred and capped, not stretched to fill the column.
   Explicit editor resize dimensions and wide/full alignment remain available.
   Gallery layouts, cover blocks and featured images are deliberately excluded. */
:is(#hm-content-main.hm-blog .hm-blog-prose,.editor-styles-wrapper) .wp-block-image:where(:not(.wp-block-gallery .wp-block-image)) {
 box-sizing:border-box;max-width:100%;margin-block:36px;margin-inline:auto;
}
:is(#hm-content-main.hm-blog .hm-blog-prose,.editor-styles-wrapper) .wp-block-image:where(:not(.wp-block-gallery .wp-block-image):not(.is-resized):not(.alignwide):not(.alignfull):not(.is-style-hm-image-wide)) {
 width:fit-content;max-width:min(100%,640px);
}
:is(#hm-content-main.hm-blog .hm-blog-prose,.editor-styles-wrapper) .wp-block-image:where(:not(.wp-block-gallery .wp-block-image)) img {
 display:block;width:auto;max-width:100%;height:auto;border-radius:12px;margin-inline:auto;
}
:is(#hm-content-main.hm-blog .hm-blog-prose,.editor-styles-wrapper) .wp-block-image.is-style-hm-image-compact:where(:not(.wp-block-gallery .wp-block-image)) {max-width:min(100%,420px)}
:is(#hm-content-main.hm-blog .hm-blog-prose,.editor-styles-wrapper) .wp-block-image.is-style-hm-image-medium:where(:not(.wp-block-gallery .wp-block-image)) {max-width:min(100%,640px)}
:is(#hm-content-main.hm-blog .hm-blog-prose,.editor-styles-wrapper) .wp-block-image:is(.is-style-hm-image-wide,.alignwide,.alignfull):where(:not(.wp-block-gallery .wp-block-image)) {width:100%;max-width:100%}
:is(#hm-content-main.hm-blog .hm-blog-prose,.editor-styles-wrapper) .wp-block-image:is(.is-style-hm-image-wide,.alignwide,.alignfull):where(:not(.wp-block-gallery .wp-block-image)) img {width:100%}
:is(#hm-content-main.hm-blog .hm-blog-prose,.editor-styles-wrapper) .wp-block-image.alignleft:where(:not(.wp-block-gallery .wp-block-image)) {margin-left:0;margin-right:24px}
:is(#hm-content-main.hm-blog .hm-blog-prose,.editor-styles-wrapper) .wp-block-image.alignright:where(:not(.wp-block-gallery .wp-block-image)) {margin-right:0;margin-left:24px}

/* Native WordPress buttons must not inherit the underlined prose-link styling. */
:is(#hm-content-main.hm-blog .hm-blog-prose,.editor-styles-wrapper) .wp-block-buttons {display:flex;flex-wrap:wrap;gap:12px;margin-block:28px 12px}
:is(#hm-content-main.hm-blog .hm-blog-prose,.editor-styles-wrapper) .wp-block-button {max-width:100%}
:is(#hm-content-main.hm-blog .hm-blog-prose,.editor-styles-wrapper) .wp-block-button__link {
 display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;
 min-height:48px;max-width:100%;padding:13px 23px;border:1px solid #202221;border-radius:28px;
 font:400 14px/1.5 var(--hm-article-bold);text-align:center;text-decoration:none;
 white-space:normal;overflow-wrap:anywhere;box-shadow:none;
 transition:box-shadow .15s,border-color .15s;
}
:is(#hm-content-main.hm-blog .hm-blog-prose,.editor-styles-wrapper) .wp-block-button__link:not(.has-background) {background:linear-gradient(110deg,#efd9f8,#d0f0fa)}
:is(#hm-content-main.hm-blog .hm-blog-prose,.editor-styles-wrapper) .wp-block-button__link:not(.has-text-color) {color:#191b1a}
:is(#hm-content-main.hm-blog .hm-blog-prose,.editor-styles-wrapper) .wp-block-button.is-style-outline .wp-block-button__link:not(.has-background) {background:transparent}
:is(#hm-content-main.hm-blog .hm-blog-prose,.editor-styles-wrapper) .wp-block-button__link:hover {text-decoration:none;box-shadow:0 3px 12px #26202e15}
:is(#hm-content-main.hm-blog .hm-blog-prose,.editor-styles-wrapper) .wp-block-button__link:focus-visible {outline:2px solid #242124;outline-offset:4px}
@media(max-width:760px) {
 :is(#hm-content-main.hm-blog .hm-blog-prose,.editor-styles-wrapper) h2 {margin-top:64px}
 :is(#hm-content-main.hm-blog .hm-blog-prose,.editor-styles-wrapper) h3 {margin-top:56px}
 :is(#hm-content-main.hm-blog .hm-blog-prose,.editor-styles-wrapper) :is(h2,h3):first-child {margin-top:0}
}
@media(prefers-reduced-motion:reduce) {
 :is(#hm-content-main.hm-blog .hm-blog-prose,.editor-styles-wrapper) .wp-block-button__link {transition:none}
}
