.ehok-calendar-shell {
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 20px;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	position: relative;
}

/* Használati tippek — egy oszlop, kártya nélkül */
.ehok-calendar-guide {
	margin: 1.35rem 0 0;
	padding: 0 0.25rem;
	max-width: 44rem;
}

.ehok-calendar-legend {
	margin: 0 0 1.35rem;
}

.ehok-calendar-legend__title {
	margin: 0 0 0.75rem;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ehok-blue, #092b50);
}

.ehok-calendar-legend__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ehok-calendar-legend__item {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.88rem;
	line-height: 1.3;
	color: var(--ehok-blue-light, #345a75);
}

.ehok-calendar-legend__swatch {
	width: 1rem;
	height: 1rem;
	border-radius: 4px;
	flex: 0 0 auto;
	box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.ehok-calendar-legend__label {
	font-weight: 600;
}

.ehok-calendar-guide__list {
	display: flex;
	flex-direction: column;
	gap: 0.95rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ehok-calendar-guide__item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	color: var(--ehok-blue-light, #345a75);
	font-size: 0.92rem;
	line-height: 1.5;
	min-width: 0;
}

.ehok-calendar-guide__icon {
	flex: 0 0 auto;
	width: 1.25rem;
	margin-top: 0.2rem;
	color: var(--ehok-orange, #f9a733);
	font-size: 0.95rem;
	text-align: center;
	line-height: 1;
}

.ehok-calendar-guide__text {
	flex: 1;
	min-width: 0;
	color: var(--ehok-blue-light, #345a75);
	overflow-wrap: anywhere;
	word-break: break-word;
}

@media (min-width: 992px) {
	.ehok-calendar-guide {
		margin-top: 1.5rem;
	}

	.ehok-calendar-guide__list {
		gap: 1.1rem;
	}

	.ehok-calendar-legend {
		margin-bottom: 1.5rem;
	}
}

#ehok-calendar {
	background: #fff;
	padding: 16px;
}

/* Desktop: kompaktabb naptár, hogy beleférjen a viewportba */
@media (min-width: 992px) {
	.ehok-esemeny-calendar-page .ehok-page-hero {
		padding-top: 0.85rem;
	}

	.ehok-esemeny-calendar-page h1.ehok-page-title {
		font-size: clamp(1.45rem, 2vw, 1.85rem);
		margin-bottom: 0.35rem;
	}

	.ehok-esemeny-calendar-page .ehok-page-lead {
		margin-bottom: 0.85rem;
		font-size: 0.95rem;
	}

	#ehok-calendar {
		padding: 10px 12px 12px;
	}

	#ehok-calendar .fc .fc-toolbar {
		gap: 0.5rem;
		margin-bottom: 0.65rem !important;
	}

	#ehok-calendar .fc .fc-toolbar-title {
		font-size: 1.2rem;
	}

	#ehok-calendar .fc .fc-button {
		padding: 0.32rem 0.72rem;
		font-size: 0.82rem;
	}

	#ehok-calendar .fc-col-header-cell {
		padding: 6px 0 !important;
	}

	#ehok-calendar .fc-daygrid-day-number {
		padding: 4px 6px !important;
		font-size: 0.85rem;
	}

	#ehok-calendar .fc-day-today .fc-daygrid-day-number {
		width: 28px;
		height: 28px;
		margin: 3px;
		font-size: 0.8rem;
	}

	#ehok-calendar .fc-daygrid-event {
		font-size: 0.72rem;
		padding: 1px 5px;
		margin-bottom: 1px !important;
	}

	#ehok-calendar .fc-daygrid-event .fc-event-title,
	#ehok-calendar .fc-daygrid-event .fc-event-time {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	#ehok-calendar .fc-daygrid-block-event .fc-event-title {
		display: block;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	#ehok-calendar .fc-daygrid-day-frame {
		min-height: 0;
	}

	#ehok-calendar .fc-timegrid-slot-label-cushion {
		font-size: 0.78rem;
	}

	#ehok-calendar .fc-view-harness {
		max-height: none;
	}

	/* Belső görgetés a naptárban, ne az egész oldal nőjön */
	#ehok-calendar .fc-scroller {
		overflow: auto !important;
	}
}

