/**
 * TDS Site Layer: UX Lab
 * Version: 2.2.0
 * Scope:
 * - UX Lab service pages
 * - Practice/research dossier pages
 * - 50+ accessibility synchronization
 */

/* =========================================
   UX Lab Hub
========================================= */

.ux-lab-hub {
	background: #fff;
}

.ux-lab-hub .uh-dossier-card__text {
	font-family: var(--tds-font-system);
	font-size: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem);
	line-height: var(--tds-type-line-body);
}

.ux-lab-hub__service-output {
	margin-top: auto;
	padding-top: var(--tds-space-03);
	border-top: 1px solid var(--tds-border);
}

.ux-lab-hub__output-label {
	margin-bottom: var(--tds-space-02);
}

.ux-lab-hub__faq-panel {
	max-width: 46rem;
}

/* =========================================
   UX Lab Request Page
========================================= */

.uh-request-page,
.uh-request-page--uxlab {
	background: #fff;
}

.uh-request-page__anchor {
	scroll-margin-top: var(--uh-dynamic-combined-height, 128px);
}

.uh-request-page__panel {
	background: #fff;
	border: 1px solid var(--tds-border);
	border-radius: 0.95rem;
}

.uh-request-page__status-text {
	max-width: 48ch;
}

.uh-request-page__band {
	background: var(--tds-surface-soft);
	border: 1px solid var(--tds-border);
	border-radius: 0.95rem;
}

.uh-request-page__band-kicker {
	color: var(--tds-text-main);
}

.uh-request-page__note {
	color: var(--tds-text-muted);
	font-family: var(--tds-font-system);
	font-size: var(--tds-type-size-body);
	line-height: var(--tds-type-line-body);
}

.uh-request-page__step {
	text-align: left;
	padding: 1.25rem 1.35rem;
	border-radius: 0.95rem;
	border: 1px dashed var(--tds-border);
	background: #fff;
	height: 100%;
}

.uh-request-page__step-head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.6rem;
}

.uh-request-page__step-num {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--tds-brand-strong);
	color: #fff;
	font-size: var(--tds-type-size-label);
	font-weight: var(--tds-weight-medium);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 0 0 3px var(--tds-brand-a08);
}

.uh-request-page__step-title {
	font-family: var(--tds-font-system);
	font-weight: var(--tds-weight-semibold);
	color: var(--tds-text-main);
	font-size: var(--tds-type-size-body);
	margin: 0;
	line-height: var(--tds-type-line-body);
	letter-spacing: var(--tds-type-track-body);
}

.uh-request-page__step p {
	margin: 0;
	color: var(--tds-text-muted);
	font-size: var(--tds-type-size-body);
	line-height: var(--tds-type-line-body);
}

.uh-service-page--uxlab {
	background: #fff;
}

.uh-service-section {
	padding: 4rem 0;
}

.uh-service-section--alt {
	background: #f8fafc;
	border-top: 1px solid var(--tds-border);
	border-bottom: 1px solid var(--tds-border);
}

.uh-service-anchor {
	scroll-margin-top: var(--uh-dynamic-combined-height, 128px);
}

.uh-service-heading {
	max-width: 22ch;
	margin-inline: auto;
}

.uh-service-heading--left {
	max-width: 22ch;
	margin-inline: 0;
	text-align: left;
}

.uh-service-lead {
	max-width: var(--tds-reading-measure);
	color: var(--tds-text-muted);
	font-family: var(--tds-font-system);
	line-height: var(--tds-type-line-body);
}

.uh-service-divider {
	width: 64px;
	height: 3px;
	background: var(--tds-brand-strong);
	margin: 12px auto 22px;
	border-radius: 999px;
}

.uh-service-rule {
	height: 1px;
	background: var(--tds-border);
	border: 0;
	margin: 2.25rem auto 0;
	max-width: 980px;
	opacity: 1;
}

