/* luach-eruim-list.css — "האירועים הקרובים" list view, scoped to .le-list */
.le-list {
	--le-green: #7d9581;
	--le-green-dark: #6b8570;
	--le-purple: #4b2a7b;
	--le-teal: #3e9c8b;
	--le-lilac: #cdb9ec;
	--le-text: #4a4a4a;
	--le-border: rgba(115, 99, 87, 0.35);
	--le-radius: 22px;
	--le-shadow: 0 12px 30px rgba(75, 42, 123, 0.10);
	direction: rtl;
	font-family: inherit;
	display: flex;
	flex-direction: column;
	gap: 26px;
	max-width: 740px;
	margin-inline: auto;
}
.le-list * { box-sizing: border-box; }

/* ===== card ===== */
/* Frame is the real design image (Group-13/14/15) via 9-slice border-image,
   so the rounded corners + brown border + colored left accent stay crisp
   while the flat center stretches. Cards cycle through the 3 variants. */
.le-l-card {
	display: grid;
	grid-template-columns: 132px 6px 1fr 6px 148px;
	align-items: center;
	gap: 0 16px;
	min-height: 204px; /* uniform height across all cards */
	padding: 4px 8px;
	border-style: solid;
	border-color: transparent;
	border-width: 24px 30px;
	border-image-slice: 38 46 fill;
	border-image-repeat: stretch;
}
.le-l-card--1 { border-image-source: url(list/frame-1.png); }
.le-l-card--2 { border-image-source: url(list/frame-2.png); }
.le-l-card--3 { border-image-source: url(list/frame-3.png); }

/* ===== date (rightmost) ===== */
.le-l-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: var(--le-purple);
}
.le-l-day { font-size: 42px; font-weight: 700; line-height: 1; }
.le-l-day--range { font-size: 20px; font-weight: 600; line-height: 1.35; }
.le-l-month { font-size: 22px; font-weight: 500; margin-top: 4px; }
.le-l-wave { width: 42px; height: auto; margin-top: 14px; }

/* ===== dividers (Vector.svg as background, full height) ===== */
.le-l-divider {
	align-self: stretch;
	margin: 4px 0;
	background: url(list/divider.svg) no-repeat center / auto 100%;
}

/* ===== details (middle, right-aligned) ===== */
.le-l-details { text-align: right; padding: 0 6px; }
.le-l-title {
	color: var(--le-purple);
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 12px;
}
.le-l-subtitle {
	color: var(--le-teal);
	font-size: 15px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 12px;
}
.le-l-clock { flex: 0 0 auto; }
.le-l-desc {
	color: var(--le-text);
	font-size: 15px;
	line-height: 1.65;
	margin: 0;
	/* Clamped so a long description can't stretch the card. Override the line
	   count with --le-l-desc-lines on .le-list. */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--le-l-desc-lines, 3);
	line-clamp: var(--le-l-desc-lines, 3);
	overflow: hidden;
}
.le-l-desc.is-open {
	display: block;
	overflow: visible;
}
/* inline-block so the details column's text-align places it — right on
   desktop, centered on mobile, with no extra rule. */
.le-l-more {
	display: inline-block;
	margin-top: 6px;
	padding: 0;
	background: none;
	border: 0;
	color: var(--le-purple);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}
.le-l-more:hover { color: var(--le-green); }

/* ===== registration (leftmost) ===== */
.le-l-reg {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
}
.le-l-badge { width: 66px; height: 66px; object-fit: contain; display: block; }
.le-l-type { color: var(--le-purple); font-size: 15px; line-height: 1.25; }
.le-l-btn {
	display: inline-block;
	background: var(--le-green);
	color: #fff !important;
	text-decoration: none;
	border-radius: 999px;
	padding: 9px 30px;
	font-size: 16px;
	margin-top: 4px;
	transition: background 0.2s;
}
.le-l-btn:hover { background: var(--le-green-dark); }

/* No event URL → same button, minus the affordances of a link. */
.le-l-btn--nolink { cursor: default; }
.le-l-btn--nolink:hover { background: var(--le-green); }

.le-l-empty {
	color: var(--le-purple);
	font-size: 18px;
	text-align: center;
	padding: 40px 0;
}

/* ===== mobile (stacked, content centered) ===== */
@media (max-width: 767px) {
	.le-l-card {
		grid-template-columns: 1fr;
		gap: 14px 0;
		padding: 8px 10px;
		border-width: 20px;
		text-align: center;
	}
	.le-l-divider { display: none; }
	.le-l-date { flex-direction: row; justify-content: center; gap: 10px; }
	.le-l-day { font-size: 34px; }
	.le-l-month { font-size: 20px; margin-top: 0; }
	.le-l-wave { margin-top: 0; }
	.le-l-details { text-align: center; padding: 0; }
	.le-l-subtitle { justify-content: center; }
}
