/* ==========================================================================
   CultiWise design system – base
   Webfonts, element normalisation and the type scale. Scoped to .cw-page so
   the module never fights the surrounding theme styles.
   ========================================================================== */

/* Copy the Gilroy files to assets/fonts/ (see README) or delete this block
   if the theme already loads the family. */
@font-face {
	font-family: "Gilroy";
	src: url("../fonts/Gilroy-Regular.woff2") format("woff2"), url("../fonts/Gilroy-Regular.otf") format("opentype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Gilroy";
	src: url("../fonts/Gilroy-SemiBold.woff2") format("woff2"), url("../fonts/Gilroy-SemiBold.otf") format("opentype");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Gilroy";
	src: url("../fonts/Gilroy-Bold.woff2") format("woff2"), url("../fonts/Gilroy-Bold.otf") format("opentype");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Gilroy";
	src: url("../fonts/Gilroy-ExtraBold.woff2") format("woff2"), url("../fonts/Gilroy-ExtraBold.otf") format("opentype");
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Gilroy";
	src: url("../fonts/Gilroy-Black.woff2") format("woff2"), url("../fonts/Gilroy-Black.otf") format("opentype");
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

.cw-page {
	font-family: var(--cw-font-body);
	color: var(--cw-fg-primary);
	background: var(--cw-bg-default);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

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

.cw-page h1,
.cw-page h2,
.cw-page h3,
.cw-page h4,
.cw-page p,
.cw-page ul,
.cw-page li,
.cw-page figure {
	margin: 0;
	padding: 0;
}

.cw-page ul {
	list-style: none;
}

.cw-page a {
	color: var(--cw-primary-700);
	text-decoration: none;
	transition: color var(--cw-transition);
}

.cw-page a:hover,
.cw-page a:focus {
	color: var(--cw-primary-600);
}

.cw-page button {
	font: inherit;
	color: inherit;
	cursor: pointer;
}

.cw-page :focus-visible {
	outline: var(--cw-border-focus) solid var(--cw-ring);
	outline-offset: 2px;
}

.cw-page img,
.cw-page svg {
	display: block;
	max-width: 100%;
}

/* --- type scale --------------------------------------------------------- */

.cw-display {
	font-family: var(--cw-font-display);
	font-weight: var(--cw-weight-extrabold);
	font-size: clamp(30px, 4.2vw, 48px);
	line-height: 1.14;
	letter-spacing: -0.5px;
	text-transform: uppercase;
	text-wrap: balance;
}

.cw-h2 {
	font-family: var(--cw-font-display);
	font-weight: var(--cw-weight-extrabold);
	font-size: clamp(20px, 2.2vw, 28px);
	line-height: 1.33;
	text-transform: uppercase;
}

.cw-h3 {
	font-family: var(--cw-font-display);
	font-weight: var(--cw-weight-extrabold);
	font-size: clamp(24px, 2.6vw, 32px);
	line-height: 1.25;
	text-transform: uppercase;
}

.cw-body {
	font-size: 14px;
	line-height: 1.5;
}

.cw-body--sm {
	font-size: 13px;
	line-height: 1.46;
}

.cw-caption {
	font-size: 11px;
	line-height: 1.55;
	color: var(--cw-fg-tertiary);
}

/* --- layout primitives -------------------------------------------------- */

.cw-container {
	width: 100%;
	max-width: calc(var(--cw-container) + var(--cw-container-gutter) * 2);
	margin: 0 auto;
	padding-inline: var(--cw-container-gutter);
}

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

.cw-divider {
	height: 1px;
	border: 0;
	margin: var(--cw-space-4) 0;
	background: var(--cw-border-default);
}
