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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* Safety net against horizontal scroll on mobile — clip (not hidden)
	   so it doesn't create a scroll container that would break the sticky
	   header, just prevents any stray full-bleed element from opening a
	   sideways scrollbar. Root causes should still be fixed where found;
	   this is a backstop, not a substitute. */
	overflow-x: clip;
}

body {
	margin: 0;
	font-family: var(--sss-font-body);
	color: var(--sss-ink);
	background-color: var(--sss-white);
	line-height: 1.5;
}

body.sss-no-scroll {
	overflow: hidden;
}

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

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

button {
	font: inherit;
	background: none;
	border: 0;
	cursor: pointer;
	color: inherit;
}

.sss-container {
	width: 100%;
	max-width: var(--sss-content-wide);
	margin-inline: auto;
	padding-inline: var(--sss-gutter-desktop);
}

/* Not every section should share the same content width. */
.sss-container--default {
	max-width: var(--sss-content-default);
}

.sss-container--reading {
	max-width: var(--sss-content-reading);
}

.sss-container--full {
	max-width: var(--sss-container-max);
}

.sss-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.sss-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--sss-blue);
	color: var(--sss-white);
	padding: var(--sss-space-2) var(--sss-space-3);
	z-index: 1000;
	border-radius: 0 0 var(--sss-radius-sm) 0;
}

.sss-skip-link:focus {
	left: 0;
}

:focus-visible {
	outline: 2px solid var(--sss-blue);
	outline-offset: 2px;
}

@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;
		scroll-behavior: auto !important;
	}
}
