/* ============================================================
   ERAS® Society
   Guidelines
   ============================================================ */


.eras-guidelines {
	--eras-blue: #064487;
	--eras-blue-dark: #053565;
	--eras-blue-deep: #062d56;

	--eras-sky: #eaf3fa;
	--eras-sky-light: #f5f9fc;

	--eras-text: #172b3e;
	--eras-muted: #6d7d8c;

	--eras-border: #dfe6ec;
	--eras-border-light: #edf1f4;

	--eras-radius: 10px;

	background: #fff;
	color: var(--eras-text);
}


.eras-guidelines .eras-container {
	margin-inline: auto;
}



/* ============================================================
   HERO
   ============================================================ */

.eras-guidelines__hero {
	position: relative;

	padding: 86px 0 80px;

	background:
		linear-gradient(
			135deg,
			#f5f9fc 0%,
			#ffffff 48%,
			#edf5fa 100%
		);

	overflow: hidden;
}


.eras-guidelines__hero::after {
	content: "";

	position: absolute;
	right: -5%;
	bottom: -100px;
	left: -5%;

	height: 150px;

	border-radius: 50% 50% 0 0 / 100% 100% 0 0;

	background: #fff;
}


.eras-guidelines__hero-decoration {
	position: absolute;

	border-radius: 50%;

	pointer-events: none;
}


.eras-guidelines__hero-decoration--one {
	top: -180px;
	right: 5%;

	width: 470px;
	height: 470px;

	border: 1px solid rgba(6, 68, 135, .08);
}


.eras-guidelines__hero-decoration--two {
	top: -100px;
	right: 10%;

	width: 300px;
	height: 300px;

	border: 1px solid rgba(6, 68, 135, .08);
}


.eras-guidelines__hero-inner {
	position: relative;
	z-index: 2;

	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: flex-end;
	gap: 80px;

	padding-bottom: 35px;
}


.eras-guidelines__hero-content {
	max-width: 810px;
}


.eras-guidelines__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;

	margin-bottom: 20px;

	color: var(--eras-blue);

	font-size: 11px;
	font-weight: 700;
	letter-spacing: .11em;
	text-transform: uppercase;
}


.eras-guidelines__eyebrow span {
	width: 24px;
	height: 2px;

	background: var(--eras-blue);
}


.eras-guidelines__title {
	margin: 0;

	color: var(--eras-blue);

	font-size: clamp(52px, 6vw, 76px);
	font-weight: 500;
	line-height: .98;
	letter-spacing: -.045em;
}


.eras-guidelines__intro {
	max-width: 760px;

	margin-top: 30px;

	color: #4d6173;

	font-size: 17px;
	line-height: 1.7;
}


.eras-guidelines__intro p {
	margin: 0;
}


.eras-guidelines__hero-meta {
	display: flex;
	gap: 34px;

	padding-bottom: 5px;
}


.eras-guidelines__hero-stat {
	min-width: 110px;
}


.eras-guidelines__hero-stat strong {
	display: block;

	margin-bottom: 3px;

	color: var(--eras-blue);

	font-size: 30px;
	font-weight: 500;
	line-height: 1;
}


.eras-guidelines__hero-stat span {
	color: var(--eras-muted);

	font-size: 11px;
	line-height: 1.4;
}



/* ============================================================
   CONTENT
   ============================================================ */

.eras-guidelines__content {
	position: relative;

	padding: 20px 0 110px;
}



/* ============================================================
   CONTROLS
   ============================================================ */

.eras-guidelines__controls {
	position: relative;
	z-index: 10;

	margin-bottom: 12px;
}


.eras-guidelines__controls-top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 12px;
}


.eras-guidelines__controls-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;

	min-height: 51px;

	border-bottom: 1px solid var(--eras-border);
}



/* ============================================================
   MAIN SEARCH
   ============================================================ */

.eras-guidelines__search {
	position: relative;
}


.eras-guidelines__search > svg {
	position: absolute;
	top: 50%;
	left: 17px;

	width: 18px;
	height: 18px;

	transform: translateY(-50%);

	fill: none;
	stroke: #748391;
	stroke-width: 1.7;

	pointer-events: none;
}


