:root {
	--aq-library-bg: #fffdf9;
	--aq-library-card: #3c1116;
	--aq-library-accent: #d5a96c;
}

body.ancoraqui-library-page {
	background: var(--aq-library-bg);
	color: #3a0b0d;
}

body.ancoraqui-library-page #content,
body.ancoraqui-library-page .site-content,
body.ancoraqui-library-page .ast-container,
body.ancoraqui-library-page .content-area,
body.ancoraqui-library-page .site-main,
body.ancoraqui-library-page article.page,
body.ancoraqui-library-page .entry-content {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

body.ancoraqui-library-page .entry-header,
body.ancoraqui-library-page .entry-title {
	display: none;
}

body.ancoraqui-library-page .elementor-widget:not(:last-child) {
	margin-block-end: 0;
}

.aq-library-experience,
.aq-library-experience * {
	box-sizing: border-box;
}

.aq-library-experience {
	width: 100%;
	min-height: 760px;
	padding: 68px 24px 96px;
	background:
		radial-gradient(circle at 50% 9%, rgba(213, 169, 108, 0.09), transparent 25%),
		radial-gradient(circle at 14% 68%, rgba(94, 11, 21, 0.025), transparent 34%),
		var(--aq-library-bg);
	font-family: "Literata", Georgia, serif;
}

.aq-library-inner {
	width: min(100%, 1120px);
	margin: 0 auto;
}

.aq-library-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	text-align: center;
}

.aq-library-header h1 {
	max-width: 780px;
	margin: 0;
	color: var(--aq-library-accent);
	font-family: "EB Garamond", Georgia, serif;
	font-size: clamp(36px, 4.4vw, 52px);
	font-weight: 600;
	letter-spacing: -0.018em;
	line-height: 1.13;
}

.aq-library-search {
	position: relative;
	width: min(100%, 610px);
	margin: 2px auto 0;
}

.aq-library-search input {
	display: block;
	width: 100%;
	height: 54px;
	margin: 0;
	padding: 10px 50px 10px 50px;
	border: 1px solid rgba(94, 11, 21, 0.08);
	border-radius: 999px;
	outline: 0;
	background: rgba(73, 27, 32, 0.48);
	box-shadow: inset 0 2px 8px rgba(46, 12, 10, 0.1), 0 8px 24px rgba(94, 11, 21, 0.07);
	color: #fff8ef;
	font-family: "Literata", Georgia, serif;
	font-size: 15px;
	line-height: 1;
	transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.aq-library-search input::placeholder {
	color: rgba(255, 240, 231, 0.62);
	opacity: 1;
}

.aq-library-search input:focus {
	border-color: rgba(213, 169, 108, 0.72);
	background: rgba(73, 27, 32, 0.68);
	box-shadow: 0 0 0 4px rgba(213, 169, 108, 0.12), inset 0 2px 8px rgba(46, 12, 10, 0.08);
}

.aq-search-icon {
	position: absolute;
	z-index: 2;
	top: 50%;
	left: 18px;
	color: rgba(255, 240, 231, 0.72);
	font-family: Georgia, serif;
	font-size: 28px;
	line-height: 1;
	pointer-events: none;
	transform: translateY(-55%) rotate(-18deg);
}

.aq-search-clear {
	position: absolute;
	z-index: 3;
	top: 50%;
	right: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff4e7;
	font-family: "Manrope", sans-serif;
	font-size: 21px;
	cursor: pointer;
	transform: translateY(-50%);
}

.aq-search-clear[hidden] {
	display: none;
}

.aq-library-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	max-width: 900px;
}

.aq-category-filter {
	min-height: 38px;
	padding: 8px 17px;
	border: 1px solid rgba(94, 11, 21, 0.3);
	border-radius: 999px;
	background: #4b151a;
	box-shadow: none;
	color: #fff4e8;
	font-family: "Manrope", sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1;
	cursor: pointer;
	transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.aq-category-filter:hover,
.aq-category-filter:focus-visible {
	border-color: var(--aq-library-accent);
	transform: translateY(-1px);
}

.aq-category-filter.is-active {
	border-color: #6f111c;
	background: #6f111c;
	box-shadow: 0 7px 17px rgba(94, 11, 21, 0.2);
	color: #f3c9b7;
}

.aq-library-divider {
	width: 100%;
	height: 1px;
	margin: 54px 0 42px;
	background: linear-gradient(90deg, transparent, rgba(94, 11, 21, 0.18), transparent);
}

.aq-library-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 22px;
	transition: opacity 180ms ease;
}

