/* ==========================================================================
   BKA 2026 v5 · pages/transparency – Átláthatóság
   Two live 2025 infographics that look like the supplied images (title,
   teal total pill, donut with white percentages, colour pills with tails),
   the illustrated report, the primary report and the document library.
   Chart colours are the infographics' own (v4 data); everything else uses
   the v5 tokens. No top accent lines on cards.
   ========================================================================== */

/* Charts band -------------------------------------------------------------- */
.v5-transparency__charts { padding-block: var(--v5-section-y-tight) var(--v5-section-y); }
.v5-transparency__grid { display: grid; gap: var(--v5-gap); grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: stretch; }
.v5-transparency__grid > .v5-infographic { width: 100%; max-width: 54rem; }

@media (min-width: 80rem) {
	.v5-transparency__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.v5-transparency__grid--2 > .v5-infographic { max-width: none; }
}

/* Audit sentence under the two charts (2026-11-13, the user's sentence). */
.v5-transparency__audit {
	max-width: 62rem;
	margin: clamp(2rem, 1.5rem + 1.5vw, 3rem) auto 0;
	color: var(--v5-ink);
	font-size: var(--v5-fs-lead);
	line-height: 1.5;
	text-align: center;
	text-wrap: pretty;
}
.v5-transparency__nowrap { white-space: nowrap; }

/* One infographic card ----------------------------------------------------- */
.v5-infographic {
	--v5-chart-total: #04c3a8; /* the "Összesen …" pill of the source images */
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: clamp(1.25rem, .6rem + 1.7vw, 2.25rem);
	border-radius: var(--v5-radius-lg);
	background: var(--v5-white);
	box-shadow: var(--v5-shadow-card);
	container-type: inline-size;
}
.v5-infographic__head { margin: 0; }
.v5-infographic__title {
	margin: 0;
	color: var(--v5-red);
	font-size: clamp(1.75rem, 1.25rem + 1.5vw, 2.625rem);
	line-height: 1.05;
	letter-spacing: .05em;
	text-transform: uppercase;
}
.v5-infographic__total {
	margin: clamp(1.25rem, 1rem + 1vw, 2rem) 0 0;
	padding: .62em 1.2em .68em;
	border-radius: var(--v5-radius-pill);
	background: var(--v5-chart-total);
	color: #fff;
	font-family: var(--v5-font-display);
	font-size: clamp(1.25rem, 1.05rem + .8vw, 1.875rem);
	font-weight: var(--v5-w-display);
	line-height: 1.15;
	letter-spacing: .06em;
	text-align: center;
	text-shadow: 0 1px 2px rgba(0, 60, 52, .28);
}

