/**
 * Kitchen Table Product Manager videos.
 */

.ktpm {
	--ktpm-teal: #1c8592;
	--ktpm-teal-dark: #146874;
	--ktpm-ink: #243033;
	--ktpm-muted: #5c6b73;
	--ktpm-column: 1440px;
	width: 100%;
	color: var(--ktpm-ink);
}

.ktpm .screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}

/*
 * GeneratePress keeps a percentage width on the content column when a
 * sidebar layout is saved on the page. Stretch to the same container as
 * the header.
 */
body.ktpm-videos .site-content,
body.ktpm-video-single .site-content {
	display: block;
}

body.ktpm-videos .site-content .content-area,
body.ktpm-video-single .site-content .content-area,
body.ktpm-videos #primary,
body.ktpm-video-single #primary {
	width: 100%;
	float: none;
	margin-left: 0;
	margin-right: 0;
}

body.ktpm-videos #left-sidebar,
body.ktpm-videos #right-sidebar,
body.ktpm-video-single #left-sidebar,
body.ktpm-video-single #right-sidebar {
	display: none;
}

.ktpm-hero {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	background: linear-gradient(
		90deg,
		rgba(245, 196, 92, 0.45) 0%,
		rgba(236, 228, 196, 0.35) 42%,
		rgba(176, 214, 214, 0.55) 100%
	);
}

.ktpm-hero__inner,
.ktpm-list__inner,
.ktpm-single__body {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--ktpm-column);
	margin-right: auto;
	margin-left: auto;
	padding: 60px 40px;
}

.ktpm-hero__inner--split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
	gap: 2rem 3rem;
	align-items: center;
}

.ktpm-hero__media {
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.ktpm-hero__media img {
	display: block;
	width: min(100%, 560px);
	height: auto;
	object-fit: contain;
}

.ktpm-hero__title {
	margin: 0;
	max-width: 12em;
	color: var(--ktpm-teal);
	font-size: clamp(2.6rem, 4.4vw, 3.5rem);
	line-height: 1.08;
	font-weight: 700;
}

.ktpm-hero__sub {
	margin: 1rem 0 0;
	max-width: 22rem;
	font-size: 1.35rem;
	line-height: 1.35;
	font-weight: 600;
	color: var(--ktpm-ink);
}

.ktpm-hero__copy {
	margin: 0.85rem 0 0;
	max-width: 34rem;
	color: var(--ktpm-ink);
	font-size: 1.05rem;
	line-height: 1.6;
}

.ktpm-hero__copy > *:first-child {
	margin-top: 0;
}

.ktpm-hero__copy > *:last-child {
	margin-bottom: 0;
}

.ktpm-eyebrow {
	margin: 0 0 0.35rem;
	font-size: 1rem;
	font-weight: 600;
}

.ktpm-eyebrow a,
.ktpm-related a,
.ktpm-back a,
.ktpm-card__title a {
	color: var(--ktpm-teal-dark);
	text-decoration: none;
}

.ktpm-eyebrow a:hover,
.ktpm-eyebrow a:focus-visible,
.ktpm-related a:hover,
.ktpm-related a:focus-visible,
.ktpm-back a:hover,
.ktpm-back a:focus-visible,
.ktpm-card__title a:hover,
.ktpm-card__title a:focus-visible {
	text-decoration: underline;
}

.ktpm-list {
	padding: 0 0 3rem;
	background: transparent;
}

.ktpm-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2.5rem 2rem;
	align-items: stretch;
}

.ktpm-grid > .ktpm-card {
	float: none;
	width: auto;
	max-width: none;
	height: 100%;
	margin: 0;
}

.ktpm-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #e5f3f4;
	border: 0;
	border-radius: 14px;
	box-shadow: 0 10px 28px rgba(23, 55, 70, 0.08);
	overflow: hidden;
}

.ktpm-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1rem 1.15rem 1.15rem;
}

