/*! Tabs Showcase widget (v1.2.1) */

.avd-ts {
	--ts-accent: var(--sc-accent);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 56px;
}

.avd-ts--reverse {
	flex-direction: row-reverse;
}

.avd-ts__side {
	flex: 1 1 460px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.avd-ts__head {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.avd-ts__title {
	font-size: clamp(32px, 3.8vw, 48px);
	text-wrap: wrap;
}

.avd-ts__list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.avd-ts__item {
	position: relative;
	overflow: hidden;
	padding: 22px 24px;
	border: 1px solid transparent;
	border-radius: 18px;
	transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.avd-ts__item.is-active {
	border-color: var(--sc-border);
	background: var(--sc-card);
	box-shadow: 0 18px 40px rgba(10, 10, 10, 0.07);
}

.avd-ts__tab {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	word-spacing: inherit;
	text-align: left;
	cursor: pointer;
}

.avd-ts__tab::after {
	content: "";
	position: absolute;
	inset: 0;
}

.avd-ts__item.is-active .avd-ts__tab {
	cursor: default;
}

.avd-ts__num {
	min-width: 20px;
	font-size: 15px;
	font-weight: 700;
	color: var(--ts-accent);
}

.avd-ts__tab-title {
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--sc-muted);
	transition: color 0.2s ease;
}

.avd-ts__tab:hover .avd-ts__tab-title,
.avd-ts__item.is-active .avd-ts__tab-title {
	color: var(--sc-heading);
}

.avd-ts__desc {
	position: relative;
	padding: 10px 0 0 36px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--sc-text);
	animation: avd-rise 0.3s ease both;
}

.avd-ts--nonum .avd-ts__desc {
	padding-left: 0;
}

.avd-ts__progress {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 2px;
	width: 0;
	background: var(--ts-accent);
}

.avd-ts__item.is-playing .avd-ts__progress {
	animation: avd-ts-progress var(--ts-time, 6s) linear forwards;
}

@keyframes avd-ts-progress {
	from { width: 0; }
	to { width: 100%; }
}

.avd-ts__btn {
	align-self: flex-start;
}

/* Visual stage */
.avd-ts__stage {
	position: relative;
	isolation: isolate;
	flex: 1 1 520px;
	min-width: 0;
	aspect-ratio: 5 / 4;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	border-radius: var(--avd-radius-panel);
	background: var(--avd-black);
}

.avd-ts__glow {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: radial-gradient(ellipse 70% 70% at 70% 30%, rgba(0, 87, 255, 0.4), rgba(10, 10, 10, 0) 70%);
}

.avd-ts__badge {
	position: absolute;
	left: 20px;
	top: 20px;
	z-index: 2;
	margin: 0;
	padding: 6px 12px;
	border: 1px solid var(--avd-border-dark);
	border-radius: 999px;
	background: rgba(10, 10, 10, 0.6);
	font-size: 13px;
	color: var(--avd-text-on-dark-2);
}

.avd-ts__panel {
	position: relative;
	width: 100%;
	display: flex;
	justify-content: center;
	animation: avd-rise 0.4s ease both;
}

.avd-ts__panel[hidden] {
	display: none;
}

.avd-ts__panel.is-mock,
.avd-ts__panel.is-image {
	position: absolute;
	inset: 0;
}

.avd-ts__panel.is-mock .avd-mock {
	height: 100%;
	aspect-ratio: auto;
	border-radius: 0;
	background: transparent;
}

.avd-ts__img,
.avd-w .avd-ts__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.avd-ts__vis {
	position: relative;
	width: 100%;
	max-width: 420px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	word-spacing: normal;
}

/* Lead notifications */
.avd-ts__note {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	border-radius: 16px;
	background: #F4F6F8;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.avd-ts__note.is-shifted {
	margin-left: 28px;
}

.avd-ts__note-ico {
	width: 42px;
	height: 42px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: var(--avd-blue);
	color: #FFFFFF;
}

.avd-ts__note.is-shifted .avd-ts__note-ico {
	background: var(--avd-black);
	color: var(--avd-cyan);
}

.avd-ts__note-text {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
	font-size: 14px;
	color: #3D4654;
}

.avd-ts__note-text strong {
	font-size: 15px;
	font-weight: 600;
	color: #0A0A0A;
}

/* Google result */
.avd-ts__serp {
	max-width: 440px;
}

.avd-ts__query {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 20px;
	border-radius: 999px;
	background: #F4F6F8;
	font-size: 15px;
	color: #3D4654;
}

.avd-ts__result {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px 22px;
	border: 2px solid var(--avd-cyan);
	border-radius: 16px;
	background: #F4F6F8;
}

.avd-ts__result-url {
	font-size: 13px;
	color: #5B6573;
}

.avd-ts__result-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--avd-blue-hover);
}

.avd-ts__result-desc {
	font-size: 14px;
	line-height: 1.5;
	color: #3D4654;
}

.avd-ts__ghost {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 22px;
	border-radius: 16px;
	background: #1B1E24;
}

.avd-ts__ghost b {
	display: block;
	border-radius: 5px;
	background: #3A3F48;
}

.avd-ts__ghost b + b {
	background: #2A2F38;
}

/* Home value form */
.avd-ts__value {
	gap: 16px;
	padding: 30px;
	border-radius: 20px;
	background: #F4F6F8;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.avd-ts__value-kicker {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--avd-blue-hover);
}

.avd-ts__value-title {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	color: #0A0A0A;
}

.avd-ts__value-field {
	min-height: 50px;
	display: flex;
	align-items: center;
	padding: 0 16px;
	border: 1px solid #C9D1DC;
	border-radius: 12px;
	background: #FFFFFF;
	font-size: 15px;
	color: #6A7380;
}

.avd-ts__value-btn {
	min-height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: var(--avd-blue);
	font-size: 16px;
	font-weight: 600;
	color: #FFFFFF;
}

/* Pipeline */
.avd-ts__kanban {
	max-width: 460px;
	flex-direction: row;
	gap: 10px;
}

.avd-ts__col {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.avd-ts__col-name {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #B8C2D0;
}

.avd-ts__col i {
	height: 56px;
	border-radius: 10px;
	background: #1B1E24;
}

.avd-ts__col.is-goal .avd-ts__col-name {
	color: var(--avd-cyan);
}

.avd-ts__col.is-goal i {
	border: 1px dashed var(--avd-cyan);
	background: transparent;
}

.avd-ts__lead {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px;
	border-radius: 10px;
	background: #F4F6F8;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
	font-size: 12px;
	color: #3D4654;
}

.avd-ts__lead strong {
	font-size: 13px;
	font-weight: 600;
	color: #0A0A0A;
}

@media (max-width: 767px) {
	.avd-ts {
		gap: 36px;
	}

	.avd-ts__item {
		padding: 18px 18px;
	}

	.avd-ts__tab-title {
		font-size: 19px;
	}

	.avd-ts__desc {
		font-size: 16px;
	}

	.avd-ts__stage {
		flex-basis: 100%;
		aspect-ratio: auto;
		min-height: 320px;
		padding: 28px 18px;
	}

	.avd-ts__kanban {
		gap: 6px;
	}

	.avd-ts__col-name {
		font-size: 10px;
		letter-spacing: 0.06em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.avd-ts__panel,
	.avd-ts__desc {
		animation: none;
	}
}

/* v1.2.1: video visual, filling the frame like an image */
.avd-ts__panel.is-video {
	position: absolute;
	inset: 0;
}

.avd-ts__panel .avd-video {
	position: absolute;
	inset: 0;
	height: 100%;
	aspect-ratio: auto;
}
