/* ==========================================================================
   Base - reset, document typography, layout shells
   ========================================================================== */

html {
	box-sizing: border-box;
	-webkit-text-size-adjust: 100%;
}

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

body {
	margin: 0;
	background: var(--fda-palette8);
	font-family: var(--fda-font-body);
	font-size: 14px;
	font-style: normal;
	font-weight: normal;
	line-height: 1.6;
	color: var(--fda-palette3);
	overflow-x: hidden;
}

input,
select,
optgroup,
textarea {
	font-family: var(--fda-font-body);
	font-size: 14px;
	line-height: 1.6;
	color: var(--fda-palette3);
}

/* Headings ---------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--fda-font-heading);
	font-style: normal;
	line-height: 1.5;
	margin: 0;
}

h1 {
	font-weight: 700;
	font-size: 40px;
	color: var(--fda-palette3);
}

h2 {
	font-weight: 700;
	font-size: 28px;
	color: var(--fda-palette3);
}

h3 {
	font-weight: 700;
	font-size: 26px;
	color: var(--fda-palette3);
}

h4 {
	font-weight: 700;
	font-size: 22px;
	color: var(--fda-palette4);
}

h5 {
	font-weight: 700;
	font-size: 20px;
	color: var(--fda-palette4);
}

h6 {
	font-weight: 700;
	font-size: 18px;
	color: var(--fda-palette5);
}

/* Flow elements ----------------------------------------------------------- */

p {
	margin: 0 0 1.5em;
}

hr {
	height: 0;
	border: 0;
	border-bottom: 2px solid #cbd5e0;
	margin: 0 0 2rem;
}

ul,
ol {
	margin: 0 0 1.5em 1.5em;
	padding: 0;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

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

figure {
	margin: 0.5em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
	border-collapse: collapse;
}

blockquote {
	margin: 0 0 1.5em;
	padding-left: 1.5em;
	border-left: 3px solid var(--fda-palette2);
}

a {
	color: var(--fda-palette2);
	text-underline-offset: 0.1em;
	transition: all 0.1s linear;
}

a:hover,
a:focus,
a:active {
	color: var(--fda-palette13);
	text-underline-offset: 0.25em;
}

a:hover,
a:active {
	outline: 0;
}

:focus-visible {
	outline: 2px solid var(--fda-red);
	outline-offset: 2px;
}

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

#wrapper.site {
	overflow-x: clip;
}

.site-container {
	max-width: var(--fda-content-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--fda-edge-padding);
	padding-right: var(--fda-edge-padding);
}

.content-area {
	margin-top: 5rem;
	margin-bottom: 5rem;
}

@media (max-width: 1024px) {
	.content-area {
		margin-top: 3rem;
		margin-bottom: 3rem;
	}
}

@media (max-width: 767px) {
	.content-area {
		margin-top: 2rem;
		margin-bottom: 2rem;
	}
}

.content-bg {
	background: var(--fda-palette9);
}

/* WordPress alignment classes -------------------------------------------- */

.alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignwide {
	max-width: var(--fda-content-wide);
}

.alignfull {
	max-width: none;
}

/* Accessibility ----------------------------------------------------------- */

.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;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000000;
	padding: 0.75em 1.25em;
	background: var(--fda-palette9);
	color: var(--fda-navy);
	font-weight: 700;
	text-decoration: none;
}

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

/* Scroll-reveal animations ------------------------------------------------ */

.fda-reveal {
	opacity: 0;
	will-change: transform, opacity;
}

.fda-reveal.is-visible {
	animation-duration: 1.25s;
	animation-fill-mode: both;
}

.fda-reveal.is-visible[data-reveal="up"] {
	animation-name: fdaSlideFadeToTop;
}

.fda-reveal.is-visible[data-reveal="left"] {
	animation-name: fdaSlideFadeInLeft;
}

.fda-reveal.is-visible[data-reveal="right"] {
	animation-name: fdaSlideFadeInRight;
}

@keyframes fdaSlideFadeToTop {
	from {
		opacity: 0;
		transform: translateY(50px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fdaSlideFadeInLeft {
	from {
		opacity: 0;
		transform: translateX(-50px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes fdaSlideFadeInRight {
	from {
		opacity: 0;
		transform: translateX(50px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.fda-reveal {
		opacity: 1;
	}

	.fda-reveal.is-visible {
		animation: none;
	}
}

.no-js .fda-reveal {
	opacity: 1;
}
