/* Bezúčtovníka – Referencie (skupinová koláž, variant H3)
   Farby a typografia podľa design systému Bezúčtovníka – WEB. */

.bzr {
	--bzr-ink: #2c2d31;
	--bzr-ink-deep: #1e1e1e;
	--bzr-ink-strong: #0f110f;
	--bzr-slate: #54595f;
	--bzr-lime: #e7f644;
	--bzr-surface: #ffffff;
	--bzr-d0: 340px;
	--bzr-d1: 250px;
	--bzr-d2: 190px;
	--bzr-overlap: -40px;

	box-sizing: border-box;
	width: 100%;
	overflow: hidden; /* neighbours peek in on narrow screens, never a sideways scroll */
	color: var(--bzr-ink);
	font-family: inherit;
}

.bzr *,
.bzr *::before,
.bzr *::after {
	box-sizing: inherit;
}

/* Buttons: neutralise theme / Elementor kit button styles (Ewebot/GT3 style every <button>).
   Two classes + element so this beats selectors like `.elementor-kit-42 button`. */
.bzr button.bzr__person,
.bzr button.bzr__arrow {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	letter-spacing: normal;
	line-height: inherit;
	width: auto;
	height: auto; /* Ewebot sets button { height: 50px } */
	min-height: 0;
	min-width: 0;
	max-width: none;
	max-height: none;
	outline-offset: 0;
	transition: none; /* Ewebot: button { transition: all .4s } – would fight the slide animation */
	text-transform: none;
	text-shadow: none;
	cursor: pointer;
}

.bzr .bzr__person *,
.bzr .bzr__ghost,
.bzr .bzr__ghost * {
	transition: none;
}

.bzr button.bzr__arrow {
	transition: background-color .15s ease;
}

.bzr button.bzr__person:hover,
.bzr button.bzr__person:focus,
.bzr button.bzr__person:active,
.bzr button.bzr__arrow:focus,
.bzr button.bzr__arrow:active {
	background: none;
	box-shadow: none;
	color: inherit;
}

/* ---------- Portraits ---------- */

.bzr__people {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	min-height: calc(var(--bzr-d0) + 40px);
}

.bzr__person {
	position: relative;
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 0;
}

.bzr--js .bzr__person:not(.is-first) {
	margin-left: var(--bzr-overlap);
}

.bzr .bzr__img {
	display: block;
	width: var(--bzr-d0);
	height: var(--bzr-d0);
	max-width: none;
	max-height: none;
	flex: 0 0 auto;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: contain;
	transform-origin: 50% 100%;
}

.bzr__name {
	padding: 4px 14px;
	border-radius: 10px;
	color: var(--bzr-ink-deep);
	font-size: 18px;
	font-weight: 700;
	line-height: 26px;
	white-space: nowrap;
}

/* Distance from the selected portrait (set by JS). */
.bzr__person[data-d="0"] { z-index: 3; opacity: 1; }
.bzr__person[data-d="1"] { z-index: 2; opacity: .55; }
.bzr__person[data-d="2"] { z-index: 1; opacity: .3; }
.bzr__person[data-d="1"] .bzr__img { width: var(--bzr-d1); height: var(--bzr-d1); }
.bzr__person[data-d="2"] .bzr__img { width: var(--bzr-d2); height: var(--bzr-d2); }
.bzr__person[hidden] { display: none; }

@media (hover: hover) {
	.bzr .bzr__person:hover { opacity: 1; }
}
.bzr__person[aria-selected="true"] .bzr__name { background: var(--bzr-lime); }

.bzr .bzr__person:focus-visible {
	outline: 3px solid var(--bzr-ink);
	outline-offset: -6px;
	border-radius: 20px;
}

/* A portrait leaving the row while the others slide (see referencie.js). */
.bzr .bzr__ghost {
	position: absolute;
	margin: 0 !important;
	z-index: 0;
	pointer-events: none;
}

/* Without JS: just the row of portraits, smaller. */
.bzr:not(.bzr--js) .bzr__people {
	flex-wrap: wrap;
	gap: 16px;
}
.bzr:not(.bzr--js) .bzr__img {
	width: var(--bzr-d1);
	height: var(--bzr-d1);
}

/* ---------- Quote + hand-drawn arrows ---------- */

.bzr__stage {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-areas: "prev panel next";
	align-items: center;
	gap: 24px;
	margin-top: 40px;
}

