/* ============================================================
   ERAS® SOCIETY – HISTORY ARCHIVE
   /assets/css/history.css
   ============================================================ */

.eras-history {
	--history-blue: #064487;
	--history-blue-dark: #043565;
	--history-light: #f3f8fb;
	--history-border: #dce7ed;
	--history-text: #354d60;
	--history-muted: #718493;

	position: relative;

	background: #fff;
	color: var(--history-text);
}


/* ============================================================
   PAGE BACKGROUND
   ============================================================ */

.eras-history-page {
	position: relative;

	background:
		linear-gradient(
			to bottom,
			#f2f8fb 0,
			#f2f8fb 535px,
			#ffffff 535px,
			#ffffff 100%
		);
}


/* ============================================================
   MAIN LAYOUT
   ============================================================ */

.eras-history-layout {
	display: grid;

	grid-template-columns:
		minmax(0, 1fr)
		230px;

	gap: clamp(48px, 5vw, 76px);

	align-items: stretch;

	width: 100%;
}


.eras-history-main {
	min-width: 0;
}


/* ============================================================
   HERO
   ============================================================ */

.eras-history-hero {
	position: relative;

	padding:
		clamp(72px, 6vw, 96px)
		0
		clamp(76px, 6vw, 100px);

	background: transparent;

	overflow: hidden;
}


.eras-history-hero::after {
	content: "";

	position: absolute;

	right: 0;
	bottom: 0;
	left: 0;

	height: 1px;

	background:
		linear-gradient(
			90deg,
			transparent,
			rgba(6, 68, 135, .09),
			transparent
		);
}


.eras-history-hero__inner {
	position: relative;
	z-index: 2;

	max-width: 880px;
}


/* ============================================================
   HERO KICKER
   ============================================================ */

.eras-history-kicker {
	display: flex;
	align-items: center;
	gap: 11px;

	margin-bottom: 18px;

	color: var(--history-blue);

	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .12em;
	text-transform: uppercase;
}


.eras-history-kicker span {
	display: block;

	width: 28px;
	height: 2px;

	background: var(--history-blue);
}


/* ============================================================
   HERO TITLE
   ============================================================ */

.eras-history-hero h1 {
	max-width: 850px;

	margin: 0;

	color: var(--history-blue);

	font-size:
		clamp(
			55px,
			5vw,
			74px
		);

	font-weight: 500;
	line-height: .98;
	letter-spacing: -.045em;
}


/* ============================================================
   HERO INTRO
   ============================================================ */

.eras-history-hero p {
	max-width: 830px;

	margin: 24px 0 0;

	color: #526a7b;

	font-size: 16.5px;
	line-height: 1.72;
}


/* ============================================================
   HERO DECORATION
   ============================================================ */

.eras-history-hero__ring {
	position: absolute;

	border:
		1px
		solid
		rgba(6, 68, 135, .055);

	border-radius: 50%;

	pointer-events: none;
}


.eras-history-hero__ring--one {
	top: -370px;
	right: -260px;

	width: 690px;
	height: 690px;
}


.eras-history-hero__ring--two {
	bottom: -480px;
	left: -330px;

	width: 670px;
	height: 670px;
}


/* ============================================================
   STICKY ARCHIVE COLUMN
   ============================================================ */

.eras-history-sidebar {
	position: relative;

	align-self: stretch;

	min-width: 0;
}


/*
 * This element becomes sticky.
 *
 * Because the parent sidebar stretches across the complete
 * height of the History layout, the archive can follow the
 * visitor all the way through the history content.
 */
.eras-history-sidebar__inner {
	position: sticky;

	top: 100px;

	margin-top: 72px;

	padding:
		18px
		15px
		15px;

	border:
		1px
		solid
		rgba(6, 68, 135, .11);

	border-radius: 11px;

	background:
		rgba(
			255,
			255,
			255,
			.92
		);

	box-shadow:
		0 14px 36px rgba(25, 55, 80, .07);

	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}


/* ============================================================
   ARCHIVE HEADER
   ============================================================ */

.eras-history-sidebar__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;

	margin-bottom: 11px;
}


