/* HUJI Events – Mobile View
 * Mobile-only list of events, shown where the desktop FullCalendar is hidden.
 */

.huji-em {
	display: none;
	direction: rtl;
	box-sizing: border-box;
	width: 100%;
	max-width: 640px;
	margin: 0 auto;
	padding: 8px 16px 40px;
	font-family: "Rubik", "Heebo", "Assistant", -apple-system, "Segoe UI", Arial, sans-serif;
	text-align: right;
}

.huji-em *,
.huji-em *::before,
.huji-em *::after {
	box-sizing: border-box;
}

@media (max-width: 767px) {
	.huji-em.is-placed {
		display: block;
	}
}

.huji-em__title {
	margin: 0 0 4px;
	color: #6c1f5e;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
}

.huji-em__subtitle {
	margin: 32px 0 4px;
	color: #6c1f5e;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.huji-em__empty {
	margin: 12px 0 0;
	color: #4a4a4a;
	font-size: 16px;
	line-height: 1.6;
}

.huji-em__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.huji-em__month {
	margin: 22px 0 10px;
	color: #8a6f85;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.huji-em__item {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

/* Card ------------------------------------------------------------------- */

.huji-em__card {
	display: flex;
	gap: 12px;
	align-items: stretch;
	overflow: hidden;
	padding: 0;
	border: 1px solid #e6dfe9;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(60, 20, 55, 0.06);
	color: inherit;
	text-decoration: none !important;
}

.huji-em__card:hover,
.huji-em__card:focus-visible {
	border-color: #c9a9c2;
	box-shadow: 0 3px 10px rgba(60, 20, 55, 0.12);
}

.huji-em__card:focus-visible {
	outline: 2px solid #6c1f5e;
	outline-offset: 2px;
}

.huji-em__media {
	position: relative;
	flex: 0 0 108px;
	width: 108px;
	min-height: 108px;
	background: #f2ecf4;
}

.huji-em__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: cover;
}

/* Date chip -------------------------------------------------------------- */

.huji-em__date {
	position: absolute;
	top: 6px;
	right: 6px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	padding: 4px 6px;
	border-radius: 9px;
	background: #6c1f5e;
	color: #fff;
	line-height: 1.05;
}

.huji-em__media--empty .huji-em__date {
	position: static;
	width: 100%;
	height: 100%;
	border-radius: 0;
	justify-content: center;
}

.huji-em__day {
	font-size: 18px;
	font-weight: 700;
}

.huji-em__mon {
	font-size: 11px;
	font-weight: 500;
}

/* Body ------------------------------------------------------------------- */

.huji-em__body {
	flex: 1 1 auto;
	min-width: 0;
	padding: 12px 0 12px 12px;
}

.huji-em__name {
	margin: 0 0 6px;
	color: #2c2c2c;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
}

.huji-em__meta {
	display: flex;
	margin: 0 0 3px;
	color: #5f5f5f;
	font-size: 13px;
	line-height: 1.45;
}

.huji-em__meta-line {
	display: flex;
	gap: 5px;
	align-items: flex-start;
}

.huji-em__ico {
	flex: 0 0 auto;
	font-size: 12px;
	line-height: 1.5;
}
