/*
 * Step headings in the article: "Step 3" as a small badge, then the step's
 * title if it has one. Headings stop below the pinned site header
 * (--pst-header-offset, published by the theme) when a link jumps to them.
 * The admin bar is not added here: core's admin-bar.css already puts its
 * height in the root's scroll-padding-top, and the step bar's reading line
 * (src/blocks/step-bar/view.ts) adds that padding to this margin, so jumps
 * and the current step agree.
 */
.pst-step {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	scroll-margin-top: calc(var(--pst-header-offset, 0px) + 16px);
}

.pst-step__number {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border-radius: var(--wp--preset--border-radius--sm, 6px);
	background: var(--wp--preset--color--action-soft, #e6f3fa);
	color: var(--wp--preset--color--action-strong, #0f5bb8);
	font-family: var(--wp--preset--font-family--body, inherit);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

/* A step with no title: the badge alone would look lost, so it grows a little. */
.pst-step__number:only-child {
	padding: 7px 14px;
	font-size: 0.9375rem;
}

/* The empty anchor that carries the step id when the heading has its own id. */
.pst-step__anchor {
	scroll-margin-top: calc(var(--pst-header-offset, 0px) + 16px);
}

/* "Continue with Step N", before the page links of a paged tutorial. */
.pst-continue {
	margin: var(--wp--preset--spacing--60, 2rem) 0 0;
}

.pst-continue a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 22px;
	border-radius: var(--wp--preset--border-radius--full, 999px);
	background: var(--wp--preset--color--action, #1473e6);
	color: var(--wp--preset--color--on-action, #fff);
	font-weight: 700;
	text-decoration: none;
}

.pst-continue a:hover {
	background: var(--wp--preset--color--contrast, #16181d);
	color: var(--wp--preset--color--base, #fff);
}

.pst-continue a:focus-visible {
	outline: 2px solid var(--wp--preset--color--action, #1473e6);
	outline-offset: 2px;
}
