/* Trust elements of the treatment-page template (sheet mode): k13 steps row, k16 question + fact pair,
   k17 doctor carousel. Scoped p3-in-*. Only transform and opacity animate. */

/* Placement: full width of the column (grid columns 2 to 3) on desktop; one column below 901px (p3-overrides.css). */
@media (min-width: 901px) {
	.p3-sheets .layer--scene > .p3-process:has(> .p3-in-k13__head),
	.p3-sheets .p3-sheet > .p3-in-k16,
	.p3-sheets .p3-sheet > .p3-in-k17 {
		grid-column: 2 / 4;
	}

	/* The start card sits alone in the scene (the steps row is gone from the template, Kajal 2026-10-26): it takes the whole column instead of leaving a hole. */
	.p3-sheets .layer--scene > .p3-areas:last-child,
	.p3-sheets .layer--scene > .p3-areas:has(~ .p3-process > .p3-in-k13__head) {
		grid-column: 2 / 4;
		min-height: 440px;
	}
}

/* k13: steps row, pale card, three columns with line icons */
.p3-sheets .p3-process:has(> .p3-in-k13__head) {
	min-height: 0;
	background: var(--p3-pale);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	box-shadow: none;
	color: var(--p3-ink);
}

.p3-in-k13__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 48px;
}

.p3-sheets .p3-in-k13 h2 {
	margin: 0;
	color: var(--p3-ink);
}

.p3-in-k13__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.p3-in-k13__list li {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.p3-in-k13__list svg {
	width: 40px;
	height: 40px;
	margin-bottom: 12px;
	fill: none;
	stroke: var(--p3-ink);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.p3-sheets .p3-in-k13 h3 {
	margin: 0;
	font-size: 17px;
	line-height: 1.3;
	letter-spacing: -.01em;
	font-weight: var(--heading-weight);
	color: var(--p3-ink);
}

.p3-sheets .p3-in-k13 p {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--p3-ink-soft);
}

/* k16: gradient question card + glass fact card */
.p3-in-k16 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--p3-gap);
	box-sizing: border-box;
}

.p3-in-k16__q,
.p3-in-k16__fact {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 440px;
	padding: var(--p3-pad);
	border-radius: var(--p3-r);
	color: #fff;
}

.p3-in-k16__q {
	align-items: center;
	gap: 32px;
	background: var(--p3-grad);
	text-align: center;
}

.p3-sheets .p3-in-k16 h2 {
	margin: 0;
	max-width: 10em;
	text-align: center; /* the sheet rules set h2 left; the question card is centred like its buttons */
	font-size: clamp(30px, 3.2vw, 44px);
	line-height: 1.04;
	letter-spacing: -.045em;
	font-weight: var(--heading-weight);
	text-wrap: balance;
}

.p3-in-k16__q ul {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.p3-in-k16__chip {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 24px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
	color: #fff;
	font-size: 15px;
	font-weight: var(--heading-weight);
	text-decoration: none;
	transition: transform .3s var(--p3-spring), opacity .2s;
}

.p3-in-k16__chip:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, .18);
}

.p3-in-k16__chip:focus-visible,
.p3-in-k17__nav button:focus-visible,
.p3-in-k17__track:focus-visible {
	outline: 2px solid #9db4e0;
	outline-offset: 3px;
}

.p3-in-k16__chip:active {
	transform: scale(.96);
}

.p3-in-k16__fact {
	align-items: flex-start;
	gap: 20px;
	background: var(--p3-glass);
	-webkit-backdrop-filter: blur(37px);
	backdrop-filter: blur(37px);
	box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.p3-in-k16__big {
	margin: 0;
	font-size: clamp(28px, 2.6vw, 36px);
	line-height: 1.1;
	letter-spacing: -.04em;
	font-weight: var(--heading-weight);
	text-wrap: balance;
}

.p3-in-k16__small {
	margin: 0;
	max-width: 38ch;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .74);
}

