/**
 * Fonts, reset and base typography.
 */

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/poppins-400.woff2") format("woff2");
}

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/poppins-500.woff2") format("woff2");
}

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/poppins-600.woff2") format("woff2");
}

@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 100 900;
	/* Roboto ships as a variable font; without this it renders at its narrowest width axis. */
	font-stretch: 100%;
	font-display: swap;
	src: url("../fonts/roboto-variable.woff2") format("woff2");
}

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

body {
	margin: 0;
	background-color: var(--cdp-page-bg);
	color: var(--cdp-body-text);
	font-family: var(--cdp-font-body);
	font-size: var(--cdp-font-size);
	line-height: var(--cdp-line-height);
	letter-spacing: var(--cdp-letter-spacing);
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	color: var(--cdp-heading-text);
	font-family: var(--cdp-font-heading);
	line-height: var(--cdp-heading-line-height);
	letter-spacing: var(--cdp-heading-letter-spacing);
}

h1 { font-size: var(--cdp-h1); }
h2 { font-size: var(--cdp-h2); }
h3 { font-size: var(--cdp-h3); }
h4 { font-size: var(--cdp-h4); }
h5 { font-size: var(--cdp-h5); }
h6 { font-size: var(--cdp-h6); }

p {
	margin: 0 0 1em;
}

a {
	color: var(--cdp-brand-orange);
	font-weight: 500;
	text-decoration: none;
}

a:hover,
a:focus-visible {
	text-decoration: underline;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

:focus-visible {
	outline: 2px solid var(--cdp-navy);
	outline-offset: 2px;
}

/* Layout ------------------------------------------------------------------ */

.cdp-content {
	display: block;
	/* Full-bleed children measure against this, not 100vw, which counts the scrollbar and overflows. */
	container-type: inline-size;
}

.cdp-entry {
	max-width: var(--cdp-container);
	margin-inline: auto;
	padding: var(--cdp-section-padding-block) var(--cdp-section-padding-inline);
}

.cdp-entry > .alignwide {
	max-width: min(1400px, 100cqw - (var(--cdp-section-padding-inline) * 2));
	margin-inline: auto;
}

.cdp-entry > .alignfull {
	max-width: 100cqw;
	margin-inline: calc(50% - 50cqw);
}

/* A full-bleed block at either end meets the header or footer with no seam. */
.cdp-entry > .alignfull:first-child {
	margin-top: calc(var(--cdp-section-padding-block) * -1);
}

.cdp-entry > .alignfull:last-child {
	margin-bottom: calc(var(--cdp-section-padding-block) * -1);
}

/* Card groups fill their column so a row of cards ends level. */
.wp-block-columns > .wp-block-column > .wp-block-group.has-background,
.wp-block-columns > .wp-block-column > .wp-block-group.has-border-color {
	height: 100%;
}

/* Utilities --------------------------------------------------------------- */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.cdp-skip-link {
	position: absolute;
	top: -100px;
	left: 20px;
	z-index: calc(var(--cdp-header-z) + 10);
	padding: 12px 20px;
	background-color: var(--cdp-navy);
	color: var(--cdp-white);
	border-radius: var(--cdp-radius);
	text-decoration: none;
}

.cdp-skip-link:focus {
	top: 12px;
}
