/* 2027 Buyer's Guide viewer: the guide on navy, a slim bar on top, SKU links that light up. */

.ppv {
	--ppv-navy: #00263e;
	--ppv-red: #c63527;
	background: #0b2234;
	color: #fff;
	padding: 0 0 28px;
}

.ppv-bar {
	position: relative; /* Not sticky: the site header already sticks to the top. */
	z-index: 20;
	background: var(--ppv-navy);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ppv-bar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 12px 20px;
}

.ppv .ppv-title {
	margin: 0 auto 0 0;
	font-size: 22px;
	line-height: 1.2;
	color: #fff;
}

.ppv .ppv-title span {
	color: var(--ppv-red);
}

.ppv-contents select {
	min-width: 220px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 6px;
	background: transparent;
	color: #fff;
	font: inherit;
}

.ppv-contents option {
	color: #00263e;
}

.ppv-nav {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ppv .ppv-btn {
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 6px;
	background: transparent;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.ppv .ppv-btn:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.1);
}

.ppv .ppv-btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.ppv-where {
	min-width: 150px;
	text-align: center;
	font-size: 14px;
	color: #c9d6e0;
}

.ppv .ppv-pdf {
	padding: 11px 18px;
	border-radius: 6px;
	background: var(--ppv-red);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 2px;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
}

/* Desktop spread: as large as the screen allows, two pages side by side. */
.ppv-stage {
	max-width: 1440px;
	margin: 0 auto;
	padding: 24px 20px 0;
}

.ppv-spread {
	display: flex;
	justify-content: center;
	gap: 2px;
	height: calc(100vh - 250px);
	min-height: 520px;
}

.ppv-spread .ppv-page {
	height: 100%;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.ppv-page {
	position: relative;
	background: #fff;
}

.ppv-page img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* SKU links: invisible until you point at one (a fine outline shows they're there on touch screens). */
.ppv-sku {
	position: absolute;
	border-radius: 2px;
	outline: 1px solid rgba(198, 53, 39, 0);
	transition: outline-color 0.15s ease, background-color 0.15s ease;
}

.ppv-page:hover .ppv-sku {
	outline-color: rgba(198, 53, 39, 0.35);
}

.ppv-sku:hover,
.ppv-sku:focus-visible {
	outline: 2px solid var(--ppv-red);
	background: rgba(198, 53, 39, 0.12);
	z-index: 2;
}

.ppv-sku::after {
	content: attr(data-name) " ›";
	position: absolute;
	left: 0;
	bottom: calc(100% + 6px);
	width: max-content;
	max-width: 260px;
	padding: 6px 10px;
	border-radius: 4px;
	background: var(--ppv-navy);
	color: #fff;
	font: 600 13px/1.3 inherit;
	white-space: normal;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.ppv-sku:hover::after,
.ppv-sku:focus-visible::after {
	opacity: 1;
}

.ppv-more {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	max-width: 1440px;
	margin: 18px auto 0;
	padding: 0 20px;
}

.ppv .ppv-online {
	display: inline-block;
	padding: 10px 16px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 6px;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.ppv .ppv-online:hover {
	background: rgba(255, 255, 255, 0.1);
}

.ppv-hint {
	margin: 16px auto 0;
	padding: 0 20px;
	text-align: center;
	font-size: 13px;
	color: #9fb3c2;
}

.ppv-hint a {
	color: #fff;
}

/* Zoom (desktop): the spread grows and the stage scrolls; drag or scroll to move around. */
.ppv-zoom {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ppv-zoom__level {
	min-width: 48px;
	text-align: center;
	font-size: 14px;
	color: #c9d6e0;
}

.ppv-stage.is-zoomed {
	height: calc(100vh - 226px);
	min-height: 544px;
	overflow: auto;
	padding-bottom: 0;
	cursor: grab;
}

.ppv-stage.is-dragging {
	cursor: grabbing;
	user-select: none;
}

.ppv-stage.is-zoomed .ppv-spread {
	width: max-content;
	margin: 0 auto;
	height: calc((100vh - 250px) * var(--ppv-z, 1));
	min-height: calc(520px * var(--ppv-z, 1));
}

/* Phones: one column, page after page. Pinch to zoom, as on any page. */
@media (max-width: 899px) {
	.ppv .ppv-title { font-size: 18px; }
	.ppv-contents { order: 3; flex: 1 1 100%; }
	.ppv-contents select { width: 100%; }
	.ppv-nav .ppv-btn { display: none; }
	.ppv-zoom { display: none; }
	.ppv-stage { padding: 12px 10px 0; }
	.ppv-column { display: flex; flex-direction: column; gap: 14px; }
	.ppv-card { display: flex; flex-direction: column; gap: 8px; }
	.ppv-card .ppv-page { width: 100%; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); }
	.ppv-card .ppv-online { align-self: flex-start; }
	.ppv-sku { outline-color: rgba(198, 53, 39, 0.3); }
	.ppv-sku::after { display: none; }
	.ppv-hint { display: none; }
}
