/*
 * Purview Reference — "new" badge for a menu item.
 * Option 1: give the Navigation Link block the extra CSS class "dwpr-nav-tools".
 * Option 2: put <span class="dwpr-nav-new">new</span> in a classic menu label.
 */
.dwpr-nav-new,
.dwpr-nav-tools .wp-block-navigation-item__label::after {
	display: inline-block;
	margin-left: .4em;
	padding: .05em .5em;
	border-radius: 999px;
	background: var(--wp--preset--color--purview, #0F766E);
	color: #fff;
	font-family: var(--wp--preset--font-family--mono, ui-monospace, monospace);
	font-size: .62em;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	vertical-align: .2em;
	line-height: 1.5;
}
.dwpr-nav-tools .wp-block-navigation-item__label::after { content: "new"; }

/* Language switcher [dw_lang_switch] */
.dw-lang {
	display: inline-flex;
	align-items: center;
	padding: 3px;
	gap: 2px;
	border: 1px solid var(--wp--preset--color--line, #E3E3DE);
	border-radius: 10px;
	background: var(--wp--preset--color--surface, #fff);
	font-family: var(--wp--preset--font-family--mono, ui-monospace, monospace);
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .06em;
	line-height: 1;
}
.dw-lang__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	min-height: 2.25rem;
	padding: 0 .5rem;
	border-radius: 7px;
	color: var(--wp--preset--color--muted, #555B66);
	text-decoration: none !important;
	transition: background-color .15s, color .15s;
}
.dw-lang__item:hover { color: var(--wp--preset--color--ink, #111318); background: var(--wp--preset--color--subtle, #F0F0EB); }
.dw-lang__item.is-current { background: var(--wp--preset--color--ink, #111318); color: #fff; }
.dw-lang__item:focus-visible { outline: 2px solid var(--wp--preset--color--accent, #2F4BE0); outline-offset: 2px; }
@media (max-width: 600px) {
	/* On small screens only show the other language, to keep the header on one line */
	.dw-lang__item.is-current { display: none; }
}
@media (max-width: 480px) {
	/* Make room for the switcher next to the menu and search buttons */
	.dw-header .dw-monogram { display: none !important; }
	.dw-header__nav { gap: .4rem !important; }
	.dw-lang { padding: 2px; }
	.dw-lang__item { min-width: 2rem; min-height: 2.5rem; padding: 0 .35rem; }
}
@media (max-width: 350px) {
	.dw-header .dw-brand .wp-block-site-title { font-size: .9rem !important; }
}
