/* ============================================================
   DLC Department Testimonials - v1.3.2 | 2026-11-05
   1.3.2: Text Width list reordered (default first) - Page Builder saved the first option, Full, as blank.
   1.3.1: Soft Glow backing (default) and None (light photos only); Light Panel 85% -> 70%; the text box
   hugs the longest quote (up to the Text Width); default width Medium - Centered; arrows / dots back at
   the bottom of the photo with the light outline.
   Rotating quotes over a department background photo.
   1.3.0: no Bootstrap .container - on the homepage / department pages (body#SFNT) the photo lines up with the
   header content edges; elsewhere it fills its column. Text sits in a panel (Light Panel backing by default,
   or the 1.2 halo). Advanced > Text Style: backing, text width (content width scale), quote font / style /
   weight / size, attribution style. Breakpoints 767 / 991 only (479 / 480 retired).
   Desktop height / text top padding still come from the settings (defaults 310px / 105px).
   Tokens: --font-accent, --font-primary, --font-ui-family, --font-size-*, --text-body, --color-white,
   --text-halo-light, --brand-purple, --focus-ring, --space-*, --content-*, --container-max, --container-gutter
   Contrast: Soft Glow / Light Panel = white at 70% behind the text; --text-body on it is 5.1:1 or better even
   over black. None = no backing - passes only when the photo is light everywhere behind the text.
   ============================================================ */

/* -- Frame ---------------------------------------------------- */
.dlc-dept-test-frame {
	width: 100%;
	margin-bottom: 1.5em;
}

/* Homepage / department pages (body#SFNT - full-width column): the photo lines up with the header content -
   capped at --container-max and inset by --container-gutter (same edges as .cms-container content). */
body#SFNT .dlc-dept-test-frame {
	max-width: var(--container-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-gutter);
	padding-right: var(--container-gutter);
	box-sizing: border-box;
}

/* -- Section (the photo) -------------------------------------- */
.dlc-dept-test {
	/* Crisp light halo (Text Backing = Halo): 1px outline on all sides plus a soft 2px glow.
	   Counts as the text background, so dark text passes AA over any part of the photo. */
	--dt-halo-color: var(--text-halo-light);
	--dt-halo:
		-1px -1px 0 var(--dt-halo-color),
		 1px -1px 0 var(--dt-halo-color),
		-1px  1px 0 var(--dt-halo-color),
		 1px  1px 0 var(--dt-halo-color),
		 0   -1px 0 var(--dt-halo-color),
		 0    1px 0 var(--dt-halo-color),
		-1px  0   0 var(--dt-halo-color),
		 1px  0   0 var(--dt-halo-color),
		 0    0   2px var(--dt-halo-color);
	--dt-shadow: none;

	/* Quote sizes (Large default): desktop / 768-991 / phones */
	--dt-q-size: var(--font-size-30);
	--dt-q-line: 1.3;

	position: relative;
	width: 100%;
	background-color: var(--color-white);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	min-height: var(--dt-height);
	padding: var(--dt-pad-top) var(--space-xl) var(--space-2xl);
	box-sizing: border-box;
	overflow: hidden;
}

.dlc-dept-test:focus-visible {
	outline: var(--focus-ring);
	outline-offset: 2px;
}

.dlc-dept-test--backing-halo { --dt-shadow: var(--dt-halo); }

/* -- Panel (text width + backing) ------------------------------ */
/* Hugs the longest quote (all quotes share one grid cell), never wider than the Text Width,
   so the box doesn't change size as the quotes rotate */
.dlc-dept-test__panel {
	--dt-backing: color-mix(in srgb, var(--color-white) 70%, transparent);
	position: relative;
	width: fit-content;
	max-width: 100%;
	box-sizing: border-box;
}

/* Soft Glow: 70% white behind the text, edges feathered out into the photo */
.dlc-dept-test--backing-glow .dlc-dept-test__panel {
	background: var(--dt-backing);
	box-shadow: 0 0 var(--space-xl) var(--space-lg) var(--dt-backing);
	border-radius: var(--space-xl);
	padding: var(--space-sm) var(--space-md);
}

