/**
 * Anti-counterfeiting — three layers sticky tabs (ac-layers)
 * Desktop: side-by-side sticky tabs. Mobile (≤768px): accordion.
 */

.se-ac-layers.sticky-tabs-section {
	background: var(--color-surface-soft);
	padding: 0;
	position: relative;
	overflow-x: clip;
	max-width: 100%;
}

.se-ac-layers .sticky-tabs-header {
	padding-block: var(--section-pad-industry, 120px) 64px;
}

.se-ac-layers .sticky-tabs-header .eyebrow {
	color: var(--color-primary);
	margin-bottom: 0.75rem;
}

.se-ac-layers .sticky-tabs-header .section-title {
	max-width: 680px;
	margin: 0 0 0.75rem;
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 500;
	color: var(--color-ink);
	line-height: 1.15;
}

.se-ac-layers .sticky-tabs-header .ac-lede {
	max-width: 600px;
	font-size: 1.0625rem;
	color: var(--color-ink-soft, rgba(0, 0, 0, 0.6));
	line-height: 1.6;
	margin: 0;
	font-weight: 400;
}

/* ---- Desktop layout (≥769px) ---- */

.se-ac-layers .sticky-tabs-layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	min-height: 700px;
	padding-bottom: var(--section-pad-industry, 120px);
	gap: 2rem;
	min-width: 0;
}

.se-ac-layers .sticky-tabs-nav {
	position: sticky;
	top: 96px;
	align-self: start;
	height: fit-content;
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	padding-right: 40px;
	padding-top: 16px;
	min-width: 0;
	max-width: 100%;
	grid-column: 1;
	grid-row: 1;
}

.se-ac-layers .sticky-tabs-content {
	overflow: visible;
	position: relative;
	min-width: 0;
	max-width: 100%;
	grid-column: 2;
	grid-row: 1;
}

.se-ac-layers .sticky-accordion-item {
	display: block;
}

.se-ac-layers .sticky-tab-btn {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px 16px 20px 0;
	border: none;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	-webkit-tap-highlight-color: transparent;
	cursor: pointer;
	width: 100%;
	text-align: left;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	position: relative;
	transition: all 0.3s ease;
}

.se-ac-layers .sticky-tab-btn:hover,
.se-ac-layers .sticky-tab-btn:focus,
.se-ac-layers .sticky-tab-btn:focus-visible,
.se-ac-layers .sticky-tab-btn:active,
.se-ac-layers .sticky-tab-btn.is-active {
	background: transparent;
	box-shadow: none;
}

.se-ac-layers .sticky-tab-btn:focus {
	outline: none;
}

.se-ac-layers .sticky-tab-btn:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: -2px;
}

.se-ac-layers .sticky-accordion-item:first-child .sticky-tab-btn {
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.se-ac-layers .sticky-tab-btn::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--color-primary);
	transform: scaleX(0);
	transition: transform 0.3s ease;
	transform-origin: left;
}

.se-ac-layers .sticky-tab-btn.is-active::before {
	transform: scaleX(1);
}

.se-ac-layers .sticky-tab-btn.is-active .stb-icon {
	background: var(--color-primary);
	color: #fff;
}

.se-ac-layers .sticky-tab-btn.is-active .stb-label {
	color: var(--color-ink);
}

.se-ac-layers .stb-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--color-primary-soft, rgba(107, 98, 172, 0.08));
	color: var(--color-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: all 0.3s ease;
	overflow: hidden;
}

.se-ac-layers .stb-icon .icon {
	display: block;
	width: 20px;
	height: 20px;
	max-width: 20px;
	max-height: 20px;
	object-fit: contain;
	opacity: 1;
}

.se-ac-layers .sticky-tab-btn.is-active .stb-icon .icon {
	filter: brightness(0) invert(1);
	opacity: 1;
}

.se-ac-layers .stb-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	flex: 1;
}

