/*
 * Roft Builder: média a interaktivní prvky (úkol B7).
 * Galerie, video, slider, karusel, akordeon, záložky, mapa, menu, počítadlo.
 * Zařízení podle Style\Breakpoints: desktop >= 992 px, tablet 768–991.98 px, mobil <= 767.98 px.
 * Nastavitelné hodnoty jsou CSS proměnné, které plní controly prvků (StyleCompiler).
 */

/* ---------- Společné ---------- */
/* Hláška v editoru; nulová specificita, aby přednost měl společný vzhled .rb-placeholder z widgets-basic.css. */
:where(.rb-media-placeholder) {
	padding: 24px 16px;
	border: 1px dashed rgba(0, 0, 0, .25);
	border-radius: 4px;
	background: rgba(0, 0, 0, .03);
	color: #6c757d;
	font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	text-align: center;
}

/* ---------- Galerie ---------- */
.rb-gallery {
	--rb-gallery-gap: 10px;
	gap: var(--rb-gallery-gap);
}

.rb-gallery-grid {
	display: grid;
	grid-template-columns: repeat(var(--rb-gallery-cols, 3), minmax(0, 1fr));
}

.rb-gallery-item {
	position: relative;
	display: block;
	overflow: hidden;
	margin: 0;
	color: inherit;
	text-decoration: none;
}

.rb-gallery-grid .rb-gallery-item {
	height: var(--rb-gallery-h, auto);
	aspect-ratio: var(--rb-gallery-ar, auto);
}

.rb-gallery-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: var(--rb-gallery-fit, cover);
	transition: transform .4s ease;
}

.rb-gallery-item::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-color: transparent;
	transition: background-color .3s ease;
}

.rb-gallery-hover-zoom .rb-gallery-item:hover img {
	transform: scale(1.06);
}

.rb-gallery-hover-darken .rb-gallery-item:hover::after {
	background-color: rgba(0, 0, 0, .35);
}

.rb-gallery-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	padding: 8px 12px;
	background: rgba(0, 0, 0, .45);
	color: #fff;
	font-size: .875rem;
	line-height: 1.3;
}

/* Řádky stejné výšky, šířka podle poměru stran (--rb-ar doplní widgets-media.js z rozměrů obrázku). */
.rb-gallery-justified {
	--rb-gallery-row-h: 220px;
	display: flex;
	flex-wrap: wrap;
}

.rb-gallery-justified .rb-gallery-item {
	flex-grow: calc(var(--rb-ar, 1.5) * 100);
	flex-basis: calc(var(--rb-ar, 1.5) * var(--rb-gallery-row-h));
	height: var(--rb-gallery-row-h);
}

.rb-gallery-justified::after {
	content: "";
	flex-grow: 999999;
}

@media (max-width: 767.98px) {
	.rb-gallery-justified .rb-gallery-item {
		flex-basis: 100%;
	}
}

/* Mozaika detailu (B0): 1 velká + 4 malé (a) nebo 2 velké + 2 malé (b), tlačítko všech fotek vlevo dole. */
.rb-gallery-mosaic {
	--rb-gallery-gap: 8px;
	--rb-gallery-mosaic-h: 520px;
	position: relative;
	display: grid;
	grid-template-rows: repeat(2, minmax(0, 1fr));
	height: var(--rb-gallery-mosaic-h);
}

.rb-gallery-mosaic .rb-gallery-item {
	min-height: 0;
	border-radius: 14px;
}

.rb-gallery-mosaic > .rb-gallery-extra {
	display: none;
}

.rb-gallery-mosaic-a {
	grid-template-columns: 2fr 1fr 1fr;
}

