/* ptnews – סקר בחירות 2026 */
.ptep {
	--ptep-primary: #0b57d0;
	--ptep-bg: #ffffff;
	--ptep-card: #ffffff;
	--ptep-text: #1b1f24;
	--ptep-muted: #5f6670;
	--ptep-line: #e3e6ea;
	--ptep-radius: 14px;
	--ptep-error: #c5221f;

	direction: rtl;
	text-align: right;
	color: var(--ptep-text);
	background: var(--ptep-bg);
	border: 1px solid var(--ptep-line);
	border-radius: calc(var(--ptep-radius) + 4px);
	padding: clamp(16px, 4vw, 32px);
	max-width: 980px;
	margin: 0 auto;
	box-sizing: border-box;
	font-family: inherit;
	line-height: 1.45;
}
.ptep *, .ptep *::before, .ptep *::after { box-sizing: border-box; }

/* Header */
.ptep-head { margin-bottom: 24px; }
.ptep-kicker {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--ptep-primary);
	background: color-mix(in srgb, var(--ptep-primary) 10%, transparent);
	padding: 4px 10px;
	border-radius: 999px;
	margin-bottom: 10px;
}
.ptep .ptep-title {
	margin: 0 0 6px;
	font-size: clamp(22px, 3.4vw, 32px);
	line-height: 1.2;
	font-weight: 800;
	color: var(--ptep-text);
}
.ptep-sub { margin: 0; color: var(--ptep-muted); font-size: 16px; }

/* Questions */
.ptep-q {
	border: 0;
	margin: 0 0 28px;
	padding: 0;
	min-width: 0;
}
.ptep-q legend {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 19px;
	font-weight: 700;
	margin-bottom: 14px;
	padding: 0;
	color: var(--ptep-text);
}
.ptep-num {
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: inline-grid;
	place-items: center;
	font-size: 15px;
	font-weight: 800;
	color: #fff;
	background: var(--ptep-primary);
}
.ptep-q.is-done .ptep-num { background: #188038; }
.ptep-q.is-missing legend { color: var(--ptep-error); }
.ptep-q.is-missing .ptep-num { background: var(--ptep-error); }

/* Q1 select */
.ptep-select {
	width: 100%;
	max-width: 460px;
	height: 52px;
	padding: 0 14px 0 40px;
	font: inherit;
	font-size: 17px;
	color: var(--ptep-text);
	background-color: var(--ptep-card);
	border: 2px solid var(--ptep-line);
	border-radius: var(--ptep-radius);
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235f6670' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 14px center;
	cursor: pointer;
}
.ptep-select:focus { outline: none; border-color: var(--ptep-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ptep-primary) 20%, transparent); }
.ptep-q.is-missing .ptep-select { border-color: var(--ptep-error); }

/* Option cards */
.ptep-grid {
	display: grid;
	gap: 12px;
}
.ptep-grid--parties { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ptep-grid--candidates { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

.ptep-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
	padding: 16px 10px 14px;
	background: var(--ptep-card);
	border: 2px solid var(--ptep-line);
	border-radius: var(--ptep-radius);
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s, transform .15s;
	margin: 0;
	-webkit-tap-highlight-color: transparent;
}
.ptep-card:hover { border-color: color-mix(in srgb, var(--c) 55%, var(--ptep-line)); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.ptep-card input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}
.ptep-card:has(input:focus-visible) { outline: 3px solid var(--ptep-primary); outline-offset: 2px; }
.ptep-card.is-selected,
.ptep-card:has(input:checked) {
	border-color: var(--c);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent);
	background: color-mix(in srgb, var(--c) 6%, var(--ptep-card));
}

