/**
 * Default styles for the Mapsemble card, adopted into the widget's
 * shadow DOM. Themes can append their own sheet via the
 * mapsemble_card_css_urls filter or replace the markup entirely with
 * a mapsemble/card.php template override.
 */

.mapsemble-card {
	display: flex;
	flex-direction: column;
	font-family: inherit;
	color: inherit;
}

.mapsemble-card__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px 6px 0 0;
	object-fit: cover;
}

.mapsemble-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.4em;
	padding: 0.75em 0.9em 0.9em;
}

.mapsemble-card__title {
	margin: 0;
	font-size: 1.05em;
	line-height: 1.3;
}

.mapsemble-card__excerpt {
	margin: 0;
	font-size: 0.9em;
	line-height: 1.45;
	opacity: 0.85;
}

.mapsemble-card__link {
	align-self: flex-start;
	font-size: 0.9em;
	font-weight: 600;
	text-decoration: none;
}

.mapsemble-card__link:hover,
.mapsemble-card__link:focus {
	text-decoration: underline;
}

/* The card lives in the widget's shadow DOM, where the theme's own
   screen-reader-text rule does not reach. Core's visually-hidden recipe. */
.mapsemble-card .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