.eras-history-years__label {
	color: var(--history-blue);

	font-size: 9px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .12em;
	text-transform: uppercase;
}


.eras-history-sidebar__heading > span {
	display: grid;
	place-items: center;

	min-width: 25px;
	height: 25px;

	padding: 0 6px;

	border-radius: 999px;

	background: #e8f3f8;
	color: var(--history-blue);

	font-size: 10px;
	font-weight: 700;
}


/* ============================================================
   ARCHIVE SCROLL
   ============================================================ */

.eras-history-years__nav {
	display: grid;

	max-height: 245px;

	padding-right: 5px;

	overflow-x: hidden;
	overflow-y: auto;

	scrollbar-width: thin;

	scrollbar-color:
		#b7d1dd
		transparent;

	overscroll-behavior: contain;
}


.eras-history-years__nav::-webkit-scrollbar {
	width: 4px;
}


.eras-history-years__nav::-webkit-scrollbar-track {
	background: transparent;
}


.eras-history-years__nav::-webkit-scrollbar-thumb {
	background: #b7d1dd;

	border-radius: 999px;
}


/* ============================================================
   ARCHIVE YEAR BUTTON
   ============================================================ */

.eras-history-year-button {
	position: relative;

	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;

	width: 100%;
	min-height: 39px;

	padding:
		0
		8px
		0
		11px;

	border: 0;
	border-bottom:
		1px
		solid
		rgba(6, 68, 135, .07);

	background: transparent;
	color: #657c8b;

	font: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;

	text-align: left;

	cursor: pointer;

	transition:
		background .16s ease,
		color .16s ease,
		padding-left .16s ease;
}


.eras-history-year-button:last-child {
	border-bottom: 0;
}


.eras-history-year-button::before {
	content: "";

	position: absolute;

	top: 50%;
	left: 0;

	width: 2px;
	height: 0;

	border-radius: 999px;

	background: var(--history-blue);

	transform: translateY(-50%);

	transition: height .16s ease;
}


.eras-history-year-button i {
	opacity: 0;

	color: var(--history-blue);

	font-size: 10px;

	transform: translateX(-3px);

	transition:
		opacity .16s ease,
		transform .16s ease;
}


.eras-history-year-button:hover {
	background: #f4f9fb;
	color: var(--history-blue);
}


.eras-history-year-button.is-active {
	padding-left: 17px;

	border-radius: 5px;

	background: #e5f2f8;
	color: var(--history-blue);
}


.eras-history-year-button.is-active::before {
	height: 21px;
}


.eras-history-year-button.is-active i {
	opacity: 1;

	transform: translateX(0);
}


/* ============================================================
   HISTORY CONTENT AREA
   ============================================================ */

.eras-history-archive {
	padding:
		clamp(62px, 6vw, 82px)
		0
		clamp(95px, 8vw, 125px);

	background: transparent;

	scroll-margin-top: 100px;
}


.eras-history-content {
	width: 100%;
	min-width: 0;
}


/* ============================================================
   YEAR PANEL
   ============================================================ */

.eras-history-panel {
	display: none;
}


.eras-history-panel.is-active {
	display: block;

	animation:
		erasHistoryFade
		.22s
		ease;
}


@keyframes erasHistoryFade {

	from {
		opacity: 0;

		transform: translateY(5px);
	}

	to {
		opacity: 1;

		transform: translateY(0);
	}

}


/* ============================================================
   YEAR HEADER
   ============================================================ */

.eras-history-panel__header {
	width: 100%;

	margin-bottom: 34px;
	padding-bottom: 27px;

	border-bottom:
		1px
		solid
		var(--history-border);
}


.eras-history-panel__eyebrow {
	margin-bottom: 8px;

	color: var(--history-blue);

	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .12em;
	text-transform: uppercase;
}


.eras-history-panel__year {
	color: var(--history-blue);

	font-size:
		clamp(
			48px,
			4vw,
			55px
		);

	font-weight: 500;
	line-height: .92;
	letter-spacing: -.055em;
}


