/* Base: reset, type, links, focus, layout helpers, buttons. */

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

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

body {
	margin: 0;
	background: var(--c-white);
	color: var(--c-charcoal);
	font-family: var(--font);
	font-size: 16px;
	line-height: normal; /* the boards' default; components set their own where the boards do */
	-webkit-font-smoothing: antialiased;
}

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

img {
	height: auto;
	display: block;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	color: var(--c-charcoal);
	font-weight: 800;
	letter-spacing: -0.02em;
}

h1 {
	font-size: var(--fs-h1);
	line-height: 1.08;
}

h2 {
	font-size: var(--fs-h2);
	line-height: 1.15;
}

p {
	margin: 0;
}

a {
	color: var(--c-teal);
}

a:hover {
	color: var(--c-teal-hover);
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

/* Visible focus on every control (WCAG 2.1 AA). */
:focus-visible {
	outline: 3px solid var(--c-teal);
	outline-offset: 2px;
	border-radius: 4px;
}

.on-teal :focus-visible {
	outline-color: var(--c-white);
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 1000;
	padding: 12px 16px;
	background: var(--c-white);
	border: 2px solid var(--c-teal);
	border-radius: var(--r-btn);
	font-weight: 700;
}

.skip-link:focus {
	top: 16px;
}

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

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

@media (max-width: 767px) {
	.u-desktop-only {
		display: none !important;
	}
}

@media (min-width: 768px) {
	.u-phone-only {
		display: none !important;
	}
}

/* Section bands alternate white, pale teal, deep teal and amber tint. */
.band--pale {
	background: var(--c-pale);
	border-block: 1px solid var(--c-border);
}

.band--teal {
	background: var(--c-teal);
	color: var(--c-white);
}

.band--amber {
	background: var(--c-amber-tint);
}

.eyebrow {
	font-size: var(--fs-eyebrow);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-teal);
}

.lead {
	font-size: var(--fs-lead);
	line-height: 1.5;
	color: var(--c-body);
}

/* Buttons: amber = main action, teal = calls, white with teal outline = secondary. */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: var(--btn-height);
	padding: 0 22px;
	border: 2px solid transparent;
	border-radius: var(--r-btn);
	font-family: var(--font);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

@media (min-width: 768px) {
	.btn {
		font-size: 17px;
	}
}

.btn--amber {
	background: var(--c-amber);
	color: var(--c-charcoal);
}

.btn--amber:hover {
	color: var(--c-charcoal);
	box-shadow: inset 0 0 0 100px rgba(36, 54, 60, 0.06);
}

.btn--teal {
	background: var(--c-teal);
	color: var(--c-white);
}

.btn--teal:hover {
	background: var(--c-teal-hover);
	color: var(--c-white);
}

.btn--outline {
	background: var(--c-white);
	border-color: var(--c-teal);
	color: var(--c-teal);
}

.btn--outline:hover {
	background: var(--c-pale);
	color: var(--c-teal-hover);
}

.btn--block {
	display: flex;
	width: 100%;
}

/* Small header call button (board: 15 px, 12 × 18 padding), kept at a 44 px tap target. */
.btn--sm {
	min-height: var(--tap);
	padding: 0 18px;
	border-width: 0;
	font-size: 15px;
	font-weight: 700;
}

.card {
	background: var(--c-white);
	border: 1px solid var(--c-border);
	border-radius: var(--r-card);
}

.icon {
	flex: none;
	display: block;
}

.icon-tile {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--c-pale-2);
	color: var(--c-teal);
}

.icon-tile--quiet {
	background: var(--c-icon-quiet-bg);
	color: var(--c-icon-quiet);
}
