.tsw-clothing-parts,
.tsw-clothing-page-copy,
.tsw-clothing-glossary {
	--tsw-cp-ink: #2f2925;
	--tsw-cp-muted: #6f665e;
	--tsw-cp-paper: #f8f3ea;
	--tsw-cp-paper-2: #efe7da;
	--tsw-cp-line: #d8cbb9;
	--tsw-cp-accent: #725741;
	--tsw-cp-accent-dark: #4d392b;
	--tsw-cp-focus: #1f5f9f;
	color: inherit;
}

.tsw-clothing-parts {
	margin: 2rem 0;
}

.tsw-clothing-parts *,
.tsw-clothing-parts *::before,
.tsw-clothing-parts *::after {
	box-sizing: border-box;
}

.tsw-clothing-parts__toolbar {
	display: grid;
	gap: 0.8rem;
	margin-bottom: 1rem;
}

.tsw-clothing-parts__garment-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
}

.tsw-clothing-parts__garment-name {
	margin: 0;
	text-align: center;
	font: inherit;
	font-size: clamp(1.25rem, 3vw, 1.65rem);
	font-weight: 700;
	color: var(--tsw-cp-ink);
}

.tsw-clothing-parts__garment-arrow,
.tsw-clothing-parts__view-button,
.tsw-clothing-parts__reveal-button {
	min-height: 44px;
	border: 1px solid var(--tsw-cp-line);
	border-radius: 999px;
	background: #fff;
	color: var(--tsw-cp-ink);
	font: inherit;
	font-size: 0.95rem;
	line-height: 1.2;
	cursor: pointer;
}

.tsw-clothing-parts__garment-arrow {
	width: 44px;
	padding: 0;
}

.tsw-clothing-parts__view-switcher,
.tsw-clothing-parts__reveal-switcher {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.tsw-clothing-parts__view-button,
.tsw-clothing-parts__reveal-button {
	padding: 0.65rem 1rem;
}

.tsw-clothing-parts__view-button[aria-pressed="true"],
.tsw-clothing-parts__reveal-button[aria-pressed="true"] {
	border-color: var(--tsw-cp-accent);
	background: var(--tsw-cp-accent);
	color: #fff;
}

.tsw-clothing-parts button:focus-visible,
.tsw-clothing-parts a:focus-visible {
	outline: 3px solid var(--tsw-cp-focus);
	outline-offset: 3px;
}

.tsw-clothing-parts__layout {
	display: grid;
	gap: clamp(1rem, 3vw, 2rem);
	align-items: start;
}

.tsw-clothing-parts__visual {
	min-width: 0;
}

.tsw-clothing-parts__image-wrap {
	position: relative;
	max-width: 680px;
	margin-inline: auto;
}

.tsw-clothing-parts__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 2px;
}

.tsw-clothing-parts__image-caption {
	max-width: 680px;
	margin: 0.65rem auto 0;
	color: var(--tsw-cp-muted);
	font-size: 0.9rem;
	line-height: 1.45;
	text-align: center;
}

.tsw-clothing-parts__hotspots {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.tsw-clothing-parts__hotspot {
	position: absolute;
	left: var(--tsw-hotspot-x);
	top: var(--tsw-hotspot-y);
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	transform: translate(-50%, -50%);
	pointer-events: auto;
	cursor: pointer;
}

.tsw-clothing-parts__hotspot-dot {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	margin: 10px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: rgba(47, 41, 37, 0.88);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.28);
	transition: transform 150ms ease, background 150ms ease;
}

.tsw-clothing-parts__hotspot[aria-pressed="true"] .tsw-clothing-parts__hotspot-dot {
	background: var(--tsw-cp-accent);
	transform: scale(1.15);
}

@media (hover: hover) and (pointer: fine) {
	.tsw-clothing-parts__hotspot:hover .tsw-clothing-parts__hotspot-dot {
		transform: scale(1.15);
	}
}

.tsw-clothing-parts__card {
	overflow: hidden;
	border: 1px solid var(--tsw-cp-line);
	border-radius: 10px;
	background: var(--tsw-cp-paper);
	color: var(--tsw-cp-ink);
}

.tsw-clothing-parts__card-empty,
.tsw-clothing-parts__card-content {
	padding: clamp(1rem, 3vw, 1.4rem);
}

.tsw-clothing-parts__crop {
	display: block;
	width: calc(100% + 2.8rem);
	aspect-ratio: 4 / 3;
	margin: -1.4rem -1.4rem 1.1rem;
	background-color: var(--tsw-cp-paper-2);
	background-repeat: no-repeat;
	border-bottom: 1px solid var(--tsw-cp-line);
}

.tsw-clothing-parts__eyebrow {
	margin: 0 0 0.3rem;
	color: var(--tsw-cp-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tsw-clothing-parts__card h3,
.tsw-clothing-parts__card-title {
	margin: 0 0 0.75rem;
	color: var(--tsw-cp-ink);
	font-size: clamp(1.35rem, 3vw, 1.8rem);
	font-weight: 700;
	line-height: 1.15;
}

.tsw-clothing-parts__card p {
	margin: 0.7rem 0;
}

.tsw-clothing-parts__card p:last-child {
	margin-bottom: 0;
}

.tsw-clothing-parts__guide a {
	display: inline-block;
	margin-top: 0.25rem;
	font-weight: 700;
	color: var(--tsw-cp-accent-dark);
	text-underline-offset: 0.16em;
}

.tsw-clothing-page-copy__deck {
	font-size: 1.18em;
	line-height: 1.5;
}

.tsw-clothing-glossary {
	margin-top: 2.5rem;
}

.tsw-clothing-glossary h3 {
	margin-top: 2rem;
}

.tsw-clothing-glossary__sources {
	padding-left: 1.25rem;
}

.tsw-clothing-glossary__sources li + li {
	margin-top: 0.55rem;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (min-width: 820px) {
	.tsw-clothing-parts__layout {
		grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
	}

	.tsw-clothing-parts__card {
		position: sticky;
		top: 1.5rem;
	}
}

@media (max-width: 819px) {
	.tsw-clothing-parts__card {
		margin-top: 0.25rem;
	}

	.tsw-clothing-parts__crop {
		width: calc(100% + 2rem);
		margin: -1rem -1rem 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tsw-clothing-parts__hotspot-dot {
		transition: none;
	}
}

.tsw-clothing-parts__setup-notice {
	padding: 1rem 1.15rem;
	border: 1px solid var(--tsw-cp-line);
	border-radius: 8px;
	background: var(--tsw-cp-paper);
}