/* Light Panel: 70% white box */
.dlc-dept-test--backing-panel .dlc-dept-test__panel {
	background: var(--dt-backing);
	padding: var(--space-lg) var(--space-xl);
}

/* Width presets (content width scale, 2026-11-05) - max-width only. Full = no max-width. */
.dlc-dept-test__panel--width-wide,
.dlc-dept-test__panel--width-wide-left {
	max-width: var(--content-wide);
}

.dlc-dept-test__panel--width-medium,
.dlc-dept-test__panel--width-medium-left {
	max-width: var(--content-medium);
}

.dlc-dept-test__panel--width-narrow,
.dlc-dept-test__panel--width-narrow-left {
	max-width: var(--content-narrow);
}

.dlc-dept-test__panel--width-wide,
.dlc-dept-test__panel--width-medium,
.dlc-dept-test__panel--width-narrow {
	margin-left: auto;
	margin-right: auto;
}

/* Left presets - left edge lines up with the page title */
.dlc-dept-test__panel--width-wide-left,
.dlc-dept-test__panel--width-medium-left,
.dlc-dept-test__panel--width-narrow-left {
	margin-left: 0;
	margin-right: auto;
}

/* -- Track: every quote shares one grid cell, so the panel
      grows to fit the longest quote instead of clipping it ----- */
.dlc-dept-test__track {
	display: grid;
	width: 100%;
}

.dlc-dept-test__item {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	box-sizing: border-box;
	text-align: left;
}

.dlc-dept-test__item--active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 1;
}

.dlc-dept-test__item--hidden {
	display: none !important;
}

@media (prefers-reduced-motion: no-preference) {
	.dlc-dept-test__item {
		transition: opacity 0.6s ease, visibility 0.6s ease;
	}
}

/* Centered widths center the text too */
.dlc-dept-test__panel--width-wide .dlc-dept-test__item,
.dlc-dept-test__panel--width-medium .dlc-dept-test__item,
.dlc-dept-test__panel--width-narrow .dlc-dept-test__item {
	text-align: center;
}

/* -- Quote --------------------------------------------------- */
.dlc-dept-test__quote {
	font-family: var(--font-accent);
	font-style: italic;
	font-weight: 600;
	font-size: var(--dt-q-size);
	line-height: var(--dt-q-line);
	color: var(--text-body);
	text-shadow: var(--dt-shadow);
	margin: 0 0 0.6em;
	padding: 0;
	border: none;
	width: 100%;
	max-width: none;
	display: block;
	text-align: inherit !important;
}

.dlc-dept-test__quote::before { content: '"'; }
.dlc-dept-test__quote::after  { content: '"'; }

.dlc-dept-test--font-primary .dlc-dept-test__quote { font-family: var(--font-primary); }
.dlc-dept-test--style-upright .dlc-dept-test__quote { font-style: normal; }
.dlc-dept-test--weight-400 .dlc-dept-test__quote { font-weight: 400; }
.dlc-dept-test--weight-700 .dlc-dept-test__quote { font-weight: 700; }

.dlc-dept-test--size-m { --dt-q-size: var(--font-size-25); --dt-q-line: 1.4; }
.dlc-dept-test--size-s { --dt-q-size: var(--font-size-20); --dt-q-line: 1.45; }

/* -- Attribution (Label default) ------------------------------ */
.dlc-dept-test__attribution {
	font-family: var(--font-ui-family);
	font-size: var(--font-ui-size-md);
	font-weight: 600;
	font-style: normal;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--text-body);
	text-shadow: var(--dt-shadow);
	margin: 0;
	text-align: inherit !important;
}

.dlc-dept-test--attr-italic .dlc-dept-test__attribution {
	font-family: var(--font-accent);
	font-size: var(--font-size-20);
	font-style: italic;
	text-transform: none;
	letter-spacing: normal;
}

