/* Native archive, search and page-recovery surfaces. */

.exg-native-search-page,
.exg-native-index-page,
.exg-native-not-found-page {
	--exg-resource-ink: #0a0a0a;
	--exg-resource-black: #0a0a0a;
	--exg-resource-yellow: #ffc400;
	--exg-resource-gold: #ffc800;
	--exg-resource-copy: #515151;
	--exg-resource-muted: #787878;
	--exg-resource-line: #e0e0e0;
	--exg-resource-surface: #f3f3f3;
	--exg-resource-white: #fff;
	background: var(--exg-resource-white);
	color: var(--exg-resource-ink);
}

.exg-native-not-found-page .exg-native-search__form {
	margin-top: 0;
}

.exg-resource-shell {
	width: min(1240px, calc(100% - 48px));
	margin-inline: auto;
}

.exg-resource-eyebrow {
	margin: 0 0 12px;
	font-family: var(--exg-display);
	font-size: 17px;
	font-weight: var(--exg-weight-action);
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.exg-resource-section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: var(--exg-space-6);
	margin-bottom: var(--exg-space-6);
}

.exg-resource-section-heading h2 {
	margin: 0;
	font-family: var(--exg-display);
	font-size: var(--exg-type-card-size);
	font-weight: var(--exg-weight-display);
	line-height: 0.98;
	letter-spacing: -0.015em;
	text-transform: uppercase;
}

.exg-resource-section-heading > a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	color: var(--exg-resource-ink);
	font-family: var(--exg-display);
	font-size: 17px;
	font-weight: var(--exg-weight-action);
	letter-spacing: 0.03em;
	text-decoration: none;
	text-transform: uppercase;
}

.exg-resource-section-heading > a:hover,
.exg-resource-section-heading > a:focus-visible {
	color: #806100;
}

/* Shared cards */

.exg-content-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--exg-space-5);
}

.exg-content-grid--search {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.exg-content-card {
	display: flex;
	min-width: 0;
	min-height: 100%;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--exg-resource-line);
	background: var(--exg-resource-white);
	box-shadow: 0 12px 35px rgba(10, 10, 10, 0.07);
}

.exg-content-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #e3e3e3;
}

.exg-content-card__media::after {
	position: absolute;
	inset: auto 0 0;
	height: 5px;
	background: var(--exg-resource-yellow);
	content: "";
}

.exg-content-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 240ms ease;
}

.exg-content-card:hover .exg-content-card__media img {
	transform: scale(1.025);
}

.exg-content-card__media--empty {
	display: grid;
	place-items: center;
	background:
		linear-gradient(135deg, transparent 52%, rgba(255, 196, 0, 0.92) 52% 58%, transparent 58%),
		var(--exg-resource-ink);
}

.exg-content-card__media--empty span {
	color: var(--exg-resource-white);
	font-family: var(--exg-display);
	font-size: 48px;
	font-weight: var(--exg-weight-action);
	letter-spacing: -0.04em;
}

.exg-content-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 18px;
}

