/* =========================================================================
   bg-fresh :: Resources / Downloads library
   Uses theme tokens (--teal, --cream, --ink) with safe fallbacks.
   ========================================================================= */

.bgq-resources-wrap {
	--bgq-teal: var(--teal, #25A2A1);
	--bgq-cream: var(--cream, #F3E5D7);
	--bgq-ink: var(--ink, #1c2a2a);
	--bgq-rule: rgba(28, 42, 42, 0.12);
	--bgq-card: #ffffff;

	max-width: 1160px;
	margin: 0 auto;
	padding: 64px 24px 96px;
	font-family: 'Sora', system-ui, sans-serif;
	color: var(--bgq-ink);
}

/* ---- Header ---- */
.bgq-res-head {
	max-width: 720px;
	margin-bottom: 48px;
}
.bgq-res-eyebrow {
	display: inline-block;
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bgq-teal);
	font-weight: 600;
	margin-bottom: 14px;
}
.bgq-res-title {
	font-size: clamp(30px, 4vw, 46px);
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 0 0 16px;
	color: var(--bgq-ink);
}
.bgq-res-lede {
	font-size: 17px;
	line-height: 1.6;
	font-weight: 300;
	color: rgba(28, 42, 42, 0.72);
	margin: 0;
}

/* ---- Grid ---- */
.bgq-res-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 28px;
}

/* ---- Card ---- */
.bgq-res-card {
	display: flex;
	flex-direction: column;
	background: var(--bgq-card);
	border: 1px solid var(--bgq-rule);
	border-radius: 2px;
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.bgq-res-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(28, 42, 42, 0.10);
}

.bgq-res-card-cover {
	display: block;
	position: relative;
	aspect-ratio: 17 / 22;
	background: var(--bgq-cream);
	overflow: hidden;
}
.bgq-res-card-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}
.bgq-res-cover-fallback {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 34px;
	color: var(--bgq-teal);
	letter-spacing: 0.1em;
}

.bgq-res-card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px 22px 24px;
	flex: 1;
}

.bgq-res-card-eyebrow {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bgq-teal);
	font-weight: 600;
}
.bgq-res-card-eyebrow .bgq-res-year::before {
	content: "\00B7";
	margin-right: 8px;
	color: rgba(28, 42, 42, 0.35);
}
.bgq-res-card-eyebrow .bgq-res-edition:only-child + .bgq-res-year::before,
.bgq-res-card-eyebrow .bgq-res-year:first-child::before {
	content: none;
}

.bgq-res-card-title {
	font-size: 19px;
	line-height: 1.28;
	letter-spacing: -0.01em;
	margin: 0;
	font-weight: 600;
}
.bgq-res-card-title a {
	color: var(--bgq-ink);
	text-decoration: none;
}
.bgq-res-card-title a:hover {
	color: var(--bgq-teal);
}

.bgq-res-card-summary {
	font-size: 14px;
	line-height: 1.55;
	font-weight: 300;
	color: rgba(28, 42, 42, 0.68);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bgq-res-card-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: auto;
	padding-top: 8px;
}

/* ---- Download button ---- */
.bgq-res-download {
	display: inline-block;
	background: var(--bgq-teal);
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 10px 18px;
	border-radius: 2px;
	transition: background 0.15s ease;
}
.bgq-res-download:hover {
	background: var(--bgq-ink);
	color: #fff;
}
.bgq-res-download-lg {
	font-size: 15px;
	padding: 13px 26px;
}
.bgq-res-size {
	font-size: 12px;
	letter-spacing: 0.06em;
	color: rgba(28, 42, 42, 0.5);
}

/* ---- Pagination ---- */
.bgq-resources-wrap .navigation.pagination {
	margin-top: 48px;
}
.bgq-resources-wrap .page-numbers {
	padding: 8px 14px;
	border: 1px solid var(--bgq-rule);
	margin-right: 6px;
	text-decoration: none;
	color: var(--bgq-ink);
	font-size: 14px;
}
.bgq-resources-wrap .page-numbers.current {
	background: var(--bgq-teal);
	color: #fff;
	border-color: var(--bgq-teal);
}

.bgq-res-empty {
	font-size: 16px;
	color: rgba(28, 42, 42, 0.6);
}

/* =========================================================================
   Single resource
   ========================================================================= */
.bgq-res-back {
	display: inline-block;
	font-size: 13px;
	letter-spacing: 0.04em;
	color: var(--bgq-teal);
	text-decoration: none;
	margin-bottom: 28px;
}
.bgq-res-back:hover { text-decoration: underline; }

.bgq-res-single-grid {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 48px;
	align-items: start;
}
.bgq-res-single-cover img {
	width: 100%;
	border: 1px solid var(--bgq-rule);
	display: block;
}
.bgq-res-single-title {
	font-size: clamp(26px, 3.4vw, 38px);
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin: 12px 0 18px;
}
.bgq-res-single-summary {
	font-size: 17px;
	line-height: 1.65;
	font-weight: 300;
	color: rgba(28, 42, 42, 0.78);
	margin-bottom: 28px;
}
.bgq-res-single-body {
	margin-top: 28px;
	font-size: 16px;
	line-height: 1.7;
	font-weight: 300;
}

.bgq-res-viewer {
	margin-top: 56px;
	border: 1px solid var(--bgq-rule);
}
.bgq-res-viewer iframe {
	width: 100%;
	height: 78vh;
	border: 0;
	display: block;
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
	.bgq-res-single-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.bgq-res-single-cover {
		max-width: 240px;
	}
	.bgq-res-viewer iframe {
		height: 60vh;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bgq-res-card { transition: none; }
	.bgq-res-card:hover { transform: none; }
}
