/*
 * Neutralises Twenty Twenty-Five global styles and block layout spacing so the ported Shopify
 * stylesheet renders as it does on Shopify. Loaded after global styles and before holiday.css,
 * with selectors kept at low specificity so every holiday.css rule still wins.
 */

/* Twenty Twenty-Five body tracking; the Shopify font shorthand leaves letter-spacing at normal. */
body.stays {
	letter-spacing: normal;
}

.stays .wp-site-blocks,
.stays .wp-site-blocks > *,
.stays :where(.is-layout-flow, .is-layout-constrained) > * {
	margin-block: 0;
}

/* Restore browser-default block margins the Shopify markup relies on. */
.stays :where(p, h1, h2, h3, h4, h5, h6, ul, ol, dl, details, blockquote, table) {
	margin-block: revert;
}

.stays :where(h1, h2, h3, h4, h5, h6) {
	font-family: inherit;
	font-weight: bold;
	font-style: normal;
	line-height: inherit;
	letter-spacing: inherit;
	text-transform: none;
	color: inherit;
}
.stays :where(h1) { font-size: 2em; }
.stays :where(h2) { font-size: 1.5em; }
.stays :where(h3) { font-size: 1.17em; }
.stays :where(h4) { font-size: 1em; }
.stays :where(h5) { font-size: 0.83em; }
.stays :where(h6) { font-size: 0.67em; }

.stays :where(figure.wp-block-image, figure.wp-block-post-featured-image) {
	margin: 0;
}
.stays :where(.wp-block-image img) {
	vertical-align: baseline;
}
.stays :where(.wp-block-list, .wp-block-details, .entry-content) {
	box-sizing: border-box;
}
.stays :where(.wp-block-details summary) {
	display: list-item;
}

/* Twenty Twenty-Five list-item spacing; Shopify lists use browser defaults unless styled. */
.stays :where(.wp-block-list li) {
	margin-top: 0;
}