.bzr__stage--single {
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "panel";
}

.bzr__panels {
	grid-area: panel;
	width: 100%;
	max-width: 860px;
	margin: 0 auto;
}

.bzr__panel {
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	margin: 0;
	text-align: center;
}

.bzr__panel[hidden] { display: none; }


.bzr__quote {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	quotes: none;
}

/* Some themes draw a big quote mark on every blockquote. */
.bzr__quote::before,
.bzr__quote::after {
	content: none !important;
	display: none !important;
}

.bzr__quote p { margin: 0; }

.bzr__headline {
	color: var(--bzr-ink);
	font-size: 42px;
	font-weight: 700;
	line-height: 48px;
	font-style: normal;
}

.bzr__text {
	color: var(--bzr-slate);
	font-size: 18px;
	font-weight: 400;
	line-height: 27px;
	font-style: normal;
}

.bzr__meta {
	margin: 0;
	font-style: normal;
	font-weight: 400;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px 28px;
	color: var(--bzr-ink);
	font-size: 18px;
	line-height: 26px;
}

.bzr__who strong {
	font-weight: 700;
	color: var(--bzr-ink-strong);
}

.bzr .bzr__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--bzr-ink);
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	text-decoration: none;
}

.bzr .bzr__link:hover,
.bzr .bzr__link:focus {
	color: var(--bzr-ink-deep);
	text-decoration: none;
}

.bzr__link-arrow { transition: transform .15s ease; }
.bzr__link:hover .bzr__link-arrow { transform: translateX(4px); }

.bzr .bzr__link:focus-visible {
	outline: 3px solid var(--bzr-ink);
	outline-offset: 3px;
	border-radius: 4px;
}

.bzr__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Navigation: hand-drawn marker arrows, no box. */
.bzr__arrow {
	display: none; /* shown once JS runs */
	align-items: center;
	justify-content: center;
	padding: 12px !important;
	border-radius: 15px !important;
	color: var(--bzr-ink) !important;
	transition: background-color .15s ease;
}

.bzr--js .bzr__arrow { display: flex; }
.bzr__arrow--prev { grid-area: prev; }
.bzr__arrow--next { grid-area: next; }

.bzr button.bzr__arrow:hover { background: none; } /* no box on hover, only the arrow nudges */
.bzr__arrow svg { display: block; transition: transform .15s ease; }

/* Hover only for real pointers – on touch screens it would stay "stuck" after a tap. */
@media (hover: hover) {
	.bzr__arrow--prev:hover svg { transform: translateX(-5px); }
	.bzr__arrow--next:hover svg { transform: translateX(5px); }
}

.bzr button:focus:not(:focus-visible) { outline: none; }

.bzr .bzr__arrow:focus-visible {
	outline: 3px solid var(--bzr-ink);
	outline-offset: 3px;
}

/* ---------- Editor empty state ---------- */

.bzr-empty {
	padding: 24px;
	border: 2px dashed #dadadb;
	border-radius: 15px;
	color: #54595f;
	text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
	.bzr {
		--bzr-d0: 280px;
		--bzr-d1: 200px;
	}
	.bzr__person[data-d="2"] { display: none; }
	/* With the outer pair hidden, the nearer neighbour starts the row. */
	.bzr--js .bzr__person.is-first-near { margin-left: 0; }
}

@media (max-width: 640px) {
	.bzr {
		--bzr-d0: 220px;
		--bzr-d1: 130px;
		--bzr-overlap: -28px;
	}
	.bzr__people { min-height: calc(var(--bzr-d0) + 36px); }
	.bzr__person[data-d="1"] .bzr__name { visibility: hidden; }
	.bzr__headline { font-size: 30px; line-height: 36px; }
	.bzr__text { font-size: 16px; line-height: 24px; }
	.bzr__stage {
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"panel panel"
			"prev next";
		gap: 16px;
		margin-top: 24px;
	}
	.bzr__arrow--prev { justify-self: end; }
	.bzr__arrow--next { justify-self: start; }
	.bzr__arrow svg { width: 56px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.bzr *,
	.bzr *::before,
	.bzr *::after {
		animation: none !important;
		transition: none !important;
	}
}


/* a11y: role="tabpanel" je na <div class="bzr__panel">, citát je vo <figure> vnútri (v1.0.5) */
.bzr__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	width: 100%;
	margin: 0;
	padding: 0;
	text-align: center;
}
