/* Reset + base element styles shared by every page. */

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

html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body {
	margin: 0;
	overflow-x: clip;
	background: var(--color-paper);
	font: var(--text-body-m);
	color: var(--text-primary);
}

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

a { color: var(--text-link); text-decoration: none; }
a:hover, a:focus-visible { color: var(--text-link-hover); }

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

button { cursor: pointer; }

h1, h2, h3, h4, p, figure { margin: 0; }

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

:focus-visible {
	outline: none;
	box-shadow: var(--shadow-focus);
	border-radius: var(--radius-s);
}

::-webkit-scrollbar { width: 10px; height: 10px; }

.tt-noscroll { scrollbar-width: none; }
.tt-noscroll::-webkit-scrollbar { display: none; }

.tt-container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding-left: var(--container-pad);
	padding-right: var(--container-pad);
	box-sizing: border-box;
}

/* Accessibility-ready theme requirement: visually hidden but screen-reader-visible text. */
.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-color: var(--color-paper);
	border-radius: var(--radius-s);
	box-shadow: var(--shadow-raised);
	clip: auto !important;
	clip-path: none;
	color: var(--text-primary);
	display: block;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 12px 16px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.tt-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	background: var(--color-ink);
	color: #FFFDFB;
	padding: 12px 20px;
	border-radius: 0 0 var(--radius-s) 0;
}
.tt-skip-link:focus {
	left: 0;
}

@keyframes tt-marquee { to { transform: translateX(-50%); } }
@keyframes tt-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@keyframes tt-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}
