/* Guides archive + single
-------------------------------------------------- */

.site-main--guides {
	padding: 0;
}

.guides-intro {
	position: relative;
}

.guides-hero {
	background: var(--color-bg);
	overflow: hidden;
}

.guides-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
	align-items: stretch;
	height: clamp(22rem, 34vw, 27rem);
	min-height: 22rem;
	max-height: 27rem;
}

.guides-hero__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(1.5rem, 3vw, 2.35rem) clamp(1.15rem, 2.5vw, 2.25rem) clamp(2.35rem, 4vw, 3.25rem) var(--page-gutter, clamp(1.15rem, 4vw, 3.5rem));
	max-width: 36rem;
}

.guides-hero__heading {
	margin: 0 0 0.85rem;
	font-family: var(--font-serif);
	font-size: clamp(1.95rem, 3vw, 2.85rem);
	line-height: 1.1;
	letter-spacing: -0.025em;
	font-weight: 400;
}

.guides-hero__text {
	margin: 0;
	max-width: 30rem;
	color: var(--color-muted);
	font-size: 0.98rem;
	line-height: 1.65;
}

.guides-hero__media {
	position: relative;
	height: 100%;
	overflow: hidden;
	background: #e7e1d6;
}

.guides-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		var(--color-bg) 0%,
		color-mix(in srgb, var(--color-bg) 70%, transparent) 12%,
		transparent 28%
	);
	pointer-events: none;
	z-index: 1;
}

.guides-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.guides-filters-wrap {
	position: relative;
	z-index: 5;
	margin-top: -3.85rem;
}

.guides-filters {
	background: #fbf9f5;
	border: 1px solid var(--color-border);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
	padding: 1rem 1.1rem 1.05rem;
}

.guides-search {
	position: relative;
	display: flex;
	align-items: center;
}

.guides-search__icon {
	position: absolute;
	left: 0.95rem;
	color: #9a948c;
	display: inline-flex;
	pointer-events: none;
}

.guides-search__input {
	width: 100%;
	height: 3rem;
	padding: 0 2.75rem 0 2.75rem;
	border: 1px solid var(--color-border);
	background: #fffefb;
	color: var(--color-text);
	font-family: var(--font-sans);
	font-size: 0.95rem;
	border-radius: 0;
}

.guides-search__input::-webkit-search-cancel-button {
	display: none;
}

.guides-search__input:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 1px;
}

.guides-search__clear {
	position: absolute;
	right: 0.55rem;
	width: 2rem;
	height: 2rem;
	border: 0;
	background: transparent;
	color: #6f6a63;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

.guides-search__clear:hover,
.guides-search__clear:focus-visible {
	color: var(--color-text);
}

.guides-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 1.15rem;
	margin-top: 0.95rem;
	padding-top: 0.85rem;
	border-top: 1px solid var(--color-border);
}

.guides-category {
	appearance: none;
	border: 0;
	background: transparent;
	padding: 0.15rem 0;
	font-family: var(--font-sans);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #8a847c;
	cursor: pointer;
	border-bottom: 1px solid transparent;
}

.guides-category:hover,
.guides-category:focus-visible {
	color: var(--color-text);
}

.guides-category.is-active {
	color: var(--color-accent);
	border-bottom-color: var(--color-accent);
}

.guides-archive {
	padding: clamp(2.25rem, 3.5vw, 3.1rem) 0 clamp(3rem, 5vw, 4.5rem);
}

.guides-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem 1.25rem;
	margin-bottom: 1.35rem;
}

.guides-toolbar__count {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	color: var(--color-muted);
}

.guides-sort {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.82rem;
	color: var(--color-muted);
}

.guides-select {
	border: 1px solid var(--color-border);
	background: #fbf9f5;
	padding: 0.45rem 0.65rem;
	font-family: var(--font-sans);
	font-size: 0.85rem;
	color: var(--color-text);
}

.guides-results.is-loading {
	opacity: 0.55;
	pointer-events: none;
}

.guides-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.35rem, 2.5vw, 2rem);
}

.guide-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.guide-card__media-link {
	display: block;
	overflow: hidden;
	background: #e7e1d6;
	aspect-ratio: 4 / 3;
}

.guide-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease;
}

.guide-card:hover .guide-card__image,
.guide-card:focus-within .guide-card__image {
	transform: scale(1.03);
}