.eras-guidelines__search input {
	box-sizing: border-box;

	width: 100%;
	height: 50px;

	padding: 0 48px;

	border: 1px solid var(--eras-border);
	border-radius: var(--eras-radius);

	outline: none;

	background: #fff;
	color: var(--eras-text);

	font: inherit;
	font-size: 14px;

	transition:
		border-color .18s ease,
		box-shadow .18s ease;
}


.eras-guidelines__search input::placeholder {
	color: #99a4ad;
}


.eras-guidelines__search input:hover {
	border-color: #bcc8d1;
}


.eras-guidelines__search input:focus {
	border-color: var(--eras-blue);

	box-shadow:
		0 0 0 3px rgba(6, 68, 135, .07);
}


.eras-guidelines__search-clear {
	position: absolute;
	top: 50%;
	right: 9px;

	display: grid;
	place-items: center;

	width: 32px;
	height: 32px;

	padding: 0;

	border: 0;
	border-radius: 50%;

	transform: translateY(-50%);

	background: #f2f5f7;
	color: #6f7c87;

	cursor: pointer;
}


.eras-guidelines__search-clear[hidden] {
	display: none;
}


.eras-guidelines__search-clear svg {
	width: 14px;
	height: 14px;

	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}



/* ============================================================
   FILTER TRIGGER
   ============================================================ */

.eras-guidelines__filter-dropdown {
	position: relative;
}


.eras-guidelines__filter-trigger {
	box-sizing: border-box;

	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;

	width: 100%;
	height: 50px;

	padding: 0 15px;

	border: 1px solid var(--eras-border);
	border-radius: var(--eras-radius);

	background: #fff;
	color: var(--eras-blue-dark);

	font: inherit;
	font-size: 13px;
	font-weight: 600;

	cursor: pointer;

	transition:
		border-color .18s ease,
		box-shadow .18s ease;
}


.eras-guidelines__filter-trigger:hover {
	border-color: #bbc7d0;
}


.eras-guidelines__filter-trigger[aria-expanded="true"] {
	border-color: var(--eras-blue);

	box-shadow:
		0 0 0 3px rgba(6, 68, 135, .07);
}


.eras-guidelines__filter-trigger-content {
	display: flex;
	align-items: center;
	gap: 10px;
}


.eras-guidelines__filter-trigger-content > svg {
	width: 17px;
	height: 17px;

	fill: none;
	stroke: var(--eras-blue);
	stroke-width: 1.7;
	stroke-linecap: round;
}


.eras-guidelines__filter-chevron {
	width: 16px;
	height: 16px;

	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;

	transition: transform .2s ease;
}


.eras-guidelines__filter-trigger[aria-expanded="true"]
.eras-guidelines__filter-chevron {
	transform: rotate(180deg);
}



/* ============================================================
   FILTER PANEL
   ============================================================ */

.eras-guidelines__filter-panel {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;

	width: 340px;
	max-width: calc(100vw - 30px);

	border: 1px solid rgba(6, 45, 86, .1);
	border-radius: 12px;

	background: #fff;

	box-shadow:
		0 24px 60px rgba(23, 43, 62, .14),
		0 4px 12px rgba(23, 43, 62, .05);

	overflow: hidden;
}


.eras-guidelines__filter-panel[hidden] {
	display: none;
}


.eras-guidelines__filter-panel-header {
	padding: 15px 16px 11px;

	color: var(--eras-blue);

	font-size: 11px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
}


.eras-guidelines__filter-search {
	position: relative;

	padding: 0 10px 10px;
}


.eras-guidelines__filter-search svg {
	position: absolute;
	top: 17px;
	left: 23px;

	width: 15px;
	height: 15px;

	fill: none;
	stroke: #7c8995;
	stroke-width: 1.8;
}


.eras-guidelines__filter-search input {
	box-sizing: border-box;

	width: 100%;
	height: 38px;

	padding: 0 12px 0 35px;

	border: 1px solid #e0e6eb;
	border-radius: 7px;

	outline: none;

	background: #f8fafb;

	font: inherit;
	font-size: 12px;
}


.eras-guidelines__filter-search input:focus {
	border-color: var(--eras-blue);
	background: #fff;
}


