/* Sensei Video Training — matches the On-Demand Videos mockup and the site's Kadence palette. */
.svt-videos {
	--svt-ink: var(--global-palette2, #40126b);
	--svt-deep: var(--global-palette3, #2b0854);
	--svt-line: var(--global-palette5, #b9a9fc);
	--svt-pill: var(--global-palette9, #9bddd8);
	--svt-pill-hover: #7accc6;
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: 8px 0 0;
	color: var(--svt-ink);
}

/* Cards: 3 across on desktop, 1 per row on phones. */
.svt-videos .svt-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	align-items: stretch;
}
.svt-videos .svt-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	min-width: 0;
	height: 100%;
}
/* The title takes the slack, so the pill lands on the same line in every
   card of the row whether the title runs to one line or three. */
.svt-videos .svt-card-title { flex: 1 1 auto; }
.svt-videos .svt-thumb {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	background: var(--svt-ink);
	text-decoration: none;
}
.svt-videos .svt-thumb-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.svt-videos .svt-thumb-ph {
	position: absolute;
	inset: 0;
	background-color: var(--svt-ink);
	background-image: radial-gradient(rgba(185, 169, 252, 0.35) 1.2px, transparent 1.2px);
	background-size: 18px 18px;
}
.svt-videos .svt-play {
	/* Small and see-through, tucked into the bottom-left so it doesn't cover the thumbnail. */
	position: absolute;
	left: 12px;
	bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(155, 221, 216, 0.55);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.svt-videos .svt-play svg { width: 20px; height: 20px; fill: var(--svt-ink); }
.svt-videos .svt-thumb:hover .svt-play,
.svt-videos .svt-card:focus-within .svt-play {
	background: var(--svt-pill);
	transform: scale(1.06);
}
.svt-videos .svt-len-badge {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 3px 10px;
	border-radius: 70px;
	background: var(--svt-deep);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}
.svt-videos .svt-card-title {
	margin: 0;
	font-family: var(--global-body-font-family, inherit);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--svt-ink);
}

/* List rows. */
.svt-videos .svt-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--svt-line);
}
.svt-videos .svt-row {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 0;
	padding: 10px 0;
	border-bottom: 1px solid var(--svt-line);
}
.svt-videos .svt-row-text {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	gap: 24px;
	min-width: 0;
}
.svt-videos .svt-row-title { flex: 1 1 auto; font-size: 16px; line-height: 1.6; }
.svt-videos .svt-row-len { flex: 0 0 80px; font-size: 16px; line-height: 1.6; }

/* Watch: always the site's CTA pill. */
.svt-videos .svt-watch,
.svt-videos .svt-watch:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-height: 44px;
	box-sizing: border-box;
	padding: 11px 25px;
	border: 0;
	border-radius: 70px;
	background: var(--svt-pill);
	color: var(--svt-ink);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.4;
	text-decoration: none;
	box-shadow: none;
}
.svt-videos .svt-watch:hover,
.svt-videos .svt-watch:focus-visible {
	background: var(--svt-pill-hover);
	color: var(--svt-ink);
}

.svt-videos .svt-title {
	margin: 0;
	font-family: var(--global-body-font-family, inherit);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--svt-ink);
}

.svt-empty { font-style: italic; }

@media (max-width: 767px) {
	.svt-videos .svt-cards { grid-template-columns: 1fr; }
	.svt-videos .svt-card-title { font-size: 18px; }
	.svt-videos .svt-row { gap: 16px; padding: 14px 0; }
	.svt-videos .svt-row-text { flex-direction: column; align-items: flex-start; gap: 2px; }
	.svt-videos .svt-row-len { flex: none; font-size: 14px; line-height: 1.4; }
}

/* ---------------------------------------------------------------------------
   Upcoming live training.
   The markup below .svt-upcoming is the Livestorm Events plugin's own (that
   plugin draws it; we never rebuild it). These rules restyle it so a session
   row reads exactly like a video row above it: same rule lines, same type,
   same cyan pill. Everything is scoped to .svt-upcoming so the Livestorm
   block used on its own elsewhere is untouched.
   --------------------------------------------------------------------------- */