.guide-card__body {
	padding-top: 0.95rem;
}

.guide-card__category {
	margin: 0 0 0.4rem;
	font-family: var(--font-sans);
	font-size: 0.62rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-accent);
}

.guide-card__title {
	margin: 0 0 0.55rem;
	font-family: var(--font-serif);
	font-size: 1.25rem;
	font-weight: 400;
	line-height: 1.25;
}

.guide-card__title a {
	color: inherit;
	text-decoration: none;
}

.guide-card__title a:hover,
.guide-card__title a:focus-visible {
	color: var(--color-accent);
}

.guide-card__excerpt {
	margin: 0 0 0.65rem;
	color: var(--color-muted);
	font-size: 0.9rem;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.guide-card__date {
	margin: 0 0 0.75rem;
	font-family: var(--font-sans);
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	color: #9a948c;
}

.guide-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-family: var(--font-sans);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--color-text);
}

.guide-card__cta:hover,
.guide-card__cta:focus-visible {
	color: var(--color-accent);
}

.guide-card__cta span {
	transition: transform 0.25s ease;
}

.guide-card__cta:hover span,
.guide-card__cta:focus-visible span {
	transform: translateX(3px);
}

.guides-empty {
	grid-column: 1 / -1;
	padding: 2.5rem 0;
	text-align: left;
}

.guides-empty__title {
	margin: 0 0 0.45rem;
	font-family: var(--font-serif);
	font-size: 1.65rem;
	font-weight: 400;
}

.guides-empty__text {
	margin: 0 0 1.15rem;
	color: var(--color-muted);
}

.guides-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 2rem;
}

.guides-pagination__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.55rem;
	border: 1px solid var(--color-border);
	color: var(--color-text);
	text-decoration: none;
	font-size: 0.85rem;
}

.guides-pagination__item.is-active,
.guides-pagination__item:hover,
.guides-pagination__item:focus-visible {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

/* Single Guide
-------------------------------------------------- */

.site-main--guide-single {
	padding: 0;
}

.guide-single-breadcrumbs {
	padding: 0.85rem 0 0.35rem;
}

.guide-single-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--font-sans);
	font-size: 0.78rem;
	color: #9a948c;
}

.guide-single-breadcrumbs__list li {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
}

.guide-single-breadcrumbs__list li:not(:last-child)::after {
	content: ">";
	color: #b7b1a8;
}

.guide-single-breadcrumbs__list a {
	color: #9a948c;
	text-decoration: none;
}

.guide-single-breadcrumbs__list a:hover,
.guide-single-breadcrumbs__list a:focus-visible {
	color: var(--color-text);
}

.guide-single-header {
	padding: clamp(1.25rem, 3vw, 2.25rem) 0 1.35rem;
	text-align: center;
}

.guide-single-header__inner {
	max-width: 44rem;
	margin: 0 auto;
}

.guide-single-header__category {
	margin: 0 0 0.75rem;
	font-family: var(--font-sans);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-accent);
}

.guide-single-header__category a {
	color: inherit;
	text-decoration: none;
}

.guide-single-header__title {
	margin: 0 0 0.85rem;
	font-family: var(--font-serif);
	font-size: clamp(2rem, 3.8vw, 3rem);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -0.025em;
}

.guide-single-header__excerpt {
	margin: 0 auto 1rem;
	max-width: 36rem;
	color: var(--color-muted);
	font-size: 1.05rem;
	line-height: 1.65;
}

.guide-single-header__meta {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	color: #9a948c;
}

.guide-single-feature {
	margin: 0 0 clamp(1.75rem, 3vw, 2.5rem);
}

.guide-single-feature__media {
	aspect-ratio: 21 / 9;
	overflow: hidden;
	background: #e7e1d6;
}

.guide-single-feature__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.guide-single-content {
	max-width: 46rem;
	margin: 0 auto;
	padding: 0 0 clamp(2rem, 4vw, 3rem);
}

.guide-single-content.entry-content {
	font-size: 1.02rem;
	line-height: 1.8;
	color: #3f3c37;
}

.guide-single-content.entry-content h2 {
	margin: 2rem 0 0.85rem;
	font-family: var(--font-serif);
	font-size: 1.65rem;
	font-weight: 400;
	line-height: 1.25;
}