.uh-service-panel {
	background: #fff;
	border: 1px solid var(--tds-border);
	border-radius: 0.95rem;
}

.uh-service-band {
	background: #f3f4f6;
	border: 1px solid var(--tds-border);
	border-radius: 0.95rem;
}

.uh-service-band__kicker {
	color: var(--tds-text-main);
	font-size: var(--tds-type-size-label);
}

.uh-service-note,
.uh-service-copy,
.uh-service-start-note {
	color: var(--tds-text-muted);
	font-family: var(--tds-font-system);
	font-size: var(--tds-type-size-body);
	line-height: var(--tds-type-line-body);
}

.uh-service-start-note__link,
.uh-service-link {
	font-weight: var(--tds-weight-semibold);
	text-decoration: none;
	color: var(--tds-brand-strong);
}

.uh-service-link::after {
	content: " →";
}

.uh-service-link-reset {
	color: inherit;
	text-decoration: none;
}

.uh-service-list {
	margin-bottom: 0;
	padding-left: 1.1rem;
}

.uh-service-list li {
	margin-bottom: 0.4rem;
	line-height: var(--tds-type-line-body);
}

.uh-service-list li:last-child {
	margin-bottom: 0;
}

.uh-service-list--small li {
	font-size: var(--tds-type-size-meta);
}

.uh-service-dl dt {
	font-weight: var(--tds-weight-semibold);
	color: var(--tds-text-main);
	margin-bottom: 0.25rem;
}

.uh-service-dl dd {
	margin-left: 0;
	margin-bottom: 1rem;
	color: var(--tds-text-muted);
	line-height: var(--tds-type-line-body);
}

.uh-service-dl dd:last-child {
	margin-bottom: 0;
}

.uh-service-dl__title {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
}

.uh-service-icon {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex-shrink: 0;
	margin-top: 2px;
	opacity: 0.85;
}

.uh-service-steps {
	margin-bottom: 2.5rem;
}

.uh-service-step {
	text-align: left;
	padding: 1.25rem 1.35rem;
	border-radius: 0.95rem;
	border: 1px dashed var(--tds-border);
	background: #fff;
	height: 100%;
}

.uh-service-step__head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.6rem;
}

.uh-service-step__num {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--tds-brand-strong);
	color: #fff;
	font-size: var(--tds-type-size-label);
	font-weight: var(--tds-weight-medium);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 0 0 3px var(--tds-brand-a08);
}

.uh-service-step__title {
	font-family: var(--tds-font-system);
	font-weight: var(--tds-weight-semibold);
	color: var(--tds-text-main);
	font-size: var(--tds-type-size-body);
	margin: 0;
	line-height: var(--tds-type-line-body);
	letter-spacing: var(--tds-type-track-body);
}

.uh-service-step p {
	margin: 0;
	color: var(--tds-text-muted);
	font-size: var(--tds-type-size-body);
	line-height: var(--tds-type-line-body);
}

.uh-service-kvlist {
	display: block;
}

.uh-service-kvrow {
	display: grid;
	grid-template-columns: 24px 200px 1fr;
	column-gap: 1rem;
	row-gap: 0.25rem;
	align-items: start;
	padding: 1rem 0;
	border-bottom: 1px solid var(--tds-border);
}

.uh-service-kvrow:last-child {
	border-bottom: 0;
}

.uh-service-kvrow__icon {
	width: 24px;
	height: 24px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	margin-top: 0.1rem;
	color: var(--tds-text-main);
}

.uh-service-kvrow__heading {
	font-family: var(--tds-font-system);
	font-size: var(--tds-type-size-body);
	font-weight: var(--tds-weight-semibold);
	color: var(--tds-text-main);
	line-height: var(--tds-type-line-body);
	letter-spacing: var(--tds-type-track-body);
}

.uh-service-kvrow__description {
	color: var(--tds-text-muted);
	line-height: var(--tds-type-line-body);
}