.svt-upcoming {
	--svt-ink: var(--global-palette2, #40126b);
	--svt-deep: var(--global-palette3, #2b0854);
	--svt-line: var(--global-palette5, #b9a9fc);
	--svt-pill: var(--global-palette9, #9bddd8);
	--svt-pill-hover: #7accc6;
	margin-top: 36px;
	color: var(--svt-ink);
}
.svt-upcoming .svt-upcoming-title {
	margin: 0 0 8px;
	font-family: var(--global-body-font-family, inherit);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--svt-ink);
}

/* Reset the plugin's own frame so ours shows through. */
.svt-upcoming .lse-events { margin: 0; }
.svt-upcoming .lse-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: block;
	border-top: 1px solid var(--svt-line);
}

/* One row, laid out exactly like a video row above:
   title (flexible) | date and duration (fixed) | pill. */
.svt-upcoming .lse-item {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 0;
	padding: 10px 0;
	border: 0;
	border-bottom: 1px solid var(--svt-line);
	border-radius: 0;
	background: none;
}
.svt-upcoming .lse-item .lse-title {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	font-family: var(--global-body-font-family, inherit);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--svt-ink);
}
.svt-upcoming .lse-title a { color: var(--svt-ink); text-decoration: none; }
.svt-upcoming .lse-title a:hover { color: var(--global-palette4, #9252f7); }
.svt-upcoming .lse-item .lse-datetime {
	flex: 0 0 auto;
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--svt-ink);
	white-space: nowrap;
}
/* Presenter and blurb belong on the events page, not in this row. */
.svt-upcoming .lse-item .lse-presenter,
.svt-upcoming .lse-item .lse-description { display: none; }
.svt-upcoming .lse-item .lse-register { flex: 0 0 auto; }

/* Register is the same pill as Watch. */
.svt-upcoming .lse-register,
.svt-upcoming .lse-register:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	box-sizing: border-box;
	padding: 11px 25px;
	border: 0;
	border-radius: 70px;
	background: var(--svt-pill);
	color: var(--svt-ink);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.4;
	text-decoration: none;
	box-shadow: none;
}
.svt-upcoming .lse-register:hover,
.svt-upcoming .lse-register:focus-visible {
	background: var(--svt-pill-hover);
	color: var(--svt-ink);
}
.svt-upcoming .lse-badge-live {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 10px;
	border-radius: 70px;
	background: var(--global-palette1, #ff5b40);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	vertical-align: 2px;
}

/* Table layout: match the video list's rules and pill. */
.svt-upcoming .lse-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}
.svt-upcoming .lse-table th,
.svt-upcoming .lse-table td {
	padding: 10px 24px 10px 0;
	border: 0;
	border-bottom: 1px solid var(--svt-line);
	font-size: 16px;
	line-height: 1.6;
	color: var(--svt-ink);
	background: none;
	vertical-align: middle;
}
.svt-upcoming .lse-table th {
	border-bottom-width: 1px;
	font-size: 14px;
	font-weight: 700;
	text-align: left;
}
.svt-upcoming .lse-table td:last-child { padding-right: 0; text-align: right; }
.svt-upcoming .lse-table a:not(.lse-register) { color: var(--svt-ink); text-decoration: none; }
.svt-upcoming .lse-table a:not(.lse-register):hover { color: var(--global-palette4, #9252f7); }

/* Cards layout: same 3-across grid and radius as the video cards. */
.svt-upcoming .lse-list.lse-cols-2,
.svt-upcoming .lse-list.lse-cols-3 {
	display: grid;
	gap: 32px;
	border-top: 0;
}
.svt-upcoming .lse-list.lse-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svt-upcoming .lse-list.lse-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svt-upcoming .lse-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 20px;
	border: 1px solid var(--svt-line);
	border-radius: 12px;
	background: none;
}
.svt-upcoming .lse-card .lse-title { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.4; }
.svt-upcoming .lse-card .lse-datetime { margin: 0; font-size: 14px; }
.svt-upcoming .lse-card .lse-description { display: none; }

/* Cards: the same shell as a video card. The dotted violet block stands in
   for the thumbnail, with the date where the still would be. */
.svt-upcoming .lse-list.lse-cols-2,
.svt-upcoming .lse-list.lse-cols-3 {
	display: grid;
	gap: 32px;
	border-top: 0;
}
.svt-upcoming .lse-list.lse-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svt-upcoming .lse-list.lse-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svt-upcoming .lse-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}
.svt-upcoming .lse-card .lse-datetime {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 16 / 9;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 12px;
	overflow: hidden;
	background-color: var(--svt-ink);
	background-image: radial-gradient(rgba(185, 169, 252, 0.35) 1.2px, transparent 1.2px);
	background-size: 18px 18px;
	color: #fff;
}
.svt-upcoming .lse-card .lse-daybox {
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1;
}
.svt-upcoming .lse-card .lse-mon {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--svt-pill);
}
.svt-upcoming .lse-card .lse-day {
	font-size: 52px;
	font-weight: 700;
	line-height: 1.05;
	color: #fff;
}
/* Time and length sit where the video's length badge sits. */
.svt-upcoming .lse-card .lse-clock {
	position: absolute;
	left: auto;
	right: 10px;
	bottom: 10px;
	max-width: calc(100% - 20px);
	box-sizing: border-box;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: baseline;
	gap: 0 6px;
	padding: 3px 10px;
	border-radius: 70px;
	background: var(--svt-deep);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	text-align: right;
	color: #fff;
}
.svt-upcoming .lse-card .lse-duration::before { content: '\00b7'; margin-right: 6px; }
.svt-upcoming .lse-card .lse-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	width: 100%;
	flex: 1 1 auto;
	padding: 0;
}
.svt-upcoming .lse-card .lse-title { flex: 1 1 auto; }
.svt-upcoming .lse-card .lse-title {
	margin: 0;
	font-family: var(--global-body-font-family, inherit);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--svt-ink);
}
/* Video cards carry no blurb, so neither do these. */
.svt-upcoming .lse-card .lse-description,
.svt-upcoming .lse-card .lse-presenter { display: none; }
.svt-upcoming .lse-card .lse-badge-live { position: absolute; left: 12px; top: 12px; }

