/*
 * Stand-in: site title + tagline type beside a logo mark (Nova Blocks Logo block). See the PHP file for the issue.
 * Scope: `.site-logo + .site-info` (title/tagline next to a mark; Nova's own selector). Tokens only.
 */
.site-logo + .site-info .site-title {
	/* Keep the theme's site-title role (family, weight, spacing); size: 4/3 of the navigation role, fixed like the
	   mark. (`--theme-site-title-font-size` is not used: its Style Manager field is disabled, so it is a constant.) */
	--current-line-height: 1.15;
	font-size: calc(var(--theme-navigation-font-size) * 4 / 3 * var(--font-size-base, 1) * 1px);
}

.site-logo + .site-info .site-title a {
	font-size: inherit;
}

.site-logo + .site-info .site-description {
	--current-font-family: var(--theme-meta-font-family);
	--current-font-weight: var(--theme-meta-font-weight);
	--current-font-style: var(--theme-meta-font-style);
	--current-letter-spacing: var(--theme-meta-letter-spacing);
	--current-text-transform: var(--theme-meta-text-transform);
	--current-line-height: 1.3;
	font-size: calc(var(--theme-navigation-font-size) * 13 / 15 * var(--font-size-base, 1) * 1px);
	/* Quiet tone of the current palette variation: pale on a dark band, soft ink on a light one. */
	color: color-mix(in srgb, var(--sm-current-fg1-color) 75%, var(--sm-current-bg-color));
}

/* Desktop header row (Nova's breakpoint, 1024 px). Nova's Split Nav layout (`logo-left-center-right`) gives its two
   side items, the brand and the last item (e.g. the buttons), equal shares of the leftover width and lets both shrink
   to nothing (`flex: 1 1 0; min-width: 0`): a brand or a button group wider than that share wraps, squeezes the mark
   or overlaps the menu. Here each side item keeps at least its one-line width (the product fix: side slots sized to
   their content). The menu stays centred whenever both sides fit in equal shares and moves aside only when one of
   them needs more; if the row is too narrow for all three, the menu (the only item left free to shrink) wraps first.
   The site name and the tagline stay on one line and the mark never shrinks. */
@media only screen and (min-width: 1024px) {
	.site-logo + .site-info .site-title,
	.site-logo + .site-info .site-description {
		white-space: nowrap;
	}

	.site-branding > .site-logo:has(+ .site-info) {
		flex-shrink: 0;
	}

	/* Same selector shape as Nova's slot rule, one class stronger (Nova uses an id inside :is() for its weight). */
	:is(.nb-header[data-layout="logo-left-center-right"], #pxg-lt-bridge.specificity) .nb-header-row__inner-container[class] > .wp-block[class] > :is(:first-child, :last-child):not(:only-child) {
		min-width: max-content;
	}
}

/* Phone bar (Nova's mobile header, below 1024 px), mobile pass 27 Nov:
   - The brand is one tap target. Nova prints the mark and the name as two links to Home (26 and 23 px tall). The
     name link's hit area covers the whole brand (mark, name, tagline), centred on the brand, as tall as the bar when
     the header sets a bar height (--pxg-mobile-bar-height, from the stand-in nova-mobile-header-layout; mobile pass
     iteration 3) and at least 44 px tall (the minimum touch target) otherwise; the mark's link stays underneath with
     the same destination. No pixel changes.
   - Below 360 px the tagline leaves the bar: with it, the centred brand runs into the menu button. The name and the
     mark stay; the tagline is still in the footer. */
.nb-header--mobile .site-branding:has(> .site-logo + .site-info .site-title a) {
	position: relative;
}

.nb-header--mobile .site-branding > .site-logo + .site-info .site-title a::after {
	content: "";
	position: absolute;
	inset: min(0px, calc(50% - var(--pxg-mobile-bar-height, 44px) / 2)) 0;
	z-index: 1;
}

@media not screen and (min-width: 360px) {
	.nb-header--mobile .site-logo + .site-info .site-description {
		display: none;
	}
}
