/*
 * The Option 1 / 2 / 3 preview bar. Deliberately plain and the same in every
 * option, so it reads as a tool and not as part of any design.
 */

html {
	scroll-padding-top: 6rem;
}

.acc-switch {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 1000;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	padding: 0.5rem clamp(0.75rem, 3vw, 1.5rem);
	background: #1e2723;
	color: #f4f6f3;
	font: 400 0.9375rem/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 18px rgba(0, 0, 0, 0.18);
}

.acc-switch__label {
	margin: 0;
	flex: 1 1 18rem;
	color: #d9dfd9;
}

.acc-switch__label strong {
	color: #fff;
	font-weight: 700;
}

.acc-switch__list {
	display: flex;
	flex: 0 1 auto;
	gap: 0.375rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.acc-switch__list li {
	flex: 1 1 0;
	min-width: 0;
}

.acc-switch__link {
	display: grid;
	justify-items: center;
	align-content: center;
	min-height: 2.75rem;
	padding: 0.3rem 0.9rem;
	border: 1.5px solid #8b9690;
	border-radius: 6px;
	color: #f4f6f3;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}

.acc-switch__link:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

.acc-switch__link:focus-visible {
	outline: 3px solid #ffd76a;
	outline-offset: 2px;
}

.acc-switch__link.is-current {
	border-color: #fff;
	background: #fff;
	color: #1e2723;
}

.acc-switch__num {
	font-weight: 700;
}

.acc-switch__name {
	font-size: 0.75rem;
	letter-spacing: 0.02em;
}

@media (max-width: 40rem) {
	.acc-switch {
		padding-block: 0.5rem 0.625rem;
	}

	.acc-switch__label {
		flex-basis: 100%;
		font-size: 0.8125rem;
	}

	.acc-switch__more {
		display: none;
	}

	.acc-switch__list {
		flex: 1 1 100%;
	}

	.acc-switch__link {
		padding-inline: 0.25rem;
	}
}