.dlc-dept-test--attr-plain .dlc-dept-test__attribution {
	font-family: var(--font-primary);
	font-size: var(--font-size-16);
	text-transform: none;
	letter-spacing: normal;
}

/* -- Controls ------------------------------------------------ */
.dlc-dept-test__controls {
	position: absolute;
	bottom: var(--space-sm);
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
}

.dlc-dept-test__arrow,
.dlc-dept-test__pause {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	min-width: 28px;
	height: 28px;
	padding: 0;
	margin: 0;
	background: none;
	border: none;
	border-radius: 3px;
	color: var(--text-body);
	font-size: var(--font-size-18);
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	user-select: none;
	text-shadow: var(--dt-halo); /* controls sit on the photo - always outlined */
}

.dlc-dept-test__pause[hidden] {
	display: none;
}

.dlc-dept-test__pause svg {
	filter: drop-shadow(0 0 1px var(--text-halo-light));
}

.dlc-dept-test__pause .dlc-dept-test__icon-play,
.dlc-dept-test__pause.is-paused .dlc-dept-test__icon-pause {
	display: none;
}

.dlc-dept-test__pause.is-paused .dlc-dept-test__icon-play {
	display: block;
}

.dlc-dept-test__arrow:hover,
.dlc-dept-test__pause:hover {
	color: var(--brand-purple);
}

.dlc-dept-test__arrow:focus-visible,
.dlc-dept-test__pause:focus-visible,
.dlc-dept-test__dot:focus-visible {
	outline: var(--focus-ring);
	outline-offset: 0;
}

.dlc-dept-test__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
}

/* 24px button, 7px dot drawn inside (11px when active) */
.dlc-dept-test__dot {
	position: relative;
	width: 24px;
	height: 24px;
	padding: 0;
	margin: 0;
	background: none;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	flex-shrink: 0;
}

.dlc-dept-test__dot::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--text-body);
	opacity: 0.45;
	transform: translate(-50%, -50%);
	box-shadow: 0 0 0 1px var(--text-halo-light);
}

.dlc-dept-test__dot--active::before {
	width: 11px;
	height: 11px;
	opacity: 1;
}

.dlc-dept-test__dot:hover::before {
	opacity: 0.8;
}

@media (prefers-reduced-motion: no-preference) {
	.dlc-dept-test__arrow,
	.dlc-dept-test__pause {
		transition: color 0.2s ease;
	}
}


/* -- Tablet: 768-991 ------------------------------------------- */
@media (min-width: 768px) and (max-width: 991px) {
	.dlc-dept-test { --dt-q-size: var(--font-size-25); }
	.dlc-dept-test--size-m { --dt-q-size: var(--font-size-20); }
	.dlc-dept-test--size-s { --dt-q-size: var(--font-size-18); }
}

/* -- Phones: 767 and below ------------------------------------- */
@media (max-width: 767px) {
	.dlc-dept-test {
		--dt-q-size: var(--font-size-20);
		min-height: 0;
		padding: var(--space-2xl) var(--space-md) calc(var(--space-2xl) + var(--space-lg));
	}
	.dlc-dept-test__controls { bottom: var(--space-xs); }
	.dlc-dept-test--size-m { --dt-q-size: var(--font-size-18); }
	.dlc-dept-test--size-s { --dt-q-size: var(--font-size-16); }

	.dlc-dept-test--backing-panel .dlc-dept-test__panel {
		padding: var(--space-md);
	}
	.dlc-dept-test--backing-glow .dlc-dept-test__panel {
		box-shadow: 0 0 var(--space-lg) var(--space-md) var(--dt-backing);
	}

	.dlc-dept-test__attribution { font-size: var(--font-ui-size-sm); }
	.dlc-dept-test--attr-italic .dlc-dept-test__attribution { font-size: var(--font-size-18); }
	.dlc-dept-test--attr-plain .dlc-dept-test__attribution { font-size: var(--font-size-14); }

	/* 44px arrow / pause targets */
	.dlc-dept-test__arrow,
	.dlc-dept-test__pause {
		min-width: 44px;
		height: 44px;
	}
}
