/**
 * Stamp: hb290a
 * HB-290 — preserve intentional content group spacing + image vertical rhythm.
 * Do NOT edit index-C7BUmI7G.js / index-BN2ZtJyR.css.
 * Order of blocks is fixed in the paste/localize pipeline; this overlay only
 * restores visible spacing (empty p / double br) and image margins.
 */

/* Undo crush: consecutive <br> and empty spacer paragraphs stay visible. */
html.storefront-root .news-article-content br + br,
html.storefront-root .tutorial-content br + br,
html.storefront-root .product-description-content br + br,
html.storefront-root .unified-content br + br,
html.storefront-root .html-content-light br + br,
html.admin-root .admin-rich-text-preview br + br,
html.admin-root .html-content-light br + br,
html.admin-root [contenteditable].html-content-light br + br,
.news-article-content br + br,
.tutorial-content br + br,
.product-description-content br + br,
.unified-content br + br,
.html-content-light br + br,
.admin-rich-text-preview br + br,
[contenteditable].html-content-light br + br {
  display: revert !important;
}

html.storefront-root .news-article-content p:empty,
html.storefront-root .tutorial-content p:empty,
html.storefront-root .product-description-content p:empty,
html.storefront-root .unified-content p:empty,
html.storefront-root .html-content-light p:empty,
html.admin-root .admin-rich-text-preview p:empty,
html.admin-root .html-content-light p:empty,
html.admin-root [contenteditable].html-content-light p:empty,
.news-article-content p:empty,
.tutorial-content p:empty,
.product-description-content p:empty,
.unified-content p:empty,
.html-content-light p:empty,
.admin-rich-text-preview p:empty,
[contenteditable].html-content-light p:empty {
  display: block !important;
  min-height: 0.85em !important;
  margin: 0.35em 0 !important;
  padding: 0 !important;
}

/* Image / figure vertical rhythm (center already preferred elsewhere). */
html.storefront-root .news-article-content img,
html.storefront-root .tutorial-content img,
html.storefront-root .product-description-content img,
html.storefront-root .unified-content img,
html.storefront-root .html-content-light img,
html.admin-root .admin-rich-text-preview img,
html.admin-root .html-content-light img,
html.admin-root [contenteditable].html-content-light img,
.news-article-content img,
.tutorial-content img,
.product-description-content img,
.unified-content img,
.html-content-light img,
.admin-rich-text-preview img,
[contenteditable].html-content-light img {
  display: block !important;
  margin-top: 1.15rem !important;
  margin-bottom: 1.15rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

html.storefront-root .news-article-content figure,
html.storefront-root .tutorial-content figure,
html.storefront-root .product-description-content figure,
html.storefront-root .unified-content figure,
html.storefront-root .html-content-light figure,
html.admin-root .admin-rich-text-preview figure,
html.admin-root .html-content-light figure,
html.admin-root [contenteditable].html-content-light figure,
.news-article-content figure,
.tutorial-content figure,
.product-description-content figure,
.unified-content figure,
.html-content-light figure,
.admin-rich-text-preview figure,
[contenteditable].html-content-light figure {
  margin: 1.15rem auto !important;
  text-align: center !important;
}

/* Broken empty image holes only — hide figures with no usable img. */
html.storefront-root .news-article-content figure:not(:has(img[src]:not([src=""]):not([src="#"]))),
html.storefront-root .tutorial-content figure:not(:has(img[src]:not([src=""]):not([src="#"]))),
html.storefront-root .product-description-content figure:not(:has(img[src]:not([src=""]):not([src="#"]))),
html.admin-root .admin-rich-text-preview figure:not(:has(img[src]:not([src=""]):not([src="#"]))),
.news-article-content figure:not(:has(img[src]:not([src=""]):not([src="#"]))),
.tutorial-content figure:not(:has(img[src]:not([src=""]):not([src="#"]))),
.product-description-content figure:not(:has(img[src]:not([src=""]):not([src="#"]))),
.admin-rich-text-preview figure:not(:has(img[src]:not([src=""]):not([src="#"]))) {
  display: none !important;
}

/* Prefs: justify body; captions stay centered + italic (caption-auto-italic.css). */
html.storefront-root .news-article-content p:not(.giasy-image-caption):not(.image-caption):not(.wp-caption-text),
html.storefront-root .tutorial-content p:not(.giasy-image-caption):not(.image-caption):not(.wp-caption-text),
html.storefront-root .product-description-content p:not(.giasy-image-caption):not(.image-caption):not(.wp-caption-text),
.news-article-content p:not(.giasy-image-caption):not(.image-caption):not(.wp-caption-text),
.tutorial-content p:not(.giasy-image-caption):not(.image-caption):not(.wp-caption-text),
.product-description-content p:not(.giasy-image-caption):not(.image-caption):not(.wp-caption-text) {
  text-align: justify;
  text-justify: inter-word;
}