.eras-guidelines__filter-options {
	max-height: 340px;

	padding: 5px;

	border-top: 1px solid var(--eras-border-light);

	overflow-y: auto;
}


.eras-guidelines__filter-option {
	box-sizing: border-box;

	display: grid;
	grid-template-columns: minmax(0, 1fr) auto 18px;
	align-items: center;
	gap: 8px;

	width: 100%;
	min-height: 40px;

	padding: 8px 10px;

	border: 0;
	border-radius: 7px;

	background: transparent;
	color: #35495c;

	font: inherit;
	font-size: 12px;
	text-align: left;

	cursor: pointer;
}


.eras-guidelines__filter-option:hover {
	background: #f3f7fa;
	color: var(--eras-blue);
}


.eras-guidelines__filter-option.is-active {
	background: var(--eras-sky);
	color: var(--eras-blue);

	font-weight: 600;
}


.eras-guidelines__filter-option[hidden] {
	display: none;
}


.eras-guidelines__filter-option-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-width: 24px;

	padding: 2px 6px;

	border-radius: 20px;

	background: #f0f3f5;
	color: #7b8792;

	font-size: 10px;
}


.eras-guidelines__filter-option svg {
	width: 15px;
	height: 15px;

	fill: none;
	stroke: currentColor;
	stroke-width: 2;

	opacity: 0;
}


.eras-guidelines__filter-option.is-active svg {
	opacity: 1;
}



/* ============================================================
   RESULT COUNT
   ============================================================ */

.eras-guidelines__result-count {
	display: flex;
	align-items: baseline;
	gap: 5px;

	color: #748391;

	font-size: 12px;
}


.eras-guidelines__result-number {
	color: var(--eras-blue);

	font-weight: 700;
}


.eras-guidelines__reset {
	padding: 5px 0;

	border: 0;

	background: transparent;
	color: var(--eras-blue);

	font: inherit;
	font-size: 11px;
	font-weight: 600;

	cursor: pointer;
}


.eras-guidelines__reset:hover {
	text-decoration: underline;
}


.eras-guidelines__reset[hidden] {
	display: none;
}



/* ============================================================
   GUIDELINE LIST
   ============================================================ */

.eras-guidelines__list {
	width: 100%;
}


.eras-guideline-card {
	position: relative;

	border-bottom: 1px solid var(--eras-border);
}


.eras-guideline-card__link {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 46px;
	align-items: center;
	gap: 40px;

	padding: 27px 8px;

	color: inherit;
	text-decoration: none;

	transition:
		background-color .2s ease,
		padding .2s ease;
}


.eras-guideline-card__link:hover {
	padding-right: 16px;
	padding-left: 16px;

	background: #f7fafc;
}


.eras-guideline-card__link--disabled {
	grid-template-columns: 1fr;

	cursor: default;
}



/* ============================================================
   TITLE
   ============================================================ */

.eras-guideline-card__title {
	max-width: 980px;

	margin: 0;

	color: var(--eras-blue);

	font-size: clamp(18px, 1.7vw, 22px);
	font-weight: 500;
	line-height: 1.42;
	letter-spacing: -.012em;
}


.eras-guideline-card__link:hover
.eras-guideline-card__title {
	color: var(--eras-blue-dark);
}



/* ============================================================
   CARD META / CATEGORIES
   ============================================================ */

.eras-guideline-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;

	margin-top: 13px;
}


.eras-guideline-card__categories {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}


.eras-guideline-card__category {
	display: inline-flex;
	align-items: center;

	padding: 5px 9px;

	border: 1px solid rgba(6, 68, 135, .11);
	border-radius: 5px;

	background: var(--eras-blue);
	color: #fff;

	font-size: 9px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .015em;

	white-space: nowrap;

	transition:
		background .18s ease,
		transform .18s ease;
}


.eras-guideline-card__link:hover
.eras-guideline-card__category {
	background: var(--eras-blue-dark);
}


.eras-guideline-card__version {
	color: #84919c;

	font-size: 9px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}



/* ============================================================
   ARROW
   ============================================================ */