.rb-gallery-mosaic-b {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rb-gallery-mosaic > .rb-gallery-item:first-child,
.rb-gallery-mosaic-b > .rb-gallery-item:nth-child(2) {
	grid-row: span 2;
}

.rb-gallery-mosaic-a.rb-gallery-mosaic-n4 > .rb-gallery-item:nth-child(2),
.rb-gallery-mosaic-b.rb-gallery-mosaic-n3 > .rb-gallery-item:nth-child(3) {
	grid-row: span 2;
}

.rb-gallery-mosaic-a.rb-gallery-mosaic-n3 {
	grid-template-columns: 2fr 1fr;
}

.rb-gallery-mosaic.rb-gallery-mosaic-n2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rb-gallery-mosaic.rb-gallery-mosaic-n1 {
	grid-template-columns: minmax(0, 1fr);
}

.rb-gallery-mosaic.rb-gallery-mosaic-n2 > .rb-gallery-item,
.rb-gallery-mosaic.rb-gallery-mosaic-n1 > .rb-gallery-item {
	grid-row: span 2;
}

.rb-gallery-all {
	position: absolute;
	left: 16px;
	bottom: 16px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 8px 18px;
	border: 1px solid rgba(0, 0, 0, .06);
	border-radius: 999px;
	background: var(--rb-gallery-all-bg, #fff);
	color: var(--rb-gallery-all-color, #111827);
	font: inherit;
	font-size: 14px;
	line-height: 1.2;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
	cursor: pointer;
	transition: background-color .2s;
}

.rb-gallery-all:hover {
	background: var(--rb-gallery-all-hover-bg, #f3f4f6);
}

.rb-gallery-all-count {
	opacity: .6;
}

@media (max-width: 991.98px) {
	.rb-gallery-mosaic {
		--rb-gallery-mosaic-h: 400px;
	}
}

@media (max-width: 767.98px) {
	.rb-gallery-mosaic,
	.rb-gallery-mosaic[class] {
		display: block;
		height: auto;
	}

	.rb-gallery-mosaic > .rb-gallery-item:first-child {
		aspect-ratio: 4 / 3;
	}

	.rb-gallery-mosaic > .rb-gallery-item:not(:first-child) {
		display: none;
	}
}

/* ---------- Video ---------- */
.rb-video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #000;
}

.rb-video > iframe,
.rb-video > video,
.rb-video > .rb-video-poster {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.rb-video > .rb-video-poster {
	object-fit: cover;
}

.rb-video-lite {
	cursor: pointer;
}

.rb-video-lite::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background-color: transparent;
	transition: background-color .3s ease;
}

.rb-video-play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: inline-flex;
	color: #fff;
	font-size: 70px;
	line-height: 1;
	transform: translate(-50%, -50%);
	transition: color .2s ease, transform .2s ease;
}

.rb-video-play:hover,
.rb-video-play:focus-visible {
	color: #fff;
	transform: translate(-50%, -50%) scale(1.06);
}

.rb-video-play:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
	border-radius: 50%;
}

.rb-video-play-icon {
	display: block;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35));
}

.rb-video.is-playing::after,
.rb-video.is-playing .rb-video-play,
.rb-video.is-playing .rb-video-poster {
	display: none;
}

/* ---------- Slider a karusel (Swiper) ---------- */
.rb-swiper {
	position: relative;
	overflow: hidden;
}

/* Bez Swiperu (nenačtený skript, editor): první snímek u slideru, vodorovný pás u karuselu. */
.rb-swiper:not(.swiper-initialized) > .swiper-wrapper {
	display: flex;
}

.rb-slider:not(.swiper-initialized) > .swiper-wrapper > .swiper-slide:not(:first-child) {
	display: none;
}

.rb-carousel:not(.swiper-initialized) > .swiper-wrapper {
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
}

.rb-carousel:not(.swiper-initialized) .rb-carousel-slide {
	flex: 0 0 calc((100% - 40px) / 3);
	scroll-snap-align: start;
}

@media (max-width: 991.98px) {
	.rb-carousel:not(.swiper-initialized) .rb-carousel-slide {
		flex-basis: calc((100% - 20px) / 2);
	}
}

@media (max-width: 767.98px) {
	.rb-carousel:not(.swiper-initialized) .rb-carousel-slide {
		flex-basis: 100%;
	}
}

.rb-slider {
	height: 500px;
	color: #fff;
}

.rb-slider > .swiper-wrapper,
.rb-slide {
	height: 100%;
}

.rb-slide {
	position: relative;
	flex-shrink: 0;
	width: 100%;
	overflow: hidden;
	background-color: #222;
}

.rb-slide-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rb-slide-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.rb-slide-inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 40px 60px;
}

.rb-slide-content {
	max-width: 800px;
	text-align: center;
}

.rb-slide-heading {
	margin: 0 0 16px;
	color: inherit;
}

.rb-slide-text {
	margin-bottom: 24px;
}