.ptep-check {
	position: absolute;
	top: 8px;
	left: 8px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid var(--ptep-line);
	background: var(--ptep-card);
}
.ptep-card.is-selected .ptep-check,
.ptep-card:has(input:checked) .ptep-check {
	border-color: var(--c);
	background: var(--c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.ptep-logo {
	width: 76px;
	height: 76px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}
.ptep-logo img { width: 100%; height: 100%; object-fit: contain; }

.ptep-photo {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	overflow: hidden;
	display: grid;
	place-items: center;
	border: 3px solid var(--c);
	padding: 3px;
	background: var(--ptep-card);
}
.ptep-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; object-position: center top; }

.ptep-initials {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	background: var(--c);
	color: #fff;
	font-weight: 800;
	font-size: 26px;
	border-radius: inherit;
}
.ptep-photo .ptep-initials { border-radius: 50%; }

.ptep-name { font-weight: 700; font-size: 16px; line-height: 1.25; }
.ptep-meta { font-size: 13px; color: var(--ptep-muted); line-height: 1.3; }

/* Honeypot */
.ptep-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Actions */
.ptep-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.ptep .ptep-submit {
	appearance: none;
	border: 0;
	border-radius: 999px;
	background: var(--ptep-primary);
	color: #fff;
	font: inherit;
	font-size: 18px;
	font-weight: 800;
	padding: 14px 40px;
	min-height: 52px;
	cursor: pointer;
	transition: filter .15s, transform .15s;
}
.ptep .ptep-submit:hover { filter: brightness(1.08); }
.ptep .ptep-submit:active { transform: scale(.98); }
.ptep .ptep-submit[disabled] { opacity: .6; cursor: wait; }
.ptep .ptep-link {
	appearance: none;
	background: none;
	border: 0;
	padding: 6px 2px;
	font: inherit;
	font-size: 15px;
	color: var(--ptep-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.ptep-error {
	margin: 12px 0 0;
	color: var(--ptep-error);
	font-weight: 700;
}

/* Results */
.ptep-results > * + * { margin-top: 26px; }
.ptep-thanks {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	border-radius: var(--ptep-radius);
	background: #e6f4ea;
	color: #0d652d;
	font-weight: 700;
	font-size: 17px;
}
.ptep-thanks::before {
	content: "";
	flex: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #188038 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ptep-rtitle { font-size: 19px; font-weight: 800; margin: 0 0 12px; }
.ptep-total { color: var(--ptep-muted); font-size: 15px; }
.ptep-bar {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto;
	align-items: center;
	gap: 4px 12px;
	padding: 8px 0;
	border-bottom: 1px solid var(--ptep-line);
}
.ptep-bar:last-child { border-bottom: 0; }
.ptep-bar.is-mine .ptep-bar-name::after {
	content: "הבחירה שלך";
	font-size: 12px;
	font-weight: 700;
	color: var(--ptep-primary);
	background: color-mix(in srgb, var(--ptep-primary) 10%, transparent);
	border-radius: 999px;
	padding: 2px 8px;
	margin-inline-start: 8px;
	vertical-align: middle;
}
.ptep-bar-img {
	grid-row: span 2;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	overflow: hidden;
	display: grid;
	place-items: center;
	background: #fff;
}
.ptep-bar-img.is-round { border-radius: 50%; }
.ptep-bar-img img { width: 100%; height: 100%; object-fit: contain; }
.ptep-bar-img.is-round img { object-fit: cover; object-position: center top; }
.ptep-bar-img .ptep-initials { font-size: 15px; }
.ptep-bar-name { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptep-bar-pct { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.ptep-bar-track {
	grid-column: 2 / 4;
	height: 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--ptep-text) 8%, transparent);
	overflow: hidden;
}
.ptep-bar-fill {
	display: block;
	height: 100%;
	width: 0;
	border-radius: inherit;
	background: var(--c);
	transition: width .9s cubic-bezier(.2,.8,.2,1);
}
.ptep-note { color: var(--ptep-muted); font-size: 15px; }

.ptep-disclaimer {
	margin: 24px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--ptep-line);
	font-size: 13px;
	color: var(--ptep-muted);
}

@media (max-width: 600px) {
	.ptep { border-radius: var(--ptep-radius); }
	.ptep-grid { gap: 10px; }
	.ptep-grid--parties { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ptep-grid--candidates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ptep-logo { width: 64px; height: 64px; }
	.ptep-photo { width: 84px; height: 84px; }
	.ptep-select { max-width: none; }
	.ptep .ptep-submit { width: 100%; }
	.ptep-actions { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.ptep-card, .ptep-bar-fill { transition: none; }
}
