/**
 * מבזקים — סטריפ בהדר + עמוד רשימה
 */

/* === Ticker === */
.hm-flash-ticker {
	--hm-flash-h: var(--hm-h-ticker-h, 32px);
	--hm-flash-font: "פולין", "Polin", sans-serif;
	display: flex;
	align-items: stretch;
	direction: rtl;
	width: 100%;
	height: var(--hm-flash-h);
	min-height: var(--hm-flash-h);
	max-height: var(--hm-flash-h);
	background: #edf1f6;
	color: #20215a;
	border-top: 1px solid rgba(32, 33, 90, 0.08);
	overflow: hidden;
	font-family: var(--hm-flash-font) !important;
}

html[data-hm-theme="dark"] .hm-flash-ticker,
.hm-header[data-hm-theme="dark"] .hm-flash-ticker {
	background: #12121f;
	color: #f5f5f7;
	border-top-color: rgba(255, 255, 255, 0.08);
}

.hm-flash-ticker,
.hm-flash-ticker * {
	box-sizing: border-box;
	font-family: var(--hm-flash-font) !important;
}

.hm-flash-ticker__viewport {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	mask-image: linear-gradient(to left, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
	-webkit-mask-image: linear-gradient(to left, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}

.hm-flash-ticker__track {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	width: max-content;
	height: 100%;
	gap: 0;
	animation: hm-flash-ticker-scroll calc(max(var(--hm-flash-count, 12), 8) * 3.4s) linear infinite;
	will-change: transform;
}

.hm-flash-ticker__group {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	height: 100%;
}

.hm-flash-ticker:hover .hm-flash-ticker__track,
.hm-flash-ticker:focus-within .hm-flash-ticker__track {
	animation-play-state: paused;
}

.hm-flash-ticker__item {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	flex-shrink: 0;
	padding: 0 0.15rem;
	color: inherit !important;
	text-decoration: none !important;
	font-size: 0.78rem !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	white-space: nowrap;
	letter-spacing: normal !important;
	text-transform: none !important;
}

.hm-flash-ticker__item:hover,
.hm-flash-ticker__item:focus-visible {
	color: #cb1e53 !important;
}

html[data-hm-theme="dark"] .hm-flash-ticker__item:hover,
html[data-hm-theme="dark"] .hm-flash-ticker__item:focus-visible,
.hm-header[data-hm-theme="dark"] .hm-flash-ticker__item:hover {
	color: #ff4d7a !important;
}

.hm-flash-ticker__time {
	font-weight: 700 !important;
	font-variant-numeric: tabular-nums;
	color: #cb1e53;
}

html[data-hm-theme="dark"] .hm-flash-ticker__time,
.hm-header[data-hm-theme="dark"] .hm-flash-ticker__time {
	color: #ff4d7a;
}

.hm-flash-ticker__dash {
	opacity: 0.45;
}

.hm-flash-ticker__sep {
	flex-shrink: 0;
	padding: 0 0.85rem;
	opacity: 0.35;
	font-size: 0.72rem;
	font-weight: 600;
	user-select: none;
}

.hm-flash-ticker__btn {
	flex: 0 0 auto;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	align-self: stretch;
	margin: 0 !important;
	padding: 0 0.95rem !important;
	border: 0 !important;
	border-right: 1px solid rgba(32, 33, 90, 0.1) !important;
	border-radius: 0 !important;
	background: #20215a !important;
	color: #fff !important;
	font-size: 0.72rem !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: none !important;
}

.hm-flash-ticker__btn:hover,
.hm-flash-ticker__btn:focus-visible {
	background: #cb1e53 !important;
	color: #fff !important;
}

html[data-hm-theme="dark"] .hm-flash-ticker__btn,
.hm-header[data-hm-theme="dark"] .hm-flash-ticker__btn {
	background: #cb1e53 !important;
	border-right-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-hm-theme="dark"] .hm-flash-ticker__btn:hover,
.hm-header[data-hm-theme="dark"] .hm-flash-ticker__btn:hover {
	background: #e0285f !important;
}

@keyframes hm-flash-ticker-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(var(--hm-flash-shift, 50%));
	}
}

@media (prefers-reduced-motion: reduce) {
	.hm-flash-ticker__track {
		animation: none;
	}

	.hm-flash-ticker__viewport {
		overflow-x: auto;
		mask-image: none;
		-webkit-mask-image: none;
	}
}

@media (max-width: 1023px) {
	.hm-flash-ticker {
		border-top: 0;
		border-bottom: 1px solid rgba(32, 33, 90, 0.08);
	}

	html[data-hm-theme="dark"] .hm-flash-ticker {
		border-bottom-color: rgba(255, 255, 255, 0.08);
	}

	.hm-flash-ticker__btn {
		padding: 0 0.7rem !important;
		font-size: 0.68rem !important;
	}

	.hm-flash-ticker__item {
		font-size: 0.72rem !important;
	}
}