.exg-content-card__kicker {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: var(--exg-space-2);
	color: var(--exg-resource-muted);
	font-family: var(--exg-display);
	font-size: var(--exg-type-caption-size);
	font-weight: var(--exg-weight-action);
	line-height: 1.1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.exg-content-card__kicker span {
	color: #806100;
}

.exg-content-card__kicker small {
	font: inherit;
	white-space: nowrap;
}

.exg-content-card h2 {
	margin: 0;
	font-family: var(--exg-display);
	font-size: var(--exg-type-card-sm-size);
	font-weight: var(--exg-weight-display);
	line-height: var(--exg-type-card-sm-line);
	letter-spacing: -0.01em;
}

.exg-content-card h2 a {
	color: var(--exg-resource-ink);
	text-decoration: none;
}

.exg-content-card h2 a:hover,
.exg-content-card h2 a:focus-visible {
	color: #806100;
}

.exg-content-card__extra {
	margin: var(--exg-space-3) 0 0;
	color: #806100;
	font-family: var(--exg-display);
	font-size: 15px;
	font-weight: var(--exg-weight-action);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.exg-content-card__excerpt {
	margin: var(--exg-space-3) 0 0;
	color: var(--exg-resource-copy);
	font-size: var(--exg-type-body-size);
	line-height: var(--exg-type-body-line);
}

.exg-content-card__action {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding-top: var(--exg-space-4);
	color: var(--exg-resource-ink);
	font-family: var(--exg-display);
	font-size: var(--exg-type-action-size);
	font-weight: var(--exg-weight-action);
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
}

.exg-content-card__action span:last-child {
	font-size: 22px;
	transition: transform 180ms ease;
}

.exg-content-card__action:hover span:last-child,
.exg-content-card__action:focus-visible span:last-child {
	transform: translateX(4px);
}

/* Category archive */

.exg-native-archive__hero,
.exg-native-search__hero {
	position: relative;
	overflow: hidden;
	padding: clamp(40px, 4.5vw, 56px) 0;
	border-top: 5px solid var(--exg-resource-yellow);
	background: var(--exg-resource-ink);
	color: var(--exg-resource-white);
}

.exg-native-archive__hero::after,
.exg-native-search__hero::after {
	position: absolute;
	top: -100px;
	right: -60px;
	width: 440px;
	height: 420px;
	background: rgba(255, 200, 0, 0.15);
	content: "";
	transform: rotate(-12deg);
}

.exg-native-archive__hero .exg-resource-shell,
.exg-native-search__hero .exg-resource-shell {
	position: relative;
	z-index: 1;
}

.exg-native-archive__hero .exg-resource-eyebrow,
.exg-native-search__hero .exg-resource-eyebrow {
	color: var(--exg-resource-yellow);
}

.exg-native-archive__hero h1,
.exg-native-search__hero h1 {
	margin: 0;
	color: var(--exg-resource-white);
	font-family: var(--exg-display);
	font-size: var(--exg-type-section-size);
	font-weight: var(--exg-weight-display);
	line-height: var(--exg-type-section-line);
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.exg-native-archive__hero p:not(.exg-resource-eyebrow),
.exg-native-search__hero p:not(.exg-resource-eyebrow) {
	max-width: 720px;
	margin: var(--exg-space-3) 0 0;
	color: #dedede;
	font-size: var(--exg-type-body-lg-size);
	line-height: var(--exg-type-body-lg-line);
}

.exg-native-archive__jump {
	border-bottom: 1px solid var(--exg-resource-line);
	background: var(--exg-resource-white);
}

.exg-native-archive__jump .exg-resource-shell {
	display: flex;
	min-height: 52px;
	align-items: center;
	gap: 28px;
	overflow-x: auto;
}

.exg-native-archive__jump span,
.exg-native-archive__jump a {
	flex: 0 0 auto;
	font-family: var(--exg-display);
	font-size: 15px;
	font-weight: var(--exg-weight-action);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.exg-native-archive__jump span {
	color: var(--exg-resource-muted);
}

.exg-native-archive__jump a {
	color: var(--exg-resource-ink);
	text-decoration: none;
}

.exg-native-archive__jump a:hover,
.exg-native-archive__jump a:focus-visible {
	color: #806100;
}

.exg-native-archive__feed,
.exg-native-search__results {
	padding: clamp(40px, 4.5vw, 56px) 0 clamp(48px, 5vw, 64px);
}

/* Search */

.exg-native-search__form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	max-width: 860px;
	margin-top: 32px;
	padding: 7px;
	background: var(--exg-resource-white);
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.exg-native-search__form input {
	width: 100%;
	min-width: 0;
	height: 58px;
	padding: 0 18px;
	border: 0;
	border-radius: 0;
	outline: 0;
	background: var(--exg-resource-white);
	color: var(--exg-resource-ink);
	font: var(--exg-weight-regular) 19px/1.2 var(--exg-body);
}

.exg-native-search__form input:focus {
	box-shadow: inset 0 0 0 3px var(--exg-resource-gold);
}

.exg-native-search__form button {
	min-width: 156px;
	height: 58px;
	padding: 0 24px;
	border: 0;
	border-radius: 0;
	background: var(--exg-resource-yellow);
	color: var(--exg-resource-black);
	cursor: pointer;
	font-family: var(--exg-display);
	font-size: 18px;
	font-weight: var(--exg-weight-action);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.exg-native-search__form button:hover,
.exg-native-search__form button:focus-visible {
	background: #ffda35;
}

.exg-native-search__starting-points {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.exg-native-search__starting-points a {
	display: flex;
	min-height: 170px;
	flex-direction: column;
	justify-content: flex-end;
	padding: 28px;
	border-top: 5px solid var(--exg-resource-yellow);
	background: var(--exg-resource-surface);
	color: var(--exg-resource-ink);
	text-decoration: none;
}

.exg-native-search__starting-points strong {
	font-family: var(--exg-display);
	font-size: 28px;
	font-weight: var(--exg-weight-display);
	line-height: 1;
	text-transform: uppercase;
}

.exg-native-search__starting-points span {
	margin-top: 11px;
	color: var(--exg-resource-copy);
	font-size: 16px;
	line-height: 1.45;
}

/* Page recovery */

.exg-native-not-found__hero {
	position: relative;
	overflow: hidden;
	padding: 72px 0 68px;
	border-top: 5px solid var(--exg-resource-yellow);
	background: var(--exg-resource-ink);
	color: var(--exg-resource-white);
}

.exg-native-not-found__hero::after {
	position: absolute;
	top: -160px;
	right: 8%;
	width: 360px;
	height: 520px;
	background: rgba(255, 200, 0, 0.14);
	content: "";
	transform: rotate(14deg);
}

.exg-native-not-found__hero-inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 60px;
}

.exg-native-not-found__hero .exg-resource-eyebrow {
	color: var(--exg-resource-yellow);
}

.exg-native-not-found__hero h1 {
	margin: 0;
	color: var(--exg-resource-white);
	font-family: var(--exg-display);
	font-size: var(--exg-type-hero-size, 58px);
	font-weight: var(--exg-weight-display);
	line-height: var(--exg-type-hero-line, 1);
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.exg-native-not-found__hero p:not(.exg-resource-eyebrow) {
	max-width: 660px;
	margin: 20px 0 0;
	color: #dedede;
	font-size: 20px;
	line-height: 1.5;
}

.exg-native-not-found__hero-inner > strong {
	position: relative;
	color: rgba(255, 255, 255, 0.1);
	font-family: var(--exg-display);
	font-size: clamp(120px, 15vw, 210px);
	font-weight: var(--exg-weight-action);
	line-height: 0.7;
	letter-spacing: -0.08em;
}

.exg-native-not-found__recovery {
	padding: 70px 0 84px;
	background: var(--exg-resource-surface);
}

.exg-native-not-found__search-card {
	display: grid;
	grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1.35fr);
	align-items: end;
	gap: 52px;
	padding: 38px;
	border-top: 5px solid var(--exg-resource-yellow);
	background: var(--exg-resource-white);
	box-shadow: 0 14px 40px rgba(10, 10, 10, 0.08);
}

.exg-native-not-found__search-card h2 {
	margin: 0;
	font-family: var(--exg-display);
	font-size: 36px;
	font-weight: var(--exg-weight-display);
	line-height: 1;
	text-transform: uppercase;
}

.exg-native-not-found__search-card .exg-native-search__form {
	border: 1px solid var(--exg-resource-line);
	box-shadow: none;
}

.exg-native-not-found__links {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin-top: 24px;
}

.exg-native-not-found__links a {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-rows: auto auto 1fr;
	min-height: 220px;
	padding: 26px;
	border: 1px solid var(--exg-resource-line);
	background: var(--exg-resource-white);
	color: var(--exg-resource-ink);
	text-decoration: none;
	transition: border-color 180ms ease, transform 180ms ease;
}

.exg-native-not-found__links a:hover,
.exg-native-not-found__links a:focus-visible {
	border-color: var(--exg-resource-gold);
	transform: translateY(-3px);
}

.exg-native-not-found__links span {
	grid-column: 1;
	color: #806100;
	font-family: var(--exg-display);
	font-size: 15px;
	font-weight: var(--exg-weight-action);
	letter-spacing: 0.08em;
}

.exg-native-not-found__links strong {
	grid-column: 1 / -1;
	margin-top: 24px;
	font-family: var(--exg-display);
	font-size: 27px;
	font-weight: var(--exg-weight-display);
	line-height: 1;
	text-transform: uppercase;
}

.exg-native-not-found__links small {
	grid-column: 1;
	align-self: end;
	margin-top: 14px;
	color: var(--exg-resource-copy);
	font-size: 16px;
	line-height: 1.45;
}

.exg-native-not-found__links b {
	grid-column: 2;
	grid-row: 3;
	align-self: end;
	font-size: 24px;
}

/* Empty states, pagination and CTA */

.exg-resource-empty {
	max-width: 760px;
	padding: 42px;
	border-top: 5px solid var(--exg-resource-yellow);
	background: var(--exg-resource-surface);
}

.exg-resource-empty h2 {
	margin: 0;
	font-family: var(--exg-display);
	font-size: 36px;
	font-weight: var(--exg-weight-display);
	line-height: 1;
	text-transform: uppercase;
}

.exg-resource-empty > p:not(.exg-resource-eyebrow) {
	margin: 17px 0 24px;
	color: var(--exg-resource-copy);
	font-size: 18px;
	line-height: 1.55;
}

.exg-resource-empty > a,
.exg-resource-empty__actions a {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 0 22px;
	background: var(--exg-resource-yellow);
	color: var(--exg-resource-black);
	font-family: var(--exg-display);
	font-size: 16px;
	font-weight: var(--exg-weight-action);
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
}

.exg-resource-empty__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.exg-resource-empty__actions a:last-child {
	border: 2px solid var(--exg-resource-ink);
	background: transparent;
}

.exg-resource-pagination {
	margin-top: 48px;
}

.exg-resource-pagination ul {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.exg-resource-pagination a,
.exg-resource-pagination span.page-numbers {
	display: grid;
	min-width: 44px;
	height: 44px;
	place-items: center;
	padding: 0 12px;
	border: 1px solid var(--exg-resource-line);
	color: var(--exg-resource-ink);
	font-family: var(--exg-display);
	font-size: 16px;
	font-weight: var(--exg-weight-action);
	text-decoration: none;
}

.exg-resource-pagination span.current,
.exg-resource-pagination a:hover,
.exg-resource-pagination a:focus-visible {
	border-color: var(--exg-resource-ink);
	background: var(--exg-resource-ink);
	color: var(--exg-resource-white);
}

.exg-resource-cta {
	padding: 52px 0;
	background: var(--exg-resource-yellow);
}

.exg-resource-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.exg-resource-cta .exg-resource-eyebrow {
	color: #4f4300;
}

.exg-resource-cta h2 {
	margin: 0;
	font-family: var(--exg-display);
	font-size: 40px;
	font-weight: var(--exg-weight-display);
	line-height: 1;
	text-transform: uppercase;
}

.exg-resource-cta__inner > a {
	display: inline-flex;
	min-width: 220px;
	min-height: 54px;
	align-items: center;
	justify-content: center;
	padding: 0 26px;
	background: var(--exg-resource-black);
	color: var(--exg-resource-white);
	font-family: var(--exg-display);
	font-size: 17px;
	font-weight: var(--exg-weight-action);
	letter-spacing: 0.04em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}

.exg-resource-cta__inner > a:hover,
.exg-resource-cta__inner > a:focus-visible {
	background: var(--exg-resource-ink);
}

@media (max-width: 1000px) {
	.exg-content-grid,
	.exg-content-grid--search {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.exg-native-not-found__links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.exg-resource-shell {
		width: min(100% - 32px, 1240px);
	}

	.exg-resource-section-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 14px;
		margin-bottom: 26px;
	}

	.exg-resource-section-heading h2 {
		font-size: 34px;
	}

	.exg-native-archive__hero,
	.exg-native-search__hero,
	.exg-native-not-found__hero {
		padding: var(--exg-space-7) 0;
	}

	.exg-native-archive__feed,
	.exg-native-search__results,
	.exg-native-not-found__recovery {
		padding: var(--exg-space-7) 0 var(--exg-space-9);
	}

	.exg-native-archive__hero p:not(.exg-resource-eyebrow),
	.exg-native-search__hero p:not(.exg-resource-eyebrow) {
		font-size: 18px;
	}

	.exg-native-search__form {
		grid-template-columns: 1fr;
		gap: 7px;
	}

	.exg-native-search__form button {
		width: 100%;
	}

	.exg-content-grid,
	.exg-content-grid--search,
	.exg-native-search__starting-points {
		grid-template-columns: 1fr;
	}

	.exg-native-not-found__hero-inner > strong {
		display: none;
	}

	.exg-native-not-found__search-card {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 28px;
	}

	.exg-native-not-found__links {
		grid-template-columns: 1fr;
	}

	.exg-native-not-found__links a {
		min-height: 190px;
	}

	.exg-content-card {
		min-height: 0;
	}

	.exg-content-card__body {
		padding: var(--exg-space-4);
	}

	.exg-content-card h2 {
		font-size: var(--exg-type-card-sm-size);
		line-height: var(--exg-type-card-sm-line);
	}

	.exg-content-card__action {
		margin-top: 4px;
	}

	.exg-resource-empty {
		padding: 30px 24px;
	}

	.exg-resource-cta {
		padding: 42px 0;
	}

	.exg-resource-cta__inner {
		align-items: stretch;
		flex-direction: column;
	}

	.exg-resource-cta h2 {
		font-size: 34px;
	}

	.exg-resource-cta__inner > a {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.exg-native-archive__jump .exg-resource-shell {
		gap: 20px;
	}

	.exg-content-card__kicker {
		align-items: flex-start;
		flex-direction: column;
		gap: 5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.exg-content-card__media img,
	.exg-content-card__action span:last-child {
		transition: none;
	}
}
