/**
 * Shared Resource card component.
 */

.rpd-resource-card {
	background: var(--rpd-white);
	border: 1px solid rgba(196, 196, 229, 0.6);
	border-radius: 0.75rem;
	box-shadow: 0 1px 2px rgba(35, 31, 88, 0.04);
	color: var(--rpd-body);
	display: flex;
	flex-direction: column;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
	text-decoration: none;
	transition: border-color 300ms ease, box-shadow 300ms ease, color 300ms ease;
}

.rpd-resource-card:hover {
	border-color: #c4c4e5;
	box-shadow: 0 8px 30px rgba(35, 31, 88, 0.08);
	color: var(--rpd-body);
}

.rpd-resource-card:focus-visible {
	outline: 2px solid #5552b1;
	outline-offset: 2px;
}

.rpd-resource-card__accent {
	background: var(--rpd-resource-card-accent, #94a3b8);
	display: block;
	flex: 0 0 6px;
	height: 6px;
	width: 100%;
}

.rpd-resource-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	max-width: 100%;
	min-width: 0;
	padding: 1.125rem 1.25rem;
}

.rpd-resource-card__header {
	align-items: flex-start;
	display: flex;
	gap: 0.75rem;
	justify-content: space-between;
	margin-bottom: 0.75rem;
	max-width: 100%;
	min-width: 0;
}

.rpd-resource-card__topic {
	align-items: center;
	color: var(--rpd-resource-card-accent-text, #3f3b8f);
	display: flex;
	gap: 0.5rem;
	max-width: 100%;
	min-width: 0;
}

.rpd-resource-card__topic-icon {
	align-items: center;
	background: var(--rpd-resource-card-accent-tint, #eeeefa);
	border-radius: 0.375rem;
	display: inline-flex;
	flex: 0 0 auto;
	height: 1.75rem;
	justify-content: center;
	width: 1.75rem;
}

.rpd-resource-card__topic-icon svg {
	fill: none;
	height: 1rem;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 1rem;
}

.rpd-resource-card__topic-label {
	font-size: 0.75rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}

.rpd-resource-card__type {
	background: rgba(35, 31, 88, 0.05);
	border-radius: 0.125rem;
	color: var(--rpd-navy);
	flex: 0 0 auto;
	font-size: 0.6875rem;
	font-weight: 900;
	letter-spacing: 0.1em;
	margin-left: auto;
	max-width: 100%;
	padding: 0.3rem 0.55rem;
	text-transform: uppercase;
}

.rpd-resource-card__title {
	color: var(--rpd-navy);
	font-family: var(--font-heading);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
	max-width: 100%;
	min-width: 0;
	overflow-wrap: anywhere;
	transition: color 300ms ease;
}

.rpd-resource-card:hover .rpd-resource-card__title {
	color: var(--rpd-purple-deep, #a154a1);
}

.rpd-resource-card__description-wrap {
	flex: 1 1 auto;
	margin: 0.5rem 0 1rem;
	max-width: 100%;
	min-width: 0;
}

.rpd-resource-card__description {
	display: -webkit-box;
	color: var(--rpd-color-text-muted);
	font-size: 0.875rem;
	line-height: 1.65;
	margin: 0;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
	overflow-wrap: anywhere;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.rpd-resource-card__footer {
	align-items: center;
	border-top: 1px solid rgba(196, 196, 229, 0.45);
	color: var(--rpd-color-text-muted);
	display: flex;
	flex-wrap: nowrap;
	font-size: 0.6875rem;
	font-weight: 600;
	gap: 0.75rem;
	justify-content: flex-start;
	margin-top: auto;
	max-width: 100%;
	min-width: 0;
	padding-top: 0.75rem;
}

.rpd-resource-card__access {
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	flex: 0 0 auto;
	font-size: 0.6875rem;
	line-height: 1.2;
	margin-left: auto;
	padding: 0;
	white-space: nowrap;
}

.rpd-resource-card__access--free {
	color: #047857;
	font-weight: 600;
}

.rpd-resource-card__access--members {
	color: #3f3b8f;
	font-weight: 700;
}

.rpd-resource-card__meta {
	flex: 1 1 auto;
	max-width: none;
	min-width: 0;
	overflow: hidden;
	overflow-wrap: anywhere;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rpd-resource-card__arrow {
	align-items: center;
	border-radius: 50%;
	color: #8f8cc8;
	display: inline-flex;
	flex: 0 0 auto;
	height: 1.5rem;
	justify-content: center;
	margin-left: 0;
	transition: background-color 300ms ease, color 300ms ease;
	width: 1.5rem;
}

.rpd-resource-card__arrow svg {
	fill: none;
	height: 1rem;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 1rem;
}

.rpd-resource-card:hover .rpd-resource-card__arrow {
	background: rgba(161, 84, 161, 0.1);
	color: var(--rpd-purple-deep, #a154a1);
}
