/* MA Historický kalendář – box výročí, výpisy, časová osa, detail události.
   Jen bezpatková písma (dědí se z webu). */

.ma-hk,
.ma-hk-vypis,
.ma-hk-detail,
.ma-hk-detail__nav,
.ma-hk-detail__back,
.ma-hk-detail__text,
.ma-hk-wiki,
.ma-hk-hledat,
.ma-hk-obec,
.ma-hk-zdroje {
	--hk-g900: #0a3510;
	--hk-g800: #0f4d18;
	--hk-g700: #1b641b;
	--hk-g: #2a5f19;
	--hk-y: #fcee1c;
	--hk-y2: #fff59a;
	--hk-ink: #16331a;
	--hk-muted: #56704c;
	--hk-line: rgba(42, 95, 25, 0.16);
	--hk-soft: #f4f8ef;
	font-family: var(--ma-ui-font, inherit);
}

.ma-hk,
.ma-hk *,
.ma-hk *::before,
.ma-hk *::after {
	box-sizing: border-box;
}

.ma-hk {
	margin: 0 0 24px;
	color: var(--hk-ink);
}

.ma-hk[hidden] {
	display: none !important;
}

.ma-hk :where(ul, li, p) {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ma-hk li::before,
.ma-hk li::marker {
	content: none !important;
}

.ma-hk a {
	color: inherit;
	text-decoration: none !important;
	background-image: none !important;
}

.ma-hk svg {
	display: block;
	flex: 0 0 auto;
}

/* ---------- Hlavička ---------- */
.ma-hk__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	color: #ffffff;
	background: var(--hk-g800);
}

.ma-hk__icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: var(--hk-g900);
	background: var(--hk-y);
}

.ma-hk__icon svg {
	display: block;
	width: 80%;
	height: 80%;
}

.ma-hk__heading {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	line-height: 1.15;
}

.ma-hk__kicker {
	font-size: 16px;
	font-weight: 800;
}