.rb-slide-button {
	display: inline-block;
	padding: 12px 28px;
	border: 1px solid currentColor;
	color: inherit;
	text-decoration: none;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.rb-carousel-item {
	position: relative;
	display: block;
	height: 300px;
	overflow: hidden;
}

.rb-carousel-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rb-carousel-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 8px 12px;
	background: rgba(0, 0, 0, .45);
	color: #fff;
	font-size: .875rem;
}

.rb-swiper-prev,
.rb-swiper-next {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2em;
	height: 2em;
	margin-top: -1em;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .35);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease, opacity .2s ease;
}

.rb-swiper-prev { left: 12px; }
.rb-swiper-next { right: 12px; }

.rb-swiper-prev:hover,
.rb-swiper-next:hover {
	background: rgba(0, 0, 0, .55);
}

.rb-swiper-prev.swiper-button-disabled,
.rb-swiper-next.swiper-button-disabled {
	opacity: .35;
	cursor: default;
}

.rb-swiper:not(.swiper-initialized) .rb-swiper-prev,
.rb-swiper:not(.swiper-initialized) .rb-swiper-next,
.rb-swiper:not(.swiper-initialized) .rb-swiper-dots {
	display: none;
}

.rb-swiper .rb-swiper-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14px;
	z-index: 5;
}

.rb-swiper-dots .swiper-pagination-bullet {
	background-color: #fff;
	opacity: .55;
}

.rb-swiper-dots .swiper-pagination-bullet-active {
	opacity: 1;
}

/* ---------- Akordeon ---------- */
.rb-accordion {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.rb-acc-item {
	border-bottom: 1px solid rgba(0, 0, 0, .125);
}

.rb-acc-title {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 0;
	cursor: pointer;
	list-style: none;
	transition: color .2s ease, background-color .2s ease;
}

.rb-acc-title::-webkit-details-marker {
	display: none;
}

.rb-acc-title::marker {
	content: "";
}

.rb-acc-title:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.rb-acc-title-text {
	flex: 1 1 auto;
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.4;
	color: inherit;
}

.rb-acc-icon-left .rb-acc-title {
	flex-direction: row-reverse;
}

.rb-acc-icon {
	position: relative;
	flex: 0 0 auto;
	width: 1em;
	height: 1em;
	font-size: 14px;
	transition: transform .3s ease;
}

.rb-acc-icon-chevron::before {
	content: "";
	position: absolute;
	top: 18%;
	left: 22%;
	width: 56%;
	height: 56%;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}

.rb-acc-item[open] > .rb-acc-title .rb-acc-icon-chevron {
	transform: rotate(180deg);
}

.rb-acc-icon-plus::before,
.rb-acc-icon-plus::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	margin-top: -1px;
	background: currentColor;
	transition: transform .3s ease;
}

.rb-acc-icon-plus::after {
	transform: rotate(90deg);
}

.rb-acc-item[open] > .rb-acc-title .rb-acc-icon-plus::after {
	transform: rotate(0deg);
}

.rb-acc-content {
	padding: 0 0 16px;
	overflow: hidden;
}

.rb-acc-content > :last-child {
	margin-bottom: 0;
}

/* ---------- Záložky ---------- */
.rb-tabs-nav {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	scrollbar-width: thin;
	border-bottom: 1px solid rgba(0, 0, 0, .125);
}

.rb-tab {
	flex: 0 0 auto;
	padding: 12px 20px;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
	opacity: .7;
	transition: color .2s ease, background-color .2s ease, opacity .2s ease;
}

.rb-tab:hover,
.rb-tab.is-active {
	opacity: 1;
}

.rb-tab.is-active {
	box-shadow: inset 0 -2px 0 currentColor;
}

.rb-tab:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

.rb-tab-panel {
	padding: 20px 0;
}

.rb-tab-panel > :last-child {
	margin-bottom: 0;
}

.rb-js .rb-tab-panel:not(.is-active) {
	display: none;
}

.rb-tabs-vertical {
	display: flex;
	gap: 24px;
}

.rb-tabs-vertical .rb-tabs-nav {
	flex: 0 0 auto;
	flex-direction: column;
	overflow: visible;
	border-bottom: 0;
	border-right: 1px solid rgba(0, 0, 0, .125);
}

.rb-tabs-vertical .rb-tab {
	text-align: left;
}

.rb-tabs-vertical .rb-tab.is-active {
	box-shadow: inset -2px 0 0 currentColor;
}

.rb-tabs-vertical .rb-tabs-panels {
	flex: 1 1 auto;
	min-width: 0;
}

