/* Resources ("KBIT document library") — matches the Vercel /resources page:
   dark hero, ivory filterable gallery, and an ivory Get-in-touch / Brand-assets
   help block. */

/* --- Hero lead (title/eyebrow reuse .amlab-about-hero) --- */
.amlab-res-hero__lead {
	max-width: 620px;
	margin: 18px 0 0;
	font-size: 1.05rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.72);
}

/* --- Library section --- */
.amlab-res-library {
	background: #f6f3ec;
	padding: 56px 0;
}

.amlab-res-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
}

.amlab-res-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.amlab-res-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	color: #202940;
	background: #ffffff;
	border: 1px solid #e4ddcd;
	border-radius: 999px;
	padding: 9px 16px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.amlab-res-pill span {
	font-size: 0.78rem;
	font-weight: 700;
	color: #8c6822;
	background: #f6eedc;
	border-radius: 999px;
	padding: 1px 8px;
	transition: background 0.15s ease, color 0.15s ease;
}

.amlab-res-pill:hover {
	border-color: #cbb890;
}

.amlab-res-pill.is-active {
	background: #202940;
	color: #ffffff;
	border-color: #202940;
}

.amlab-res-pill.is-active span {
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
}

.amlab-res-count {
	font-size: 0.9rem;
	color: #6b7280;
	margin: 0;
}

/* --- Gallery grid --- */
.amlab-res-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.amlab-res-card {
	background: #ffffff;
	border: 1px solid #ece6d8;
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.amlab-res-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(21, 28, 44, 0.12);
}

.amlab-res-card__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #eef0f3;
}

.amlab-res-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.amlab-res-card__body {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	padding: 16px 18px 20px;
}

.amlab-res-card__icon {
	width: 16px;
	height: 16px;
	flex: none;
	margin-top: 2px;
	color: #c5a15a;
}

.amlab-res-card__caption {
	font-size: 0.92rem;
	line-height: 1.5;
	font-weight: 500;
	color: #374151;
}

/* --- Help block --- */
.amlab-res-help {
	background: #ffffff;
	padding: 56px 0;
}

.amlab-res-help__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.amlab-res-help__card {
	background: #f6f3ec;
	border: 1px solid #ece6d8;
	border-radius: 18px;
	padding: 30px 32px 34px;
}

.amlab-res-help__title {
	font-size: 1.3rem;
	font-weight: 700;
	color: #151c2c;
	margin: 0 0 10px;
}

.amlab-res-help__sub {
	font-size: 0.98rem;
	line-height: 1.65;
	color: #6b7280;
	margin: 0 0 22px;
}

.amlab-res-help__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.amlab-res-btn {
	display: inline-flex;
	align-items: center;
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: 12px;
	padding: 11px 20px;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.amlab-res-btn--gold {
	background: #c5a15a;
	color: #1b2233;
	border: 1px solid #c5a15a;
}

.amlab-res-btn--gold:hover {
	background: #b3914e;
}

.amlab-res-btn--ghost {
	background: #ffffff;
	color: #202940;
	border: 1px solid #d8d2c4;
}

.amlab-res-btn--ghost:hover {
	border-color: #8c6822;
}

.amlab-res-brand {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 18px;
}

.amlab-res-brand__tile {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 84px;
	border-radius: 12px;
	font-weight: 700;
	letter-spacing: 0.22em;
	font-size: 1.15rem;
}

.amlab-res-brand__tile--light {
	background: #ffffff;
	color: #151c2c;
	border: 1px solid #e4ddcd;
}

.amlab-res-brand__tile--dark {
	background: #151c2c;
	color: #ffffff;
}

.amlab-res-help__link {
	display: inline-block;
	font-size: 0.95rem;
	font-weight: 600;
	color: #8c6822;
	text-decoration: none;
}

.amlab-res-help__link:hover {
	text-decoration: underline;
}

@media (max-width: 960px) {
	.amlab-res-grid { grid-template-columns: repeat(2, 1fr); }
	.amlab-res-help__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.amlab-res-grid { grid-template-columns: 1fr; }
}
