*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	/*
	 * Live Bricks site uses a 10px root so rem-authored clamps match
	 * (1rem = 10px). 62.5% of the browser default 16px = 10px.
	 */
	font-size: 62.5%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	min-height: 100vh;
}

img,
picture,
video,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
}

a {
	color: var(--rf-color-secondary);
}

a:hover {
	color: var(--rf-color-primary);
}

:focus-visible {
	outline: 2px solid var(--rf-color-secondary);
	outline-offset: 2px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: var(--rf-color-white);
	clip: auto !important;
	clip-path: none;
	color: var(--rf-color-primary);
	display: block;
	font-size: 1rem;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Skip link — visible on keyboard focus */
.cwf-skip-link.screen-reader-text:focus {
	position: fixed;
	left: 8px;
	top: 8px;
	z-index: 100001;
	font-family: var(--rf-font-heading);
	font-weight: 600;
	background: var(--rf-color-secondary);
	color: var(--rf-color-white);
	border-radius: 8px;
}