.se-ac-layers .stb-layer {
	font-size: 10px;
	font-weight: 700;
	color: var(--color-primary);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.se-ac-layers .stb-label {
	font-size: 14px;
	font-weight: 700;
	color: rgba(0, 0, 0, 0.5);
	line-height: 1.3;
	transition: color 0.3s ease;
}

.se-ac-layers .stb-chevron {
	display: none;
}

.se-ac-layers .stb-note {
	padding-top: 32px;
	font-size: 13px;
	color: var(--color-ink);
	line-height: 1.6;
	font-weight: 400;
	margin: 0;
}

.se-ac-layers .sticky-tab-panel {
	display: none;
	grid-template-rows: auto 1fr;
	gap: 0;
	animation: se-ac-layers-fade 0.4s ease;
	min-width: 0;
	max-width: 100%;
}

.se-ac-layers .sticky-tab-panel.is-active {
	display: grid;
}

.se-ac-layers .sticky-tab-panel[hidden] {
	display: none !important;
}

@keyframes se-ac-layers-fade {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.se-ac-layers .stp-image-wrap {
	border-radius: 16px;
	overflow: hidden;
	height: 380px;
	margin-bottom: 32px;
	position: relative;
	max-width: 100%;
}

.se-ac-layers .stp-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	max-width: 100%;
}

.se-ac-layers .stp-body {
	background: var(--color-surface);
	border-radius: 16px;
	padding: 40px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	min-width: 0;
}

.se-ac-layers .stp-title {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 500;
	color: var(--color-ink);
	margin: 0 0 0.75rem;
}

.se-ac-layers .stp-desc {
	font-size: 1rem;
	color: var(--color-ink-soft, rgba(0, 0, 0, 0.6));
	line-height: 1.7;
	margin: 0;
}

@media (max-width: 992px) {
	.se-ac-layers .sticky-tabs-layout {
		grid-template-columns: 220px 1fr;
		min-height: 0;
		padding-bottom: 80px;
	}

	.se-ac-layers .sticky-tabs-nav {
		position: static;
		max-height: none;
		overflow-y: visible;
		padding-right: 0;
	}

	.se-ac-layers .stp-image-wrap {
		height: min(380px, 50vw);
		min-height: 200px;
	}

	.se-ac-layers .stp-body {
		padding: 28px;
	}
}

/* ---- Mobile accordion (≤768px) ---- */

@media (max-width: 768px) {
	.se-ac-layers .sticky-tabs-layout {
		display: block;
		padding-bottom: 64px;
	}

	.se-ac-layers .sticky-tabs-nav {
		position: static;
		padding: 0;
		max-height: none;
		overflow: visible;
	}

	.se-ac-layers .sticky-tabs-content {
		display: none;
	}

	.se-ac-layers .sticky-tab-btn {
		align-items: center;
		padding-right: 4px;
	}

	.se-ac-layers .stb-chevron {
		display: block;
		flex: none;
		width: 8px;
		height: 8px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		opacity: 0.45;
		transition: transform 0.25s ease, opacity 0.25s ease;
		margin-left: 8px;
	}

	.se-ac-layers .sticky-accordion-item.is-open .stb-chevron {
		transform: rotate(-135deg);
		opacity: 0.85;
	}

	.se-ac-layers .sticky-accordion-item .sticky-tab-panel {
		display: block;
		max-height: 0;
		overflow: hidden;
		animation: none;
		transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	}

	.se-ac-layers .sticky-accordion-item.is-open .sticky-tab-panel {
		max-height: 4000px;
		animation: se-ac-layers-fade 0.35s ease;
	}

	.se-ac-layers .sticky-accordion-item.is-open .stp-image-wrap {
		margin-top: 16px;
	}

	.se-ac-layers .stb-note {
		padding-top: 32px;
		font-size: 13px;
	}
}

@media (max-width: 640px) {
	.se-ac-layers .sticky-tabs-header {
		padding-bottom: 40px;
	}

	.se-ac-layers .stp-title {
		font-size: 18px;
	}

	.se-ac-layers .stp-desc {
		font-size: 14px;
	}

	.se-ac-layers .stp-image-wrap {
		margin-bottom: 20px;
	}

	.se-ac-layers .stp-body {
		padding: 20px;
	}

	.se-ac-layers .stp-title {
		margin: 0 0 0.55rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.se-ac-layers .sticky-tab-btn,
	.se-ac-layers .sticky-tab-btn::before,
	.se-ac-layers .stb-icon,
	.se-ac-layers .stb-label,
	.se-ac-layers .stb-chevron,
	.se-ac-layers .sticky-tab-panel,
	.se-ac-layers .sticky-accordion-item .sticky-tab-panel,
	.se-ac-layers .sticky-accordion-item.is-open .sticky-tab-panel {
		transition: none;
		animation: none;
	}
}