.ktpm-card__title {
	display: -webkit-box;
	margin: 0;
	height: calc(1.25rem * 1.3 * 3);
	overflow: hidden;
	font-size: 1.25rem;
	line-height: 1.3;
	font-weight: 600;
	color: var(--ktpm-ink);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.ktpm-single__date,
.ktpm-card__date {
	margin: 0;
	color: var(--ktpm-muted);
	font-size: 0.9rem;
}

.ktpm-card__excerpt,
.ktpm-single__description {
	margin: 0.2rem 0 0;
	color: var(--ktpm-muted);
	line-height: 1.55;
}

.ktpm-card__excerpt {
	display: -webkit-box;
	height: calc(1em * 1.55 * 5);
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
}

.ktpm-card .ktpm-share {
	margin-top: auto;
}

.ktpm-related,
.ktpm-back {
	margin: 0.35rem 0 0;
}

.ktpm-card .ktpm-related {
	min-height: 1.4em;
}

.ktpm-related a,
.ktpm-back a {
	font-weight: 600;
}

.ktpm-share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem 0.65rem;
	margin-top: 0.85rem;
}

.ktpm-hero .ktpm-share {
	margin-top: 1.25rem;
}

.ktpm-share__label {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ktpm-ink);
}

.ktpm-share__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.15rem;
}

.ktpm-share__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ktpm-teal);
	line-height: 0;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
}

.ktpm-share__icon svg,
.ktpm-facade__icon svg {
	display: block;
	width: 18px;
	height: 18px;
	max-width: 18px;
}

.ktpm-share__icon:hover,
.ktpm-share__icon:focus-visible {
	background: var(--ktpm-teal);
	color: #fff;
}

.ktpm-share__icon:focus-visible,
.ktpm-facade:focus-visible,
.ktpm-pagination a:focus-visible {
	outline: 3px solid #f5b031;
	outline-offset: 2px;
}

.ktpm-share__status {
	flex-basis: 100%;
	min-height: 1.2em;
	margin: 0;
	font-size: 0.85rem;
	color: var(--ktpm-teal-dark);
}

.ktpm [hidden] {
	display: none !important;
}

.ktpm-empty {
	margin: 0;
	color: var(--ktpm-muted);
}

.ktpm-pagination {
	margin-top: 2.5rem;
}

.ktpm-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ktpm-pagination a,
.ktpm-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.4rem;
	min-height: 2.4rem;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	text-decoration: none;
	color: var(--ktpm-teal-dark);
	background: #f4f7f7;
}

.ktpm-pagination .current {
	background: var(--ktpm-teal);
	color: #fff;
}

.ktpm-single__body {
	padding: 0 0 3rem;
}

.ktpm-single__description {
	margin-top: 1rem;
	max-width: 42rem;
	font-size: 1.05rem;
}

.ktpm-single__article {
	margin-top: 1.75rem;
	max-width: 46rem;
}

.ktpm-player,
.ktpm-facade,
.ktpm-player__media {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 0;
	background: #173746;
}

.ktpm-player {
	position: relative;
	overflow: hidden;
}

.ktpm-facade {
	position: relative;
	margin: 0;
	padding: 0;
	cursor: pointer;
	color: inherit;
	overflow: hidden;
}

.ktpm-facade__image,
.ktpm-facade__placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ktpm-facade__placeholder {
	background: linear-gradient(145deg, #1c8592, #173746 70%);
}

.ktpm-facade__icon {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: grid;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	background: #fff;
	color: var(--ktpm-ink);
}

.ktpm-facade:hover .ktpm-facade__icon,
.ktpm-facade:focus-visible .ktpm-facade__icon {
	background: var(--ktpm-teal);
	color: #fff;
}

.ktpm-player--empty .ktpm-player__media {
	position: absolute;
	inset: 0;
	height: 100%;
	object-fit: cover;
}

.ktpm-player__missing {
	margin: 0;
	padding: 1rem;
	color: var(--ktpm-muted);
}

.ktpm-player--empty .ktpm-player__missing {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	background: rgba(23, 55, 70, 0.72);
	color: #fff;
}

@media (max-width: 782px) {
	.ktpm-grid {
		grid-template-columns: 1fr;
	}

	.ktpm-hero__inner,
	.ktpm-list__inner,
	.ktpm-single__body {
		padding: 40px 24px;
	}

	.ktpm-hero__inner--split {
		grid-template-columns: 1fr;
	}

	.ktpm-hero__media {
		justify-content: center;
	}

	.ktpm-hero__title {
		font-size: 2.15rem;
	}
}
