/* "What counts as one task?" spotlight (task-finder.js; design W2 in tools/video/concepts/) */

.wx-task-finder.is-enhanced,
.has-spotlight > p[class*="__label"] {
	display: none !important;
}

/* the panel columns may shrink on phones */
.wx-taskdef > *,
.wx-wl-task > *,
.wx-taskdef__examples,
.wx-wl-task__examples {
	min-width: 0;
}

/* a shorter panel around the spotlight (owner 2026-11-04) */
.wx-taskdef:has(.wx-ts),
.wx-wl-task:has(.wx-ts) {
	gap: 24px !important;
	padding: 36px 40px !important;
}

.wx-ts {
	--ts-dark: #131313;
	--ts-grey: #575757;
	--ts-cream: #fcf6ef;
	--ts-edge: #ece4d8;
	--ts-main: #fff;
	display: grid;
	grid-template-columns: 380px minmax(0, 1fr);
	min-width: 0;
	border-radius: 24px;
	overflow: hidden;
}

.wx-wl-task .wx-ts {
	--ts-main: #fcf6ef;
}

.wx-ts__side {
	display: flex;
	flex-direction: column;
	padding: 34px 34px 28px;
	background: var(--ts-dark);
	color: var(--ts-cream);
}

.wx-ts p.wx-ts__eyebrow {
	margin: 0 !important;
	color: #a39d95;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.6px;
	text-transform: uppercase;
}

.wx-ts p.wx-ts__name {
	margin: 16px 0 0 !important;
	color: var(--ts-cream);
	font-size: 40px;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -1.2px;
}

.wx-ts__meter {
	display: flex;
	gap: 5px;
	margin-top: 22px;
}

.wx-ts__meter i {
	position: relative;
	flex: 1;
	height: 6px;
	border-radius: 3px;
	background: rgba(252, 246, 239, .15);
	overflow: hidden;
}

.wx-ts__meter i::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--ts-cream);
	transform: scaleX(0);
	transform-origin: 0 50%;
}

.wx-ts.is-in .wx-ts__meter i::after {
	transform: scaleX(1);
	transition: transform .25s linear;
}

.wx-ts.is-in .wx-ts__meter i:nth-child(2)::after { transition-delay: .25s; }
.wx-ts.is-in .wx-ts__meter i:nth-child(3)::after { transition-delay: .5s; }
.wx-ts.is-in .wx-ts__meter i:nth-child(4)::after { transition-delay: .75s; }

.wx-ts__hours {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	color: #8a857e;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.wx-ts p.wx-ts__sum {
	margin: 18px 0 0 !important;
	color: #cfcac3;
	font-size: 15px;
	line-height: 1.5;
}

.wx-ts__nav {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 24px;
}

.wx-ts__dots {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 7px;
}

.wx-ts button.wx-ts__dot {
	width: 9px;
	height: 9px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 5px;
	background: rgba(252, 246, 239, .28);
	cursor: pointer;
	transition: width .3s ease, background-color .3s ease;
}

.wx-ts button.wx-ts__dot[aria-pressed="true"] {
	width: 28px;
	background: var(--ts-cream);
}

.wx-ts button.wx-ts__arrow {
	display: grid;
	flex: none;
	place-items: center;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(252, 246, 239, .3);
	border-radius: 50%;
	background: transparent;
	color: var(--ts-cream);
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.wx-ts button.wx-ts__arrow:hover {
	background: var(--ts-cream);
	color: var(--ts-dark);
}

.wx-ts button:focus-visible {
	outline: 2px solid var(--ts-cream);
	outline-offset: 3px;
}

.wx-ts__main {
	padding: 22px 36px 24px;
	background: var(--ts-main);
}

.wx-ts ol.wx-ts__list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 30px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
	counter-reset: wx-ts;
}

.wx-ts__list li {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin: 0;
	padding: 11px 0;
	border-bottom: 1px solid var(--ts-edge);
	color: var(--ts-dark);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	counter-increment: wx-ts;
	opacity: 0;
}

.wx-ts.is-in .wx-ts__list li {
	opacity: 1;
	transition: opacity .3s ease;
}

.wx-ts__list li::before {
	content: counter(wx-ts, decimal-leading-zero);
	flex: none;
	min-width: 20px;
	color: var(--ts-grey);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .5px;
}

.wx-ts p.wx-ts__more {
	margin: 14px 0 0 !important;
	color: var(--ts-grey);
	font-size: 14px;
	line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
	.wx-ts__list li,
	.wx-ts__meter i::after {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

@media (max-width: 1100px) {
	.wx-ts {
		grid-template-columns: 300px minmax(0, 1fr);
	}

	.wx-ts p.wx-ts__name {
		font-size: 32px;
	}
}

/* phones: the side panel sits on top, the list is one column */
@media (max-width: 767px) {
	.wx-taskdef:has(.wx-ts),
	.wx-wl-task:has(.wx-ts) {
		gap: 20px !important;
		padding: 26px 18px !important;
	}

	.wx-ts {
		grid-template-columns: minmax(0, 1fr);
		border-radius: 20px;
	}

	.wx-ts__side {
		padding: 24px 22px 20px;
	}

	.wx-ts p.wx-ts__name {
		margin-top: 12px !important;
		font-size: 28px;
	}

	.wx-ts p.wx-ts__sum {
		margin-top: 14px !important;
		font-size: 14px;
	}

	.wx-ts__nav {
		padding-top: 18px;
	}

	.wx-ts__main {
		padding: 10px 22px 20px;
	}

	.wx-ts ol.wx-ts__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.wx-ts__list li {
		padding: 10px 0;
		font-size: 14.5px;
	}
}
