/* The page that draws one pattern alone. The theme styles the pattern; this
   stands in for the page a pattern would normally sit in: a column of the
   theme's content width, with wide and full-width blocks breaking out of it. */
html {
	margin-top: 0 !important;
}

body.rpkit-pattern-preview {
	margin: 0;
	min-height: 0;
}

.rpkit-pattern-stage {
	--rpkit-stage-pad: 1.25rem;
	display: flow-root;
	margin: 0;
	padding: 0 var(--rpkit-stage-pad);
}

.rpkit-pattern-stage > * {
	max-width: var(--wp--style--global--content-size, 720px);
	margin-left: auto;
	margin-right: auto;
}

.rpkit-pattern-stage > .alignwide {
	max-width: var(--wp--style--global--wide-size, 1100px);
}

.rpkit-pattern-stage > .alignfull {
	max-width: none;
	margin-left: calc(var(--rpkit-stage-pad) * -1);
	margin-right: calc(var(--rpkit-stage-pad) * -1);
}

/* A full-width group keeps its words off the edge of the screen. */
.rpkit-pattern-stage > .wp-block-group.alignfull {
	padding-left: var(--rpkit-stage-pad);
	padding-right: var(--rpkit-stage-pad);
}

.rpkit-pattern-stage > :first-child {
	margin-top: 0;
}

.rpkit-pattern-stage > :last-child {
	margin-bottom: 0;
}

.rpkit-pattern-stage > :first-child:not(.alignfull) {
	margin-top: 2rem;
}

.rpkit-pattern-stage > :last-child:not(.alignfull) {
	margin-bottom: 2rem;
}
