/* Printcare Tea Pack Specs — scoped to .tpsp */
.tpsp {
	--tpsp-accent: #C8A8F0;
	--tpsp-dark: #1C1C1C;
	--tpsp-text: #4A4A4A;
	--tpsp-bg-odd: #FFFFFF;
	--tpsp-bg-even: #FFFFFF;
	--tpsp-gutter: clamp(20px, 4vw, 85px);
	font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--tpsp-text);
	width: 100%;
}
.tpsp *, .tpsp *::before, .tpsp *::after { box-sizing: border-box; }

/* ---- Row ---- */
.tpsp-machine.is-odd { background: var(--tpsp-bg-odd); }
.tpsp-machine.is-even { background: var(--tpsp-bg-even); }

.tpsp-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: clamp(24px, 4vw, 60px);
	padding: clamp(40px, 6vw, 90px) var(--tpsp-gutter);
}
.tpsp-machine.is-flipped .tpsp-media { order: 2; }
.tpsp-machine.is-flipped .tpsp-content { order: 1; }

.tpsp-media { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.tpsp-logo { display: block; max-width: 100%; height: auto; max-height: 220px; width: auto; object-fit: contain; }
.tpsp-photo { display: block; max-width: 100%; height: auto; max-height: 320px; object-fit: contain; }

/* ---- Heading with accent bar ---- */
.tpsp-title {
	position: relative;
	margin: 0 0 1.1rem;
	padding-left: 24px;
	font-size: clamp(2rem, 3.4vw, 3rem);
	font-weight: 400;
	line-height: 1.1;
	color: var(--tpsp-dark);
}
.tpsp-title::before {
	content: "";
	position: absolute;
	left: 0; top: .12em; bottom: .12em;
	width: 5px;
	background: var(--tpsp-accent);
}

.tpsp-desc { font-size: 1rem; line-height: 1.75; }
.tpsp-desc > p { margin: 0 0 1.1em; }
.tpsp-desc > p:first-child { font-size: 1.35rem; line-height: 1.4; color: var(--tpsp-dark); }

/* ---- Buttons ---- */
.tpsp-btn {
	display: inline-flex; align-items: center; gap: 14px;
	margin-top: 1rem;
	padding: 16px 30px;
	font: inherit; font-size: 1rem; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; line-height: 1;
	color: var(--tpsp-dark);
	background: transparent;
	border: 1.5px solid var(--tpsp-dark);
	border-radius: 0;
	cursor: pointer;
	text-decoration: none;
	transition: background .2s, border-color .2s, color .2s;
}
.tpsp-btn:hover, .tpsp-btn:focus-visible { background: var(--tpsp-accent); border-color: var(--tpsp-accent); color: var(--tpsp-dark); }
.tpsp-btn:focus-visible, .tpsp-model-btn:focus-visible, .tpsp-spec-img:focus-visible { outline: 2px solid var(--tpsp-dark); outline-offset: 3px; }
.tpsp-btn--accent { background: var(--tpsp-accent); border-color: var(--tpsp-accent); margin-top: 0; }
.tpsp-btn--accent:hover, .tpsp-btn--accent:focus-visible { background: var(--tpsp-dark); border-color: var(--tpsp-dark); color: #fff; }
.tpsp-arrow { transition: transform .25s; }
.tpsp-toggle:hover .tpsp-arrow { transform: translateX(4px); }
.tpsp-toggle[aria-expanded="true"] { background: var(--tpsp-accent); border-color: var(--tpsp-accent); }
.tpsp-toggle[aria-expanded="true"] .tpsp-arrow { transform: rotate(90deg); }

/* ---- Specs panel ---- */
.tpsp-panel { background: #fff; border-top: 1px solid rgba(0,0,0,.08); border-bottom: 1px solid rgba(0,0,0,.08); }
.tpsp-panel[hidden] { display: none; }
.tpsp-panel-inner {
	display: grid;
	grid-template-columns: minmax(180px, 280px) 1fr;
	gap: clamp(20px, 4vw, 56px);
	padding: clamp(28px, 4vw, 56px) var(--tpsp-gutter);
	animation: tpsp-in .3s ease;
}
@keyframes tpsp-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.tpsp-models-heading {
	margin: 0 0 14px; padding-left: 14px;
	border-left: 4px solid var(--tpsp-accent);
	font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--tpsp-dark);
}
.tpsp-model-list { display: flex; flex-direction: column; gap: 8px; }
.tpsp-model-btn {
	display: block; width: 100%; padding: 14px 18px;
	font: inherit; font-size: 1rem; font-weight: 500; text-align: left;
	color: var(--tpsp-dark); background: #F9F7F6;
	border: 1px solid transparent; border-left: 4px solid transparent; border-radius: 0;
	cursor: pointer; transition: background .15s, border-color .15s;
}
.tpsp-model-btn:hover { background: #F0EDEB; }
.tpsp-model-btn.is-active { background: #fff; border-color: var(--tpsp-dark); border-left-color: var(--tpsp-accent); }

.tpsp-spec[hidden] { display: none; }
.tpsp-spec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.tpsp-spec-title { margin: 0; font-size: 1.5rem; font-weight: 500; color: var(--tpsp-dark); }
.tpsp-spec-img { display: block; border: 1px solid #E4E4E4; background: #fff; cursor: zoom-in; }
.tpsp-spec-img img { display: block; width: 100%; height: auto; }
.tpsp-empty { padding: 32px; background: #F9F7F6; margin: 0; }

/* ---- Lightbox ---- */
.tpsp-lightbox {
	position: fixed; inset: 0; z-index: 999999;
	display: flex; align-items: center; justify-content: center;
	padding: 4vmin; background: rgba(12,12,12,.88); cursor: zoom-out;
}
.tpsp-lightbox img { max-width: 100%; max-height: 100%; background: #fff; }
.tpsp-lightbox-close {
	position: absolute; top: 16px; right: 20px;
	width: 44px; height: 44px; font-size: 28px; line-height: 1;
	color: #fff; background: transparent; border: 0; cursor: pointer;
}

/* ---- Responsive ---- */
@media (max-width: 880px) {
	.tpsp-row { grid-template-columns: 1fr; }
	.tpsp-machine.is-flipped .tpsp-media, .tpsp-machine.is-flipped .tpsp-content { order: initial; }
	.tpsp-panel-inner { grid-template-columns: 1fr; }
	.tpsp-model-list { flex-direction: row; flex-wrap: wrap; }
	.tpsp-model-btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
	.tpsp-panel-inner { animation: none; }
	.tpsp-btn, .tpsp-arrow { transition: none; }
}