.uh-service-proof-media img {
	width: 100%;
	height: 300px;
	object-fit: cover;
	display: block;
	background: #f3f4f6;
}

.uh-service-panel--proof {
	overflow: hidden;
}

.uh-service-eyebrow {
	font-family: var(--tds-font-system);
	text-transform: uppercase;
	letter-spacing: var(--tds-type-track-label);
	font-weight: var(--tds-weight-medium);
	font-size: var(--tds-type-size-label);
	line-height: var(--tds-type-line-label);
	color: var(--tds-text-muted);
	margin-bottom: 0.5rem;
}

.uh-service-kicker {
	display: inline-block;
	margin: 0 0 0.75rem;
	font-family: var(--tds-font-system);
	font-size: var(--tds-type-size-label);
	font-weight: var(--tds-weight-medium);
	line-height: var(--tds-type-line-label);
	letter-spacing: var(--tds-type-track-label);
	text-transform: uppercase;
	color: var(--tds-text-muted);
}

.uh-service-kicker--muted {
	color: var(--tds-text-muted);
}

.uh-service-proof-summary {
	border-top: 1px solid var(--tds-border);
	background: #fcfcfc;
}

.uh-service-subnav {
	background: rgba(255, 255, 255, 0.92);
	border-bottom: 1px solid var(--tds-border);
	backdrop-filter: saturate(1.1) blur(6px);
	z-index: 100;
}

.uh-service-subnav__scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.uh-service-subnav__nav {
	flex-wrap: nowrap;
	gap: 0.15rem;
}

.uh-service-subnav .nav-link {
	display: inline-flex;
	align-items: center;
	min-height: var(--tds-tap-target-min);
	white-space: nowrap;
	padding: 0.75rem 0.85rem;
	margin-top: 0.35rem;
	color: var(--tds-text-main);
}

.uh-service-subnav .nav-link.active {
	color: var(--tds-text-main);
	font-weight: var(--tds-weight-medium);
	border-bottom: 3px solid var(--tds-brand);
}

.uh-service-faq .accordion-button {
	background: #f3f4f6;
	color: var(--tds-text-main);
	border-color: var(--tds-border);
	box-shadow: none;
}

.uh-service-faq .accordion-button:not(.collapsed) {
	background: #eef0f3;
	color: var(--tds-text-main);
	box-shadow: none;
}

.uh-service-faq .accordion-button:focus {
	border-color: var(--tds-border);
}

@media (max-width: 768px) {
	.uh-service-kvrow {
		grid-template-columns: 24px 1fr;
		grid-template-areas:
			"ico head"
			"ico desc";
	}

	.uh-service-kvrow__icon {
		grid-area: ico;
	}

	.uh-service-kvrow__heading {
		grid-area: head;
	}

	.uh-service-kvrow__description {
		grid-area: desc;
	}
}

.uh-service-note a {
	color: var(--tds-brand-strong);
	text-decoration: none;
	font-weight: var(--tds-weight-semibold);
}

.uh-service-note a:hover,
.uh-service-note a:focus-visible {
	color: var(--tds-brand-strong);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/*
 * UX Lab typography intent.
 * Keep the applied/institutional family scoped to UX Lab roots so shared
 * service classes retain their independent About, Institute, and record uses.
 */
.ux-lab-hub,
.uh-service-page--uxlab,
.uh-request-page--uxlab {
	font-family: var(--tds-font-system);
}

.ux-lab-hub .uh-dossier-card__text,
.uh-service-page--uxlab .uh-dossier-card__text,
.uh-request-page--uxlab .uh-dossier-card__text,
.uh-service-page--uxlab .uh-service-lead,
.uh-service-page--uxlab .uh-service-note,
.uh-service-page--uxlab .uh-service-copy,
.uh-service-page--uxlab .uh-service-start-note,
.uh-request-page--uxlab .uh-request-page__note {
	font-family: var(--tds-font-system);
}