.rb-tabs-vertical .rb-tab-panel {
	padding-top: 0;
}

@media (max-width: 767.98px) {
	.rb-tabs-vertical {
		flex-direction: column;
	}

	.rb-tabs-vertical .rb-tabs-nav {
		flex-direction: row;
		overflow-x: auto;
		border-right: 0;
		border-bottom: 1px solid rgba(0, 0, 0, .125);
	}
}

/* ---------- Mapa ---------- */
.rb-map {
	overflow: hidden;
	line-height: 0;
}

.rb-map iframe {
	display: block;
	width: 100%;
	height: 400px;
	border: 0;
}

/* ---------- Počítadlo ---------- */
.rb-counter {
	text-align: center;
}

/* inline-block: přechod v textu (background-clip) a obrys se řídí šířkou čísla, zarovnání podle text-align. */
.rb-counter-number-wrap {
	display: inline-block;
	font-size: 3rem;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.rb-counter-title {
	display: block;
	margin: 0;
	color: inherit;
}

.rb-counter-title-below .rb-counter-title {
	margin-top: 8px;
}

.rb-counter-title-above .rb-counter-title {
	margin-bottom: 8px;
}

/* ---------- Menu ---------- */
.rb-menu {
	--rb-menu-burger-w: 26px;
	--rb-menu-burger-h: 18px;
	--rb-menu-burger-t: 2px;
	--rb-menu-burger-color: currentColor;
	--rb-menu-burger-dur: 300ms;
	display: flex;
	align-items: center;
	justify-content: var(--rb-menu-toggle-justify, flex-end);
	position: relative;
}

.rb-menu ul,
.rb-menu-panel ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Obal panelu přesunutého na konec <body>: nese třídu prvku kvůli stylům, ale sám se nesmí projevit
 * (společné styly prvku jako okraje, pozadí nebo šířka platí jen pro obal v hlavičce). */
body > .rb-menu-portal.rb-menu-portal {
	position: static !important;
	display: block !important;
	width: 0 !important;
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	overflow: visible !important;
	transform: none !important;
	filter: none !important;
	opacity: 1 !important;
	animation: none !important;
}

.rb-menu-link {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	color: inherit;
	text-decoration: none;
	transition: color .2s ease, opacity .2s ease, background-color .2s ease;
}

button.rb-menu-link {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	text-align: inherit;
	cursor: pointer;
}

.rb-menu-row {
	display: flex;
	align-items: center;
}

.rb-menu-arrow {
	display: inline-block;
	position: relative;
	width: 1em;
	height: 1em;
	font-size: 10px;
	flex: 0 0 auto;
	transition: transform .3s ease;
}

.rb-menu-arrow::before {
	content: "";
	position: absolute;
	top: 15%;
	left: 22%;
	width: 56%;
	height: 56%;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.rb-menu-caret,
.rb-menu-sub-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

[aria-expanded="true"] > .rb-menu-arrow,
[aria-expanded="true"] .rb-menu-arrow {
	transform: rotate(180deg);
}

/* Vodorovné menu */
.rb-menu-bar {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: center;
}

.rb-menu-bar > .rb-menu-item {
	position: relative;
}

.rb-menu-bar > .rb-menu-item > .rb-menu-row > .rb-menu-link {
	padding: 10px 15px;
}

.rb-menu-bar > .rb-menu-item > .rb-menu-row > .rb-menu-caret {
	margin-left: -12px;
}

.rb-menu-bar .rb-menu-sub {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 1060;
	min-width: 220px;
	padding: 8px 0;
	background: #fff;
	color: #212529;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}

.rb-menu-bar .rb-menu-sub .rb-menu-sub {
	top: -8px;
	left: 100%;
}

.rb-menu-bar .rb-menu-sub .rb-menu-item {
	position: relative;
}

.rb-menu-bar .rb-menu-sub .rb-menu-row {
	justify-content: space-between;
}

.rb-menu-bar .rb-menu-sub .rb-menu-link {
	flex: 1 1 auto;
	padding: 8px 18px;
}

.rb-menu-bar .rb-menu-sub .rb-menu-caret .rb-menu-arrow {
	transform: rotate(-90deg);
}

.rb-menu-bar .rb-menu-item:hover > .rb-menu-sub,
.rb-menu-bar .rb-menu-item:focus-within > .rb-menu-sub,
.rb-menu-bar .rb-menu-item.is-open > .rb-menu-sub {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .2s ease, transform .2s ease, visibility 0s;
}

/* Zavřené kliknutím / Esc i při najetí myší. */
.rb-menu-bar .rb-menu-item.is-closed > .rb-menu-sub {
	opacity: 0;
	visibility: hidden;
}

/* Hamburger */
.rb-menu-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	padding: 8px;
	border: 0;
	background: none;
	color: var(--rb-menu-burger-color);
	font: inherit;
	line-height: 1;
	cursor: pointer;
	position: relative;
	z-index: 2;
}

.rb-menu-toggle:focus-visible,
.rb-menu-close:focus-visible,
.rb-menu-panel .rb-menu-link:focus-visible,
.rb-menu-sub-toggle:focus-visible,
.rb-menu-caret:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.rb-menu-burger {
	position: relative;
	display: block;
	width: var(--rb-menu-burger-w);
	height: var(--rb-menu-burger-h);
}

.rb-menu-burger > span {
	position: absolute;
	left: 0;
	width: 100%;
	height: var(--rb-menu-burger-t);
	border-radius: var(--rb-menu-burger-t);
	background: var(--rb-menu-burger-color);
	transition: transform var(--rb-menu-burger-dur) ease, opacity var(--rb-menu-burger-dur) ease, top var(--rb-menu-burger-dur) ease, background-color .2s ease;
}

.rb-menu-burger > span:nth-child(1) { top: 0; }
.rb-menu-burger > span:nth-child(2) { top: calc(50% - var(--rb-menu-burger-t) / 2); }
.rb-menu-burger > span:nth-child(3) { top: calc(100% - var(--rb-menu-burger-t)); }

.rb-menu-toggle-x .rb-menu-toggle[aria-expanded="true"] .rb-menu-burger > span:nth-child(1) {
	top: calc(50% - var(--rb-menu-burger-t) / 2);
	transform: rotate(45deg);
}

.rb-menu-toggle-x .rb-menu-toggle[aria-expanded="true"] .rb-menu-burger > span:nth-child(2) {
	opacity: 0;
}

.rb-menu-toggle-x .rb-menu-toggle[aria-expanded="true"] .rb-menu-burger > span:nth-child(3) {
	top: calc(50% - var(--rb-menu-burger-t) / 2);
	transform: rotate(-45deg);
}

/* Kdy je hamburger místo vodorovného menu (stejné hranice jako Style\Breakpoints a widgets-media.js). */
.rb-menu-bp-always .rb-menu-toggle {
	display: inline-flex;
}

@media (max-width: 991.98px) {
	.rb-menu-bp-tablet .rb-menu-bar {
		display: none;
	}

	.rb-menu-bp-tablet .rb-menu-toggle {
		display: inline-flex;
	}
}

@media (max-width: 767.98px) {
	.rb-menu-bp-mobile .rb-menu-bar {
		display: none;
	}

	.rb-menu-bp-mobile .rb-menu-toggle {
		display: inline-flex;
	}
}

/* Panel (společné) */
.rb-menu-panel {
	--rb-menu-panel-bg-default: #000;
	z-index: 1050;
	color: #fff;
	text-align: left;
}

.rb-menu-panel:not(.offcanvas) {
	position: fixed;
	visibility: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--rb-menu-panel-bg, var(--rb-menu-panel-bg-default));
}

.rb-menu-panel:focus {
	outline: none;
}

.rb-menu-list .rb-menu-item {
	display: block;
}

.rb-menu-list .rb-menu-row {
	justify-content: space-between;
	gap: 8px;
}

.rb-menu-list .rb-menu-link {
	flex: 1 1 auto;
	justify-content: space-between;
}

/* Zarovnání položek v panelu (control panel_align): na střed text i šipka u sebe uprostřed řádku. */
.rb-menu-list[data-align="center"] {
	text-align: center;
}

.rb-menu-list[data-align="center"] .rb-menu-row {
	justify-content: center;
}

.rb-menu-list[data-align="center"] .rb-menu-link {
	flex: 0 1 auto;
	justify-content: center;
}

.rb-menu-panel .rb-menu-list[data-align="left"] {
	text-align: left;
}

.rb-menu-panel .rb-menu-list[data-align="left"] .rb-menu-row {
	justify-content: space-between;
}

.rb-menu-panel .rb-menu-list[data-align="left"] .rb-menu-link {
	flex: 1 1 auto;
	justify-content: space-between;
}

.rb-menu-list a.rb-menu-link:hover,
.rb-menu-list button.rb-menu-link:hover {
	opacity: var(--rb-menu-hover-opacity, var(--rb-menu-hover-opacity-default, 1));
}

.rb-menu-list .rb-menu-sub-toggle {
	padding: 4px 0 4px 8px;
}

.rb-menu-close {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 1;
	width: 1em;
	height: 1em;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-size: 32px;
	cursor: pointer;
}

.rb-menu-close > span::before,
.rb-menu-close > span::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 8%;
	width: 84%;
	height: 2px;
	margin-top: -1px;
	background: currentColor;
	transform: rotate(45deg);
}

