*,
*::before,
*::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	font-size: var(--type-base-size, 100%);
	/* Match the black topbar so rubber-band / overscroll at the top
	   does not flash the white page background above the site chrome. */
	background-color: #050810;
	overscroll-behavior-y: none;
	overflow-x: clip;
}

body {
	margin: 0;
	font-family: var(--font-family);
	font-weight: 400;
	color: var(--color-text);
	background: var(--color-page-background);
	line-height: var(--line-height-base, 1.6);
	overscroll-behavior-y: none;
}

/*
 * Contain page section stacking (transforms / isolation) below the sticky header.
 * Safari/WebKit otherwise lets composited layers paint over position:sticky chrome.
 */
.site-main {
	position: relative;
	z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-link, var(--color-bronze)); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--color-gold); }

h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: var(--type-heading-weight, 600); color: var(--color-heading); font-family: var(--font-heading, var(--font-family)); }

.container {
	width: min(100% - 2rem, var(--container-width));
	margin-inline: auto;
}

.section { padding-block: var(--section-space); }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link:focus {
	position: fixed; top: 1rem; left: 1rem; z-index: 9999;
	background: var(--color-white); padding: .75rem 1rem; clip: auto; width: auto; height: auto;
}

.label {
	font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
	color: var(--color-gold); font-weight: 500;
}

.entry-content > * + * { margin-top: 1rem; }

/*
 * Soft reading surface — unifies long-form copy (product tabs, blog,
 * corporate, standard pages) with a gentle warm gradient.
 */
:root {
	--da-prose-pad-y: clamp(1.25rem, 3vw, 1.85rem);
	--da-prose-pad-x: clamp(1.2rem, 3.2vw, 1.95rem);
	--da-prose-radius: 16px;
	--da-prose-border: rgba(52, 130, 197, 0.08);
	--da-prose-shadow: 0 6px 20px rgba(24, 25, 27, 0.028);
	--da-prose-bg: linear-gradient(
		165deg,
		#ffffff 0%,
		#FAFCFF 48%,
		#F0F6FB 100%
	);
}

.da-prose-surface {
	box-sizing: border-box;
	padding: var(--da-prose-pad-y) var(--da-prose-pad-x);
	border-radius: var(--da-prose-radius);
	border: 1px solid var(--da-prose-border);
	background: var(--da-prose-bg);
	box-shadow: var(--da-prose-shadow);
}

/*
 * Readable prose measure inside page containers (product tabs, corporate,
 * blog, standard pages). Keeps long copy from stretching edge-to-edge.
 */
.standard-page-layout .entry-content,
.blog-archive-layout .entry-content,
.archive-layout .entry-content,
.search-layout .entry-content,
.corporate-page__content.entry-content,
.single-post__content.entry-content,
.references-page__intro-body.entry-content,
.content-surface-card .entry-content {
	max-width: min(100%, 52rem);
	width: 100%;
}

.standard-page-layout .entry-content,
.single-post__content.entry-content,
.references-page__intro-body.entry-content {
	box-sizing: border-box;
	padding: var(--da-prose-pad-y) var(--da-prose-pad-x);
	border-radius: var(--da-prose-radius);
	border: 1px solid var(--da-prose-border);
	background: var(--da-prose-bg);
	box-shadow: var(--da-prose-shadow);
}

/* Account / cart / checkout use their own shells — never nest in prose card. */
body.woocommerce-account.content-surface-card .page-content,
body.woocommerce-cart.content-surface-card .page-content,
body.woocommerce-checkout.content-surface-card .page-content,
.woocommerce-account .standard-page-layout .entry-content,
.woocommerce-cart .standard-page-layout .entry-content,
.woocommerce-checkout .standard-page-layout .entry-content,
.woocommerce-account .standard-page-layout.content-surface-card .page-content,
.woocommerce-cart .standard-page-layout.content-surface-card .page-content,
.woocommerce-checkout .standard-page-layout.content-surface-card .page-content {
	max-width: none;
	width: 100%;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.woocommerce-account .standard-page-layout .entry-content > *,
.woocommerce-cart .standard-page-layout .entry-content > *,
.woocommerce-checkout .standard-page-layout .entry-content > * {
	max-width: none;
}

.standard-page-layout .entry-content > *,
.corporate-page__content.entry-content > *,
.single-post__content.entry-content > * {
	max-width: 100%;
}

.woocommerce-account .standard-page-layout .entry-content > *,
.woocommerce-cart .standard-page-layout .entry-content > *,
.woocommerce-checkout .standard-page-layout .entry-content > * {
	max-width: none;
}
