/* =====================================================================
   Station Feeds — nashvillepublicradio.org homepage rows
   Styles for the [station_feed] shortcode.
   Lives at: wp-content/mu-plugins/station-feeds/station-feeds.css
   Loaded automatically by nashvillepublicradio-station-feeds.php.

   QUICK CHANGES: colors and fonts are set once, right here.
   ===================================================================== */
.station-feed {
	--sf-accent: #1d4a8c;        /* eyebrow label + "More from" link */
	--sf-text: #1a1a1a;          /* headlines and row titles */
	--sf-muted: #5f6b76;         /* descriptions and dates */
	--sf-rule: #dfe3e8;          /* line between rows */
	--sf-card-border: #e6e9ed;   /* card outline */
	--sf-card-bg: #ffffff;
	--sf-title-font: Georgia, "Times New Roman", serif;
	--sf-body-font: inherit;

	/* Text sizes (in px so the theme's base size can't shrink them) */
	--sf-size-eyebrow: 13px;
	--sf-size-title: 32px;
	--sf-size-description: 17px;
	--sf-size-more: 16px;
	--sf-size-headline: 14px;
	--sf-size-date: 11px;
}

/* ---------- Row: intro column on the left, cards on the right ---------- */
.station-feed {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) 3fr;
	gap: 24px 32px;
	align-items: start;
	padding: 32px 0;
	border-top: 1px solid var(--sf-rule);
	font-family: var(--sf-body-font);
}

/* ---------- Intro column ---------- */
.station-feed .station-feed__eyebrow {
	margin: 0 0 6px;
	font-size: var(--sf-size-eyebrow);
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--sf-accent);
}

.station-feed .station-feed__title {
	margin: 0 0 8px;
	font-family: var(--sf-title-font);
	font-size: var(--sf-size-title);
	font-weight: 400;
	line-height: 1.15;
	color: var(--sf-text);
}

.station-feed .station-feed__description {
	margin: 0 0 16px;
	font-size: var(--sf-size-description);
	line-height: 1.45;
	color: var(--sf-muted);
}

.station-feed .station-feed__more {
	display: inline-block;
	font-size: var(--sf-size-more);
	font-weight: 600;
	color: var(--sf-accent);
	text-decoration: none;
	border: 0;
}

.station-feed .station-feed__more:hover,
.station-feed .station-feed__more:focus {
	text-decoration: underline;
}

/* ---------- Cards ---------- */
.station-feed .station-feed__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.station-feed .station-feed__item {
	margin: 0;
	padding: 0;
}

.station-feed .station-feed__item::before {
	content: none; /* guards against theme list bullets */
}

.station-feed .station-feed__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background: var(--sf-card-bg);
	border: 1px solid var(--sf-card-border);
	border-radius: 4px;
	color: var(--sf-text);
	text-decoration: none;
}

.station-feed .station-feed__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	margin: 0;
}

.station-feed .station-feed__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 6px;
	padding: 12px 14px 14px;
}

.station-feed .station-feed__headline {
	font-size: var(--sf-size-headline);
	font-weight: 700;
	line-height: 1.3;
}

.station-feed .station-feed__card:hover .station-feed__headline,
.station-feed .station-feed__card:focus .station-feed__headline {
	text-decoration: underline;
}

.station-feed .station-feed__date {
	margin-top: auto; /* keeps dates lined up along the bottom of each row */
	font-size: var(--sf-size-date);
	color: var(--sf-muted);
}

/* ---------- Tablet and phone: intro stacks above cards ---------- */
@media (max-width: 800px) {
	.station-feed {
		grid-template-columns: 1fr;
		gap: 16px;
		--sf-size-title: 26px;
	}

	.station-feed .station-feed__list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 420px) {
	.station-feed .station-feed__list {
		grid-template-columns: 1fr;
	}
}
