.er-formats-module {
	--er-formats-purple: #662d91;
	--er-formats-purple-dark: #51206f;
	--er-formats-beige-light: #f3ebdd;
	--er-formats-beige-medium: #e8dcc8;
	--er-formats-ink: #211b25;
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	min-width: 0;
	margin-block: clamp(1.75rem, 4vw, 3rem);
	padding: clamp(1.25rem, 3.5vw, 2.25rem);
	border: 1px solid rgba(102, 45, 145, 0.3);
	background: var(--er-formats-beige-light);
	color: var(--er-formats-ink);
	box-sizing: border-box;
}

.er-formats-module *,
.er-formats-module *::before,
.er-formats-module *::after {
	box-sizing: border-box;
}

.er-formats-module[hidden],
.er-formats-module [hidden] {
	display: none !important;
}

.er-formats__header {
	min-width: 0;
	padding-right: 2.75rem;
	margin-bottom: 1.25rem;
}

.er-formats__eyebrow {
	margin: 0 0 0.4rem !important;
	color: var(--er-formats-purple) !important;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	line-height: 1.3;
	text-transform: uppercase;
}

.er-formats-module .er-formats__header h2 {
	max-width: 24ch;
	margin: 0 !important;
	color: var(--er-formats-ink) !important;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	line-height: 1.05;
	letter-spacing: -0.035em;
	text-wrap: balance;
	word-break: normal;
	overflow-wrap: break-word;
}

.er-formats__close {
	appearance: none;
	position: absolute;
	z-index: 2;
	top: 0.9rem;
	right: 0.9rem;
	display: inline-grid;
	width: 2.35rem;
	height: 2.35rem;
	padding: 0;
	place-items: center;
	border: 1px solid rgba(102, 45, 145, 0.45);
	border-radius: 50%;
	background: transparent;
	color: var(--er-formats-purple);
	font: inherit;
	font-size: 1.45rem;
	line-height: 1;
	cursor: pointer;
}

.er-formats__close:hover,
.er-formats__close:focus {
	border-color: var(--er-formats-purple);
	background: var(--er-formats-beige-medium);
	color: var(--er-formats-purple-dark);
}

.er-formats__tabs {
	display: flex;
	min-width: 0;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-bottom: 1.15rem;
}

.er-formats-module .er-formats__tab {
	appearance: none;
	min-height: 2.7rem;
	padding: 0.62rem 0.9rem;
	border: 1px solid rgba(102, 45, 145, 0.45);
	border-radius: 0;
	background: transparent;
	color: var(--er-formats-purple);
	font: inherit;
	font-size: 0.88rem;
	font-weight: 750;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
}

.er-formats-module .er-formats__tab:hover,
.er-formats-module .er-formats__tab:focus {
	border-color: var(--er-formats-purple);
	background: var(--er-formats-beige-medium);
	color: var(--er-formats-purple-dark);
}

.er-formats-module .er-formats__tab[aria-selected="true"] {
	border-color: var(--er-formats-purple);
	background: var(--er-formats-purple);
	color: #ffffff;
}

.er-formats-module :where(button, [tabindex]):focus-visible {
	outline: 3px solid var(--er-formats-purple);
	outline-offset: 3px;
}

.er-formats__panels {
	min-width: 0;
	padding-top: 1rem;
	border-top: 1px solid rgba(102, 45, 145, 0.22);
}

.er-formats__panel {
	min-width: 0;
	color: var(--er-formats-ink);
	font-size: clamp(0.98rem, 1.4vw, 1.08rem);
	line-height: 1.65;
	word-break: normal;
	overflow-wrap: break-word;
}

.er-formats__panel > :first-child {
	margin-top: 0;
}

.er-formats__panel > :last-child {
	margin-bottom: 0;
}

.er-formats__panel p,
.er-formats__panel li {
	color: var(--er-formats-ink) !important;
}

.er-formats__panel ul {
	margin: 0;
	padding-left: 1.3rem;
}

.er-formats__panel li + li {
	margin-top: 0.55rem;
}

@media (max-width: 36rem) {
	.er-formats-module {
		padding: 1.15rem;
	}

	.er-formats__tabs {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
	}

	.er-formats-module .er-formats__tab {
		width: 100%;
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {
	.er-formats-module *,
	.er-formats-module *::before,
	.er-formats-module *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
