.tpc-ivt {
	--tpc-ivt-accent: #2271b1;
	--tpc-ivt-editorial: #6F57B5;
	max-width: 1060px;
	margin: 0 auto clamp(2rem, 3.6vw, 3rem);
	padding: 0;
}

.tpc-ivt__spread {
	display: grid;
	grid-template-columns: minmax(0, 460px) minmax(300px, 420px);
	gap: clamp(2rem, 4vw, 3.25rem);
	align-items: stretch;
	justify-content: center;
	min-width: 0;
}

.tpc-ivt__visual-stage {
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	min-width: 0;
	padding-bottom: 0.35rem;
	animation: tpc-ivt-stage-settle 520ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

/*
 * Curated display ledge. The visual remains a native-ratio image, not a
 * cropped book cover. Neutral walnut tones echo the Article Themes shelf
 * without importing its full cabinet treatment into this quieter page.
 */
.tpc-ivt__display {
	position: relative;
	width: min(100%, 460px);
	padding-bottom: 18px;
	isolation: isolate;
	perspective: 1200px;
}

.tpc-ivt__display::before {
	content: "";
	position: absolute;
	z-index: 0;
	left: -15px;
	right: -15px;
	bottom: 3px;
	height: 15px;
	border: 1px solid rgba(72, 48, 31, 0.5);
	border-radius: 3px 3px 5px 5px;
	background: linear-gradient(180deg, #a07b59 0%, #7b5a3e 54%, #5f422d 100%);
	box-shadow:
		inset 0 1px 1px rgba(255, 255, 255, 0.28),
		inset 0 -2px 3px rgba(0, 0, 0, 0.18),
		0 7px 14px rgba(0, 0, 0, 0.18);
	pointer-events: none;
}

.tpc-ivt__display::after {
	content: "";
	position: absolute;
	z-index: -1;
	left: 2%;
	right: 2%;
	bottom: -2px;
	height: 11px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.16);
	filter: blur(7px);
	opacity: 0.6;
	pointer-events: none;
}


.tpc-ivt__nudge {
	position: relative;
	z-index: 2;
	animation: tpc-ivt-shelf-nudge 16s cubic-bezier(0.22, 0.61, 0.36, 1) 2.5s infinite;
}

.tpc-ivt__display:hover .tpc-ivt__nudge,
.tpc-ivt__display:focus-within .tpc-ivt__nudge {
	animation-play-state: paused;
}

.tpc-ivt__book {
	position: relative;
	z-index: 2;
	--tpc-ivt-book-rest: rotateY(-1.15deg) rotateX(0.35deg) rotateZ(-0.18deg);
	transform-origin: 50% 100%;
	transform: var(--tpc-ivt-book-rest);
	transition: transform 240ms ease;
	will-change: transform;
}

.tpc-ivt__book::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 7px;
	bottom: 6px;
	left: -5px;
	width: 7px;
	border-radius: 5px 0 0 5px;
	background: linear-gradient(90deg, rgba(58, 39, 27, 0.72), rgba(132, 96, 65, 0.32));
	box-shadow: -2px 3px 7px rgba(0, 0, 0, 0.14);
	opacity: 0.62;
	pointer-events: none;
}

.tpc-ivt__frame {
	position: relative;
	width: 100%;
	line-height: 0;
	border: 1px solid rgba(0, 0, 0, 0.09);
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.018);
	box-shadow: 0 5px 16px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	transform: translateY(0);
	transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.tpc-ivt__image-link,
.tpc-ivt__image {
	display: block;
	width: 100%;
}

.tpc-ivt__image-link {
	outline-offset: -5px;
}

.tpc-ivt__image {
	height: auto;
	margin: 0;
}

.tpc-ivt__cta {
	position: absolute;
	z-index: 2;
	left: 50%;
	bottom: clamp(2.35rem, 7%, 3.6rem);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.36rem;
	min-width: 6.2rem;
	padding: 0.62rem 1.25rem;
	border: 1px solid color-mix(in srgb, var(--tpc-ivt-accent) 72%, rgba(0, 0, 0, 0.14));
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.16);
	color: #1d2327;
	font-size: 0.87rem;
	font-weight: 620;
	line-height: 1;
	letter-spacing: 0.015em;
	text-decoration: none;
	transform: translateX(-50%);
	transition: transform 170ms ease, background-color 170ms ease, border-color 170ms ease, color 170ms ease;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.tpc-ivt__cta:hover,
