/**
 * Shew Link Cards
 *
 * Override from the theme on :root or any ancestor, e.g.
 *   :root { --shew-lc-accent: #c8102e; --shew-lc-radius: 0; }
 */

a.shew-link-card {
	display: block;
	max-width: var(--shew-lc-max-width, 640px);
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--shew-lc-border-color, #dcdfe4);
	border-radius: var(--shew-lc-radius, 8px);
	background: var(--shew-lc-bg, #fff);
	color: var(--shew-lc-text, inherit);
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

a.shew-link-card:hover,
a.shew-link-card:focus-visible {
	border-color: var(--shew-lc-accent, #1e73be);
	box-shadow: 0 2px 12px rgb(0 0 0 / 8%);
	color: var(--shew-lc-text, inherit);
	text-decoration: none;
}

a.shew-link-card:focus-visible {
	outline: 2px solid var(--shew-lc-accent, #1e73be);
	outline-offset: 2px;
}

.shew-link-card__image {
	display: block;
	aspect-ratio: 1200 / 630;
	overflow: hidden;
	background: var(--shew-lc-image-bg, #f1f2f4);
}

.shew-link-card__image img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

.shew-link-card__body {
	display: block;
	padding: 1rem 1.25rem 1.125rem;
}

.shew-link-card__site,
.shew-link-card__title,
.shew-link-card__desc,
.shew-link-card__cta {
	display: block;
}

.shew-link-card__site {
	margin-bottom: 0.25rem;
	color: var(--shew-lc-muted, #5f6670);
	font-size: 0.8125em;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.shew-link-card__title {
	color: var(--shew-lc-title-color, inherit);
	font-size: 1.125em;
	font-weight: 700;
	line-height: 1.3;
}

.shew-link-card__desc {
	margin-top: 0.375rem;
	color: var(--shew-lc-muted, #5f6670);
	font-size: 0.9375em;
	line-height: 1.5;
}

.shew-link-card__cta {
	margin-top: 0.75rem;
	color: var(--shew-lc-accent, #1e73be);
	font-weight: 600;
}

a.shew-link-card:hover .shew-link-card__cta {
	text-decoration: underline;
}

.shew-link-card .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	word-wrap: normal !important;
}

/* Fallback when there's no preview data: a plain link. */
a.shew-link-card--plain {
	display: inline;
	max-width: none;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--shew-lc-accent, #1e73be);
	font-weight: 600;
	text-decoration: underline;
	overflow-wrap: anywhere;
}

a.shew-link-card--plain:hover,
a.shew-link-card--plain:focus-visible {
	box-shadow: none;
	color: var(--shew-lc-accent, #1e73be);
	text-decoration: none;
}

a.shew-link-card--plain::after {
	content: " \2197";
}
