/* =========================================================================
   Resources page (page-resources.php), per design-reference/resources.png
   Page-specific sections only — the hero (internal-hero.css), Popular
   Resources cards (service-cards, service-detail.css) and newsletter
   strip (.blog-newsletter, resources.css) are shared components.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Browse by Topic
   ------------------------------------------------------------------------- */

.resources-topics {
	background-color: var(--color-bg);
	padding: var(--space-section-v) var(--space-section-h) 0;
}

.resources-topics__inner {
	display: flex;
	flex-direction: column;
	gap: 28px;
	max-width: 1280px;
	margin: 0 auto;
}

.resources-topics__intro {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.resources-topics__text {
	margin: 0;
	color: var(--color-body-muted);
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 1.7;
}

.resources-topics__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.resources-topics__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	height: 100%;
	padding: 20px 14px;
	border: 1px solid var(--color-border-light);
	border-radius: var(--radius-card);
	background-color: #fff;
	text-align: center;
	text-decoration: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.resources-topics__card:hover,
.resources-topics__card[aria-current="true"] {
	border-color: var(--color-gold);
	box-shadow: 0 6px 18px rgba(28, 32, 24, 0.08);
}

.resources-topics__card:focus-visible {
	outline: 2px solid var(--color-ink);
	outline-offset: 2px;
}

.resources-topics__icon {
	width: 40px;
	height: 40px;
}

.resources-topics__title {
	color: var(--color-ink);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 17px;
}

.resources-topics__description {
	color: var(--color-body-muted);
	font-family: var(--font-body);
	font-size: 12px;
	line-height: 1.6;
}

/* Popular Resources reuses service-cards; keep it close to the topics. */
.resources-topics + .service-cards {
	padding-top: var(--space-section-v);
}

/* -------------------------------------------------------------------------
   Latest Articles
   ------------------------------------------------------------------------- */

.resources-latest {
	background-color: var(--color-bg);
	padding: 0 var(--space-section-h) var(--space-section-v);
	scroll-margin-top: 100px;
}

.resources-latest__inner {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 1280px;
	margin: 0 auto;
}

.resources-latest__heading-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
}

.resources-latest__clear {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--color-ink);
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 11px;
	text-decoration: none;
	text-transform: uppercase;
}

.resources-latest__clear img {
	width: 12px;
	height: 12px;
}

.resources-latest__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
}

.resources-latest__card {
	display: flex;
	gap: 14px;
	min-width: 0;
}

.resources-latest__media {
	flex: 0 0 110px;
	height: 130px;
	border-radius: var(--radius-card);
	overflow: hidden;
}

.resources-latest__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.resources-latest__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.resources-latest__title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 17px;
	line-height: 1.25;
}

.resources-latest__title a {
	color: var(--color-ink);
	text-decoration: none;
}

.resources-latest__title a:hover {
	text-decoration: underline;
}

.resources-latest__excerpt {
	margin: 0;
	color: var(--color-body-muted);
	font-family: var(--font-body);
	font-size: 12px;
	line-height: 1.6;
}

.resources-latest__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: auto 0 0;
	color: var(--color-text-muted-lt3);
	font-family: var(--font-body);
	font-size: 11px;
}

.resources-latest__category {
	color: var(--color-primary-green);
	font-weight: 700;
}

.resources-latest__empty {
	margin: 0;
	color: var(--color-body-muted);
	font-family: var(--font-body);
	font-size: 14px;
}

.resources-latest__tools {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 24px;
	border-radius: var(--radius-card);
	background-color: var(--color-primary-green);
}

.resources-latest__tools-heading {
	margin: 0;
	color: var(--color-text-light);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 20px;
}

.resources-latest__tools-text {
	margin: 0;
	color: var(--color-text-muted-lt1);
	font-family: var(--font-body);
	font-size: 13px;
	line-height: 1.6;
}

/* -------------------------------------------------------------------------
   Tablet (601–1024px)
   ------------------------------------------------------------------------- */

@media (min-width: 601px) {
	.resources-topics__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.resources-latest__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* -------------------------------------------------------------------------
   Desktop (1025px+)
   ------------------------------------------------------------------------- */

@media (min-width: 1025px) {
	.resources-topics__inner {
		flex-direction: row;
		align-items: flex-start;
		gap: 40px;
	}

	.resources-topics__intro {
		flex: 0 0 260px;
	}

	.resources-topics__list {
		flex: 1;
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.resources-latest__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 0.85fr);
	}
}
