/* SHC Podcast Appearances — brand-styled grid
 * Selectors are prefixed with .shc-podcasts so theme/Divi styles for
 * lists, headings and paragraphs don't leak in.
 */

.shc-podcasts {
	--shc-red: #CE1B1B;
	--shc-red-dark: #A81616;
	--shc-charcoal: #4A484C;
	--shc-cream: #E7E1DB;
	--shc-cream-soft: #E5DBDB;
	--shc-white: #FFFFFF;
	--shc-head: "Bodoni Moda", Georgia, "Times New Roman", serif;
	--shc-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	width: 100%;
}

/* Grid: 3 / 2 / 1 columns */
.shc-podcasts .shc-podcasts__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
	.shc-podcasts .shc-podcasts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	.shc-podcasts .shc-podcasts__grid { grid-template-columns: 1fr; gap: 20px; }
}

.shc-podcasts .shc-podcasts__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.shc-podcasts .shc-podcasts__item[hidden] { display: none; }

/* Card */
.shc-podcasts .shc-podcasts__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--shc-cream);
	border-top: 3px solid var(--shc-charcoal);
	border-radius: 6px;
	overflow: hidden;
	color: var(--shc-charcoal);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.shc-podcasts a.shc-podcasts__card:hover,
.shc-podcasts a.shc-podcasts__card:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(74, 72, 76, 0.14);
	border-top-color: var(--shc-red);
}

.shc-podcasts a.shc-podcasts__card:focus-visible {
	outline: 2px solid var(--shc-red);
	outline-offset: 3px;
}

/* Logo: always a square frame, whatever shape was uploaded.
 * "contain" fits the whole logo inside the frame, so wide or tall logos
 * with the show name written on them never get letters cut off. */
.shc-podcasts .shc-podcasts__logo { padding: 20px 20px 0; }

.shc-podcasts .shc-podcasts__logo-img,
.shc-podcasts .shc-podcasts__placeholder {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	border-radius: 4px;
	background: var(--shc-white);
	box-sizing: border-box;
}

.shc-podcasts .shc-podcasts__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--shc-cream-soft);
}

.shc-podcasts .shc-podcasts__placeholder svg {
	width: 30%;
	height: auto;
	fill: var(--shc-charcoal);
	opacity: 0.55;
}

/* Text */
.shc-podcasts .shc-podcasts__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	min-width: 0;
	padding: 16px 20px 20px;
	overflow-wrap: anywhere;
}

.shc-podcasts .shc-podcasts__name {
	margin: 0;
	padding: 0;
	font-family: var(--shc-head);
	font-weight: 600;
	font-size: 1.25rem;
	line-height: 1.25;
	color: var(--shc-charcoal);
}

.shc-podcasts a.shc-podcasts__card:hover .shc-podcasts__name,
.shc-podcasts a.shc-podcasts__card:focus-visible .shc-podcasts__name {
	text-decoration: underline;
	text-decoration-color: var(--shc-red);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.shc-podcasts .shc-podcasts__topic {
	margin: 0;
	padding: 0;
	font-family: var(--shc-body);
	font-weight: 400;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--shc-charcoal);
}

.shc-podcasts .shc-podcasts__date {
	margin-top: auto;
	padding-top: 4px;
	font-family: var(--shc-body);
	font-weight: 300;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--shc-charcoal);
}

/* Load more */
.shc-podcasts .shc-podcasts__more-wrap {
	margin-top: 32px;
	text-align: center;
}

.shc-podcasts .shc-podcasts__more {
	font-family: var(--shc-body);
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	color: var(--shc-white);
	background: var(--shc-red);
	border: 0;
	border-radius: 4px;
	padding: 14px 32px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.shc-podcasts .shc-podcasts__more:hover { background: var(--shc-red-dark); }

.shc-podcasts .shc-podcasts__more:focus-visible {
	outline: 2px solid var(--shc-charcoal);
	outline-offset: 3px;
}

.shc-podcasts .shc-podcasts__more-wrap[hidden] { display: none; }

/* Screen-reader-only text */
.shc-podcasts .shc-podcasts__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.shc-podcasts .shc-podcasts__card { transition: none; }
	.shc-podcasts a.shc-podcasts__card:hover,
	.shc-podcasts a.shc-podcasts__card:focus-visible { transform: none; }
}
