/* Restore the discovery layout where the theme bundle emits shared header rules later. */
:is(.help-page, .hub-page) .hub-page__discovery .hub-page__tags {
	justify-self: stretch;
}

:is(.help-page, .hub-page) .hub-page__discovery .hub-page__tags > a,
:is(.help-page, .hub-page) .hub-page__discovery .hub-page__tag-more > summary {
	font-weight: 500;
}

.help-discovery .hub-page__tag-menu {
	margin: 0;
}

.help-discovery .hub-page__tag-menu > a {
	white-space: normal;
}

@media (max-width: 1100px) {
	:is(.help-page, .hub-page) .hub-page__discovery .hub-page__tag-more {
		position: static;
	}

	:is(.help-page, .hub-page) .hub-page__discovery .hub-page__tag-menu {
		left: 0;
		transform: none;
	}
}

@media (max-width: 640px) {
	:is(.help-page, .hub-page) .hub-page__discovery .hub-page__tag-menu {
		width: min(280px, calc(100vw - 36px));
	}
}

.hub-page__tags .hub-page__nav-label {
	color: #fff;
}
