/* resource-preview: a short stand-in for one resource (its title, a line, a
   link), shown as a card you can click anywhere on.
   Component: templates/components/resource-preview.php
   Specimen: /design-system/components/resource-preview
   Used at: the related-resources page module (end of workshops and resources)

   A card in the same family as tool-card: a tinted tile with a hairline that
   firms up on hover or focus (Derek, 2026-11-15: "more like cards, like sticky
   notes almost"). The whole card is the click target (fill-link), so it sets
   position: relative. Starting values, to tune by hand. */

.resource-preview {
	position: relative;
	display: grid;
	align-content: start;
	height: 100%;
	padding: var(--space-medium);
	background-color: var(--fill-secondary);
	border: 1px solid var(--stroke-auxiliary);

	text-content {
		margin-top: var(--space-small);
	}

	.actions {
		margin-top: var(--space-medium);
	}

	&:hover,
	&:focus-within {
		border-color: var(--stroke-primary);
	}
}
