/**
 * ERC searchable archives: publications, news, videos, lounge listings.
 * Light surfaces only. Contrast targets WCAG 2.2 AA.
 */

.erc-archive {
	--arch-navy: var(--erc-navy, #23245b);
	--arch-pink: var(--erc-pink, #d6316c);
	--arch-text: var(--erc-text, #1c1b33);
	--arch-muted: var(--erc-muted, #4a4a63);
	--arch-paper: var(--erc-paper, #fdfcfa);
	--arch-sand: var(--erc-sand, #f5f3ef);
	--arch-white: var(--erc-white, #fff);
	--arch-line: rgba(35, 36, 91, 0.22);
	color: var(--arch-text);
	font-family: var(--font-sans, Inter, "Helvetica Neue", Arial, sans-serif);
}

.erc-archive :focus-visible {
	outline: 3px solid var(--arch-navy);
	outline-offset: 2px;
}

.erc-archive__heading {
	margin: 0;
	color: var(--arch-navy);
	font-family: var(--font-heading, Poppins, Inter, sans-serif);
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 700;
	line-height: 1.2;
}

.erc-archive__panel-title {
	margin: 0 0 8px;
	color: var(--arch-navy);
	font-family: var(--font-heading, Poppins, Inter, sans-serif);
	font-size: 1.125rem;
	font-weight: 700;
}

.erc-archive__hint {
	margin: 0 0 20px;
	color: var(--arch-muted);
}

.erc-archive__search,
.erc-archive__years,
.erc-archive__section,
.erc-archive__empty,
.erc-archive__featured {
	width: min(100%, var(--container-max, 1280px));
	margin: 0 auto 32px;
}

.erc-archive__search {
	padding: 24px;
	border: 1px solid var(--arch-line);
	border-radius: 16px;
	background: var(--arch-white);
}

.erc-archive__fields {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 0.7fr) minmax(0, 0.7fr) auto;
	gap: 16px;
	align-items: end;
}

.erc-archive__fields--no-type {
	grid-template-columns: minmax(0, 2fr) minmax(0, 0.8fr) minmax(0, 0.8fr) auto;
}

.erc-archive__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.erc-archive__field span {
	color: var(--arch-navy);
	font-size: 0.8125rem;
	font-weight: 700;
}

.erc-archive__field input,
.erc-archive__field select {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--arch-line);
	border-radius: 10px;
	background: var(--arch-paper);
	color: var(--arch-text);
	font: inherit;
}

.erc-archive__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--arch-pink);
	color: var(--arch-white);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.erc-archive__submit:hover {
	filter: brightness(0.92);
	color: var(--arch-white);
}

.erc-archive__count {
	margin: 16px 0 0;
	color: var(--arch-muted);
	font-size: 0.9375rem;
}

.erc-archive__clear,
.erc-archive__more {
	color: var(--arch-pink);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.erc-archive__years {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	position: sticky;
	top: 12px;
	z-index: 2;
	padding: 8px 0;
	background: var(--arch-paper);
}

.erc-archive__year-jump {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 6px 14px;
	border: 1px solid var(--arch-line);
	border-radius: 999px;
	background: var(--arch-white);
	color: var(--arch-navy);
	font-weight: 700;
	text-decoration: none;
}

.erc-archive__year-jump span {
	color: var(--arch-muted);
	font-weight: 500;
	font-size: 0.8125rem;
}

.erc-archive__year-jump.is-active,
.erc-archive__year-jump:hover {
	background: var(--arch-navy);
	color: var(--arch-white);
	border-color: var(--arch-navy);
}

.erc-archive__year-jump.is-active span,
.erc-archive__year-jump:hover span {
	color: rgba(255, 255, 255, 0.8);
}

.erc-archive__section {
	scroll-margin-top: 88px;
	margin-bottom: 48px;
}

.erc-archive__section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--arch-line);
}

.erc-archive__loop {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.erc-archive--cols-2 .erc-archive__loop {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.erc-archive__item,
.erc-archive__item .wpex-card {
	min-width: 0;
	height: 100%;
}

.erc-archive__empty {
	padding: 24px;
	border-radius: 16px;
	background: var(--arch-sand);
}

.erc-archive__fallback {
	color: var(--arch-navy);
	font-weight: 700;
}

.erc-info-hub-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	width: min(100%, var(--container-max, 1280px));
	margin: 0 auto 28px;
	padding: 4px 0 16px;
	border-bottom: 1px solid var(--arch-line, rgba(40, 42, 103, 0.18));
}

.erc-info-hub-nav__back {
	display: inline-flex;
	align-items: center;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--arch-navy, #282a67);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.erc-info-hub-nav__back:hover,
.erc-info-hub-nav__back.is-current {
	filter: brightness(0.92);
	color: #fff;
}

.erc-info-hub-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.erc-info-hub-nav__list a {
	display: inline-flex;
	align-items: center;
	padding: 10px 16px;
	border: 1px solid var(--arch-line, rgba(40, 42, 103, 0.22));
	border-radius: 999px;
	background: var(--arch-white, #fff);
	color: var(--arch-navy, #282a67);
	font-weight: 700;
	text-decoration: none;
}

.erc-info-hub-nav__list a:hover,
.erc-info-hub-nav__list a[aria-current="page"] {
	background: var(--arch-navy, #282a67);
	border-color: var(--arch-navy, #282a67);
	color: #fff;
}

.erc-faq-search {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: end;
	margin: 0 0 24px;
	padding: 24px;
	border: 1px solid var(--arch-line, rgba(40, 42, 103, 0.22));
	border-radius: 16px;
	background: var(--arch-white, #fff);
}

.erc-faq-search__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 220px;
}

.erc-faq-search__field span {
	color: var(--arch-navy, #282a67);
	font-size: 0.8125rem;
	font-weight: 700;
}

.erc-faq-search input {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--arch-line, rgba(40, 42, 103, 0.22));
	border-radius: 10px;
	font: inherit;
}

.erc-faq-search__submit button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--arch-pink, #e01a4f);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.erc-faq-search__meta {
	margin: 0 0 20px;
}

.erc-faq-search__clear {
	color: var(--arch-pink, #e01a4f);
	font-weight: 700;
}

.erc-faq-search__empty {
	margin: 0 0 24px;
}

@media (max-width: 960px) {
	.erc-archive__fields,
	.erc-archive__fields--no-type,
	.erc-archive__loop,
	.erc-archive--cols-2 .erc-archive__loop {
		grid-template-columns: 1fr;
	}

	.erc-archive__years {
		position: static;
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
	}
}

/* Member hub cards: newsletters, The Loop, member updates, technical bulletins. */
:is(
	.erc-archive--newsletter,
	.erc-archive--the_loop,
	.erc-archive--member_update,
	.erc-archive--technical_bulletin,
	.erc-archive--publications
) .wpex-card,
:is(
	.wpex-card.wpex-card-template_35614,
	.wpex-card.wpex-card-template_35617,
	.wpex-card.wpex-card-template_35612,
	.wpex-card.wpex-card-template_35616
) {
	background: #fff;
	border-radius: 8px;
	text-align: left;
	color: #282a67;
}

:is(
	.erc-archive--newsletter,
	.erc-archive--the_loop,
	.erc-archive--member_update,
	.erc-archive--technical_bulletin,
	.erc-archive--publications
) .wpex-card :is(.erc-card__title, .erc-card__title p),
:is(
	.wpex-card.wpex-card-template_35614,
	.wpex-card.wpex-card-template_35617,
	.wpex-card.wpex-card-template_35612,
	.wpex-card.wpex-card-template_35616
) :is(.erc-card__title, .erc-card__title p) {
	color: #282a67 !important;
	text-align: left;
}

:is(
	.erc-archive--newsletter,
	.erc-archive--the_loop,
	.erc-archive--member_update,
	.erc-archive--technical_bulletin,
	.erc-archive--publications
) .wpex-card :is(
	.erc-card__meta,
	.erc-card__date,
	.erc-card__type,
	.vcex-post-excerpt,
	.vcex-post-excerpt p,
	.erc-card__more,
	.erc-card__more p,
	.vcex-post-terms,
	.vcex-post-terms a
),
:is(
	.wpex-card.wpex-card-template_35614,
	.wpex-card.wpex-card-template_35617,
	.wpex-card.wpex-card-template_35612,
	.wpex-card.wpex-card-template_35616
) :is(
	.erc-card__meta,
	.erc-card__date,
	.erc-card__type,
	.vcex-post-excerpt,
	.vcex-post-excerpt p,
	.erc-card__more,
	.erc-card__more p,
	.vcex-post-terms,
	.vcex-post-terms a
) {
	font-size: 14px;
	line-height: 1.5;
	text-align: left;
}

.wpex-card.wpex-card-template_35616 .vcex-post-terms {
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}

/*
 * Public hubs only. News and blog use card 35613. Videos use card 35618.
 * Page ids: news 272, blog 276, videos 288.
 * Member hubs and cards 35612, 35614, 35615, 35616, 35617 and 35619 are not selected.
 */
body.page-id-272 .wpex-card.wpex-card-template_35613,
body.page-id-276 .wpex-card.wpex-card-template_35613,
body.page-id-288 .wpex-card.wpex-card-template_35618 {
	background: #fff;
	border-radius: 8px;
	text-align: left;
	color: #282a67;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 16px;
}

body.page-id-272 .wpex-card.wpex-card-template_35613 :is(.erc-card__title, .erc-card__title p),
body.page-id-276 .wpex-card.wpex-card-template_35613 :is(.erc-card__title, .erc-card__title p),
body.page-id-288 .wpex-card.wpex-card-template_35618 :is(.erc-card__title, .erc-card__title p) {
	color: #282a67 !important;
	font-family: "Darker Grotesque", sans-serif;
	font-size: 22px !important;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
}

body.page-id-272 .wpex-card.wpex-card-template_35613 :is(.erc-card__date, .erc-card__date p, .vcex-post-excerpt, .vcex-post-excerpt p),
body.page-id-276 .wpex-card.wpex-card-template_35613 :is(.erc-card__date, .erc-card__date p, .vcex-post-excerpt, .vcex-post-excerpt p),
body.page-id-288 .wpex-card.wpex-card-template_35618 :is(.erc-card__date, .erc-card__date p, .vcex-post-excerpt, .vcex-post-excerpt p) {
	color: #282a67;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
}

body.page-id-272 .wpex-card.wpex-card-template_35613 :is(.erc-card__date, .erc-card__date p),
body.page-id-276 .wpex-card.wpex-card-template_35613 :is(.erc-card__date, .erc-card__date p),
body.page-id-288 .wpex-card.wpex-card-template_35618 :is(.erc-card__date, .erc-card__date p) {
	font-size: 14px;
	font-weight: 600;
}

body.page-id-272 .wpex-card.wpex-card-template_35613 :is(.erc-card__more, .erc-card__more p),
body.page-id-276 .wpex-card.wpex-card-template_35613 :is(.erc-card__more, .erc-card__more p),
body.page-id-288 .wpex-card.wpex-card-template_35618 :is(.erc-card__more, .erc-card__more p) {
	color: #282a67 !important;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
}

body.page-id-272 .wpex-card.wpex-card-template_35613 .erc-card__more p,
body.page-id-276 .wpex-card.wpex-card-template_35613 .erc-card__more p,
body.page-id-288 .wpex-card.wpex-card-template_35618 .erc-card__more p {
	display: inline-block;
	width: auto;
	margin-top: 8px;
	padding-bottom: 2px;
	border-bottom: 2px solid #fcbd1a;
	background: transparent;
}

body.page-id-288 .wpex-card.wpex-card-template_35618 .erc-card__more p::after {
	content: none;
}

body.page-id-288 .wpex-card.wpex-card-template_35618 :is(.erc-video-poster, .vcex-image)::after {
	background: #fcbd1a;
}

body.page-id-288 .wpex-card.wpex-card-template_35618 :is(.erc-video-poster, .vcex-image)::before {
	border-color: transparent transparent transparent #282a67;
}
