/**
 * Shared page-title scale.
 *
 * One responsive size for the title (h1) and section heading (h2) of the
 * inner, utility and product pages, taken from theme.json's
 * settings.custom.typography tokens (--wp--custom--typography--page-title /
 * --section-title). theme.json's global h1/h2 elements are display sizes
 * (up to ~110px / ~64px) meant for the marketing homepage; before this file
 * each page shrank them on its own (or not at all). Only the classes below
 * are targeted: the shop banner, homepage sections, product-card titles,
 * policy pages, navigation and form headings keep their own sizes.
 */

.u3ds-page-hero__headline,
.u3ds-product__title {
	font-size: var(--wp--custom--typography--page-title);
	line-height: 1.1;
	overflow-wrap: break-word;
	text-wrap: balance;
}

/* A constrained layout centres any child narrower than the container with
   auto margins. At the old display size the headline filled the container, so
   it read as left-aligned; at the page-title size it is narrower, so keep the
   hero text on the same left edge as its eyebrow. */
.u3ds-page-hero__eyebrow,
.u3ds-page-hero__headline,
.u3ds-page-hero__subcopy {
	margin-inline: 0 !important;
}

.u3ds-page-hero__headline {
	max-width: 24ch;
}

.u3ds-page-section__title,
.u3ds-product__section-title,
.u3ds-product__details .woocommerce-Tabs-panel > h2,
.u3ds-my-account .woocommerce > h2,
.u3ds-cart .wp-block-woocommerce-empty-cart-block h2 {
	font-size: var(--wp--custom--typography--section-title);
	line-height: 1.2;
	overflow-wrap: break-word;
}