/* Stage: narrow cards = donut + legend; wide cards = the infographic layout. */
.v5-infographic__stage { position: relative; margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
.v5-infographic__donut { display: block; width: min(100%, 21rem); height: auto; margin-inline: auto; overflow: visible; }
.v5-infographic__callouts { display: none; }

.v5-infographic__segment {
	stroke: var(--v5-white);
	stroke-width: 2;
	stroke-linejoin: round;
	transform-box: view-box;
	transform-origin: 240px 240px;
	transition: transform var(--v5-dur) var(--v5-ease), opacity var(--v5-dur) var(--v5-ease);
}
.v5-infographic__percent {
	fill: #fff;
	font-family: var(--v5-font-display);
	font-size: 23px;
	font-weight: var(--v5-w-display);
	pointer-events: none;
	paint-order: stroke fill;
	stroke: rgba(40, 24, 32, .2);
	stroke-width: 2.5px;
	stroke-linejoin: round;
	transition: opacity var(--v5-dur) var(--v5-ease);
}
.v5-infographic__readout {
	fill: var(--v5-ink);
	font-family: var(--v5-font-display);
	font-size: 64px;
	font-weight: var(--v5-w-display);
	pointer-events: none;
}
.v5-infographic__label { fill: #fff; pointer-events: none; }
.v5-infographic__label-head {
	font-family: var(--v5-font-display);
	font-size: 24px;
	font-weight: var(--v5-w-display);
	letter-spacing: .01em;
}
.v5-infographic__label-detail {
	font-family: var(--v5-font-text);
	font-size: 18px;
	font-weight: var(--v5-w-ui);
}
.v5-infographic__label {
	paint-order: stroke fill;
	stroke: rgba(40, 24, 32, .14);
	stroke-width: 1.6px;
	stroke-linejoin: round;
}
.v5-infographic__callout {
	transform-box: fill-box;
	transform-origin: center;
	transition: transform var(--v5-dur) var(--v5-ease), opacity var(--v5-dur) var(--v5-ease);
}

/* Legend = the data, readable on narrow cards (and for assistive tech). */
.v5-infographic__legend { display: grid; gap: .5rem; margin: clamp(1.5rem, 1rem + 1.5vw, 2rem) 0 0; padding: 0; list-style: none; }
.v5-infographic__item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: .85rem;
	margin: 0;
	padding: .7rem 1.1rem .7rem .8rem;
	border-radius: var(--v5-radius-sm);
	background: color-mix(in srgb, var(--v5-seg-color) 13%, var(--v5-white));
	font-size: .9375rem;
	font-weight: var(--v5-w-ui);
	line-height: 1.35;
	transition: background-color var(--v5-dur) var(--v5-ease);
}
.v5-infographic__item.is-active { background: color-mix(in srgb, var(--v5-seg-color) 26%, var(--v5-white)); }
.v5-infographic__swatch { width: .95rem; height: .95rem; border-radius: 50%; background: var(--v5-seg-color); box-shadow: 0 0 0 3px var(--v5-white); }
.v5-infographic__item-value { color: var(--v5-ink); font-family: var(--v5-font-display); font-size: 1.25rem; font-weight: var(--v5-w-display); }

@container (min-width: 30rem) {
	.v5-infographic__stage { aspect-ratio: var(--v5-stage-ratio); margin-top: clamp(.75rem, .5rem + 1vw, 1.5rem); }
	.v5-infographic__donut {
		position: absolute;
		top: var(--v5-donut-top);
		left: var(--v5-donut-left);
		width: var(--v5-donut-width);
		margin: 0;
	}
	.v5-infographic__callouts {
		position: absolute;
		inset: 0;
		display: block;
		width: 100%;
		height: 100%;
		overflow: visible;
		pointer-events: none;
	}
	.v5-infographic__callout { pointer-events: visiblePainted; }
	/* The callouts carry the labels visually; the list stays for assistive tech. */
	.v5-infographic__legend {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

/* Emphasis (assets/js/v5/pages/transparency.js) */
.v5-infographic.is-emphasis .v5-infographic__segment:not(.is-active),
.v5-infographic.is-emphasis .v5-infographic__callout:not(.is-active) { opacity: .32; }
.v5-infographic.is-emphasis .v5-infographic__percent:not(.is-active) { opacity: .45; }
.v5-infographic__segment.is-active { transform: scale(1.05); }
.v5-infographic__callout.is-active { transform: scale(1.04); }
.v5-infographic [data-v5-seg]:not(text) { cursor: pointer; }

/* Entrance (armed by the script; nothing is hidden without it) */
.v5-infographic.is-armed .v5-infographic__sweep { stroke-dashoffset: 100; }
.v5-infographic.is-armed.is-in .v5-infographic__sweep { stroke-dashoffset: 0; transition: stroke-dashoffset 1.25s cubic-bezier(.33, 1, .68, 1); }
.v5-infographic.is-armed:not(.is-in) :is(.v5-infographic__percent, .v5-infographic__callout, .v5-infographic__total) { opacity: 0; }
.v5-infographic.is-in .v5-infographic__total { animation: v5-chart-rise .7s var(--v5-ease) backwards; }
.v5-infographic.is-in .v5-infographic__percent { animation: v5-chart-fade .5s ease-out backwards; animation-delay: var(--v5-delay, 0ms); }
.v5-infographic.is-in .v5-infographic__callout { animation: v5-chart-pop .62s var(--v5-ease) backwards; animation-delay: var(--v5-delay, 0ms); }

@keyframes v5-chart-fade { from { opacity: 0; } }
@keyframes v5-chart-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes v5-chart-pop { from { opacity: 0; transform: scale(.86); } }

/* A supplied static image (only when the data layer maps one instead of data) */
.v5-infographic__image { margin: 1.5rem 0 0; overflow: hidden; border-radius: var(--v5-radius); }
.v5-infographic__image img { width: 100%; height: auto; }

/* Illustrated report gallery (Customizer URL, v4 report-gallery-2025.js):
   square pages, the arrows on the page, a small full-screen icon. --------- */
.v5-report-gallery__head { align-items: center; }
.v5-report-gallery__head .v5-button { justify-self: end; }
.v5-report-gallery__stage { position: relative; width: min(100%, 80vh); margin-inline: auto; }
.v5-report-gallery__frame { overflow: hidden; border-radius: var(--v5-radius-lg); background: var(--v5-mist); box-shadow: var(--v5-shadow-lift); }
.v5-report-gallery__frame[aria-busy="true"] img { opacity: .6; }
.v5-report-gallery__page { margin: 0; }
.v5-report-gallery__page img { display: block; width: 100%; height: auto; transition: opacity var(--v5-dur) var(--v5-ease); }
.v5-report-gallery__arrow,
.v5-report-gallery__fullscreen {
	position: absolute;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--v5-red);
	box-shadow: var(--v5-shadow-button);
	transition: background-color var(--v5-dur) var(--v5-ease), color var(--v5-dur) var(--v5-ease), opacity var(--v5-dur) var(--v5-ease);
}
.v5-report-gallery__arrow { top: 50%; width: 3rem; height: 3rem; transform: translateY(-50%); }
.v5-report-gallery__arrow--prev { left: .85rem; }
.v5-report-gallery__arrow--next { right: .85rem; }
.v5-report-gallery__arrow .v5-icon { width: 1.35rem; height: 1.35rem; }
.v5-report-gallery__arrow:hover:not(:disabled),
.v5-report-gallery__fullscreen:hover { background: var(--v5-red); color: #fff; }
.v5-report-gallery__arrow:disabled { opacity: 0; pointer-events: none; }
.v5-report-gallery__fullscreen { top: .85rem; right: .85rem; width: 2.5rem; height: 2.5rem; }
.v5-report-gallery__fullscreen .v5-icon { width: 1.2rem; height: 1.2rem; }
.v5-report-gallery__fullscreen .v5-icon--fullscreen-exit,
.v5-report-gallery__fullscreen.is-active .v5-icon--fullscreen { display: none; }
.v5-report-gallery__fullscreen.is-active .v5-icon--fullscreen-exit { display: block; }
.v5-report-gallery__position {
	position: absolute;
	top: calc(100% + .85rem);
	left: 50%;
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-weight: var(--v5-w-bold);
	transform: translateX(-50%);
}
.v5-report-gallery__position input { width: 4rem; min-height: 2.5rem; padding: .25rem .5rem; border: 1.5px solid var(--v5-line-strong); border-radius: var(--v5-radius-sm); text-align: center; }
.v5-report-gallery { padding-bottom: calc(var(--v5-section-y) + 3.5rem); }
.v5-report-gallery:fullscreen { display: grid; place-items: center; padding: 0; background: #17131a; }
.v5-report-gallery:fullscreen .v5-shell { width: 100%; }
.v5-report-gallery:fullscreen .v5-report-gallery__head { display: none; }
.v5-report-gallery:fullscreen .v5-report-gallery__stage { width: min(100vw, 100vh); }
.v5-report-gallery:fullscreen .v5-report-gallery__frame { border-radius: 0; box-shadow: none; }
.v5-report-gallery:fullscreen .v5-report-gallery__position { display: none; }

/* Primary report (red band) ----------------------------------------------- */
.v5-report-feature__link {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 1.25rem clamp(1.25rem, .5rem + 2.5vw, 3rem);
	color: #fff;
	text-decoration: none;
}
.v5-report-feature__link:hover { color: #fff; text-decoration: none; }
.v5-report-feature__link:focus-visible { box-shadow: var(--v5-focus-on-red); border-radius: var(--v5-radius); }
.v5-report-feature__symbol {
	display: grid;
	place-items: center;
	width: clamp(4rem, 3rem + 3vw, 6rem);
	aspect-ratio: 1;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
	color: #fff;
}
.v5-report-feature__symbol .v5-icon { width: 46%; height: 46%; }
.v5-report-feature__copy { display: grid; gap: .5rem; min-width: 0; }
.v5-report-feature__title { margin: 0; color: #fff; font-size: clamp(1.75rem, 1.2rem + 1.9vw, 3rem); line-height: 1.08; }
.v5-report-feature__meta { color: var(--v5-on-red-soft); font-size: .9375rem; font-weight: var(--v5-w-bold); letter-spacing: .06em; }
.v5-report-feature__action {
	display: inline-flex;
	align-items: center;
	gap: .55em;
	min-height: 3.5rem;
	padding: .85rem 1.85rem;
	border-radius: var(--v5-radius-pill);
	background: #fff;
	color: var(--v5-red);
	font-size: .9375rem;
	font-weight: var(--v5-w-bold);
	letter-spacing: .08em;
	box-shadow: var(--v5-shadow-button);
	transition: background-color var(--v5-dur) var(--v5-ease), transform var(--v5-dur) var(--v5-ease);
}
.v5-report-feature__action i { font-style: normal; }
.v5-report-feature__link:hover .v5-report-feature__action { background: var(--v5-red-50); transform: translateY(-1px); }

/* Document library ---------------------------------------------------------- */
.v5-docs__head { margin-bottom: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem); }
.v5-docs__filter {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 1rem 1.25rem;
	margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
	padding: clamp(1rem, .75rem + 1vw, 1.5rem);
	border-radius: var(--v5-radius-lg);
	background: var(--v5-mist);
}
.v5-docs__field { display: grid; gap: .45rem; margin: 0; }
.v5-docs__field--search { flex: 1 1 18rem; }
.v5-docs__field-label { color: var(--v5-ink-soft); font-size: .75rem; font-weight: var(--v5-w-bold); letter-spacing: .12em; text-transform: uppercase; }
.v5-docs__control { position: relative; display: flex; align-items: center; }
.v5-docs__control .v5-icon { position: absolute; left: 1.1rem; width: 1.15rem; height: 1.15rem; color: var(--v5-red); pointer-events: none; }
.v5-docs__field--year .v5-icon { right: 1.1rem; left: auto; }
.v5-docs__control :is(input, select) {
	width: 100%;
	min-height: 3.25rem;
	padding: .75rem 1.25rem .75rem 2.95rem;
	border: 1.5px solid var(--v5-line-strong);
	border-radius: var(--v5-radius-pill);
	background: var(--v5-white);
	color: var(--v5-ink);
	font-weight: var(--v5-w-ui);
	transition: border-color var(--v5-dur) var(--v5-ease), box-shadow var(--v5-dur) var(--v5-ease);
}
.v5-docs__control select { min-width: 12.5rem; padding: .75rem 2.95rem .75rem 1.35rem; appearance: none; cursor: pointer; }
.v5-docs__control :is(input, select):focus { border-color: var(--v5-red); box-shadow: var(--v5-field-focus); outline: none; }
.v5-docs__count { margin: 0 0 .85rem auto; color: var(--v5-ink-soft); font-size: .9375rem; font-weight: var(--v5-w-bold); }

.v5-docs__years { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.v5-docs__year {
	border-radius: var(--v5-radius);
	background: var(--v5-white);
	box-shadow: inset 0 0 0 1px var(--v5-line);
	transition: box-shadow var(--v5-dur) var(--v5-ease);
}
.v5-docs__year[open] { box-shadow: var(--v5-shadow-card), inset 0 0 0 1px var(--v5-line); }
.v5-docs__summary {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.25rem 1rem 1.5rem;
	border-radius: var(--v5-radius);
	cursor: pointer;
	list-style: none;
}
.v5-docs__summary::-webkit-details-marker { display: none; }
.v5-docs__summary:hover .v5-docs__year-label { color: var(--v5-red); }
.v5-docs__year-label { color: var(--v5-ink); font-family: var(--v5-font-display); font-size: 1.5rem; line-height: 1.1; transition: color var(--v5-dur) var(--v5-ease); }
.v5-docs__year-count { color: var(--v5-muted); font-size: .875rem; font-weight: var(--v5-w-ui); }
.v5-docs__toggle {
	display: grid;
	place-items: center;
	flex: none;
	width: 2.25rem;
	height: 2.25rem;
	margin-left: auto;
	border-radius: 50%;
	background: var(--v5-red-100);
	color: var(--v5-red);
	transition: transform var(--v5-dur) var(--v5-ease), background-color var(--v5-dur) var(--v5-ease), color var(--v5-dur) var(--v5-ease);
}
.v5-docs__toggle .v5-icon { width: 1.1rem; height: 1.1rem; }
.v5-docs__year[open] .v5-docs__toggle { background: var(--v5-red); color: #fff; transform: rotate(45deg); }

.v5-docs__list { display: grid; margin: 0; padding: 0 .75rem .75rem; list-style: none; }
.v5-docs__item { margin: 0; }
.v5-docs__item + .v5-docs__item { margin-top: 0; border-top: 1px solid var(--v5-line); }
.v5-docs__link {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem;
	padding: .85rem .9rem;
	border-radius: var(--v5-radius-sm);
	color: var(--v5-ink);
	text-decoration: none;
	transition: background-color var(--v5-dur) var(--v5-ease);
}
.v5-docs__link:hover { background: var(--v5-red-50); color: var(--v5-ink); text-decoration: none; }
.v5-docs__icon {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--v5-radius-sm);
	background: var(--v5-mist);
	color: var(--v5-red);
	transition: background-color var(--v5-dur) var(--v5-ease), color var(--v5-dur) var(--v5-ease);
}
.v5-docs__link:hover .v5-docs__icon { background: var(--v5-red); color: #fff; }
.v5-docs__doc { display: grid; gap: .15rem; min-width: 0; }
.v5-docs__doc-title { font-weight: var(--v5-w-bold); line-height: 1.35; overflow-wrap: anywhere; }
.v5-docs__doc-meta { color: var(--v5-muted); font-size: .8125rem; line-height: 1.4; }
.v5-docs__type { color: var(--v5-red); font-size: .8125rem; font-weight: var(--v5-w-bold); letter-spacing: .08em; white-space: nowrap; }
.v5-docs__type i { font-style: normal; }
.v5-docs__empty { margin: 1rem 0 0; padding: 1.25rem 1.5rem; border-radius: var(--v5-radius); background: var(--v5-mist); font-weight: var(--v5-w-ui); }

@media (max-width: 40rem) {
	.v5-report-feature__link { grid-template-columns: auto minmax(0, 1fr); }
	.v5-report-feature__action { grid-column: 1 / -1; justify-self: start; }
	.v5-report-gallery__head .v5-button { justify-self: start; }
	.v5-report-gallery__arrow { width: 2.5rem; height: 2.5rem; }
	.v5-report-gallery__arrow--prev { left: .5rem; }
	.v5-report-gallery__arrow--next { right: .5rem; }
	.v5-report-gallery__fullscreen { top: .5rem; right: .5rem; width: 2.25rem; height: 2.25rem; }
	.v5-docs__field--year,
	.v5-docs__control select { width: 100%; min-width: 0; }
	.v5-docs__field--year { flex: 1 1 100%; }
	.v5-docs__count { margin: 0; }
	.v5-docs__summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .75rem; padding-inline: 1.1rem 1rem; }
	.v5-docs__year-label { font-size: 1.25rem; }
	.v5-docs__year-count { grid-row: 2; }
	.v5-docs__toggle { grid-column: 2; grid-row: 1 / span 2; }
	.v5-docs__list { padding-inline: .4rem; }
	.v5-docs__link { gap: .75rem; padding-inline: .6rem; }
	.v5-docs__icon { width: 2.15rem; height: 2.15rem; }
}