.guide-single-content.entry-content h3 {
	margin: 1.65rem 0 0.65rem;
	font-family: var(--font-serif);
	font-size: 1.3rem;
	font-weight: 400;
}

.guide-single-content.entry-content p,
.guide-single-content.entry-content ul,
.guide-single-content.entry-content ol {
	margin: 0 0 1.15rem;
}

.guide-single-content.entry-content a {
	color: var(--color-accent);
}

.guide-single-content.entry-content blockquote {
	margin: 1.75rem 0;
	padding: 0.35rem 0 0.35rem 1.15rem;
	border-left: 2px solid var(--color-accent);
	font-family: var(--font-serif);
	font-size: 1.25rem;
	font-style: italic;
	line-height: 1.45;
	color: var(--color-text);
}

.guide-single-share {
	max-width: 46rem;
	margin: 0 auto 2.5rem;
	padding-top: 1.35rem;
	border-top: 1px solid var(--color-border);
}

.guide-single-share__label {
	margin: 0 0 0.55rem;
	font-family: var(--font-sans);
	font-size: 0.62rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-muted);
}

.guide-single-share__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 0.95rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.guide-single-share__list a,
.guide-single-share__copy {
	font-family: var(--font-sans);
	font-size: 0.78rem;
	color: #6a655e;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	text-decoration: none;
}

.guide-single-share__list a:hover,
.guide-single-share__copy:hover,
.guide-single-share__copy.is-copied {
	color: var(--color-accent);
}

.guide-single-related {
	padding: clamp(2rem, 4vw, 3.25rem) 0;
	background: #efe9e0;
}

.guide-single-related__heading {
	margin: 0 0 1.35rem;
	font-family: var(--font-sans);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-accent);
}

.guide-single-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.25rem, 2.5vw, 2rem);
}

/* Contact preview + legal pages
-------------------------------------------------- */

.ar-preview-page {
	padding: clamp(3.5rem, 8vw, 6rem) 0;
	background: var(--color-bg);
}

.ar-preview-page__inner {
	max-width: 32rem;
	margin: 0 auto;
	text-align: center;
}

.ar-preview-page__brand {
	margin: 0 0 0.85rem;
	font-family: var(--font-sans);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--color-accent);
}

.ar-preview-page__rule {
	display: block;
	width: 2.5rem;
	height: 1px;
	margin: 0 auto 1.15rem;
	background: var(--color-accent);
}

.ar-preview-page__title {
	margin: 0 0 1rem;
	font-family: var(--font-serif);
	font-size: clamp(2rem, 3.5vw, 2.75rem);
	font-weight: 400;
	line-height: 1.15;
}

.ar-preview-page__text {
	margin: 0 0 0.85rem;
	color: var(--color-muted);
	font-size: 0.98rem;
	line-height: 1.7;
}

.ar-preview-page__actions {
	margin-top: 1.65rem;
}

.page-legal .page-hero {
	padding-bottom: 0.5rem;
}

.page-legal .entry-content {
	max-width: 42rem;
}

.page-legal .entry-content h2 {
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--color-border);
	font-family: var(--font-serif);
	font-size: 1.45rem;
	font-weight: 400;
}

.page-legal .entry-content .button {
	margin-top: 0.5rem;
}

@media (max-width: 1000px) {
	.guides-grid,
	.guide-single-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.guides-hero__inner {
		grid-template-columns: 1fr;
		height: auto;
		max-height: none;
		min-height: 0;
	}

	.guides-hero__copy {
		max-width: none;
		padding: 1.5rem var(--page-gutter, 1.15rem) 1.35rem;
	}

	.guides-hero__media {
		height: 42vw;
		max-height: 18rem;
		min-height: 12rem;
	}

	.guides-hero__media::after {
		background: linear-gradient(180deg, var(--color-bg) 0%, transparent 28%);
	}

	.guides-filters-wrap {
		margin-top: -2rem;
	}
}

@media (max-width: 700px) {
	.guides-grid,
	.guide-single-related__grid {
		grid-template-columns: 1fr;
	}

	.guides-categories {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 0.35rem;
		-webkit-overflow-scrolling: touch;
	}

	.guide-single-feature__media {
		aspect-ratio: 16 / 10;
	}
}