.tpc-ivt__cta:focus-visible {
	background: #ffffff;
	border-color: var(--tpc-ivt-accent);
	color: var(--tpc-ivt-accent);
	transform: translate(-50%, -2px);
}

.tpc-ivt__cta-arrow {
	display: inline-block;
	transform: translateX(0);
	transition: transform 170ms ease;
}

.tpc-ivt__cta:hover .tpc-ivt__cta-arrow,
.tpc-ivt__cta:focus-visible .tpc-ivt__cta-arrow {
	transform: translateX(2px);
}

.tpc-ivt__rail {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 0;
	padding: clamp(1.75rem, 3.5vw, 3rem) clamp(1.45rem, 3vw, 2.5rem);
	border-left: 3px solid var(--tpc-ivt-accent);
	border-top: 1px solid rgba(0, 0, 0, 0.07);
	border-bottom: 1px solid rgba(0, 0, 0, 0.07);
	background: #fafafa;
	background: color-mix(in srgb, var(--tpc-ivt-accent) 5%, #ffffff);
	text-align: left;
}

.tpc-ivt__rail-top {
	display: flex;
	flex-direction: column;
}

.tpc-ivt__intro {
	position: relative;
	margin: 0 0 clamp(1.65rem, 4vh, 2.7rem);
	padding: 0 0 1.15rem;
	border-bottom: 1px solid color-mix(in srgb, var(--tpc-ivt-editorial) 24%, rgba(0, 0, 0, 0.07));
}

.tpc-ivt__intro p,
.tpc-ivt__intro .tpc-ivt-page-intro {
	max-width: 34ch;
	margin: 0;
	font-size: clamp(0.97rem, 1.2vw, 1.05rem);
	line-height: 1.67;
	color: #5A4A7E;
	color: color-mix(in srgb, var(--tpc-ivt-editorial) 70%, #1d2327);
}

.tpc-ivt__rail-middle {
	margin-top: clamp(1.35rem, 3.5vh, 2.75rem);
}

.tpc-ivt__rail-heading {
	margin-bottom: 1.35rem;
}

.tpc-ivt__eyebrow {
	margin: 0 0 0.55rem;
	font-size: 0.7rem;
	font-weight: 650;
	letter-spacing: 0.13em;
	line-height: 1.4;
	text-transform: uppercase;
	color: rgba(0, 0, 0, 0.5);
}

.tpc-ivt__eyebrow time {
	font: inherit;
}

.tpc-ivt__context {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	font-size: 0.82rem;
	font-weight: 650;
	letter-spacing: 0.055em;
	line-height: 1.45;
	text-transform: uppercase;
	color: var(--tpc-ivt-accent);
}

.tpc-ivt__context-emoji {
	flex: 0 0 auto;
	font-size: 1.08em;
	line-height: 1;
	letter-spacing: 0;
}

.tpc-ivt__destination-title {
	max-width: 22ch;
	margin: 0 0 1.15rem;
	font-family: inherit;
	font-size: clamp(1.35rem, 2.5vw, 2rem);
	font-weight: 560;
	line-height: 1.23;
	letter-spacing: -0.015em;
	color: #1d2327;
}


.tpc-ivt__destination-link {
	color: inherit;
	text-decoration-line: underline;
	text-decoration-color: color-mix(in srgb, var(--tpc-ivt-accent) 24%, transparent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color 170ms ease, text-decoration-color 170ms ease;
}

.tpc-ivt__destination-link:hover,
.tpc-ivt__destination-link:focus-visible {
	color: var(--tpc-ivt-accent);
	text-decoration-color: currentColor;
}

.tpc-ivt__prompt {
	max-width: 31ch;
	margin: 0;
	font-size: 1rem;
	line-height: 1.72;
	color: rgba(0, 0, 0, 0.66);
}

.tpc-ivt__rail-action {
	margin: 1.35rem 0 0;
}

.tpc-ivt__rail-link {
	display: inline-flex;
	align-items: center;
	gap: 0.36rem;
	color: rgba(0, 0, 0, 0.58);
	font-size: 0.82rem;
	font-weight: 560;
	line-height: 1.45;
	letter-spacing: 0.01em;
	text-decoration: none;
	transition: color 170ms ease;
}

.tpc-ivt__rail-link-text {
	text-decoration-line: underline;
	text-decoration-color: color-mix(in srgb, var(--tpc-ivt-accent) 18%, transparent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.23em;
	transition: text-decoration-color 170ms ease;
}

.tpc-ivt__rail-link-arrow {
	display: inline-block;
	color: color-mix(in srgb, var(--tpc-ivt-accent) 52%, #1d2327);
	transform: translateX(0);
	transition: transform 170ms ease, color 170ms ease;
}

.tpc-ivt__rail-link:hover,
.tpc-ivt__rail-link:focus-visible {
	color: var(--tpc-ivt-accent);
}

.tpc-ivt__rail-link:hover .tpc-ivt__rail-link-text,
.tpc-ivt__rail-link:focus-visible .tpc-ivt__rail-link-text {
	text-decoration-color: currentColor;
}

.tpc-ivt__rail-link:hover .tpc-ivt__rail-link-arrow,
.tpc-ivt__rail-link:focus-visible .tpc-ivt__rail-link-arrow {
	color: currentColor;
	transform: translateX(2px);
}

.tpc-ivt__outro {
	position: relative;
	margin-top: clamp(2.25rem, 7vh, 5.5rem);
	padding-top: 1.15rem;
	border-top: 1px solid color-mix(in srgb, var(--tpc-ivt-editorial) 30%, rgba(0, 0, 0, 0.08));
}

.tpc-ivt__outro::before {
	content: "";
	position: absolute;
	top: -3px;
	left: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--tpc-ivt-editorial);
	box-shadow: 22px 0 0 color-mix(in srgb, var(--tpc-ivt-editorial) 34%, transparent);
}

.tpc-ivt__outro p,
.tpc-ivt__outro .tpc-ivt-page-outro,
.tpc-ivt__outro .tpc-ivt-page-closure p {
	max-width: 32ch;
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.7;
	color: #5A4A7E;
	color: color-mix(in srgb, var(--tpc-ivt-editorial) 70%, #1d2327);
}

.tpc-ivt__outro a {
	color: var(--tpc-ivt-editorial);
	font-weight: 600;
	text-decoration-color: color-mix(in srgb, var(--tpc-ivt-editorial) 45%, transparent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.tpc-ivt__outro a:hover,
.tpc-ivt__outro a:focus-visible {
	color: color-mix(in srgb, var(--tpc-ivt-editorial) 78%, #1d2327);
	text-decoration-color: currentColor;
}

.tpc-ivt--empty {
	display: block;
	max-width: 760px;
	padding: 1rem 1.2rem;
	border-left: 2px solid #2271b1;
	background: rgba(34, 113, 177, 0.035);
	text-align: left;
}

.tpc-ivt--empty p {
	margin: 0;
}

/* WordPress-editable page-layer paragraphs. */
.tpc-ivt-page-title {
	margin-bottom: 0.7rem;
}

/* Public intro paragraphs are captured server-side and rendered inside the rail. */
p.tpc-ivt-page-intro,
.tpc-ivt-page-intro > p {
	margin: 0;
}

/* Legacy closure blocks are captured server-side and moved into the rail. */
.tpc-ivt-page-closure {
	margin: 0;
}


@keyframes tpc-ivt-shelf-nudge {
	0%, 90%, 100% {
		transform: translateY(0);
	}
	94% {
		transform: translateY(-1.5px);
	}
	97% {
		transform: translateY(0);
	}
}

@keyframes tpc-ivt-stage-settle {
	from {
		opacity: 0.985;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (hover: hover) and (pointer: fine) {
	.tpc-ivt__display:hover .tpc-ivt__book {
		transform: rotateY(-0.55deg) rotateX(0.15deg) rotateZ(-0.08deg);
	}

	.tpc-ivt__frame:hover {
		border-color: color-mix(in srgb, var(--tpc-ivt-accent) 30%, rgba(0, 0, 0, 0.09));
		box-shadow: 0 13px 28px rgba(0, 0, 0, 0.14);
		transform: translateY(-3px);
	}
}

.tpc-ivt__frame:focus-within {
	border-color: color-mix(in srgb, var(--tpc-ivt-accent) 42%, rgba(0, 0, 0, 0.09));
	box-shadow: 0 11px 24px rgba(0, 0, 0, 0.13);
	transform: translateY(-2px);
}

@media (max-width: 800px) {
	.tpc-ivt {
		margin: 1.7rem auto 2.6rem;
	}

	.tpc-ivt__spread {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.35rem;
	}

	.tpc-ivt__visual-stage {
		justify-content: center;
	}

	.tpc-ivt__display {
		width: min(100%, 440px);
		padding-bottom: 14px;
		perspective: 1000px;
	}

	.tpc-ivt__display::before {
		left: -9px;
		right: -9px;
		bottom: 3px;
		height: 11px;
	}

	.tpc-ivt__display::after {
		bottom: -1px;
		height: 8px;
		filter: blur(5px);
	}

	.tpc-ivt__book {
		--tpc-ivt-book-rest: rotateY(-0.55deg) rotateX(0.15deg) rotateZ(-0.08deg);
		transform: var(--tpc-ivt-book-rest);
	}

	.tpc-ivt__book::before {
		top: 6px;
		bottom: 5px;
		left: -3px;
		width: 4px;
		opacity: 0.45;
	}

	.tpc-ivt__frame {
		width: 100%;
	}

	.tpc-ivt__rail {
		min-height: 0;
		padding: 1.15rem 0 0;
		border-left: 0;
		border-top: 2px solid var(--tpc-ivt-accent);
		border-bottom: 0;
		background: transparent;
	}

	.tpc-ivt__rail-heading {
		margin-bottom: 0.9rem;
	}

	.tpc-ivt__destination-title,
	.tpc-ivt__prompt,
	.tpc-ivt__outro p,
	.tpc-ivt__outro .tpc-ivt-page-outro,
	.tpc-ivt__outro .tpc-ivt-page-closure p {
		max-width: none;
	}

	.tpc-ivt__rail-middle {
		margin-top: 1.4rem;
	}

	.tpc-ivt__outro {
		margin-top: 1.65rem;
	}

	.tpc-ivt__intro {
		margin-bottom: 1.35rem;
		padding-bottom: 1rem;
	}

	.tpc-ivt__intro p,
	.tpc-ivt__intro .tpc-ivt-page-intro {
		max-width: none;
	}

	.tpc-ivt__cta {
		bottom: clamp(1.9rem, 7%, 2.8rem);
		padding: 0.6rem 1.15rem;
	}
}

@media (max-width: 480px) {
	.tpc-ivt__nudge {
		animation: none;
	}

	.tpc-ivt__display {
		padding-bottom: 12px;
	}

	.tpc-ivt__display::before {
		left: -5px;
		right: -5px;
		height: 9px;
	}

	.tpc-ivt__book {
		--tpc-ivt-book-rest: none;
		transform: var(--tpc-ivt-book-rest);
	}

	.tpc-ivt__display:hover .tpc-ivt__book {
		transform: var(--tpc-ivt-book-rest);
	}

	.tpc-ivt__book::before {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tpc-ivt__nudge {
		animation: none;
	}

	.tpc-ivt__visual-stage {
		animation: none;
	}

	.tpc-ivt__book,
	.tpc-ivt__frame,
	.tpc-ivt__cta,
	.tpc-ivt__cta-arrow,
	.tpc-ivt__rail-link,
	.tpc-ivt__rail-link-text,
	.tpc-ivt__rail-link-arrow {
		transition: none;
	}

	.tpc-ivt__display:hover .tpc-ivt__book {
		transform: var(--tpc-ivt-book-rest);
	}

	.tpc-ivt__frame:hover,
	.tpc-ivt__frame:focus-within,
	.tpc-ivt__cta-arrow,
	.tpc-ivt__rail-link-arrow {
		transform: none;
	}
}
