/**
 * Card archive layout.
 */

.loyseo-archive {
	background: var(--wp--preset--color--surface-soft);
}

.loyseo-archive__container {
	box-sizing: border-box;
	width: min(100%, var(--wp--style--global--content-size));
	margin-inline: auto;
}

.loyseo-archive__hero {
	padding-block: var(--wp--preset--spacing--50);
	text-align: center;
}

.loyseo-archive__title {
	margin: 0;
}

.loyseo-archive__content {
	padding-bottom: var(--wp--preset--spacing--70);
}

.loyseo-editorial-archive {
	display: grid;
	grid-template-columns: minmax(0, 75fr) minmax(280px, 25fr);
	gap: 20px;
	align-items: start;
	padding-bottom: var(--wp--preset--spacing--70);
}

.loyseo-editorial-archive__content {
	min-width: 0;
}

.loyseo-editorial-archive__content > :first-child {
	margin-top: 0;
}

.loyseo-editorial-archive__content > :last-child {
	margin-bottom: 0;
}

.loyseo-archive__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.loyseo-archive-card {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: var(--wp--preset--spacing--50);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: var(--wp--custom--radius--panel);
	background: var(--wp--preset--color--surface-white);
	transition: box-shadow 180ms ease;
}

.loyseo-archive-card:hover,
.loyseo-archive-card:focus-within {
	box-shadow: var(--wp--custom--shadow--soft-floating);
}

.loyseo-archive-card__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--title);
	font-weight: var(--wp--custom--typography--weight--semibold);
	line-height: var(--wp--custom--typography--line-height--title);
}

.loyseo-archive-card__title a {
	color: var(--wp--preset--color--text-heading);
	text-decoration: none;
}

.loyseo-archive-card__title a::after {
	position: absolute;
	z-index: 1;
	inset: 0;
	content: "";
}

.loyseo-archive-card__title a:hover,
.loyseo-archive-card__title a:focus-visible {
	color: var(--wp--preset--color--brand-primary);
}

.loyseo-archive-card__updated {
	display: block;
	margin-top: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--small);
	font-style: italic;
	line-height: var(--wp--custom--typography--line-height--small);
}

.loyseo-archive-card__excerpt {
	margin-top: var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--text-body);
	font-size: var(--wp--preset--font-size--body);
	line-height: var(--wp--custom--typography--line-height--body);
}

.loyseo-archive__load-state {
	display: grid;
	justify-items: center;
	min-height: var(--wp--preset--spacing--60);
	margin-top: var(--wp--preset--spacing--50);
	color: var(--wp--preset--color--text-muted);
	font-size: var(--wp--preset--font-size--small);
}

.loyseo-archive__load-state button {
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: var(--wp--custom--radius--compact);
	background: var(--wp--preset--color--surface-white);
	color: var(--wp--preset--color--text-body);
	font: inherit;
	cursor: pointer;
}

.loyseo-archive__sentinel {
	height: 1px;
}

.loyseo-archive__empty {
	margin: 0;
	padding: var(--wp--preset--spacing--60) 0;
	text-align: center;
}

@media (max-width: 700px) {
	.loyseo-archive__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.loyseo-archive-card {
		padding: var(--wp--preset--spacing--40);
	}
}

@media (max-width: 900px) {
	.loyseo-archive__container {
		padding-inline: var(--wp--preset--spacing--40);
	}

	.loyseo-editorial-archive {
		grid-template-columns: minmax(0, 1fr);
	}

}