/* === Page === */
.hm-flash-page {
	--hm-fp-brand: #cb1e53;
	--hm-fp-navy: #20215a;
	--hm-fp-font: "פולין", "Polin", sans-serif;
	--hm-fp-pad: 7%;
	direction: rtl;
	font-family: var(--hm-fp-font) !important;
	width: 100vw !important;
	max-width: 100vw !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	padding: clamp(1.5rem, 3vw, 2.75rem) var(--hm-fp-pad) 3.5rem !important;
	box-sizing: border-box;
	background:
		radial-gradient(900px 380px at 100% -10%, rgba(203, 30, 83, 0.08), transparent 55%),
		radial-gradient(800px 320px at 0% 0%, rgba(32, 33, 90, 0.06), transparent 50%),
		var(--hm-fp-bg, #f4f5f8);
	color: var(--hm-fp-text, #333);
}

html[data-hm-theme="light"] .hm-flash-page,
html:not([data-hm-theme]) .hm-flash-page {
	--hm-fp-bg: #f4f5f8;
	--hm-fp-text: #333333;
	--hm-fp-heading: #20215a;
	--hm-fp-muted: #666666;
	--hm-fp-surface: #ffffff;
	--hm-fp-border: rgba(32, 33, 90, 0.12);
	--hm-fp-shadow: 0 8px 24px rgba(32, 33, 90, 0.08);
}

html[data-hm-theme="dark"] .hm-flash-page {
	--hm-fp-bg: #0b0b24;
	--hm-fp-text: #f5f5f7;
	--hm-fp-heading: #ffffff;
	--hm-fp-muted: #b3b3b3;
	--hm-fp-surface: rgba(255, 255, 255, 0.06);
	--hm-fp-border: rgba(255, 255, 255, 0.1);
	--hm-fp-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.hm-flash-page,
.hm-flash-page * {
	font-family: var(--hm-fp-font) !important;
	box-sizing: border-box;
}

.hm-flash-page__hero {
	margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.hm-flash-page__eyebrow {
	margin: 0 0 0.35rem !important;
	font-size: 0.85rem !important;
	font-weight: 600 !important;
	color: var(--hm-fp-brand) !important;
}

.hm-flash-page__title {
	margin: 0 0 0.45rem !important;
	font-size: clamp(1.8rem, 3.4vw, 2.6rem) !important;
	font-weight: 800 !important;
	line-height: 1.15 !important;
	color: var(--hm-fp-heading) !important;
}

.hm-flash-page__lead {
	margin: 0 !important;
	max-width: 38rem;
	font-size: 1rem !important;
	line-height: 1.55 !important;
	color: var(--hm-fp-muted) !important;
}

.hm-flash-page__empty {
	margin: 2rem 0 !important;
	padding: 1.25rem 1.5rem !important;
	border-radius: 14px;
	background: var(--hm-fp-surface);
	color: var(--hm-fp-muted);
}

.hm-flash-page__feed {
	display: grid;
	gap: 1.75rem;
	max-width: 860px;
}

.hm-flash-page__day-title {
	margin: 0 0 0.75rem !important;
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	color: var(--hm-fp-heading) !important;
}

.hm-flash-page__list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: grid;
	gap: 0.65rem;
}

.hm-flash-page__card {
	display: flex !important;
	align-items: center;
	gap: 0.9rem;
	padding: 0.75rem 0.9rem !important;
	border: 1px solid var(--hm-fp-border) !important;
	border-radius: 14px !important;
	background: var(--hm-fp-surface) !important;
	box-shadow: var(--hm-fp-shadow);
	text-decoration: none !important;
	color: inherit !important;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.hm-flash-page__card:hover,
.hm-flash-page__card:focus-visible {
	transform: translateY(-1px);
	border-color: rgba(203, 30, 83, 0.35) !important;
	text-decoration: none !important;
}

.hm-flash-page__thumb {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border-radius: 10px;
	overflow: hidden;
	background: rgba(32, 33, 90, 0.08);
}

.hm-flash-page__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hm-flash-page__body {
	display: flex;
	flex-direction: column;
	gap: 0.28rem;
	min-width: 0;
	flex: 1 1 auto;
}

.hm-flash-page__meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.78rem !important;
	font-weight: 700 !important;
	color: var(--hm-fp-brand) !important;
}

.hm-flash-page__badge {
	display: inline-flex;
	align-items: center;
	padding: 0.12rem 0.5rem;
	border-radius: 999px;
	background: rgba(203, 30, 83, 0.1);
	color: var(--hm-fp-brand);
	font-size: 0.7rem !important;
	font-weight: 700 !important;
}

.hm-flash-page__item--clip .hm-flash-page__badge {
	background: rgba(32, 33, 90, 0.1);
	color: var(--hm-fp-navy);
}

html[data-hm-theme="dark"] .hm-flash-page__item--clip .hm-flash-page__badge {
	background: rgba(255, 255, 255, 0.1);
	color: #f5f5f7;
}

.hm-flash-page__item--program .hm-flash-page__badge {
	background: rgba(250, 133, 4, 0.14);
	color: #c56a00;
}

.hm-flash-page__headline {
	font-size: 1.02rem !important;
	font-weight: 650 !important;
	line-height: 1.35 !important;
	color: var(--hm-fp-heading) !important;
}

@media (max-width: 640px) {
	.hm-flash-page {
		--hm-fp-pad: 5%;
	}

	.hm-flash-page__thumb {
		flex-basis: 52px;
		width: 52px;
		height: 52px;
	}

	.hm-flash-page__headline {
		font-size: 0.95rem !important;
	}
}