/* k17: doctor carousel inside a pale card */
.p3-sheets .p3-k.p3-in-k17 {
	padding-bottom: calc(var(--p3-pad) - 8px);
}

.p3-sheets .p3-in-k17 h2 {
	max-width: 14em;
	margin: 0 auto;
	text-align: center;
	color: var(--p3-ink);
}

.p3-in-k17 h2 span {
	color: #7a8bb0;
}

.p3-sheets .p3-in-k17 .p3-in-k17__sub {
	margin: 16px auto 0;
	max-width: 32em;
	text-align: center;
	font-size: 17px;
	line-height: 1.5;
}

.p3-in-k17__nav {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 24px;
}

.p3-in-k17__nav button {
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(31, 39, 54, .08);
	color: var(--p3-ink);
	font-size: 18px;
	cursor: pointer;
	transition: transform .3s var(--p3-spring), opacity .2s;
}

.p3-in-k17__nav button:hover {
	transform: scale(1.08);
	background: rgba(31, 39, 54, .14);
}

.p3-in-k17__nav button:active {
	transform: scale(.94);
}

.p3-in-k17__track {
	display: flex;
	gap: 16px;
	margin: 16px calc(-1 * var(--p3-pad)) 0;
	padding: 0 var(--p3-pad) 8px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--p3-pad);
	scrollbar-width: none;
	list-style: none;
}

.p3-in-k17__track::-webkit-scrollbar {
	display: none;
}

.p3-in-k17__track li {
	flex: 0 0 300px;
	scroll-snap-align: start;
}

.p3-in-k17__pic {
	position: relative;
	height: 170px;
	margin-bottom: 24px;
	border-radius: var(--p3-r);
	overflow: hidden;
	background: linear-gradient(180deg, #f6f8fb, #d9e0ea);
}

.p3-in-k17__pic svg {
	position: absolute;
	left: 18px;
	bottom: -4px;
	width: 112px;
	fill: #b8c3d3;
}

.p3-in-k17__lbl {
	position: absolute;
	top: 50%;
	right: 14px;
	left: 146px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	transform: translateY(-50%);
}

.p3-in-k17__lbl b {
	font-size: 15px;
	line-height: 1.25;
	font-weight: 600;
	color: var(--p3-ink);
}

.p3-in-k17__lbl i {
	padding-left: 9px;
	border-left: 2px solid #5a6f96;
	font-size: 13px;
	font-style: normal;
	line-height: 1.2;
	font-weight: 500;
	color: #5b6272;
}

.p3-sheets .p3-in-k17__track h3 {
	margin: 0;
	font-size: 19px;
	line-height: 1.2;
	letter-spacing: -.02em;
}

.p3-sheets .p3-in-k17__track p {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.55;
}

@media (max-width: 900px) {
	.p3-in-k13__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
		margin-bottom: 28px;
	}

	.p3-in-k13__list {
		display: flex;
		margin-right: calc(-1 * var(--p3-pad));
		padding-right: var(--p3-pad);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		gap: 16px;
	}

	.p3-in-k13__list::-webkit-scrollbar {
		display: none;
	}

	.p3-in-k13__list li {
		flex: 0 0 78%;
		scroll-snap-align: start;
	}

	.p3-in-k16 {
		grid-template-columns: minmax(0, 1fr);
	}

	.p3-in-k16__q,
	.p3-in-k16__fact {
		min-height: 0;
	}

	.p3-in-k16__fact {
		align-items: center;
		text-align: center;
	}

	.p3-in-k17__nav {
		display: none;
	}

	.p3-in-k17__track li {
		flex-basis: 78%;
	}

	.p3-in-k17__pic svg {
		left: 12px;
		width: 96px;
	}

	.p3-in-k17__lbl {
		left: 116px;
		right: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.p3-in-k16__chip,
	.p3-in-k17__nav button {
		transition: none;
	}

	.p3-in-k16__chip:hover,
	.p3-in-k17__nav button:hover {
		transform: none;
	}

	.p3-in-k17__track {
		scroll-behavior: auto;
	}
}