.rb-menu-close > span::after {
	transform: rotate(-45deg);
}

.rb-menu-close:hover {
	opacity: .7;
}

/* Přes celou obrazovku (offsite.cz): černý závoj 0.95, položky na středu, prolnutí 1 s. */
.rb-menu-panel-overlay {
	--rb-menu-panel-bg-default: rgba(16, 16, 16, .95);
	inset: 0;
	display: flex;
	flex-direction: column;
	opacity: 0;
	transition: opacity var(--rb-menu-dur, 1000ms) ease-in-out, visibility 0s linear var(--rb-menu-dur, 1000ms);
}

.rb-menu-panel-overlay .rb-menu-list {
	margin: auto 0;
	padding: 80px 24px;
	text-align: center;
	font-size: 32px;
	font-weight: 500;
	line-height: 1.5;
}

.rb-menu-panel-overlay .rb-menu-list .rb-menu-link {
	padding: 4px 0;
}

.rb-menu-panel-overlay .rb-menu-list .rb-menu-row {
	justify-content: center;
}

.rb-menu-panel-overlay .rb-menu-list .rb-menu-link {
	flex: 0 1 auto;
}

.rb-menu-panel-overlay .rb-menu-sub {
	font-size: .6em;
}

.rb-menu-panel-overlay.is-open {
	--rb-menu-hover-opacity-default: .7;
	opacity: 1;
	visibility: visible;
	transition: opacity var(--rb-menu-dur, 1000ms) ease-in-out, visibility 0s;
}

