/*
 * Light and dark switch.
 *
 * The button ships as the pattern "Light and dark switch" and is placed in the
 * header. It only shows when the color scheme is set to "Visitor chooses",
 * which puts data-takt-scheme-mode="user" on the html element. In the editor
 * the rule below is scoped away, so the button stays visible while editing.
 */
html:not([data-takt-scheme-mode="user"]) .takt-scheme-toggle {
	display: none;
}
.takt-scheme-toggle__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
}
.takt-scheme-toggle__button:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.takt-scheme-toggle__button:focus-visible { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 2px; }
.takt-scheme-toggle__label { display: none; }
.takt-header__nav.is-style-takt-compact-menu .wp-block-navigation__responsive-container-content > .takt-scheme-toggle {
	width: 100%;
	grid-column: 1 / -1;
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--preset--color--line);
}
.takt-header__nav.is-style-takt-compact-menu .wp-block-navigation__responsive-container-content > .takt-scheme-toggle .takt-scheme-toggle__button {
	width: auto;
	min-height: 2.75rem;
	gap: 0.75rem;
	padding-inline: 0.75rem;
	border-radius: var(--wp--custom--radius--small);
	font: inherit;
	color: inherit;
}
.takt-header__nav.is-style-takt-compact-menu .wp-block-navigation__responsive-container-content .takt-scheme-toggle__label { display: inline; }
.takt-scheme-toggle__moon { display: none; }
html[data-takt-scheme="dark"] .takt-scheme-toggle__sun { display: none; }
html[data-takt-scheme="dark"] .takt-scheme-toggle__moon { display: block; }