.ma-hk__sub {
	color: #cfe5c3;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

/* ---------- Položka ---------- */
.ma-hk .ma-hk__list {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ma-hk .ma-hk__item {
	margin: 0;
	padding: 0;
}

.ma-hk__link {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 12px 14px;
	align-items: start;
	padding: 14px 16px;
	transition: background-color 0.18s ease;
}

.ma-hk__link:hover,
.ma-hk__link:focus-visible {
	background: var(--hk-soft);
}

.ma-hk__link:focus-visible {
	outline: 3px solid var(--hk-g);
	outline-offset: -3px;
}

.ma-hk__media {
	grid-column: 1 / -1;
	margin: -14px -16px 2px;
	line-height: 0;
}

.ma-hk .ma-hk__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
}

.ma-hk__num {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 66px;
	padding: 9px 7px 8px;
	border-radius: 12px;
	color: var(--hk-g900);
	background: var(--hk-y);
	line-height: 1;
	text-align: center;
	box-shadow: inset 0 -3px 0 rgba(10, 53, 16, 0.12);
}

.ma-hk__num b {
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.ma-hk__num small {
	margin-top: 4px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.ma-hk__body {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.ma-hk__badge {
	align-self: flex-start;
	padding: 3px 9px;
	border-radius: 999px;
	color: var(--hk-g700);
	background: #e5f1dd;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.05em;
	line-height: 1.35;
	text-transform: uppercase;
}

.ma-hk__item--dnes .ma-hk__badge,
.ma-hk__item--behem .ma-hk__badge {
	color: #ffffff;
	background: var(--hk-g700);
}

.ma-hk__title {
	color: var(--hk-g900);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.28;
	text-wrap: pretty;
}

.ma-hk__meta {
	color: var(--hk-muted);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
}

.ma-hk__lead {
	color: #3c4a38;
	font-size: 14px;
	line-height: 1.45;
	text-wrap: pretty;
}

.ma-hk__foot {
	padding: 11px 16px 14px;
}

.ma-hk__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--hk-g) !important;
	font-size: 14px;
	font-weight: 800;
}

.ma-hk__more svg {
	transition: transform 0.18s ease;
}

.ma-hk__more:hover svg,
.ma-hk__more:focus-visible svg {
	transform: translateX(3px);
}

/* ---------- Karta (postranní panel) ---------- */
.ma-hk--karta {
	overflow: hidden;
	border: 1px solid var(--hk-line);
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 10px 24px rgba(20, 76, 17, 0.08);
}

.ma-hk--karta .ma-hk__item + .ma-hk__item,
.ma-hk--karta .ma-hk__foot {
	border-top: 1px solid var(--hk-line);
}

/* ---------- Seznam (úzký widget) ---------- */
.ma-hk--seznam {
	overflow: hidden;
	border: 1px solid var(--hk-line);
	border-radius: 16px;
	background: #ffffff;
}

.ma-hk--seznam .ma-hk__link {
	grid-template-columns: minmax(0, 1fr);
	padding: 12px 16px;
}

.ma-hk--seznam .ma-hk__item + .ma-hk__item,
.ma-hk--seznam .ma-hk__foot {
	border-top: 1px solid var(--hk-line);
}

/* ---------- Pruh (homepage) ---------- */
.ma-hk--pruh {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
	grid-template-areas:
		"head list"
		"foot list";
	gap: 10px 22px;
	align-items: center;
	width: min(100% - 2rem, 1260px);
	margin: 0 auto 40px;
	padding: clamp(16px, 2vw, 24px);
	overflow: hidden;
	border-radius: 0 26px 0 26px;
	color: #ffffff;
	background:
		radial-gradient(90% 140% at 0% 0%, rgba(63, 143, 42, 0.55), rgba(63, 143, 42, 0) 60%),
		var(--hk-g800);
	box-shadow: 0 18px 40px rgba(20, 76, 17, 0.2);
}

.ma-hk--pruh::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	z-index: -1;
	height: 5px;
	background: var(--hk-y);
}

.ma-hk--pruh .ma-hk__head {
	grid-area: head;
	flex-direction: column;
	align-items: flex-start;
	align-self: end;
	gap: 10px;
	padding: 4px 2px;
	background: none;
}

.ma-hk--pruh .ma-hk__icon {
	width: 44px;
	height: 44px;
}

.ma-hk--pruh .ma-hk__kicker {
	font-size: clamp(20px, 2vw, 26px);
	line-height: 1.1;
}

.ma-hk--pruh .ma-hk__sub {
	color: var(--hk-y);
}

.ma-hk--pruh .ma-hk__list {
	grid-area: list;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 12px;
}

.ma-hk--pruh .ma-hk__link {
	height: 100%;
	border-radius: 16px;
	color: var(--hk-ink);
	background: #ffffff;
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ma-hk--pruh .ma-hk__link:hover,
.ma-hk--pruh .ma-hk__link:focus-visible {
	background: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
}

.ma-hk--pruh .ma-hk__link:focus-visible {
	outline: 3px solid var(--hk-y);
	outline-offset: 2px;
}

.ma-hk--pruh .ma-hk__foot {
	grid-area: foot;
	align-self: start;
	padding: 0 2px;
}

.ma-hk--pruh .ma-hk__more {
	color: var(--hk-y) !important;
}

@media (max-width: 760px) {
	.ma-hk--pruh {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"head"
			"list"
			"foot";
		width: min(100% - 1.5rem, 1260px);
	}

	.ma-hk--pruh .ma-hk__head {
		flex-direction: row;
		align-items: center;
	}

	.ma-hk--pruh .ma-hk__list {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Výpisy (výročí roku, měsíc, časová osa, detail) ---------- */
.ma-hk-vypis {
	margin: 0 0 2em;
	color: var(--hk-ink);
}

.ma-hk-vypis .ma-hk-vypis__title {
	margin: 1.4em 0 0.6em;
	color: var(--hk-g900);
	font-size: clamp(1.3rem, 2.2vw, 1.6rem);
	font-weight: 800;
	line-height: 1.2;
}

.ma-hk-vypis .ma-hk-vypis__group {
	margin: 1.2em 0 0.5em;
	color: var(--hk-g);
	font-size: 0.86rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.ma-hk-vypis .ma-hk-vypis__list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ma-hk-vypis .ma-hk-vypis__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid #dfe8dc;
	border-radius: 14px;
	background: #ffffff;
	list-style: none;
}

.ma-hk-vypis .ma-hk-vypis__item::before,
.ma-hk-vypis .ma-hk-vypis__item::marker {
	content: none;
}

.ma-hk-vypis__tag {
	flex: 0 0 auto;
	min-width: 76px;
	padding: 4px 9px;
	border-radius: 999px;
	color: var(--hk-g900);
	background: var(--hk-y);
	font-size: 0.82rem;
	font-weight: 800;
	line-height: 1.3;
	text-align: center;
	white-space: nowrap;
}

.ma-hk-vypis__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ma-hk-vypis__text a {
	color: var(--hk-g900);
	font-weight: 800;
	line-height: 1.3;
	text-decoration: none;
}

.ma-hk-vypis__text a:hover,
.ma-hk-vypis__text a:focus-visible {
	color: var(--hk-g);
	text-decoration: underline;
}

.ma-hk-vypis__meta {
	color: var(--hk-muted);
	font-size: 0.86rem;
	font-weight: 600;
}

.ma-hk-vypis__ex {
	color: #3c4a38;
	font-size: 0.93rem;
	line-height: 1.5;
}

.ma-hk-vypis__empty {
	padding: 12px 14px;
	border: 1px dashed #c9d8c3;
	border-radius: 14px;
	color: var(--hk-muted);
}

/* Časová osa */
.ma-hk-osa__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 1em;
}

.ma-hk-osa__nav a,
.ma-hk-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid #dfe8dc;
	border-radius: 999px;
	color: var(--hk-g900);
	background: #ffffff;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
}

.ma-hk-osa__nav a span,
.ma-hk-chip span {
	color: var(--hk-muted);
	font-weight: 600;
}

/* Odkazy filtru: vyšší specifičnost, aby je nepřebarvila ani nepodtrhla pravidla šablony pro odkazy. */
.ma-hk-vypis .ma-hk-osa__nav a,
.ma-hk-vypis a.ma-hk-chip,
.ma-hk-vypis .ma-hk-osa__nav a:visited,
.ma-hk-vypis a.ma-hk-chip:visited {
	color: var(--hk-g900);
	text-decoration: none !important;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ma-hk-vypis .ma-hk-osa__nav a:hover,
.ma-hk-vypis .ma-hk-osa__nav a:focus-visible,
.ma-hk-vypis a.ma-hk-chip:hover,
.ma-hk-vypis a.ma-hk-chip:focus-visible {
	border-color: var(--hk-g);
	color: var(--hk-g900);
	background: #e5f1dd;
	text-decoration: none !important;
}

.ma-hk-vypis .ma-hk-osa__nav a:focus-visible,
.ma-hk-vypis a.ma-hk-chip:focus-visible {
	outline: 3px solid var(--hk-y);
	outline-offset: 2px;
}

/* Vybraná položka: tmavě zelená s bílým textem i při najetí myší. */
.ma-hk-chip.is-active,
.ma-hk-vypis a.ma-hk-chip.is-active,
.ma-hk-vypis a.ma-hk-chip.is-active:visited {
	border-color: var(--hk-g800);
	color: #ffffff;
	background: var(--hk-g800);
}

.ma-hk-vypis a.ma-hk-chip.is-active:hover,
.ma-hk-vypis a.ma-hk-chip.is-active:focus-visible {
	border-color: var(--hk-g700);
	color: #ffffff;
	background: var(--hk-g700);
}

.ma-hk-chip.is-active span,
.ma-hk-vypis a.ma-hk-chip.is-active:hover span {
	color: var(--hk-y);
}

.ma-hk-osa__filtr {
	margin: 0 0 1.2em;
	padding: 14px 16px;
	border-radius: 16px;
	background: var(--hk-soft);
}

.ma-hk-osa__label {
	margin: 0 0 6px;
	color: var(--hk-g);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.ma-hk-osa__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 10px;
}

.ma-hk-osa__chips:last-child {
	margin-bottom: 0;
}

.ma-hk-vypis .ma-hk-osa__list {
	position: relative;
	gap: 10px;
	margin-left: 8px;
	padding-left: 24px;
	border-left: 3px solid #dfe8dc;
}

.ma-hk-osa__list .ma-hk-vypis__item {
	position: relative;
}

.ma-hk-vypis .ma-hk-osa__list .ma-hk-vypis__item::before {
	content: "";
	position: absolute;
	top: 16px;
	left: -34px;
	width: 15px;
	height: 15px;
	border: 3px solid var(--hk-g);
	border-radius: 50%;
	background: var(--hk-y);
}

.ma-hk-osa .ma-hk-vypis__meta {
	order: -1;
	color: var(--hk-g);
	font-weight: 800;
}

.ma-hk-osa__more > summary {
	margin: 10px 0 10px 8px;
	color: var(--hk-g);
	font-weight: 800;
	cursor: pointer;
}

/* ---------- Detail události ----------
   Vzhled jako stránka místa v Akcích v regionu: obsah na tónu pozadí webu,
   údaje a text v kartách se zeleným proužkem vlevo, zelený nadpis. */
.ma-hk-detail {
	margin: 0 0 14px;
	padding: 14px 16px;
	border: 1px solid #dfe8dc;
	border-left: 5px solid var(--hk-g);
	border-radius: 14px;
	background: linear-gradient(180deg, #f7fbf6 0%, #ffffff 100%);
	box-shadow: 0 6px 16px rgba(23, 63, 13, 0.035);
}

.ma-hk-detail__text {
	box-sizing: border-box;
	margin: 0 0 14px;
	padding: 20px 22px;
	border: 1px solid #dfe8dc;
	border-left: 5px solid #2a5f19;
	border-radius: 14px;
	background: #ffffff;
	color: #26331f;
	font-size: 17px;
	line-height: 1.7;
}

.ma-hk-detail__text > :first-child {
	margin-top: 0;
}

.ma-hk-detail__text > :last-child {
	margin-bottom: 0;
}

body.single-ma_vyroci #page.site {
	background-color: transparent;
}

body.single-ma_vyroci .gb-shape--divider svg {
	color: var(--ma-page-bg, #f4f6ef);
}

body.single-ma_vyroci .inside-article .entry-header {
	margin: 0 0 18px;
}

body.single-ma_vyroci .inside-article .entry-title {
	margin: 0;
	color: #2a5f19;
	font-size: clamp(30px, 3.4vw, 48px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.01em;
	overflow-wrap: break-word;
	text-wrap: balance;
}

body.single-ma_vyroci .ma-hk-detail__same {
	margin-top: 28px;
}

@media (max-width: 768px) {
	.ma-hk-detail,
	.ma-hk-detail__text {
		padding: 14px 16px;
		border-left-width: 4px;
	}

	.ma-hk-detail__text {
		font-size: 16px;
	}

	body.single-ma_vyroci .inside-article .entry-header {
		margin-bottom: 14px;
	}
}

.ma-hk-detail p {
	margin: 0;
}

.ma-hk-detail .ma-hk-detail__date {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--hk-g900);
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1.2;
}

.ma-hk-detail .ma-hk__icon {
	width: 38px;
	height: 38px;
}

.ma-hk-detail .ma-hk-detail__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

.ma-hk-detail .ma-hk-detail__vyroci {
	margin-top: 10px;
	color: var(--hk-g700);
	font-weight: 700;
}

.ma-hk-detail__clanek a {
	font-weight: 800;
}

/* Štítek „Správce události“ pod textem a zdroji */
.ma-hk-detail__spravce {
	display: flex;
	align-items: center;
	width: fit-content;
	gap: 10px;
	max-width: 100%;
	margin: 18px 0 0;
	padding: 6px 16px 6px 6px;
	border: 1px solid #dfe8dc;
	border-radius: 999px;
	background: #f4f8ef;
	color: #16331a;
	font-family: var(--ma-ui-font, inherit);
	font-size: 15px;
	line-height: 1.3;
}

.ma-hk-detail__spravce-ikona {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #0f4d18;
	color: #fcee1c;
}

.ma-hk-detail__spravce-text {
	min-width: 0;
}

.ma-hk-detail__spravce-label {
	margin-right: 4px;
	color: #1b641b;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ma-hk-detail__spravce strong {
	color: #0a3510;
	font-weight: 800;
}

/* Odkaz zpět na přehled: nad titulkem detailu a pod obsahem */
.ma-hk-detail__nav {
	margin: 0 0 12px;
	font-family: var(--ma-ui-font, inherit);
}

.ma-hk-detail__back {
	margin: 20px 0 0;
	font-family: var(--ma-ui-font, inherit);
}

.ma-hk-zpet,
.ma-hk-zpet:visited {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 16px;
	border: 1px solid var(--hk-line);
	border-radius: 999px;
	background: #ffffff;
	color: var(--hk-g);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.3;
	text-decoration: none !important;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ma-hk-zpet span {
	font-size: 1.25em;
	line-height: 1;
}

.ma-hk-zpet:hover,
.ma-hk-zpet:focus-visible {
	border-color: rgba(42, 95, 25, 0.4);
	background: var(--hk-soft);
	color: var(--hk-g900);
}

/* Kotva časové osy: po kliknutí na filtr zůstane stránka u osy */
.ma-hk-osa {
	scroll-margin-top: 16px;
}

.ma-hk-zdroje {
	margin: 0 0 14px;
	padding: 14px 18px;
	border: 1px solid #dfe8dc;
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 6px 16px rgba(23, 63, 13, 0.035);
}

.ma-hk-zdroje > summary {
	color: var(--hk-g900);
	font-weight: 800;
	cursor: pointer;
}

.ma-hk-zdroje > summary span {
	margin-left: 4px;
	color: var(--hk-muted);
	font-weight: 600;
}

.ma-hk-zdroje ul {
	margin: 10px 0 0 1.15rem;
	padding: 0;
}

.ma-hk-zdroje li {
	margin: 0 0 0.4rem;
	color: #3f4d3b;
	line-height: 1.5;
}

/* ---------- Text z Wikipedie na detailu události ---------- */
.ma-hk-wiki {
	box-sizing: border-box;
	margin: 0 0 14px;
	padding: 20px 22px;
	border: 1px solid #dfe8dc;
	border-left: 5px solid #2a5f19;
	border-radius: 14px;
	background: #ffffff;
	color: #26331f;
	font-size: 17px;
	line-height: 1.7;
}

.ma-hk-wiki::after {
	content: "";
	display: block;
	clear: both;
}

.ma-hk-wiki .ma-hk-wiki__kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 6px;
	color: var(--hk-g);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ma-hk-wiki .ma-hk-wiki__kicker::before {
	content: "";
	width: 22px;
	height: 3px;
	border-radius: 999px;
	background: var(--hk-y);
	box-shadow: 0 0 0 1px rgba(23, 63, 13, 0.12);
}

.ma-hk-wiki h2 {
	clear: both;
	margin: 1.1em 0 0.4em;
	color: var(--hk-g900);
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1.25;
}

.ma-hk-wiki h3,
.ma-hk-wiki h4 {
	margin: 1em 0 0.3em;
	color: var(--hk-g900);
	font-size: 1.1rem;
	font-weight: 800;
	line-height: 1.3;
}

.ma-hk-wiki .ma-hk-wiki__text > h2:first-child {
	margin-top: 0.2em;
}

.ma-hk-wiki p,
.ma-hk-wiki ul,
.ma-hk-wiki ol {
	margin: 0 0 0.9em;
}

.ma-hk-wiki ul,
.ma-hk-wiki ol {
	padding-left: 1.3em;
}

.ma-hk-wiki a.ma-hk-wiki__obec,
.ma-hk-wiki a.ma-hk-wiki__obec:visited {
	color: var(--hk-g);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.ma-hk-wiki a.ma-hk-wiki__obec:hover,
.ma-hk-wiki a.ma-hk-wiki__obec:focus-visible {
	color: var(--hk-g900);
	text-decoration-thickness: 2px;
}

.ma-hk-wiki .ma-hk-wiki__foto {
	margin: 0.3em 0 1.1em;
}

.ma-hk-wiki .ma-hk-wiki__foto img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

.ma-hk-wiki .ma-hk-wiki__foto figcaption {
	margin-top: 6px;
	color: #4c5d47;
	font-size: 14px;
	line-height: 1.45;
}

.ma-hk-wiki .ma-hk-wiki__kredit {
	display: block;
	color: #6a7865;
	font-size: 12.5px;
}

.ma-hk-wiki .ma-hk-wiki__kredit a,
.ma-hk-wiki .ma-hk-wiki__zdroj a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ma-hk-wiki .ma-hk-wiki__zdroj {
	clear: both;
	margin-top: 18px;
	padding-top: 12px;
	border-top: 1px solid #dfe8dc;
	color: #56704c;
	font-size: 13.5px;
	line-height: 1.5;
}

.ma-hk-wiki .ma-hk-wiki__zdroj p {
	margin: 0 0 4px;
}

@media (min-width: 900px) {
	.ma-hk-wiki .ma-hk-wiki__foto {
		float: right;
		width: 42%;
		margin: 0.35em 0 1em 22px;
	}
}

@media (max-width: 768px) {
	.ma-hk-wiki {
		padding: 14px 16px;
		border-left-width: 4px;
		font-size: 16px;
	}
}

/* Obce na detailu jako odkazy na výpis obce */
.ma-hk-detail a.ma-hk-chip,
.ma-hk-detail a.ma-hk-chip:visited {
	color: var(--hk-g900);
	text-decoration: none !important;
	transition: background-color 0.18s ease, border-color 0.18s ease;
}

.ma-hk-detail a.ma-hk-chip:hover,
.ma-hk-detail a.ma-hk-chip:focus-visible {
	border-color: var(--hk-g);
	background: #e5f1dd;
}

/* ---------- Hledání v kalendáři ---------- */
.ma-hk-hledat {
	box-sizing: border-box;
	min-width: 0;
	max-width: 100%;
	margin: 0;
	font-family: var(--ma-ui-font, inherit);
}

/* Úvod stránky kalendáře: pravý sloupec se nesmí roztáhnout podle obsahu
   (při zvětšeném písmu v telefonu vytlačilo pole hledání lupu za okraj). */
.ma-hk-stranka .ma-page-intro__aside {
	grid-template-columns: minmax(0, 1fr);
	min-width: 0;
}

.ma-hk-hledat--box {
	padding: 16px;
	border: 1px solid #dfe8dc;
	border-radius: 16px;
	background: #f4f7f0;
}

.ma-hk-hledat .ma-hk-hledat__titul {
	margin: 0 0 10px;
	color: #173f0d;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ma-hk-hledat .ma-hk-hledat__pole {
	display: flex;
	gap: 8px;
	align-items: stretch;
	min-width: 0;
}

/* Šířka 100 % místo výchozí šířky pole (size="20"), která rostla s velikostí písma. */
.ma-hk-hledat input[type="search"] {
	box-sizing: border-box;
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: 46px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #cfdcc9;
	border-radius: 12px;
	background: #ffffff;
	color: #16331a;
	font: inherit;
	font-size: 16px;
}

.ma-hk-hledat input[type="search"]:focus {
	border-color: #2a5f19;
	outline: 3px solid rgba(252, 238, 28, 0.6);
	outline-offset: 1px;
}

.ma-hk-hledat button[type="submit"] {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
	height: 46px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(180deg, #2a5f19 0%, #173f0d 100%);
	color: #ffffff;
	font: inherit;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
}

.ma-hk-hledat button[type="submit"]:hover,
.ma-hk-hledat button[type="submit"]:focus-visible {
	background: linear-gradient(180deg, #317021 0%, #173f0d 100%);
	outline: none;
	box-shadow: 0 8px 18px rgba(42, 95, 25, 0.25);
}

.ma-hk-hledat .ma-hk-hledat__tipy {
	margin: 10px 0 0;
	color: #56704c;
	font-size: 13.5px;
	line-height: 1.6;
}

.ma-hk-hledat .ma-hk-hledat__tipy a,
.ma-hk-hledat .ma-hk-hledat__tipy a:visited {
	display: inline-block;
	margin: 2px 4px 0 0;
	padding: 2px 10px;
	border: 1px solid #dfe8dc;
	border-radius: 999px;
	background: #ffffff;
	color: #173f0d;
	font-weight: 700;
	text-decoration: none !important;
}

.ma-hk-hledat .ma-hk-hledat__tipy a:hover,
.ma-hk-hledat .ma-hk-hledat__tipy a:focus-visible {
	border-color: #2a5f19;
	background: #e5f1dd;
}

.ma-hk-hledat--osa {
	margin: 0 0 14px;
}

.ma-hk-osa .ma-hk-osa__info {
	margin: 0 0 14px;
	padding: 10px 14px;
	border: 1px solid #eee0a6;
	border-radius: 12px;
	background: #fffbe8;
	color: #3f4d3b;
	font-size: 15px;
}

.ma-hk-osa .ma-hk-osa__info a {
	color: #173f0d;
	font-weight: 800;
}

@media (max-width: 480px) {
	.ma-hk-hledat button[type="submit"] span {
		display: none;
	}
}

/* ---------- Karta obce nad časovou osou ---------- */
.ma-hk-obec {
	display: grid;
	grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
	gap: 20px;
	align-items: start;
	margin: 16px 0 18px;
	padding: 16px;
	border: 1px solid #dfe8dc;
	border-left: 5px solid #2a5f19;
	border-radius: 14px;
	background: linear-gradient(180deg, #f7fbf6 0%, #ffffff 100%);
}

.ma-hk-obec .ma-hk-obec__foto {
	margin: 0;
}

.ma-hk-obec .ma-hk-obec__foto img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 12px;
}

.ma-hk-obec .ma-hk-obec__foto figcaption {
	margin-top: 6px;
	color: #6a7865;
	font-size: 12px;
	line-height: 1.4;
}

.ma-hk-obec .ma-hk-obec__kicker {
	margin: 0 0 4px;
	color: var(--hk-g);
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ma-hk-obec .ma-hk-obec__nazev {
	margin: 0 0 8px;
	color: var(--hk-g900);
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.2;
}

.ma-hk-obec p {
	margin: 0 0 8px;
	line-height: 1.6;
}

.ma-hk-obec .ma-hk-obec__zdroj {
	margin-top: 10px;
	color: #56704c;
	font-size: 13px;
}

.ma-hk-obec .ma-hk-obec__zdroj a {
	color: inherit;
	text-decoration: underline;
}

@media (max-width: 700px) {
	.ma-hk-obec {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Detail události: rozložení s pravým sidebarem jako u článků ----------
   Stejné míry jako bloky „MA – rozložení jednotlivého článku“ a „přehledů“ v Dodatečném CSS:
   od 1361 px 1396 px, od 1025 do 1360 px 1264 px, sidebar 300 px, mezera 32 px,
   od 1024 px dolů je sidebar pod obsahem. */
@media screen {
	body.single-ma_vyroci.right-sidebar #page.site.grid-container {
		box-sizing: border-box;
		width: calc(100% - 64px);
		max-width: 1396px;
		margin-left: auto;
		margin-right: auto;
	}

	body.single-ma_vyroci.right-sidebar #page > .site-content {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 300px;
		column-gap: 32px;
		align-items: start;
		padding: 40px 0 72px;
	}

	body.single-ma_vyroci.right-sidebar #primary.content-area,
	body.single-ma_vyroci.right-sidebar #right-sidebar {
		box-sizing: border-box;
		width: auto;
		min-width: 0;
		max-width: 100%;
	}

	/* Mezeru mezi sloupci řídí grid; původní margin se nepřičítá. */
	body.single-ma_vyroci.right-sidebar #primary #main.site-main {
		margin: 0;
	}
}

@media screen and (min-width: 1025px) {
	/* Hlavička jako u článků: bez třetího prázdného sloupce. */
	body.single-ma_vyroci.right-sidebar .ma-main-header__inner,
	body.single-ma_vyroci.right-sidebar .ma-main-header > .gb-container {
		grid-template-columns: minmax(340px, 470px) minmax(0, 1fr) !important;
	}

	body.single-ma_vyroci.right-sidebar.ma-header-compact .ma-main-header__inner,
	body.single-ma_vyroci.right-sidebar.ma-header-compact .ma-main-header > .gb-container {
		grid-template-columns: 96px minmax(0, 1fr) !important;
	}
}

@media screen and (min-width: 1025px) and (max-width: 1360px) {
	body.single-ma_vyroci.right-sidebar #page.site.grid-container {
		width: calc(100% - 56px);
		max-width: 1264px;
	}

	body.single-ma_vyroci.right-sidebar .ma-main-header__inner,
	body.single-ma_vyroci.right-sidebar .ma-main-header > .gb-container {
		grid-template-columns: minmax(300px, 420px) minmax(0, 1fr) !important;
	}

	body.single-ma_vyroci.right-sidebar.ma-header-compact .ma-main-header__inner,
	body.single-ma_vyroci.right-sidebar.ma-header-compact .ma-main-header > .gb-container {
		grid-template-columns: 88px minmax(0, 1fr) !important;
	}
}

@media screen and (max-width: 1024px) {
	body.single-ma_vyroci.right-sidebar #page.site.grid-container {
		width: calc(100% - 32px);
	}

	body.single-ma_vyroci.right-sidebar #page > .site-content {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 40px;
		padding-top: 32px;
	}
}

@media screen and (max-width: 768px) {
	body.single-ma_vyroci.right-sidebar #page > .site-content {
		padding-top: 24px;
		padding-bottom: 48px;
	}
}

/* ---------- Kontrastní čtení (box vložený do textu článku) ---------- */
body.ma-article-contrast-enabled .ma-article-contrast-scope .ma-hk--karta,
body.ma-article-contrast-enabled .ma-article-contrast-scope .ma-hk--seznam,
body.ma-article-contrast-enabled .ma-article-contrast-scope .ma-hk__link:hover,
body.ma-article-contrast-enabled .ma-article-contrast-scope .ma-hk__link:focus-visible,
body.ma-article-contrast-enabled .ma-article-contrast-scope .ma-hk-vypis__item {
	border-color: rgba(252, 238, 28, 0.24) !important;
	background: #162012 !important;
}

body.ma-article-contrast-enabled.single-post .ma-article-contrast-scope .ma-hk .ma-hk__num,
body.ma-article-contrast-enabled.single-post .ma-article-contrast-scope .ma-hk .ma-hk__num *,
body.ma-article-contrast-enabled.single-post .ma-article-contrast-scope .ma-hk .ma-hk__icon,
body.ma-article-contrast-enabled.single-post .ma-article-contrast-scope .ma-hk .ma-hk__badge,
body.ma-article-contrast-enabled.single-post .ma-article-contrast-scope .ma-hk-vypis .ma-hk-vypis__tag {
	color: #0a3510 !important;
}

body.ma-article-contrast-enabled.single-post .ma-article-contrast-scope .ma-hk .ma-hk__badge {
	background: var(--hk-y) !important;
}

body.ma-article-contrast-enabled.single-post .ma-article-contrast-scope .ma-hk--pruh .ma-hk__link {
	background: #162012 !important;
}

@media (prefers-reduced-motion: reduce) {
	.ma-hk__link,
	.ma-hk__more svg {
		transition: none !important;
	}
}

@media print {
	.ma-hk,
	.ma-hk-detail__nav,
	.ma-hk-detail__back {
		display: none !important;
	}
}

/* ---------- Banner na úvodní stránku [ma_hk_banner] ----------
   Stejná rodina jako pásy Akcí a Inzerce (paprsky, předmět vlevo, nadpis, tlačítka, tři karty),
   jen v tónu starého papíru. Pás jde přes celou šířku okna (border-image s přesahem 100vw). */
.ma-hk--banner {
	--hb-g900: #0a3510;
	--hb-g800: #0f4d18;
	--hb-g700: #1b641b;
	--hb-y: #fcee1c;
	--hb-brown: #7a4d27;
	--hb-ink: #2e2716;
	--hb-p1: #efe0bd;
	--hb-p2: #f6ead0;
	position: relative;
	isolation: isolate;
	margin: 0 0 48px;
	padding: clamp(36px, 4.6vw, 60px) 0;
	color: var(--hb-ink);
	background-color: var(--hb-p1);
	border-image: repeating-conic-gradient(from -3deg, var(--hb-p1) 0deg 6.43deg, var(--hb-p2) 6.43deg 12.86deg) 0 fill / 0 / 0 100vw stretch;
}

.ma-hk--banner::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	border-image: radial-gradient(1000px 540px at 50% 45%, rgba(255, 250, 236, 0.85) 0%, rgba(255, 250, 236, 0.3) 45%, rgba(255, 250, 236, 0) 72%) 0 fill / 0 / 0 100vw stretch;
}

.ma-hk--banner::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	border-top: 5px solid var(--hb-g800);
	border-bottom: 5px solid var(--hb-g800);
	border-image: linear-gradient(var(--hb-g800), var(--hb-g800)) 5 0 / 5px 0 / 0 100vw;
}

.ma-hk--banner :where(p, h2, ul, li) {
	margin: 0 !important;
	padding: 0;
}

.ma-hk--banner a:focus-visible {
	outline: 3px solid var(--hb-g800);
	outline-offset: 3px;
}

.ma-hk-banner__confetti {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.ma-hk-banner__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	grid-template-areas:
		"visual body"
		"upcoming upcoming";
	align-items: center;
	gap: clamp(20px, 3vw, 40px) clamp(24px, 4vw, 56px);
	width: min(100% - 2rem, 1240px);
	margin: 0 auto;
}

/* Kalendářní list */
.ma-hk-banner__visual {
	grid-area: visual;
	position: relative;
	padding: clamp(10px, 1.6vw, 22px) clamp(8px, 2vw, 24px);
}

.ma-hk-banner__sheet-link {
	display: block;
	max-width: 540px;
	margin: 0 auto;
}

.ma-hk-banner__sheet {
	width: 100%;
	height: auto;
	overflow: visible;
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ma-hk-banner__visual:hover .ma-hk-banner__sheet {
	transform: rotate(3deg) scale(1.02);
}

.ma-hk-banner__sheet text {
	font-family: var(--ma-heading-font, var(--ma-ui-font, inherit));
	font-weight: 800;
}

.ma-hk-banner__t-top {
	fill: var(--hb-y);
	font-size: 17px;
	letter-spacing: 2px;
}

.ma-hk-banner__t-big {
	fill: var(--hb-g900);
	font-size: 96px;
	letter-spacing: -2px;
}

.ma-hk-banner__t-sub {
	fill: var(--hb-brown);
	font-size: 46px;
}

.ma-hk-banner__t-stub {
	fill: var(--hb-g700);
	font-size: 16px;
	letter-spacing: 2px;
}

.ma-hk-banner__t-day {
	fill: var(--hb-g900);
	font-size: 98px;
	letter-spacing: -3px;
}

.ma-hk-banner__t-month {
	fill: var(--hb-brown);
	font-size: 21px;
	letter-spacing: 2px;
}

/* Nálepky */
.ma-hk-banner__sticker {
	position: absolute;
	width: clamp(52px, 5.6vw, 80px);
	height: clamp(52px, 5.6vw, 80px);
	pointer-events: none;
	filter: drop-shadow(4px 7px 0 rgba(90, 61, 22, 0.2));
	animation: ma-hk-bob 4.5s ease-in-out infinite;
}

.ma-hk-banner__sticker svg {
	display: block;
	width: 100%;
	height: 100%;
}

.ma-hk-banner__sticker--hodiny {
	top: -4%;
	left: 1%;
}

.ma-hk-banner__sticker--vlak {
	bottom: -6%;
	left: 7%;
	animation-delay: -1.5s;
}

.ma-hk-banner__sticker--rozhledna {
	right: 3%;
	bottom: -2%;
	animation-delay: -3s;
}

@keyframes ma-hk-bob {
	0%,
	100% {
		translate: 0 0;
	}

	50% {
		translate: 0 -8px;
	}
}

/* Text a tlačítka */
.ma-hk-banner__body {
	grid-area: body;
}

.ma-hk--banner .ma-hk-banner__kicker {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 0.95rem;
	border-radius: 999px;
	background: var(--hb-g800);
	box-shadow: 0 6px 14px rgba(15, 77, 24, 0.2);
	color: var(--hb-y) !important;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
}

.ma-hk--banner .ma-hk-banner__title {
	margin-top: 14px !important;
	color: var(--hb-g900) !important;
	font-family: var(--ma-heading-font, inherit);
	font-size: clamp(30px, 4vw, 54px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.ma-hk-banner__title span {
	display: block;
	color: var(--hb-brown);
}

.ma-hk--banner .ma-hk-banner__text {
	max-width: 36rem;
	margin-top: 14px !important;
	color: #3d3522 !important;
	font-size: clamp(16px, 1.3vw, 18px);
	font-weight: 500;
	line-height: 1.55;
	text-wrap: pretty;
}

.ma-hk-hledat--banner {
	max-width: 32rem;
	margin: 18px 0 0;
}

.ma-hk-hledat--banner .ma-hk-hledat__pole {
	display: flex;
	align-items: stretch;
	gap: 6px;
	padding: 5px;
	border: 2px solid rgba(15, 77, 24, 0.22);
	border-radius: 999px;
	background: #ffffff;
	box-shadow: 0 8px 18px rgba(90, 61, 22, 0.12);
}

.ma-hk-hledat--banner .ma-hk-hledat__pole:focus-within {
	border-color: var(--hb-g800);
}

.ma-hk-hledat--banner input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	margin: 0;
	padding: 0 8px 0 16px;
	border: 0 !important;
	border-radius: 999px;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--hb-ink);
	font: inherit;
	font-size: 16px;
	outline: none;
}

.ma-hk-hledat--banner input[type="search"]::placeholder {
	color: #7b7258;
	opacity: 1;
}

.ma-hk-hledat--banner button {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
	height: 44px;
	margin: 0;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: var(--hb-g800);
	color: #ffffff;
	font: inherit;
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.18s;
}

.ma-hk-hledat--banner button:hover,
.ma-hk-hledat--banner button:focus-visible {
	background: var(--hb-g900);
}

.ma-hk-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 18px;
}

.ma-hk--banner .ma-hk-banner__btn,
.ma-hk--banner .ma-hk-banner__btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 24px;
	border: 2px solid transparent;
	border-radius: 999px;
	background-color: #1f5a17;
	box-shadow: 0 10px 20px rgba(15, 77, 24, 0.28);
	color: #ffffff !important;
	font-size: 16px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
	transition: transform 0.18s, box-shadow 0.18s, background-color 0.18s;
}