.esemeny-card {
	border: 0;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.esemeny-card-media {
	min-height: 220px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.esemeny-card-media--empty {
	background: linear-gradient(135deg, #dfe7f7 0%, #edf1f7 100%);
}

.esemeny-card-meta {
	font-size: 0.875rem;
	font-weight: 600;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* FullCalendar mobilbarát finomhangolás */
.fc .fc-toolbar {
	flex-wrap: wrap;
	gap: 0.75rem;
}

.fc .fc-toolbar-title {
	font-size: clamp(1.05rem, 3vw, 1.6rem);
}

.fc .fc-button {
	border-radius: 999px;
	padding: 0.45rem 0.85rem;
	box-shadow: none;
}

.fc .fc-button-group {
	flex-wrap: wrap;
	gap: 0.35rem;
}

.fc .fc-scrollgrid {
	border-radius: 14px;
	overflow: hidden;
}

.fc .fc-timegrid-slot-label-cushion {
	font-variant-numeric: tabular-nums;
}

.ehok-cal-day-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.2rem;
	line-height: 1.2;
	padding: 0.15rem 0;
}

.ehok-cal-day-name {
	font-weight: 700;
	color: var(--ehok-blue, #092b50);
	text-transform: lowercase;
}

.ehok-cal-day-count {
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--ehok-blue-light, #345a75);
	background: rgba(9, 43, 80, 0.08);
	border-radius: 999px;
	padding: 0.15rem 0.55rem;
	white-space: nowrap;
}

.ehok-cal-day-count.is-empty {
	color: #6b7280;
	background: rgba(107, 114, 128, 0.12);
}

.ehok-calendar-side-nav {
	display: none !important;
}

@media (max-width: 991.98px) {
	#ehok-calendar {
		padding: 10px;
	}

	.fc .fc-toolbar {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		justify-content: center;
		gap: 0.65rem;
	}

	.fc .fc-toolbar-chunk {
		width: 100%;
		display: flex;
		justify-content: center;
		flex-wrap: wrap;
		gap: 0.35rem;
	}

	/* Év / hónap cím a gombok fölött (középső toolbar chunk) */
	.fc .fc-toolbar-chunk:nth-child(2) {
		order: -1;
	}

	.fc .fc-toolbar-title {
		text-align: center;
		width: 100%;
	}

	.fc .fc-button-group {
		display: inline-flex;
		width: auto;
		max-width: 100%;
		gap: 0.35rem;
	}

	.fc .fc-button-group .fc-button {
		flex: 0 0 auto;
		white-space: nowrap;
	}

	#ehok-calendar .fc .fc-prev-button,
	#ehok-calendar .fc .fc-next-button,
	#ehok-calendar .fc .fc-today-button {
		min-height: 40px;
		border-radius: 999px !important;
		padding: 0.45rem 0.95rem !important;
	}

	#ehok-calendar .fc .fc-prev-button,
	#ehok-calendar .fc .fc-next-button {
		min-width: 40px;
		padding-inline: 0.75rem !important;
	}

	.esemeny-card-media {
		min-height: 180px;
	}

	/* Mobil lista nézet — világos sorok, csak a pont színes (desktop rács érintetlen) */
	#ehok-calendar .fc-list {
		border: 0;
	}

	#ehok-calendar .fc-list-table {
		border-style: hidden;
	}

	#ehok-calendar .fc-list-day-cushion {
		background: #f5f7fb !important;
		padding: 0.7rem 0.85rem !important;
	}

	#ehok-calendar .fc-list-day-text,
	#ehok-calendar .fc-list-day-side-text {
		color: var(--ehok-blue, #092b50) !important;
		font-family: 'Montserrat', sans-serif;
		font-weight: 700 !important;
		font-size: 0.82rem;
		text-transform: uppercase;
		letter-spacing: 0.03em;
		text-decoration: none !important;
	}

	#ehok-calendar .fc-list-event {
		background: transparent !important;
		background-color: transparent !important;
		color: inherit !important;
		border: 0 !important;
	}

	#ehok-calendar .fc-list-event:hover td {
		background: #f8fafc !important;
	}

	#ehok-calendar .fc-list-event td {
		padding: 0.75rem 0.85rem !important;
		vertical-align: middle;
		background: transparent !important;
		background-color: transparent !important;
		border-color: #edf1f6 !important;
		color: inherit !important;
	}

	#ehok-calendar .fc-list-event-time {
		width: 5.5rem;
		max-width: 32%;
		padding-right: 0.5rem !important;
		font-variant-numeric: tabular-nums;
		font-size: 0.82rem;
		font-weight: 600;
		color: var(--ehok-blue-light, #345a75) !important;
		white-space: normal;
		line-height: 1.35;
	}

	#ehok-calendar .fc-list-event-graphic {
		display: none !important;
		width: 0 !important;
		padding: 0 !important;
		border: 0 !important;
	}

	#ehok-calendar .ehok-cal-title-inner {
		display: flex;
		align-items: center;
		gap: 0.55rem;
	}

	#ehok-calendar .ehok-cal-title-inner a.fc-list-event-title {
		flex: 1 1 auto;
		min-width: 0;
	}

	#ehok-calendar .ehok-cal-cat-mark {
		flex: 0 0 auto;
		width: 10px;
		height: 10px;
		margin-left: auto;
		border-radius: 50%;
		border: 0;
		box-sizing: border-box;
	}

	#ehok-calendar .fc-list-event-title,
	#ehok-calendar .fc-list-event-title a {
		font-family: 'Poppins', sans-serif;
		font-size: 0.95rem;
		font-weight: 600;
		line-height: 1.4;
		color: #1f2a37 !important;
		overflow-wrap: anywhere;
		word-break: break-word;
		text-decoration: none !important;
	}

	#ehok-calendar .fc-list-empty,
	#ehok-calendar .ehok-calendar-empty {
		padding: 1.5rem 1rem;
		font-size: 0.95rem;
		color: #6b7280;
		text-align: center;
		font-family: 'Poppins', sans-serif;
	}

	.ehok-calendar-guide {
		padding-left: 0.1rem;
		padding-right: 0.1rem;
		max-width: 100%;
	}

	.ehok-calendar-legend__item {
		max-width: 100%;
		overflow-wrap: anywhere;
	}
}

