/* One scale for page titles, section headings and card titles across the theme. */
:root {
	--heading-font: var(--font-primary);
	--heading-weight: 600;
	--heading-page-size: clamp(36px, 4.2vw, 64px);
	--heading-section-size: clamp(30px, 3.4vw, 48px);
	--heading-subsection-size: clamp(22px, 2.2vw, 28px);
	--heading-card-size: 18px;
	--heading-section-line: 1.12;
	--heading-card-line: 1.35;
	--heading-section-gap: 32px;
}

body :is(h1, h2, h3, h4, h5, h6) {
	font-family: var(--heading-font);
	font-weight: var(--heading-weight);
	text-align: left;
}

body :is(.site-main, .concept-page) h1,
body.woocommerce div.product .product_title {
	font-size: var(--heading-page-size);
	font-weight: var(--heading-weight);
	line-height: 1.1;
	letter-spacing: -.04em;
	text-align: left;
}

body :is(.site-main, .concept-page) h2 {
	font-size: var(--heading-section-size);
	font-weight: var(--heading-weight);
	line-height: var(--heading-section-line);
	letter-spacing: -.035em;
	text-align: left;
}

body :is(.site-main, .concept-page) :is(h3, h4) {
	font-size: var(--heading-subsection-size);
	font-weight: var(--heading-weight);
	line-height: 1.3;
	letter-spacing: -.02em;
	text-align: left;
}

/* These h3 elements introduce full sections rather than individual cards. */
body .concept-page :is(.concept-category-panel__copy, .application-panel) h3 {
	font-size: var(--heading-section-size);
	font-weight: var(--heading-weight);
	line-height: var(--heading-section-line);
	letter-spacing: -.035em;
}

body :is(.concept-featured-card, .concept-category-card, .concept-category-product, .concept-insight-card, .concept-blueprint-card, .featured-product-card, .collection-product-card, .why-card, .article-card, .resource-card, .catalog-product, .woocommerce ul.products li.product) :is(h2, h3, h4) {
	font-size: var(--heading-card-size);
	font-weight: var(--heading-weight);
	line-height: var(--heading-card-line);
	letter-spacing: -.02em;
	text-align: left;
}

/* Keep headings and their labels on the same left edge as their section. */
body :is(.concept-section-head, .concept-featured__head, .concept-blueprint__head, .concept-insights__head, .section-heading, .featured-products__heading, .application-heading, .resources-heading) {
	margin-bottom: var(--heading-section-gap);
	text-align: left;
}

body .concept-featured__head {
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 24px;
}

body .concept-blueprint__head {
	grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr);
	gap: 32px;
}

body .application-showcase .concept-applications__head {
	padding-left: 0;
	margin-bottom: var(--heading-section-gap);
}

body :is(.concept-section-head, .concept-featured__head, .concept-blueprint__head, .concept-insights__head, .concept-faq__head) h2,
body .application-showcase h2 {
	max-width: 26ch;
	margin: 0;
}

body :is(.why-choose__heading, .compact-section-heading, .category-collections__intro) {
	margin-left: 0;
	text-align: left;
}

body .concept-section-head p,
body .concept-featured__head > div > p:first-child,
body .concept-blueprint__eyebrow,
body .application-showcase__eyebrow,
body .concept-insights__head p,
body .concept-faq__head > p {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-align: left;
}

body .concept-featured__head > div > p:last-child,
body .concept-blueprint__head > p:last-child,
body .application-showcase .concept-applications__head > .application-showcase__intro {
	font-size: 15px;
	line-height: 1.6;
	text-transform: none;
	letter-spacing: 0;
}

body .concept-featured__head > div > p:last-child { margin: 14px 0 0; }

/* Compact interface labels keep their own role within the shared font system. */
body .catalog-sidebar h2 {
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: 0;
}

body :is(.catalog-dialog, .catalog-empty, .woocommerce .cart_totals) h2 {
	font-size: var(--heading-subsection-size);
	line-height: 1.3;
}

body .concept-blueprint__eyebrow { color: var(--concept-primary); }

@media (max-width: 900px) {
	body .concept-blueprint__head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 600px) {
	:root {
		--heading-page-size: 34px;
		--heading-section-size: 28px;
		--heading-subsection-size: 22px;
		--heading-card-size: 16px;
		--heading-section-gap: 24px;
	}
	body .concept-featured__head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	body .concept-featured__head > a { justify-self: start; }
}

:root { --saveions-eyebrow-color: #0074c8; }
body [class*="eyebrow"], body .concept-section-head p, body .concept-insights__head p, body .concept-faq__head > p { color:var(--saveions-eyebrow-color) !important; }