/* Panel zprava, který odsune stránku (teambuildio.cz): černý, 320 px (nejvýš 75 % okna). */
.rb-menu-panel-push {
	--rb-menu-panel-w-real: min(var(--rb-menu-panel-w, 320px), 75vw);
	top: 0;
	bottom: 0;
	right: calc(-1 * var(--rb-menu-panel-w-real));
	width: var(--rb-menu-panel-w-real);
	transition: right var(--rb-menu-dur, 800ms) cubic-bezier(.77, 0, .175, 1), visibility 0s linear var(--rb-menu-dur, 800ms);
}

.rb-menu-panel-push.is-open {
	--rb-menu-hover-opacity-default: .7;
	right: 0;
	visibility: visible;
	transition: right var(--rb-menu-dur, 800ms) cubic-bezier(.77, 0, .175, 1), visibility 0s;
}

.rb-menu-panel-push .rb-menu-list {
	padding: 28px 40px;
	font-size: 14px;
	line-height: 1.7;
}

.rb-menu-panel-push .rb-menu-list .rb-menu-link {
	padding: 11px 0;
}

.rb-menu-panel-push .rb-menu-sub {
	padding-left: 12px;
}

.rb-menu-panel-push .rb-menu-close {
	top: 16px;
	right: 16px;
	font-size: 24px;
}

/* Stránka se odsune pomocí left (ne transform), aby se nerozbily prvky s position: fixed. */
html.rb-menu-has-push body {
	position: relative;
	left: 0;
	transition: left var(--rb-menu-push-dur, 800ms) cubic-bezier(.77, 0, .175, 1);
}

html.rb-menu-pushed body {
	left: calc(-1 * var(--rb-menu-push, 320px));
}

html.rb-menu-has-push .rb-sticky-active {
	transition: left var(--rb-menu-push-dur, 800ms) cubic-bezier(.77, 0, .175, 1), right var(--rb-menu-push-dur, 800ms) cubic-bezier(.77, 0, .175, 1);
}

html.rb-menu-pushed .rb-sticky-active {
	left: calc(-1 * var(--rb-menu-push, 320px));
	right: var(--rb-menu-push, 320px);
}