.ma-hk--banner .ma-hk-banner__btn svg {
	width: 18px;
	height: 18px;
	transition: transform 0.18s;
}

.ma-hk--banner .ma-hk-banner__btn:hover,
.ma-hk--banner .ma-hk-banner__btn:focus-visible {
	background-color: #173f0d;
	box-shadow: 0 14px 26px rgba(15, 77, 24, 0.34);
	transform: translateY(-2px);
	color: #ffffff !important;
}

.ma-hk--banner .ma-hk-banner__btn:hover svg {
	transform: translateX(3px);
}

.ma-hk--banner .ma-hk-banner__btn--ghost,
.ma-hk--banner .ma-hk-banner__btn--ghost:visited {
	border-color: var(--hb-g800);
	background-color: #ffffff;
	box-shadow: 0 6px 14px rgba(15, 77, 24, 0.14);
	color: var(--hb-g800) !important;
}

.ma-hk--banner .ma-hk-banner__btn--ghost:hover,
.ma-hk--banner .ma-hk-banner__btn--ghost:focus-visible {
	background-color: #ffffff;
	box-shadow: 0 10px 20px rgba(15, 77, 24, 0.22);
	color: var(--hb-g900) !important;
}

.ma-hk--banner .ma-hk-banner__btn--ghost:hover svg {
	transform: rotate(90deg);
}