.eras-history-panel__header h2 {
	max-width: 820px;

	margin: 17px 0 0;

	color: #22394b;

	font-size:
		clamp(
			29px,
			3vw,
			40px
		);

	font-weight: 500;
	line-height: 1.16;
	letter-spacing: -.025em;
}


/* ============================================================
   WYSIWYG CONTENT
   ============================================================ */

.eras-history-panel__body {
	width: 100%;

	color: var(--history-text);

	font-size: 16px;
	line-height: 1.8;
}


.eras-history-panel__body > :first-child {
	margin-top: 0;
}


.eras-history-panel__body > :last-child {
	margin-bottom: 0;
}


.eras-history-panel__body p {
	margin: 0 0 23px;
}


.eras-history-panel__body h2,
.eras-history-panel__body h3,
.eras-history-panel__body h4 {
	margin:
		42px
		0
		16px;

	color: var(--history-blue);

	font-weight: 550;
	line-height: 1.2;
}


.eras-history-panel__body h2 {
	font-size: 32px;
}


.eras-history-panel__body h3 {
	font-size: 25px;
}


.eras-history-panel__body h4 {
	font-size: 20px;
}


.eras-history-panel__body a {
	color: var(--history-blue);
	text-decoration: underline dashed;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}


.eras-history-panel__body ul,
.eras-history-panel__body ol {
	margin: 0 0 24px;

	padding-left: 24px;
}


.eras-history-panel__body li + li {
	margin-top: 8px;
}


.eras-history-panel__body blockquote {
	margin: 34px 0;

	padding: 22px 26px;

	border-left:
		3px
		solid
		var(--history-blue);

	background: var(--history-light);

	color: #526a7b;
}


.eras-history-panel__body hr {
	height: 1px;

	margin: 38px 0;

	border: 0;

	background: var(--history-border);
}


/* ============================================================
   WYSIWYG IMAGES
   ============================================================ */

.eras-history-panel__body img {
	display: block;

	max-width: 100%;
	height: auto;

	margin: 32px 0;

	border-radius: 10px;

	box-shadow:
		0 14px 34px rgba(25, 55, 80, .085);
}


/*
 * Remove old float behaviour from imported WordPress content.
 */
.eras-history-panel__body .alignleft,
.eras-history-panel__body .alignright,
.eras-history-panel__body .aligncenter {
	float: none;

	display: block;

	max-width: 100%;

	margin: 32px auto;
}


.eras-history-panel__body figure {
	max-width: 100%;

	margin: 32px 0;
}


.eras-history-panel__body figure img {
	margin: 0;
}


.eras-history-panel__body figcaption {
	max-width: 900px;

	margin-top: 9px;

	color: var(--history-muted);

	font-size: 12px;
	line-height: 1.5;
}


/* ============================================================
   PREVIOUS / NEXT
   ============================================================ */

.eras-history-panel__footer {
	display: grid;

	grid-template-columns:
		1fr
		1fr;

	gap: 14px;

	width: 100%;

	margin-top: 52px;
	padding-top: 24px;

	border-top:
		1px
		solid
		var(--history-border);
}


.eras-history-step {
	display: inline-flex;
	align-items: center;
	gap: 9px;

	width: fit-content;
	min-height: 40px;

	padding: 0 14px;

	border:
		1px
		solid
		#d5e4eb;

	border-radius: 6px;

	background: #f5fafc;
	color: var(--history-blue);

	font: inherit;
	font-size: 12px;
	font-weight: 650;

	cursor: pointer;

	transition:
		background .18s ease,
		border-color .18s ease,
		transform .18s ease;
}


.eras-history-step:hover {
	border-color: #bdd6e2;

	background: #eaf5fa;

	transform: translateY(-1px);
}


.eras-history-step--next {
	justify-self: end;
}


/* ============================================================
   EMPTY STATE
   ============================================================ */

.eras-history-empty {
	max-width: 700px;

	padding: 30px;

	border:
		1px
		solid
		var(--history-border);

	border-radius: 10px;

	background: var(--history-light);
}


.eras-history-empty h2 {
	margin: 0 0 8px;

	color: var(--history-blue);
}


.eras-history-empty p {
	margin: 0;
}


