/* Tvoříme město — site styles on top of the Entangle Base design system.
   Tokens (colours, fonts) come from theme.json; this file only adds what the
   tokens cannot say. Loaded after the base (inc/assets.php, priority 20), and
   in the editor canvas. */

/* The logo: the city's coat of arms (assets/images/erb.svg) with the name of the site beside it
   in two lines of the page's own sans. The base's header knobs size the arms. */
:root {
	--logo-h: 68px;
	--logo-h-stuck: 52px;
}
@media (max-width: 980px) {
	:root {
		--logo-h: 58px;
		--logo-h-stuck: 48px;
	}
}
@media (max-width: 600px) {
	:root {
		--logo-h: 52px;
		--logo-h-stuck: 44px;
	}
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
}
.brand .brand__name {
	max-width: 5.5em;
	/* The name in the blue of the arms beside it. */
	color: var(--wp--preset--color--brand);
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 0.95;
	letter-spacing: -0.025em;
}
@media (max-width: 600px) {
	.brand .brand__name {
		font-size: 1.125rem;
	}
}

/* The menu of a phone lies on the blue: there the base turns the logo white
   (brightness + invert), which would melt the mark into one white patch. The
   logo goes in its own colours on a paper tile instead. */
.menu-overlay__top .brand img {
	padding: 6px 10px;
	border-radius: 8px;
	background: #fff;
	filter: none;
	box-sizing: content-box;
}

/* The logo keeps its own width in the header row. Pages of some plugins (the vote) load a global
   `img { max-width: 100% }`; inside a flex item with no width of its own that collapses an SVG to nothing. */
.site-header .brand {
	flex: none;
}
.site-header .brand .brand__logo {
	width: auto;
	max-width: none;
}
.menu-overlay__top .brand .brand__name {
	color: #fff;
}
