/* Lazepe Media - audio archive and video library */

.lzm {
	margin: 22px 0 10px;
}

.lzm-intro {
	max-width: 66ch;
	margin: 0 0 22px;
	color: #45505e;
	font-size: 16px;
	line-height: 1.65;
}

/* -------------------------------------------------------------------------
   Filters
   ---------------------------------------------------------------------- */

.lzm-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 34px;
	padding: 0 0 22px;
	border-bottom: 1px solid #e4e8ed;
}

.lzm-filter {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 38px;
	padding: 7px 16px;
	border: 1px solid #d7dce2;
	border-radius: 999px;
	background: #fff;
	color: #2f3742;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.lzm-filter:hover {
	border-color: #1f8a4c;
	color: #1f8a4c;
}

.lzm-filter.is-on {
	background: #1f8a4c;
	border-color: #1f8a4c;
	color: #fff;
}

.lzm-filter:focus-visible {
	outline: 2px solid #14607a;
	outline-offset: 2px;
}

.lzm-count {
	font-size: 12px;
	opacity: 0.75;
}

/* -------------------------------------------------------------------------
   Sections
   ---------------------------------------------------------------------- */

.lzm-section {
	margin: 0 0 44px;
}

.lzm-section[hidden] {
	display: none;
}

.lzm-section__head {
	margin: 0 0 20px;
}

.lzm-section__title {
	margin: 0 0 6px;
	font-size: 23px;
	line-height: 1.25;
}

/* Segments rather than a run of middle dots: each fact keeps its own box. */
.lzm-section__meta {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	color: #1f8a4c;
	font-size: 13.5px;
	font-weight: 600;
}

.lzm-section__meta span + span {
	margin-left: 12px;
	padding-left: 12px;
	border-left: 1px solid #c8d2cd;
}

.lzm-section__gap {
	margin: 8px 0 0;
	color: #69737f;
	font-size: 13px;
}

/* -------------------------------------------------------------------------
   Grid and cards
   ---------------------------------------------------------------------- */

.lzm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lzm-grid > li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lzm-grid > li::marker {
	content: none;
}

.lzm-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid #e4e8ed;
	background: #fff;
	overflow: hidden;
}

.lzm-card[hidden] {
	display: none;
}

/* The facade and the iframe that replaces it share this box, so the card does
   not jump when a video loads. */
.lzm-media--video {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	padding: 0;
	border: 0;
	background: #0d1117;
	cursor: pointer;
}

.lzm-media--video img,
.lzm-media--video iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

/* The lesson number sits on the thumbnail. As its own row it cost every card
   an extra line for one digit. */
/* Bottom-left, because these thumbnails already carry the publisher's own
   "1. UNITE" caption in the top-left corner. */
.lzm-ep {
	position: absolute;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 30px;
	padding: 0 9px;
	background: #1f8a4c;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}

.lzm-play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 54px;
	height: 54px;
	margin: -27px 0 0 -27px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.62);
	transition: background-color 0.15s;
}

.lzm-play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	width: 0;
	height: 0;
	transform: translate(-50%, -50%);
	border-left: 16px solid #fff;
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
}

.lzm-media--video:hover .lzm-play {
	background: #1f8a4c;
}

.lzm-media--video:focus-visible {
	outline: 3px solid #14607a;
	outline-offset: -3px;
}

.lzm-media--audio {
	padding: 16px 15px 4px;
	background: #f5f7f9;
}

.lzm-media--audio audio {
	width: 100%;
}

.lzm-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 14px 16px 15px;
}

.lzm-title {
	margin: 0 0 6px;
	font-size: 16.5px;
	line-height: 1.35;
}

.lzm-desc {
	margin: 0 0 12px;
	color: #45505e;
	font-size: 14px;
	line-height: 1.55;
}

/* Pushed to the bottom so cards in a row line their metadata up. */
.lzm-meta {
	display: flex;
	flex-wrap: wrap;
	margin: auto 0 0;
	padding-top: 11px;
	border-top: 1px solid #edf0f3;
	color: #69737f;
	font-size: 12.5px;
	line-height: 1.4;
}

.lzm-meta span + span {
	margin-left: 9px;
	padding-left: 9px;
	border-left: 1px solid #dce1e6;
}

.lzm-missing,
.lzm-empty {
	margin: 0;
	padding: 16px;
	color: #69737f;
	font-size: 14px;
}

@media (max-width: 600px) {
	.lzm-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.lzm-section__title {
		font-size: 20px;
	}
}