.eras-guideline-card__arrow {
	display: grid;
	place-items: center;

	width: 42px;
	height: 42px;

	border: 1px solid #d9e1e7;
	border-radius: 50%;

	background: #fff;
	color: var(--eras-blue);

	transition:
		background .2s ease,
		border-color .2s ease,
		color .2s ease,
		transform .2s ease;
}


.eras-guideline-card__arrow svg {
	width: 18px;
	height: 18px;

	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}


.eras-guideline-card__link:hover
.eras-guideline-card__arrow {
	border-color: var(--eras-blue);

	background: var(--eras-blue);
	color: #fff;

	transform: translateX(3px);
}



/* ============================================================
   LOADING
   ============================================================ */

.eras-guidelines__loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 11px;

	padding: 32px 0;

	color: #7c8994;

	font-size: 12px;
}


.eras-guidelines__loading[hidden] {
	display: none;
}


.eras-guidelines__spinner {
	width: 18px;
	height: 18px;

	border: 2px solid #dfe5ea;
	border-top-color: var(--eras-blue);
	border-radius: 50%;

	animation: eras-guidelines-spin .7s linear infinite;
}


@keyframes eras-guidelines-spin {

	to {
		transform: rotate(360deg);
	}

}



/* ============================================================
   EMPTY
   ============================================================ */

.eras-guidelines__empty {
	padding: 80px 20px;

	text-align: center;
}


.eras-guidelines__empty[hidden] {
	display: none;
}


.eras-guidelines__empty-icon {
	display: grid;
	place-items: center;

	width: 52px;
	height: 52px;

	margin: 0 auto 16px;

	border-radius: 50%;

	background: var(--eras-sky);
	color: var(--eras-blue);
}


.eras-guidelines__empty-icon svg {
	width: 22px;
	height: 22px;

	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
}


.eras-guidelines__empty h2 {
	margin: 0 0 7px;

	color: var(--eras-blue);

	font-size: 22px;
	font-weight: 500;
}


.eras-guidelines__empty p {
	margin: 0;

	color: var(--eras-muted);

	font-size: 13px;
}


.eras-guidelines__sentinel {
	height: 1px;
}



/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {

	.eras-guidelines .eras-container {
		width: calc(100% - 36px);
	}


	.eras-guidelines__hero {
		padding: 68px 0 70px;
	}


	.eras-guidelines__hero-inner {
		grid-template-columns: 1fr;
		gap: 36px;
	}


	.eras-guidelines__hero-meta {
		padding-bottom: 20px;
	}


	.eras-guidelines__controls-top {
		grid-template-columns: 1fr;
	}


	.eras-guidelines__filter-panel {
		right: auto;
		left: 0;

		width: 100%;
	}


	.eras-guideline-card__link {
		gap: 20px;

		padding-right: 0;
		padding-left: 0;
	}


	.eras-guideline-card__link:hover {
		padding-right: 0;
		padding-left: 0;

		background: transparent;
	}

}


@media (max-width: 600px) {

	.eras-guidelines .eras-container {
		width: calc(100% - 30px);
	}


	.eras-guidelines__hero {
		padding: 52px 0 62px;
	}


	.eras-guidelines__hero::after {
		height: 100px;
		bottom: -70px;
	}


	.eras-guidelines__title {
		font-size: 46px;
	}


	.eras-guidelines__intro {
		margin-top: 22px;

		font-size: 15px;
	}


	.eras-guidelines__hero-meta {
		gap: 26px;
	}


	.eras-guidelines__hero-stat strong {
		font-size: 26px;
	}


	.eras-guidelines__content {
		padding-top: 5px;
		padding-bottom: 80px;
	}


	.eras-guidelines__controls-bottom {
		min-height: 44px;
	}


	.eras-guideline-card__link {
		grid-template-columns: minmax(0, 1fr) 36px;
		gap: 12px;

		padding: 22px 0;
	}


	.eras-guideline-card__title {
		font-size: 17px;
		line-height: 1.45;
	}


	.eras-guideline-card__meta {
		margin-top: 11px;
	}


	.eras-guideline-card__category {
		padding: 4px 7px;

		font-size: 8px;
	}


	.eras-guideline-card__arrow {
		width: 34px;
		height: 34px;
	}


	.eras-guideline-card__arrow svg {
		width: 15px;
		height: 15px;
	}

}