.aq-library-card {
	position: relative;
	display: flex;
	grid-column: span 8;
	flex-direction: column;
	gap: 28px;
	min-height: 330px;
	padding: 34px 34px 30px;
	overflow: hidden;
	border: 1px solid rgba(255, 226, 204, 0.08);
	border-radius: 15px;
	background:
		radial-gradient(circle at 78% 18%, rgba(213, 169, 108, 0.06), transparent 32%),
		repeating-linear-gradient(92deg, rgba(255, 255, 255, 0.008) 0, rgba(255, 255, 255, 0.008) 1px, transparent 1px, transparent 4px),
		var(--aq-library-card);
	box-shadow: 0 16px 38px rgba(49, 4, 9, 0.16);
	color: #fff5ec;
	transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.aq-library-card:nth-child(4n + 2),
.aq-library-card:nth-child(4n + 3) {
	grid-column: span 4;
}

.aq-library-card:hover,
.aq-library-card:focus-within {
	border-color: rgba(213, 169, 108, 0.3);
	box-shadow: 0 21px 46px rgba(49, 4, 9, 0.23), 0 0 22px rgba(213, 169, 108, 0.08);
	transform: translateY(-3px);
}

.aq-card-topline {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 16px;
}

.aq-card-category {
	display: inline-flex;
	align-items: center;
	min-height: 25px;
	padding: 5px 11px;
	border-radius: 999px;
	background: rgba(113, 45, 51, 0.76);
	color: #e8c08f;
	font-family: "Manrope", sans-serif;
	font-size: 10px;
	font-weight: 600;
	line-height: 1;
}

.aq-card-topline time {
	color: rgba(255, 231, 218, 0.7);
	font-family: "Manrope", sans-serif;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
}

.aq-card-copy {
	position: relative;
	z-index: 2;
}

.aq-card-copy h2 {
	margin: 0 0 16px;
	font-family: "EB Garamond", Georgia, serif;
	font-size: 29px;
	font-weight: 600;
	letter-spacing: -0.012em;
	line-height: 1.17;
}

.aq-card-copy h2 a {
	position: relative;
	z-index: 4;
	color: #fff5ec;
	text-decoration: none;
	transition: color 180ms ease;
}

.aq-library-card:hover .aq-card-copy h2 a {
	color: #e8c08f;
}

.aq-card-copy p {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: rgba(255, 231, 218, 0.82);
	font-family: "Literata", Georgia, serif;
	font-size: 14px;
	line-height: 1.72;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.aq-library-card:nth-child(4n + 1) .aq-card-copy p,
.aq-library-card:nth-child(4n + 4) .aq-card-copy p {
	-webkit-line-clamp: 3;
}

.aq-card-footer {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 231, 218, 0.1);
	color: rgba(255, 241, 231, 0.9);
	font-family: "Manrope", sans-serif;
	font-size: 11px;
	font-weight: 500;
}

.aq-card-full-link {
	position: absolute;
	z-index: 3;
	inset: 0;
	border-radius: inherit;
}

.aq-card-copy h2 a {
	pointer-events: none;
}

.aq-library-load-row {
	display: flex;
	justify-content: center;
	min-height: 54px;
	margin-top: 54px;
}

.aq-library-load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 11px;
	min-width: 180px;
	min-height: 48px;
	padding: 12px 25px;
	border: 1px solid rgba(213, 169, 108, 0.62);
	border-radius: 999px;
	background: transparent;
	color: #b77d3e;
	font-family: "Manrope", sans-serif;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.aq-library-load-more:hover,
.aq-library-load-more:focus-visible {
	background: rgba(213, 169, 108, 0.12);
	box-shadow: 0 0 18px rgba(213, 169, 108, 0.13);
	transform: translateY(-1px);
}

.aq-library-load-more[hidden] {
	display: none;
}

.aq-library-load-more:disabled {
	opacity: 0.52;
	cursor: wait;
}

.aq-library-empty {
	margin: 0 auto;
	padding: 58px 20px;
	color: #6f4f4c;
	font-family: "Literata", Georgia, serif;
	font-size: 17px;
	line-height: 1.6;
	text-align: center;
}

.aq-library-empty[hidden] {
	display: none;
}

.aq-library-experience.is-loading .aq-library-grid {
	opacity: 0.42;
}

.aq-library-status.is-error {
	display: block;
	margin: 0 0 18px;
	padding: 10px 14px;
	border-radius: 8px;
	background: #f7dedb;
	color: #7b161c;
	font-family: "Manrope", sans-serif;
	font-size: 13px;
	text-align: center;
}

.aq-screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
	white-space: nowrap !important;
}

@media (max-width: 820px) {
	.aq-library-experience {
		padding: 52px 20px 76px;
	}

	.aq-library-header {
		gap: 24px;
	}

	.aq-library-divider {
		margin: 42px 0 34px;
	}

	.aq-library-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.aq-library-card,
	.aq-library-card:nth-child(4n + 2),
	.aq-library-card:nth-child(4n + 3) {
		grid-column: 1;
		min-height: 300px;
	}
}

@media (max-width: 520px) {
	.aq-library-experience {
		padding: 40px 14px 62px;
	}

	.aq-library-header h1 {
		font-size: 34px;
	}

	.aq-library-search input {
		height: 50px;
		font-size: 14px;
	}

	.aq-library-filters {
		gap: 8px;
	}

	.aq-category-filter {
		padding: 8px 14px;
		font-size: 11px;
	}

	.aq-library-card {
		min-height: 0;
		padding: 28px 24px 25px;
	}

	.aq-card-topline {
		flex-wrap: wrap;
	}

	.aq-card-copy h2 {
		font-size: 26px;
	}

	.aq-library-load-row {
		margin-top: 42px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aq-library-experience *,
	.aq-library-experience *::before,
	.aq-library-experience *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
