/* Programok: közelgő programok sávjai, következő program, programnaptár, esemény időpontja a cikkben. */
.szb-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
[data-szb-kozelgo][hidden],
[data-szb-kovetkezo][hidden],
.szb-esemeny-info [hidden] {
	display: none !important;
}

/* ---------- bars ---------- */
.szb-savok {
	margin: 0;
	padding: 0;
	list-style: none;
}
.szb-sav {
	--sav-kitoltes: var(--zold-800, #2C3C16);
	display: grid;
	grid-template-columns: minmax(7rem, auto) 1fr auto auto;
	align-items: baseline;
	gap: 6px 28px;
	color: inherit;
	text-decoration: none;
	background: linear-gradient(var(--sav-kitoltes), var(--sav-kitoltes)) no-repeat 0 0 / 0 100%;
	transition: background-size 0.4s cubic-bezier(0.22, 0.8, 0.3, 1), color 0.25s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.szb-sav:hover,
.szb-sav:focus-visible {
	background-size: 100% 100%;
	color: var(--feher, #fff);
}
.szb-sav:focus-visible {
	outline: 3px solid var(--szena, #C8A252);
	outline-offset: -6px;
}
.szb-sav-allapot {
	font-size: 0.9375rem;
	font-weight: 600;
}
.szb-sav-cim {
	font-family: var(--font-cim, "Forum"), serif;
	font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.875rem);
	font-weight: 400;
	line-height: 1.15;
}
.szb-sav-ido {
	font-size: 0.9375rem;
}
.szb-sav-nyil {
	transition: translate 0.3s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.szb-sav:hover .szb-sav-nyil,
.szb-sav:focus-visible .szb-sav-nyil {
	translate: 5px 0;
}

/* Full-width strip (Programok page top, above the page header) */
.szb-kozelgo {
	background: var(--zold-100, #E3E8D6);
	color: var(--barna-900, #2B221B);
	border-bottom: 1px solid var(--barna-200, #D8CEC4);
}
.szb-kozelgo li + li {
	border-top: 1px solid var(--barna-200, #D8CEC4);
}
.szb-kozelgo .szb-sav {
	padding: 20px max(var(--margo, clamp(16px, 4vw, 64px)), calc((100% - 1440px) / 2));
}

/* The next event, inside a section (home page): colours from the surrounding text */
.szb-kovetkezo-cim {
	margin: 32px 0 12px;
	font-size: var(--t-lead, clamp(1.1875rem, 1.1rem + 0.45vw, 1.4375rem));
	line-height: 1.5;
}
.szb-kovetkezo .szb-sav {
	--sav-kitoltes: color-mix(in srgb, currentColor 14%, transparent);
	grid-template-columns: 1fr auto;
	padding: 14px 12px;
	border-block: 1px solid color-mix(in srgb, currentColor 30%, transparent);
}
.szb-kovetkezo .szb-sav:hover,
.szb-kovetkezo .szb-sav:focus-visible {
	color: inherit;
}
.szb-kovetkezo .szb-sav-allapot,
.szb-kovetkezo .szb-sav-cim,
.szb-kovetkezo .szb-sav-ido {
	grid-column: 1;
}
.szb-kovetkezo .szb-sav-nyil {
	grid-column: 2;
	grid-row: 1 / span 3;
	align-self: center;
}

@media (max-width: 767px) {
	.szb-sav {
		grid-template-columns: 1fr auto;
		gap: 4px 16px;
	}
	.szb-sav-allapot,
	.szb-sav-cim,
	.szb-sav-ido {
		grid-column: 1;
	}
	.szb-sav-nyil {
		grid-column: 2;
		grid-row: 1 / span 3;
		align-self: center;
	}
}

/* ---------- calendar ---------- */
.szb-naptar {
	color: var(--barna-900, #2B221B);
}
.szb-naptar-fej {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 16px;
}
.szb-naptar .szb-naptar-honap {
	margin: 0;
	font-family: var(--font-cim, "Forum"), serif;
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
	font-weight: 400;
	line-height: 1.1;
	color: var(--barna-800, #3F3228);
}
.szb-naptar.is-naptar .szb-naptar-honap {
	flex: 1;
	text-align: center;
}
.szb-naptar:not(.is-naptar) .szb-naptar-honap {
	margin: 32px 0 8px;
}
button.szb-naptar-lapoz {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--barna-200, #D8CEC4);
	border-radius: 0;
	background: none;
	color: var(--zold-800, #2C3C16);
	font: inherit;
	font-size: 1.25rem;
	cursor: pointer;
	transition: background-color 0.25s cubic-bezier(0.22, 0.8, 0.3, 1);
}
button.szb-naptar-lapoz:hover,
button.szb-naptar-lapoz:focus,
button.szb-naptar-lapoz:active {
	background: none; /* theme button focus colour */
	color: var(--zold-800, #2C3C16);
}
button.szb-naptar-lapoz:hover:not(:disabled),
button.szb-naptar-lapoz:focus-visible {
	background: var(--zold-100, #E3E8D6);
	color: var(--zold-800, #2C3C16);
}
button.szb-naptar-lapoz:disabled {
	opacity: 0.35;
	cursor: default;
}
/* Week rows: day cells span the whole row as background, day numbers on row 1, event bars on rows 2+ (one lane each). */
.szb-naptar-napnevek,
.szb-het {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
}
.szb-naptar-napnevek span {
	padding: 8px;
	color: var(--barna-500, #6B5848);
	font-size: 0.9375rem;
	font-weight: 500;
}
.szb-naptar-hetek {
	border-top: 1px solid var(--barna-200, #D8CEC4);
	border-left: 1px solid var(--barna-200, #D8CEC4);
}
.szb-het {
	min-height: 112px;
	padding-bottom: 8px;
}
.szb-nap-cella {
	grid-row: 1 / -1;
	margin-bottom: -8px;
	border-right: 1px solid var(--barna-200, #D8CEC4);
	border-bottom: 1px solid var(--barna-200, #D8CEC4);
}
.szb-nap-cella.van-program {
	background: var(--zold-100, #E3E8D6);
}
.szb-nap-cella.is-ma {
	box-shadow: inset 0 4px 0 var(--szena, #C8A252);
}
.szb-nap {
	grid-row: 1;
	z-index: 1;
	justify-self: start;
	margin: 8px 8px 4px;
	color: var(--barna-900, #2B221B);
	font-variant-numeric: tabular-nums;
	font-weight: 500;
	line-height: 1.4;
}
button.szb-nap {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--barna-900, #2B221B);
	font: inherit;
	font-variant-numeric: tabular-nums;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
}
button.szb-nap:hover,
button.szb-nap:focus,
button.szb-nap:active {
	background: none; /* theme button colours */
	color: var(--barna-900, #2B221B);
	text-decoration: underline;
}
button.szb-nap[aria-pressed="true"] {
	box-shadow: inset 0 0 0 2px var(--zold-800, #2C3C16);
	text-decoration: none;
}
/* The chosen day's programs in the list; the others step back (muted brown keeps AA contrast). */
.szb-naptar-lista li.is-halvany .szb-lista-cim,
.szb-naptar-lista li.is-halvany .szb-lista-ido,
.szb-naptar-lista li.is-halvany .szb-lista-allapot {
	color: var(--barna-500, #6B5848);
}
.szb-naptar-lista li.is-halvany .szb-lista-cim {
	font-size: 1.125rem;
}
.szb-naptar-lista li.is-kivalasztott a {
	background-size: 100% 100%;
	box-shadow: inset 4px 0 0 var(--szena, #C8A252);
}
.szb-potty {
	display: none;
}
.szb-naptar-sav {
	z-index: 1;
	min-width: 0;
	margin: 2px 4px;
	padding: 3px 8px;
	overflow: hidden;
	background: var(--zold-800, #2C3C16);
	color: var(--feher, #fff);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: background-color 0.25s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.elementor .szb-naptar-sav:hover {
	background: var(--zold-600, #4A5F2A);
	color: var(--feher, #fff);
}
.szb-naptar-sav.is-folytatas {
	margin-left: 0;
}
.szb-naptar-sav.is-folytatodik {
	margin-right: 0;
}
.elementor .szb-naptar-sav.is-vege {
	background: var(--barna-200, #D8CEC4);
	color: var(--barna-900, #2B221B);
}
.elementor .szb-naptar-sav.is-vege:hover {
	background: var(--barna-500, #6B5848);
	color: var(--feher, #fff);
}
.szb-naptar-lista {
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}
.szb-naptar:not(.is-naptar) .szb-naptar-lista {
	margin-top: 0;
}
.szb-naptar-lista li {
	margin: 0;
	border-top: 1px solid var(--barna-200, #D8CEC4);
}
.szb-naptar-lista li:last-child {
	border-bottom: 1px solid var(--barna-200, #D8CEC4);
}
.szb-naptar-lista a {
	display: grid;
	grid-template-columns: minmax(12rem, 22rem) 1fr auto;
	align-items: baseline;
	gap: 4px 24px;
	padding: 16px 12px;
	color: inherit;
	text-decoration: none;
	background: linear-gradient(var(--zold-100, #E3E8D6), var(--zold-100, #E3E8D6)) no-repeat 0 0 / 0 100%;
	transition: background-size 0.4s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.szb-naptar-lista a:hover,
.szb-naptar-lista a:focus-visible {
	background-size: 100% 100%;
}
.szb-lista-ido {
	font-size: 0.9375rem;
	color: var(--barna-500, #6B5848);
}
.szb-lista-cim {
	font-family: var(--font-cim, "Forum"), serif;
	font-size: 1.375rem;
	line-height: 1.2;
	color: var(--barna-800, #3F3228);
}
.szb-lista-allapot {
	font-size: 0.9375rem;
	color: var(--barna-500, #6B5848);
}
.szb-lista-megj {
	display: block;
	margin-top: 2px;
	color: var(--barna-500, #6B5848);
	font-family: var(--font-szoveg, "Schibsted Grotesk"), sans-serif;
	font-size: 0.9375rem;
	line-height: 1.4;
}
.szb-esemeny-idopontok {
	margin: 8px 0 0;
	padding-inline-start: 1.2em;
}
.szb-esemeny-idopontok li + li {
	margin-top: 4px;
}
.szb-naptar-lista .is-vege .szb-lista-cim {
	color: var(--barna-500, #6B5848);
}
.szb-naptar-ures {
	padding: 16px 12px;
	color: var(--barna-500, #6B5848);
}

@media (max-width: 767px) {
	.szb-naptar-napnevek span {
		padding: 6px 0;
		font-size: 0.8125rem;
		text-align: center;
	}
	.szb-het {
		min-height: 0;
		padding-bottom: 0;
	}
	.szb-nap-cella {
		margin-bottom: 0;
	}
	.szb-naptar-sav {
		display: none;
	}
	/* Phones: the day is the way in. A marker under the number shows that it has events, tapping opens the first. */
	.szb-nap,
	button.szb-nap {
		grid-row: 1 / -1;
		justify-self: stretch;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		min-height: 48px;
		margin: 0;
	}
	button.szb-nap {
		font-weight: 600;
	}
	.szb-potty {
		display: block;
		width: 6px;
		height: 6px;
		background: var(--zold-800, #2C3C16);
	}
	.szb-naptar-lista a {
		grid-template-columns: 1fr;
	}
}

/* ---------- article: event date ---------- */
.szb-esemeny-info {
	max-width: 62ch;
	margin: 24px 0 0;
	padding: 16px 20px;
	border-inline-start: 4px solid var(--szena, #C8A252);
	background: var(--zold-100, #E3E8D6);
	color: var(--barna-900, #2B221B);
}
.szb-esemeny-info p {
	margin: 0;
}
.szb-esemeny-info p + p {
	margin-top: 8px;
}
.szb-esemeny-info p a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}
.szb-esemeny-info p a:hover {
	text-decoration-thickness: 3px;
}