/* Table: the list row with a header. */
.svt-upcoming .lse-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 16px;
	line-height: 1.6;
	color: var(--svt-ink);
}
.svt-upcoming .lse-table th,
.svt-upcoming .lse-table td {
	padding: 10px 24px 10px 0;
	border: 0;
	border-bottom: 1px solid var(--svt-line);
	background: none;
	text-align: left;
	vertical-align: middle;
}
.svt-upcoming .lse-table th {
	border-bottom: 1px solid var(--svt-line);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.svt-upcoming .lse-table td:last-child { padding-right: 0; text-align: right; }
.svt-upcoming .lse-table a:not(.lse-register) { color: var(--svt-ink); text-decoration: none; }
.svt-upcoming .lse-table a:not(.lse-register):hover { color: var(--global-palette4, #9252f7); }


@media (max-width: 767px) {
	.svt-upcoming .lse-item {
		flex-wrap: wrap;
		gap: 4px 16px;
		padding: 14px 0;
	.svt-upcoming .lse-list.lse-cols-2,
	.svt-upcoming .lse-list.lse-cols-3 { grid-template-columns: 1fr; }
	.svt-upcoming .lse-card .lse-title { font-size: 18px; }
	.svt-upcoming .lse-table thead { display: none; }
	.svt-upcoming .lse-table,
	.svt-upcoming .lse-table tbody,
	.svt-upcoming .lse-table tr { display: block; }
	.svt-upcoming .lse-table td { display: block; padding: 2px 0; border: 0; }
	.svt-upcoming .lse-table tr { padding: 14px 0; border-bottom: 1px solid var(--svt-line); }
	.svt-upcoming .lse-table td:last-child { text-align: left; padding-top: 8px; }
	}
	.svt-upcoming .lse-item .lse-title { flex: 1 1 100%; }
	.svt-upcoming .lse-item .lse-datetime { flex: 1 1 auto; font-size: 14px; line-height: 1.4; white-space: normal; }
	.svt-upcoming .lse-item .lse-register { margin-left: auto; }
	.svt-upcoming .lse-list.lse-cols-2,
	.svt-upcoming .lse-list.lse-cols-3 { grid-template-columns: 1fr; }
	.svt-upcoming .lse-table thead { display: none; }
	.svt-upcoming .lse-table,
	.svt-upcoming .lse-table tbody,
	.svt-upcoming .lse-table tr { display: block; }
	.svt-upcoming .lse-table td { display: block; padding: 2px 0; border: 0; }
	.svt-upcoming .lse-table tr { padding: 14px 0; border-bottom: 1px solid var(--svt-line); }
	.svt-upcoming .lse-table td:last-child { text-align: left; padding-top: 8px; }
}