/* ============================================================
   MOBILE YEAR SELECT
   ============================================================ */

.eras-history-mobile-select {
	display: none;
}


/* ============================================================
   SMALL DESKTOP
   ============================================================ */

@media (max-width: 1100px) {

	.eras-history-layout {
		grid-template-columns:
			minmax(0, 1fr)
			205px;

		gap: 42px;
	}


	.eras-history-sidebar__inner {
		padding: 16px 13px;
	}


	.eras-history-years__nav {
		max-height: 225px;
	}

}


/* ============================================================
   TABLET / MOBILE
   ============================================================ */

@media (max-width: 800px) {

	.eras-history-page {
		background:
			linear-gradient(
				to bottom,
				#f2f8fb 0,
				#f2f8fb 420px,
				#fff 420px,
				#fff 100%
			);
	}


	.eras-history-layout {
		display: block;
	}


	/* Hide sticky sidebar */

	.eras-history-sidebar {
		display: none;
	}


	/* Hero */

	.eras-history-hero {
		padding:
			48px
			0
			54px;
	}


	.eras-history-kicker {
		margin-bottom: 13px;
	}


	.eras-history-hero h1 {
		font-size:
			clamp(
				44px,
				13vw,
				58px
			);
	}


	.eras-history-hero p {
		margin-top: 18px;

		font-size: 15.5px;
		line-height: 1.68;
	}


	.eras-history-hero__ring--one {
		right: -350px;
	}


	/* Archive */

	.eras-history-archive {
		padding:
			38px
			0
			70px;
	}


	/* Mobile year selector */

	.eras-history-mobile-select {
		display: block;

		margin-bottom: 30px;
	}


	.eras-history-mobile-select label {
		display: block;

		margin-bottom: 7px;

		color: #687e8d;

		font-size: 9px;
		font-weight: 700;
		line-height: 1;
		letter-spacing: .11em;
		text-transform: uppercase;
	}


	.eras-history-mobile-select__field {
		position: relative;
	}


	.eras-history-mobile-select select {
		width: 100%;
		height: 50px;

		padding:
			0
			45px
			0
			14px;

		border:
			1px
			solid
			#d6e5ec;

		border-radius: 7px;

		appearance: none;
		-webkit-appearance: none;

		background: #fff;
		color: var(--history-blue);

		font: inherit;
		font-size: 15px;
		font-weight: 650;

		outline: none;
	}


	.eras-history-mobile-select select:focus {
		border-color: #a8cad9;

		box-shadow:
			0 0 0 3px rgba(6, 68, 135, .06);
	}


	.eras-history-mobile-select i {
		position: absolute;

		top: 50%;
		right: 15px;

		color: var(--history-blue);

		font-size: 11px;

		pointer-events: none;

		transform: translateY(-50%);
	}


	/* Year */

	.eras-history-panel__header {
		margin-bottom: 25px;
		padding-bottom: 21px;
	}


	.eras-history-panel__year {
		font-size:
			clamp(
				50px,
				16vw,
				65px
			);
	}


	.eras-history-panel__header h2 {
		margin-top: 13px;

		font-size: 28px;
	}


	/* Content */

	.eras-history-panel__body {
		font-size: 15.5px;
		line-height: 1.75;
	}


	.eras-history-panel__body p,
	.eras-history-panel__body ul,
	.eras-history-panel__body ol,
	.eras-history-panel__body h2,
	.eras-history-panel__body h3,
	.eras-history-panel__body h4,
	.eras-history-panel__body blockquote {
		max-width: none;
	}


	.eras-history-panel__body img,
	.eras-history-panel__body .alignleft,
	.eras-history-panel__body .alignright,
	.eras-history-panel__body .aligncenter {
		margin: 24px 0;
	}


	.eras-history-panel__footer {
		margin-top: 40px;
	}

}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 430px) {

	.eras-history-panel__footer {
		grid-template-columns: 1fr;
	}


	.eras-history-step,
	.eras-history-step--next {
		justify-self: stretch;

		justify-content: center;

		width: 100%;
	}


	.eras-history-step--next {
		grid-row: 2;
	}

}