/* Mobile header fit and tap-target corrections for the companion CDD theme. */
@media (max-width: 640px) {
	body .cdd-header__inner {
		gap: 8px;
		padding-left: 14px;
		padding-right: 14px;
	}

	body .cdd-logo {
		flex: 1 1 auto;
		gap: 9px;
		overflow: hidden;
	}

	body .cdd-logo .custom-logo-link {
		flex: 0 0 42px;
	}

	body .cdd-logo img,
	body .cdd-header.is-stuck .cdd-logo img {
		width: 42px;
		max-height: 42px;
	}

	body .cdd-logo__text {
		min-width: 0;
		overflow: hidden;
	}

	body .cdd-logo__name {
		font-size: clamp(.9rem, 4vw, 1rem);
		overflow: hidden;
		text-overflow: ellipsis;
	}

	body .cdd-lang {
		flex: 0 0 auto;
	}

	body .cdd-lang a {
		min-width: 28px;
		min-height: 44px;
		padding-right: 5px;
		padding-left: 5px;
	}

	body .cdd-nav-toggle {
		flex: 0 0 46px;
		width: 46px;
		min-width: 46px;
		height: 46px;
	}
}

/* Preserve the important controls at legacy 320px phone widths. */
@media (max-width: 340px) {
	body .cdd-logo {
		overflow: visible;
	}

	body .cdd-logo__text {
		display: none;
	}
}