@media (max-width: 575.98px) {
	.ehok-calendar-shell {
		border-radius: 16px;
	}

	#ehok-calendar {
		padding: 8px;
	}

	.fc .fc-toolbar-title {
		text-align: center;
		width: 100%;
	}

	.fc .fc-toolbar {
		gap: 0.5rem;
	}

	.fc .fc-button-group {
		gap: 0.3rem;
	}

	.fc .fc-button {
		font-size: 0.85rem;
		padding: 0.35rem 0.7rem;
	}

	.ehok-calendar-legend__list {
		gap: 0.45rem 0.7rem;
	}

	.ehok-calendar-legend__item {
		font-size: 0.82rem;
	}

	.fc .fc-daygrid-day-number,
	.fc .fc-col-header-cell-cushion {
		font-size: 0.78rem;
	}

	.esemeny-card-media {
		min-height: 160px;
	}
}

/* Kategória színű események — ne írja felül a globális FC stílus */
#ehok-calendar .fc-event {
	border: none;
	border-radius: 6px;
}

#ehok-calendar .fc-event .fc-event-main,
#ehok-calendar .fc-event .fc-event-title,
#ehok-calendar .fc-event .fc-event-time {
	color: inherit;
}

/* Lista nézet: soha ne legyen sötét háttérű, olvashatatlan sor (csak a pont színes) */
#ehok-calendar .fc-list-event {
	background: transparent !important;
	background-color: transparent !important;
	border: 0 !important;
	color: inherit !important;
}

#ehok-calendar .fc-list-event td {
	background: transparent !important;
	background-color: transparent !important;
	color: inherit !important;
}

#ehok-calendar .fc-list-event .fc-list-event-title,
#ehok-calendar .fc-list-event .fc-list-event-title a {
	color: #1f2a37 !important;
}

#ehok-calendar .fc-list-event .fc-list-event-time {
	color: var(--ehok-blue-light, #345a75) !important;
}

#ehok-calendar .fc-list-empty,
#ehok-calendar .ehok-calendar-empty {
	padding: 1.5rem 1rem;
	font-size: 0.95rem;
	color: #6b7280;
	text-align: center;
	font-family: 'Poppins', sans-serif;
}
