/* ============================================================================
   base.css - reset, container, utilities. NO design values live here.
   Loaded first on every page. Tokens, fonts and typography are in general.css.
   ============================================================================ */

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

* {
	margin: 0;
	padding: 0;
}

/* 100%, never 62.5%: every rem in the theme assumes a 16px root. */
html {
	font-size: 100%;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms;
		animation-iteration-count: 1;
		transition-duration: 0.01ms;
	}
}

body {
	min-height: 100vh;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeSpeed;
}

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

ul[class],
ol[class] {
	list-style: none;
}

a {
	color: inherit;
}

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

button {
	background: none;
	border: 0;
	cursor: pointer;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

address {
	font-style: normal;
}

/* The one !important in the theme: the hidden attribute must win over any
   display rule a component sets, or aria-controls panels never close. */
[hidden] {
	display: none !important;
}

/* ---------------------------------------------------------------- container */

.container {
	width: 100%;
	max-width: var(--dd-container, 1200px);
	margin-inline: auto;
	padding-inline: var(--dd-gutter, 20px);
}

.container--wide {
	max-width: var(--dd-container-wide, 1440px);
}

.container--narrow {
	max-width: var(--dd-container-narrow, 800px);
}

/* ---------------------------------------------------------------- utilities */

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

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 8px 16px;
	clip: auto;
	overflow: visible;
	white-space: normal;
	background: var(--dd-bg);
	color: var(--dd-text);
	outline: 2px solid currentColor;
}

:focus-visible {
	outline: 2px solid var(--dd-focus, currentColor);
	outline-offset: 2px;
}

.dd-count {
	font-variant-numeric: tabular-nums;
}