html.rb-menu-locked,
html.rb-menu-locked body {
	overflow: hidden;
}

html.rb-menu-pushed,
html.rb-menu-pushed body {
	overflow-x: hidden;
}

/* Bootstrap offcanvas: barvy a šířka z controlů, vlastní ztmavení (uvnitř obalu prvku kvůli vrstvám). */
.rb-menu-panel-offcanvas {
	--bs-offcanvas-width: min(var(--rb-menu-panel-w, 320px), 100vw);
	--bs-offcanvas-bg: var(--rb-menu-panel-bg, #fff);
	--bs-offcanvas-color: inherit;
	--bs-offcanvas-zindex: 1050;
	color: #212529;
	overflow-y: auto;
}

.rb-menu-panel-offcanvas .rb-menu-list {
	padding: 64px 24px 24px;
}

.rb-menu-panel-offcanvas .rb-menu-list .rb-menu-link {
	padding: 10px 0;
}

.rb-menu-panel-offcanvas .rb-menu-sub {
	padding-left: 16px;
}

/* Panel s doplňky (Chisfis, Ceepii): logo a křížek, text, sítě, hledání, pod položkami tlačítko a odkazy. */
.rb-menu-panel-rich {
	display: flex;
	flex-direction: column;
}

.rb-menu-panel-head {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 24px;
	padding: 24px 0 20px;
	border-bottom: 1px solid var(--rb-menu-panel-line, #e5e7eb);
}

.rb-menu-panel-rich .rb-menu-close {
	position: relative;
	top: auto;
	right: auto;
	flex: 0 0 auto;
	margin-left: auto;
	font-size: 24px;
}

.rb-menu-panel-logo {
	display: inline-flex;
	line-height: 0;
}

.rb-menu-panel-logo img {
	width: auto;
	height: 32px;
}

.rb-menu-panel-intro {
	flex: none;
	padding: 20px 24px 0;
}

.rb-menu-panel-text {
	margin: 0 0 16px;
	color: var(--rb-menu-panel-muted, #374151);
	font-size: 15px;
	line-height: 1.6;
}

.rb-menu-panel-socials {
	display: flex;
	gap: 18px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.rb-menu-panel-socials a {
	color: inherit;
	font-size: 18px;
	line-height: 1;
	text-decoration: none;
}

.rb-menu-panel-socials a:hover {
	opacity: .7;
}

.rb-menu-panel-search {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 52px;
	margin: 0;
	padding: 0 16px;
	border-radius: 14px;
	background: #f9fafb;
	color: #6b7280;
}

.rb-menu-panel-search input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #111827;
	font: inherit;
	font-size: 14px;
	outline: none;
}

.rb-menu-panel-rich .rb-menu-list {
	flex: none;
	padding: 16px 24px;
}

.rb-menu-panel-foot {
	display: flex;
	flex: none;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	margin: 0 24px;
	padding: 24px 0 32px;
	border-top: 1px solid var(--rb-menu-panel-line, #e5e7eb);
}

.rb-menu-panel-btn {
	display: inline-flex;
	align-items: center;
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--rb-menu-btn-bg, #111827);
	color: var(--rb-menu-btn-fg, #fff);
	font-size: 15px;
	font-weight: 500;
	line-height: 20px;
	text-decoration: none;
	transition: opacity .2s ease;
}

.rb-menu-panel-btn:hover {
	opacity: .85;
	color: var(--rb-menu-btn-fg, #fff);
}

.rb-menu-panel-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	line-height: 20px;
}

.rb-menu-panel-links a {
	color: inherit;
	font-weight: 500;
	text-decoration: none;
}

.rb-menu-panel-links a:hover {
	text-decoration: underline;
}

.rb-menu-panel-links-icon {
	margin-right: 2px;
	font-size: 16px;
}

.rb-menu-panel-sep {
	opacity: .4;
}

/* Bez Bootstrap JS řídí třídy show/showing widgets-media.js (CSS Bootstrapu je vždy načtené). */
.rb-menu-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1049;
	background-color: rgba(0, 0, 0, .5);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility 0s linear .3s;
}

.rb-menu-backdrop.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity .3s ease, visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
	.rb-menu-panel,
	.rb-menu-backdrop,
	.rb-menu-burger > span,
	html.rb-menu-has-push body,
	html.rb-menu-has-push .rb-sticky-active {
		transition: none !important;
	}
}