/* Výročí v těchto dnech */
.ma-hk-banner__upcoming {
	grid-area: upcoming;
	padding-top: clamp(4px, 1vw, 10px);
}

.ma-hk--banner .ma-hk-banner__label {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px !important;
	color: var(--hb-g800) !important;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ma-hk-banner__label::after {
	content: "";
	flex: 1 1 auto;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, rgba(15, 77, 24, 0.45), rgba(15, 77, 24, 0));
}

.ma-hk-banner__events {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.ma-hk-banner__events li {
	min-width: 0;
}

.ma-hk--banner .ma-hk-banner__event {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	height: 100%;
	padding: 14px 16px;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 10px 24px rgba(90, 61, 22, 0.16);
	color: #1f2f1b !important;
	transition: transform 0.18s, box-shadow 0.18s;
}

.ma-hk--banner .ma-hk-banner__event:hover,
.ma-hk--banner .ma-hk-banner__event:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 16px 30px rgba(90, 61, 22, 0.24);
}

.ma-hk-banner__num {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 62px;
	padding: 9px 0 8px;
	border-radius: 12px;
	background: var(--hb-y);
	color: var(--hb-g900);
	line-height: 1;
	text-align: center;
}

.ma-hk-banner__num b {
	font-size: 25px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.ma-hk-banner__num small {
	margin-top: 3px;
	font-size: 12px;
	font-weight: 700;
}

.ma-hk-banner__item--dnes .ma-hk-banner__num,
.ma-hk-banner__item--behem .ma-hk-banner__num {
	background: var(--hb-g800);
	color: var(--hb-y);
}

.ma-hk-banner__info {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.ma-hk-banner__when {
	color: var(--hb-g700);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

.ma-hk-banner__info strong {
	display: -webkit-box;
	overflow: hidden;
	color: var(--hb-g900);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.25;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.ma-hk-banner__where {
	overflow: hidden;
	color: #6b6047;
	font-size: 13px;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (max-width: 980px) {
	.ma-hk-banner__events {
		grid-template-columns: 1fr;
		gap: 10px;
	}
}

@media (max-width: 880px) {
	.ma-hk-banner__inner {
		grid-template-columns: 1fr;
		grid-template-areas:
			"visual"
			"body"
			"upcoming";
		gap: 18px;
	}

	.ma-hk-banner__visual {
		width: min(100%, 420px);
		margin: 0 auto;
	}
}

@media (max-width: 560px) {
	.ma-hk--banner {
		margin: 0 0 32px;
		padding: 28px 0 32px;
	}

	.ma-hk-banner__inner {
		width: min(100% - 1.5rem, 1240px);
	}

	.ma-hk--banner .ma-hk-banner__confetti {
		display: none;
	}

	.ma-hk-banner__actions {
		flex-direction: column;
	}

	.ma-hk--banner .ma-hk-banner__btn {
		width: 100%;
	}

	.ma-hk-hledat--banner button span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.ma-hk-hledat--banner button {
		padding: 0 14px;
	}

	.ma-hk--banner .ma-hk-banner__event {
		padding: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ma-hk-banner__sticker {
		animation: none;
	}

	.ma-hk-banner__sheet,
	.ma-hk--banner .ma-hk-banner__event,
	.ma-hk--banner .ma-hk-banner__btn,
	.ma-hk--banner .ma-hk-banner__btn svg {
		transition: none;
		transform: none !important;
	}
}

/* ---------- Malá karta [ma_hk_mini] ----------
   Do sloupce s obsahem (např. pod stránkování přehledu článků). Tón starého papíru jako banner. */
.ma-hk--mini {
	--hm-g900: #0a3510;
	--hm-g800: #0f4d18;
	--hm-g700: #1b641b;
	--hm-y: #fcee1c;
	position: relative;
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 32px 0 0;
	padding: 16px 18px 16px 26px;
	border: 1px solid #e6d3a8;
	border-radius: 18px;
	background:
		radial-gradient(120% 160% at 0% 0%, rgba(255, 250, 236, 0.9) 0%, rgba(255, 250, 236, 0) 60%),
		linear-gradient(135deg, #f8eed7 0%, #f0e0bb 100%);
	box-shadow: 0 10px 24px rgba(90, 61, 22, 0.12);
	color: #2e2716;
}

.ma-hk--mini::before {
	content: "";
	position: absolute;
	top: 14px;
	bottom: 14px;
	left: 0;
	width: 5px;
	border-radius: 0 4px 4px 0;
	background: var(--hm-g800);
}

.ma-hk-mini__ikona {
	position: absolute;
	top: -14px;
	left: -10px;
	width: 40px;
	height: 40px;
	transform: rotate(-10deg);
	filter: drop-shadow(3px 4px 0 rgba(90, 61, 22, 0.18));
	pointer-events: none;
}

.ma-hk-mini__ikona svg {
	width: 100%;
	height: 100%;
}

.ma-hk--mini .ma-hk-mini__vyroci {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	gap: 16px;
	min-width: 0;
	color: inherit !important;
}

.ma-hk-mini__num {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 66px;
	padding: 10px 0 9px;
	border-radius: 12px;
	background: var(--hm-y);
	color: var(--hm-g900);
	line-height: 1;
	text-align: center;
	box-shadow: 0 6px 12px rgba(90, 61, 22, 0.14);
}

.ma-hk-mini__num b {
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.ma-hk-mini__num small {
	margin-top: 3px;
	font-size: 12px;
	font-weight: 700;
}

.ma-hk-mini__vyroci--dnes .ma-hk-mini__num,
.ma-hk-mini__vyroci--behem .ma-hk-mini__num {
	background: var(--hm-g800);
	color: var(--hm-y);
}

.ma-hk-mini__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.ma-hk-mini__kicker {
	color: var(--hm-g700);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

.ma-hk-mini__title {
	display: -webkit-box;
	overflow: hidden;
	color: var(--hm-g900);
	font-size: 19px;
	font-weight: 800;
	line-height: 1.25;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	transition: color 0.18s;
}

.ma-hk--mini .ma-hk-mini__vyroci:hover .ma-hk-mini__title,
.ma-hk--mini .ma-hk-mini__vyroci:focus-visible .ma-hk-mini__title {
	color: var(--hm-g700);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.ma-hk-mini__meta {
	overflow: hidden;
	color: #6b6047;
	font-size: 14px;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ma-hk--mini .ma-hk-mini__btn,
.ma-hk--mini .ma-hk-mini__btn:visited {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 18px;
	border-radius: 999px;
	background-color: #1f5a17;
	box-shadow: 0 8px 16px rgba(15, 77, 24, 0.24);
	color: #ffffff !important;
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
	transition: transform 0.18s, box-shadow 0.18s, background-color 0.18s;
}

.ma-hk--mini .ma-hk-mini__btn svg {
	width: 17px;
	height: 17px;
	transition: transform 0.18s;
}

.ma-hk--mini .ma-hk-mini__btn:hover,
.ma-hk--mini .ma-hk-mini__btn:focus-visible {
	background-color: #173f0d;
	box-shadow: 0 12px 22px rgba(15, 77, 24, 0.3);
	transform: translateY(-2px);
	color: #ffffff !important;
}

.ma-hk--mini .ma-hk-mini__btn:hover svg {
	transform: translateX(3px);
}

.ma-hk--mini a:focus-visible {
	outline: 3px solid var(--hm-g800);
	outline-offset: 3px;
	border-radius: 12px;
}

@media (max-width: 640px) {
	.ma-hk--mini {
		flex-wrap: wrap;
		gap: 14px;
		padding: 16px 14px 14px 20px;
	}

	.ma-hk--mini .ma-hk-mini__btn {
		width: 100%;
	}

	.ma-hk-mini__title {
		font-size: 17px;
	}

	.ma-hk-mini__meta {
		white-space: normal;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ma-hk--mini .ma-hk-mini__btn,
	.ma-hk--mini .ma-hk-mini__btn svg {
		transition: none;
		transform: none !important;
	}
}
