/**
 * IDSK Životné situácie – vlastné štýly
 *
 * Branding, layout a komponenty pre template-idsk-zivotne-situacie.php.
 * Načítava sa cez wp_enqueue_style( 'idsk-zs' ) za idsk3-frontend.
 *
 * @package svps
 */

/* ── Krok 1: pulse animacia na Pokracovat button po vybere oblasti ────── */
@keyframes zs-pulse {
	0%   { box-shadow: 0 0 0 0   rgba(0, 82, 160, 0.45); }
	60%  { box-shadow: 0 0 0 10px rgba(0, 82, 160, 0); }
	100% { box-shadow: 0 0 0 0   rgba(0, 82, 160, 0); }
}
.zs-btn-pulse {
	animation: zs-pulse 0.7s ease-out;
}

/* ── Trojfarebný prúžok ─────────────────────────────────────────────────── */
.idsk-tricolor {
	display: block;
	width: 100%;
	height: 3px;
	background-image: linear-gradient(to right, #fff 0% 33.3%, #003183 33.3% 66.6%, #d0190f 66.6% 100%);
	background-size: 150px 100%;
	background-repeat: repeat;
}

/* ── Logo ───────────────────────────────────────────────────────────────── */
.govuk-header__link--homepage {
	display: flex !important;
	align-items: center !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: visible !important;
	text-decoration: none !important;
	text-indent: 0 !important;
	white-space: normal !important;
	width: auto !important;
	height: auto !important;
	font-size: 0 !important;
}
.govuk-header__link--homepage::before,
.govuk-header__link--homepage::after { display: none !important; }
.idsk-svps-logo { display: block !important; height: 52px !important; width: auto !important; max-width: 200px; }

/* ── Predheader ─────────────────────────────────────────────────────────── */
.govuk-predheader {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	flex-wrap: nowrap !important;
	padding-top: .75rem !important;
	padding-bottom: .75rem !important;
	gap: 1rem !important;
}
.govuk-header__logo { flex-shrink: 0; flex: 1 1 auto; }
/* Hamburger — na desktope skrytý cez .desktop-hidden CSS */
.govuk-header__mobile-menu.desktop-hidden { display: none !important; }
/* Search — flex-end na desktope */
.govuk-predheader > .idsk-searchbar__wrapper { flex: 0 1 340px !important; }

/* ── Vyhľadávanie ───────────────────────────────────────────────────────── */
.idsk-searchbar__wrapper { display: flex !important; align-items: center !important; max-width: 340px; width: 100%; }
.idsk-searchbar__wrapper .govuk-input { flex: 1; min-width: 0; border-right: none; }
.idsk-searchbar__wrapper .govuk-button { flex-shrink: 0; margin: 0 !important; min-width: 44px; height: 40px; }

/* ── Navigácia ──────────────────────────────────────────────────────────── */
.govuk-header__navigation { background-color: #fff; border-top: 1px solid #e8e8e8; border-bottom: 2px solid #e8e8e8; }
.govuk-header__navigation-list > ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.govuk-header__navigation-list > ul > li.govuk-header__navigation-item { margin: 0 !important; }
.govuk-header__navigation-list > ul > li.govuk-header__navigation-item > a {
	display: block;
	padding: .875rem 1rem !important;
	color: #0b0c0c !important;
	text-decoration: none;
	font-weight: 600;
	font-size: .9375rem;
	min-height: 44px;
	border-bottom: 3px solid transparent;
}
.govuk-header__navigation-list > ul > li.govuk-header__navigation-item > a:hover { color: #004b8d !important; border-bottom-color: #004b8d; text-decoration: none; }
.govuk-header__navigation-list > ul > li.govuk-header__navigation-item > a:focus { outline: 3px solid #fd0; outline-offset: 0; }
.govuk-header__navigation-item--active > a { color: #004b8d !important; border-bottom: 3px solid #004b8d !important; font-weight: 700; }
.govuk-header__menu-button { display: inline-flex !important; align-items: center !important; gap: .35rem !important; color: #0b0c0c !important; border: 2px solid #0b0c0c !important; background: transparent !important; padding: 7px 12px !important; border-radius: 4px !important; font-weight: 700 !important; white-space: nowrap !important; cursor: pointer !important; flex-shrink: 0 !important; }
.govuk-header__menu-button:hover { background: #f3f2f1 !important; }
.govuk-header__menu-button:focus { outline: 3px solid #fd0 !important; outline-offset: 3px !important; }
.govuk-header__menu-icon { font-size: 1.25rem !important; line-height: 1 !important; flex-shrink: 0 !important; }
.govuk-header__navigation > .text { display: none !important; }
#idsk-navigation[hidden] { display: none !important; }
#idsk-navigation:not([hidden]) .govuk-header__navigation-list > ul { display: flex !important; flex-direction: column; }

@media (min-width: 48.0625em) {
	.govuk-header__navigation-list > ul { display: flex; flex-wrap: wrap; }
	.govuk-header__navigation-list > ul > li.govuk-header__navigation-item > a { white-space: nowrap; }
	#idsk-navigation { display: block !important; }
	#idsk-navigation:not([hidden]) .govuk-header__navigation-list > ul { flex-direction: row; }
}

@media (max-width: 48em) {
	.govuk-header__navigation { border-bottom: none; }
	.govuk-header__navigation-list > ul > li.govuk-header__navigation-item > a { border-bottom: 1px solid #e8e8e8 !important; padding: .875rem .75rem !important; }
	.govuk-header__navigation-list > ul > li.govuk-header__navigation-item:last-child > a { border-bottom: none !important; }
}

/* ── Audience navigácia (jump nav) ─────────────────────────────────────── */
.zs-audience-nav { margin: 1.5rem 0 2.5rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.zs-audience-btn {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .65rem 1.1rem;
	border: 2px solid #1d70b8;
	background: #fff;
	color: #1d70b8;
	font-family: "Source Sans Pro", sans-serif;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	border-radius: 2px;
	transition: background .1s, color .1s;
	min-height: 44px;
	white-space: nowrap;
}
.zs-audience-btn:hover,
.zs-audience-btn:focus { background: #1d70b8; color: #fff; text-decoration: none; }
.zs-audience-btn .material-icons { font-size: 1.1rem; }

/* ── Sekcie ─────────────────────────────────────────────────────────────── */
.zs-section { border-top: 4px solid #1d70b8; padding-top: 1.5rem; margin-top: 3rem; }
.zs-section__perex { max-width: 42rem; margin-bottom: 1.5rem; }
.zs-link-columns { columns: 2; column-gap: 2rem; margin-bottom: 1.5rem; }
.zs-link-item { break-inside: avoid; margin-bottom: .625rem; }
.zs-link-item .govuk-hint { font-size: .875rem; margin-top: .1rem; margin-bottom: 0; }
.zs-subsection { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid #b1b4b6; }
.zs-subgroup { margin-top: 1.5rem; }
.zs-subgroup__title { font-size: 1rem; font-weight: 700; color: #0b0c0c; margin-bottom: .5rem; }

/* ── CTA Banner ─────────────────────────────────────────────────────────── */
.zs-cta-banner { background: #e8f4fd; border-left: 6px solid #1d70b8; padding: 1.5rem 1.5rem 1.25rem; margin: 2.5rem 0; }
.zs-cta-banner h2 { margin-top: 0; }
.zs-cta-banner .govuk-button { margin-bottom: 0; }

/* ── govuk-panel--info (nie je v IDSK 3, podla vzoru eprihlasky.iedu.sk) ── */
.govuk-panel--info {
	font-family: "Source Sans Pro", arial, sans-serif;
	color: #0b0c0c;
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	border: 2px solid #126dff;
	border-radius: 8px;
	background: #eef3ff;
	padding: 1.5rem;
	margin: 2.5rem 0;
}
.govuk-panel--info .panel-icon {
	color: #126dff;
	font-size: 2rem;
	flex-shrink: 0;
	line-height: 1.2;
}
.govuk-panel--info .govuk-panel__body { flex: 1; min-width: 0; }
.govuk-panel--info .panel-text { display: block; }
.govuk-panel--info .panel-text > div + div { margin-top: .375rem; }
.govuk-panel--info .panel-text strong { font-size: 1.125rem; }
.govuk-panel--info .govuk-button { margin-top: 1rem; margin-bottom: 0; }

/* ── Gutenberg wp:columns podpora (wp-block-library je dequeued) ─────────── */
.wp-block-columns {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 1.5rem;
	box-sizing: border-box;
}
.wp-block-column {
	box-sizing: border-box;
	min-width: 0;
	word-break: break-word;
	overflow-wrap: break-word;
	flex-grow: 1;
	flex-basis: 0;
}
/* Ak má stĺpec inline flex-basis (napr. 50%), rešpektuj ho a neprekrývaj */
.wp-block-column[style*="flex-basis"] { flex-grow: 0; }
/* Na mobile stĺpce pod seba */
@media (max-width: 48em) {
	.wp-block-columns { flex-direction: column; gap: 1rem; }
	.wp-block-column,
	.wp-block-column[style*="flex-basis"] { flex-basis: 100% !important; flex-grow: 1; }
}

/* ── Overflow ochrana ───────────────────────────────────────────────────── */
html, body { overflow-x: hidden; max-width: 100%; }
*, *::before, *::after { box-sizing: border-box; }

/* ── govuk-width-container – korekcia IDSK 3 beta (max-width: 1440px bez paddingu) ─
   IDSK 3.0.0-beta.0 nastavuje max-width: 1440px a padding: 0.
   Korigujeme na čitateľnú šírku s minimálnym bočným paddingom.
   ──────────────────────────────────────────────────────────────────────────────── */
.govuk-width-container {
	max-width: 1200px !important;
	padding-left: 15px !important;
	padding-right: 15px !important;
}

/* ── govuk-list reset ───────────────────────────────────────────────────── */
.govuk-list { list-style: none !important; padding: 0 !important; margin: 0 0 1rem 0 !important; max-width: 100%; overflow-wrap: break-word; word-wrap: break-word; }
.govuk-list > li { list-style: none !important; max-width: 100%; overflow-wrap: break-word; margin-bottom: 0; padding: 0; font-size: 1rem !important; line-height: 1.5 !important; }
.govuk-list--spaced > li { margin-bottom: .75rem !important; }
.govuk-list--spaced > li:last-child { margin-bottom: 0 !important; }
.govuk-list .govuk-link,
.govuk-list a { overflow-wrap: break-word; word-break: break-word; display: inline; font-size: 1rem !important; line-height: 1.5 !important; }
.govuk-main-wrapper .govuk-link { overflow-wrap: break-word; word-break: break-word; }

/* ── Footer stĺpce ──────────────────────────────────────────────────────── */
.govuk-footer .govuk-grid-row { display: flex !important; flex-wrap: wrap; }
.govuk-footer .govuk-grid-column-one-third { box-sizing: border-box; width: 33.333%; padding: 0 15px; }
.govuk-footer__list .govuk-footer__link,
.govuk-footer__list a { overflow-wrap: break-word; word-break: break-word; }

/* ── Tablet (≤768px) ────────────────────────────────────────────────────── */
@media (max-width: 48em) {
	.govuk-predheader { margin-left: 0 !important; margin-right: 0 !important; margin-top: 0 !important; padding-top: .75rem !important; padding-bottom: .75rem !important; flex-wrap: wrap !important; }
	.govuk-header__logo { flex: 1 1 auto !important; }
	.govuk-header__mobile-menu.desktop-hidden { flex: 0 0 auto !important; display: flex !important; align-items: center !important; }
	/* Search na nový riadok */
	.govuk-predheader > .idsk-searchbar__wrapper { flex: 0 0 100% !important; max-width: 100% !important; margin-top: .5rem !important; order: 10 !important; }
	.idsk-svps-logo { height: 42px !important; max-width: 160px; }
	.idsk-secondary-navigation__heading-desktop { font-size: .8125rem; }
	.govuk-header__menu-button { display: inline-flex !important; }
	.govuk-header__navigation:not([hidden]) .govuk-header__navigation-list > ul,
	.govuk-header__navigation .govuk-header__navigation-list > ul { display: flex; flex-direction: column; }
	.govuk-header__navigation-list > ul > li.govuk-header__navigation-item > a { padding: .75rem .75rem !important; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.2); }
	.zs-audience-nav { gap: .5rem; }
	.zs-audience-btn { flex: 1 1 calc(50% - .5rem); justify-content: center; }
	.govuk-footer .govuk-grid-column-one-third { width: 50%; margin-bottom: 1.5rem; }
}

/* ── Mobile (≤640px) ────────────────────────────────────────────────────── */
@media (max-width: 40em) {
	.govuk-predheader { flex-direction: row !important; flex-wrap: wrap !important; align-items: center !important; gap: 0 !important; padding-top: .625rem !important; padding-bottom: .5rem !important; }
	.govuk-header__logo { flex: 1 1 auto !important; }
	.govuk-header__mobile-menu.desktop-hidden { flex: 0 0 auto !important; }
	/* Search: celá šírka pod logom a hamburgerom */
	.govuk-predheader > .idsk-searchbar__wrapper { flex: 0 0 100% !important; width: 100% !important; max-width: 100% !important; margin-top: .5rem !important; order: 10 !important; }
	.idsk-searchbar__wrapper .govuk-input { width: 100%; font-size: 1rem; height: 40px; padding: .375rem .625rem; }
	.idsk-svps-logo { height: 36px !important; max-width: 140px; }
	.idsk-secondary-navigation__heading-desktop { display: none !important; }
	.idsk-secondary-navigation__heading-mobile { display: inline !important; }
	.idsk-secondary-navigation__dropdown .govuk-button { font-size: .8125rem; padding: .25rem .5rem; }
	.govuk-body { font-size: 1rem !important; line-height: 1.5 !important; }
	.govuk-body-l { font-size: 1.125rem !important; line-height: 1.5 !important; }
	.govuk-body-s { font-size: .875rem !important; line-height: 1.4 !important; }
	.zs-audience-btn { flex: 1 1 100%; justify-content: flex-start; }
	.zs-link-columns { columns: 1; }
	.zs-cta-banner { padding: 1rem 1rem .875rem; }
	.zs-cta-banner .govuk-button { width: 100%; text-align: center; box-sizing: border-box; }
	.govuk-feedback-bar > div { flex-direction: column; align-items: flex-start !important; gap: .5rem !important; }
	.govuk-main-wrapper { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
	.zs-section { margin-top: 2rem; }
	.govuk-heading-xl { font-size: 1.875rem !important; line-height: 1.15 !important; }
	.govuk-heading-l { font-size: 1.375rem !important; line-height: 1.2 !important; }
	.govuk-heading-m { font-size: 1.125rem !important; }
	.govuk-footer .govuk-grid-column-one-third { width: 100%; padding: 0; margin-bottom: 1.5rem; }
	.govuk-footer__list li { margin-bottom: .375rem; }
	.govuk-panel--info { padding: 1rem; gap: .75rem; }
	.govuk-panel--info .govuk-button { width: 100%; text-align: center; box-sizing: border-box; }
}

/* ── Small mobile (≤375px) ─────────────────────────────────────────────── */
@media (max-width: 375px) {
	.idsk-svps-logo { height: 32px !important; max-width: 120px; }
	.zs-audience-btn { font-size: .9rem; padding: .5rem .75rem; }
	.govuk-width-container { padding-left: .75rem !important; padding-right: .75rem !important; }
	.govuk-list--spaced > li { margin-bottom: .625rem; }
	.zs-subsection { margin-top: 1.25rem; }
	.zs-subgroup { margin-top: 1rem; }
}


/* ==========================================================================
   Sprievodca registráciou — SingleSearchFilter komponent (krok 2)
   Triedy replikujú vizuál idsk-demo.essential-data.sk/single-search-filter
   Nie sú súčasťou IDSK bundle, musia byť tu.
   ========================================================================== */

.idsk-single-search-filter {
	position: relative;
	max-width: 100%;
}

/* Panel wrapper – border, biely podklad */
.idsk-search-results__link-panel {
	border: 2px solid #b1b4b6;
	background: #ffffff;
}

/* Toggle button – celá šírka, modrý text, bold */
.idsk-search-results__link-panel-button {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 12px 16px;
	background: none;
	border: none;
	font-family: "Source Sans Pro", sans-serif;
	font-size: 1.3125rem;
	font-weight: 700;
	cursor: pointer;
	color: #0065b3;
	text-align: left;
	line-height: 1.3;
}

.idsk-search-results__link-panel-button:hover {
	background-color: #f3f2f1;
}

.idsk-search-results__link-panel-button:focus {
	outline: 3px solid #ffdd00;
	outline-offset: 0;
}

/* Nadpis vo vnútri buttonu */
.idsk-search-results__link-panel__title {
	color: #0065b3;
	text-decoration: none;
	line-height: normal;
}

/* Pravý text – zobrazuje počet alebo vybrané (malý, čierny) */
.idsk-search-results__link-panel--span {
	font-size: 0.875rem;
	font-weight: 400;
	color: #0b0c0c;
	white-space: nowrap;
	margin-left: 8px;
	line-height: normal;
}

/* Šípka vpravo od buttonu */
.idsk-search-results__link-panel-button::after {
	content: '';
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 8px solid #0065b3;
	margin-left: 12px;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

/* Otvorený stav – šípka hore */
.idsk-single-search-filter.is-open .idsk-search-results__link-panel-button::after {
	transform: rotate(180deg);
}

/* Rozbaľovací panel – skrytý / viditeľný */
.idsk-ssf-panel {
	display: none;
	border-top: 2px solid #b1b4b6;
	background: #ffffff;
}

.idsk-single-search-filter.is-open .idsk-ssf-panel {
	display: block;
}

/* Vnútro panelu – scroll ak veľa položiek */
.idsk-search-results__list {
	padding: 12px 16px 8px;
	max-height: 320px;
	overflow-y: auto;
}

/* Search input vo vnútri panelu */
.idsk-search-results__search__input {
	display: block;
	width: 100%;
	padding: 8px 12px;
	font-family: "Source Sans Pro", sans-serif;
	font-size: 1rem;
	border: 2px solid #0b0c0c;
	margin-bottom: 12px;
	box-sizing: border-box;
	background: #ffffff;
}

.idsk-search-results__search__input:focus {
	outline: 3px solid #ffdd00;
	outline-offset: 0;
	border-color: #0b0c0c;
}

/* Kontajner pre radio možnosti */
.idsk-option-select-filter {
	/* nič špeciálne – govuk-radios sa postará */
}

/* Skryté radio itemy pri filtrovaní */
.idsk-option-select-filter .govuk-radios__item.ssf-hidden {
	display: none !important;
}

/* Žiadna zhoda – info text */
.ssf-no-results {
	display: none;
	font-size: 0.9375rem;
	color: #505a5f;
	padding: 4px 0 8px;
}

.ssf-no-results.ssf-visible {
	display: block;
}

/* sprievodca — zvýraznenie nájdeného výskytu vo vyhľadávaní */
.ssf-highlight {
	background-color: #ffdd00;
	color: #0b0c0c;
	padding: 0 1px;
	font-style: normal;
}

/* KVEPIS CTA buttony (krok 3) – zelená, rovnaká ako .zs-sprievodca button */
.zs-btn--kvepis.govuk-button {
	background-color: #00703c;
	color: #ffffff;
}
.zs-btn--kvepis.govuk-button:hover {
	background-color: #005a30;
}
.zs-btn--kvepis.govuk-button:focus {
	background-color: #00703c;
}

/* Sprievodca — väčší odstup od krajov na mobile */
@media (max-width: 40em) {
	.zs-sprievodca-row {
		padding-left: 1rem;
		padding-right: 1rem;
	}
}

/* Sprievodca — radio labely: normalna velkost + bez tucneho pisma
   IDSK globalne nastavi .govuk-label na 2.25rem (36px) — overridujeme */
.zs-sprievodca-row .govuk-radios__label,
.zs-sprievodca-row .govuk-label {
	font-size: 1rem !important;
	line-height: 1.4 !important;
	font-weight: 400;
}

/* SSF toggle button (Vyberte cinnost) — IDSK nastavi ~21px */
.idsk-search-results__link-panel-button {
	font-size: 1rem !important;
}

/* ── Sprievodca — mobile opravy (pridane 2026-05-18) ──────────────────── */

/* 1. govuk-hint ma v IDSK 2.25rem — zniz na normalnu velkost */
.zs-sprievodca-row .govuk-hint {
	font-size: 1rem !important;
	line-height: 1.4 !important;
}

/* 2. Notification banner title — na mobile prilis velky */
@media (max-width: 40em) {
	.govuk-notification-banner__title {
		font-size: 1.5rem !important;
		line-height: 1.2 !important;
	}
}

/* 3. Footer — text bez lave-praveho paddingu na mobile */
@media (max-width: 48em) {
	.govuk-footer .govuk-width-container {
		padding-left: 15px !important;
		padding-right: 15px !important;
	}
}

/* 4. Secondary nav dropdown — na mobile pokryva celu hlavicku (left:0,width:382px)
   Obmedzime ho len na sirku language button (right:0, auto width) */
@media (max-width: 48em) {
	.idsk-secondary-navigation__dropdown {
		left: auto !important;
		width: auto !important;
	}
}

/* ── IDSK Stránka — .zs-page-content typografia ──────────────────────────────
   Mapuje default Gutenberg / klasický WP HTML na IDSK vizuál.
   Žiadne ACF polia nie sú potrebné.
   ─────────────────────────────────────────────────────────────────────────── */

.zs-page-content {
	max-width: 40rem; /* čitateľná dĺžka riadku, rovnako ako govuk-body */
	font-family: "Source Sans Pro", arial, sans-serif;
	color: #0b0c0c;
}

/* Odseky */
.zs-page-content p,
.zs-page-content .wp-block-paragraph {
	font-size: 1rem;
	line-height: 1.5;
	margin-top: 0;
	margin-bottom: 1rem;
	color: #0b0c0c;
}

/* Nadpisy */
.zs-page-content h2,
.zs-page-content .wp-block-heading h2 {
	font-size: 1.5rem;
	line-height: 1.25;
	font-weight: 700;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	color: #0b0c0c;
}

.zs-page-content h3,
.zs-page-content .wp-block-heading h3 {
	font-size: 1.125rem;
	line-height: 1.25;
	font-weight: 700;
	margin-top: 1.5rem;
	margin-bottom: 0.5rem;
	color: #0b0c0c;
}

.zs-page-content h4 {
	font-size: 1rem;
	line-height: 1.25;
	font-weight: 700;
	margin-top: 1.25rem;
	margin-bottom: 0.5rem;
	color: #0b0c0c;
}

/* Zoznamy */
.zs-page-content ul,
.zs-page-content .wp-block-list {
	list-style: disc;
	padding-left: 1.25rem;
	margin-top: 0;
	margin-bottom: 1rem;
}

.zs-page-content ol {
	list-style: decimal;
	padding-left: 1.25rem;
	margin-top: 0;
	margin-bottom: 1rem;
}

.zs-page-content li {
	font-size: 1rem;
	line-height: 1.5;
	margin-bottom: 0.25rem;
}

/* Vnorené odrážky */
.zs-page-content ul ul,
.zs-page-content ol ul {
	list-style: circle;
	margin-top: 0.25rem;
	margin-bottom: 0.25rem;
}

/* Linky */
.zs-page-content a {
	color: #1d70b8;
	text-decoration: underline;
}

.zs-page-content a:hover {
	color: #003078;
}

.zs-page-content a:focus {
	outline: 3px solid #ffdd00;
	outline-offset: 0;
	background-color: #ffdd00;
	color: #0b0c0c;
	text-decoration: none;
}

/* Tučné + kurzíva */
.zs-page-content strong,
.zs-page-content b {
	font-weight: 700;
}

/* ── Tabuľky – reset IDSK 3.0.0-beta card layout + vlastný štýl ───────────
   IDSK 3.0.0-beta.0 mení govuk-table na card/flex layout (display:block/flex).
   Resetujeme späť na štandardné HTML table a aplikujeme IDSK 1.x dizajn,
   identický s data.svps.sk.
   Platí pre všetky tri IDSK šablóny (.govuk-main-wrapper).
   ──────────────────────────────────────────────────────────────────────── */

/* 1. Reset IDSK 3 beta – govuk-table card layout → štandardný HTML table */
.govuk-main-wrapper .govuk-table {
	font-size: 1rem !important;
	line-height: 1.5 !important;
}

.govuk-main-wrapper .govuk-table__head {
	display: table-header-group !important;
	margin-bottom: 0 !important;
	font-weight: 400 !important;
}

.govuk-main-wrapper .govuk-table__body {
	border-radius: 0 !important;
}

.govuk-main-wrapper .govuk-table__row {
	display: table-row !important;
	position: static !important;
	padding: 0 !important;
	border: none !important;
	border-style: none !important;
	background-color: transparent !important;
	border-radius: 0 !important;
	min-width: unset !important;
	gap: unset !important;
}

.govuk-main-wrapper .govuk-table__cell,
.govuk-main-wrapper .govuk-table__header {
	display: table-cell !important;
	gap: unset !important;
}

/* 2. Štýlovanie – všetky tabuľky v IDSK šablónach */
.govuk-main-wrapper table,
.govuk-main-wrapper .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1rem;
	font-family: "Source Sans Pro", arial, sans-serif;
	color: #0b0c0c;
	margin-bottom: 1.5rem;
}

.govuk-main-wrapper th,
.govuk-main-wrapper .govuk-table__header {
	background-color: #1d70b8 !important;
	color: #ffffff !important;
	font-weight: 700 !important;
	padding: 0.625rem 1rem !important;
	text-align: left !important;
	border: none !important;
	border-bottom: 2px solid #005ea5 !important;
	white-space: nowrap;
	vertical-align: middle !important;
}

.govuk-main-wrapper td,
.govuk-main-wrapper .govuk-table__cell {
	padding: 0.625rem 1rem !important;
	border: none !important;
	border-bottom: 1px solid #b1b4b6 !important;
	vertical-align: top !important;
}

.govuk-main-wrapper tr:nth-child(even) td,
.govuk-main-wrapper .govuk-table__row:nth-child(even) .govuk-table__cell {
	background-color: #f8f8f8;
}

.govuk-main-wrapper tr:hover td,
.govuk-main-wrapper .govuk-table__row:hover .govuk-table__cell {
	background-color: #f3f2f1;
}

/* Citát / blockquote */
.zs-page-content blockquote {
	border-left: 5px solid #1d70b8;
	margin: 1.5rem 0;
	padding: 0.5rem 1rem;
	background: #f3f2f1;
	font-style: italic;
}

/* Oddeľovač */
.zs-page-content hr,
.zs-page-content .wp-block-separator {
	border: none;
	border-top: 1px solid #b1b4b6;
	margin: 2rem 0;
}

/* Obrázky */
.zs-page-content img,
.zs-page-content figure img {
	max-width: 100%;
	height: auto;
	display: block;
}

.zs-page-content figcaption {
	font-size: 0.875rem;
	color: #505a5f;
	margin-top: 0.25rem;
}

/* wp-block-heading je priamo h2/h3 – IDSK nastavuje govuk-heading font-size cez rem,
   reset aby h2/h3 nezmenili font-size na 2.25rem */
.zs-page-content .wp-block-heading {
	font-size: inherit;
}

/* ── Responzívne tabuľky (náhrada DataTables) ────────────────────────────── */

/* Scroll wrapper – generovaný JS-om pre každú tabuľku v .zs-page-content */
.zs-table-scroll {
	display: block;           /* nutné pre overflow-x v inline/flex kontexte */
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	max-width: 100%;
	margin-bottom: 1.5rem;
}

/* Tabuľka sa roztiahne na prirodzenú šírku, nie na 100% rodičovského prvku */
.zs-table-scroll table,
.zs-table-scroll .wp-block-table table {
	min-width: 100%;
	width: max-content;
	margin-bottom: 0;         /* margin preberá wrapper */
}

/* WP Gutenberg figure.wp-block-table – reset WP inline max-width/overflow
   aby JS-om generovaný .zs-table-scroll mohol horizontálne scrollovať */
.zs-page-content figure.wp-block-table {
	margin: 0 0 0 !important; /* margin preberá .zs-table-scroll wrapper */
	max-width: 100% !important;
	overflow: visible !important;
}

/* Priamo vnorená tabuľka bez JS wrapper (napr. pri malom počte riadkov) */
.zs-page-content .wp-block-table table,
.zs-page-content > table {
	display: block;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	width: 100%;
	max-width: 100%;
}


/* ═══════════════════════════════════════════════════════════════════════════
   idsk-gridpage-wrap – CSS Grid pre GridPage a Zoznamgrid bloky
   ver 2.0.6
   ═══════════════════════════════════════════════════════════════════════════ */
.idsk-gridpage-wrap {
	display: grid;
	grid-template-columns: repeat(var(--idsk-gp-cols, 3), 1fr);
	gap: 1.25rem;
	margin-bottom: 2rem;
}
@media (max-width: 768px) {
	.idsk-gridpage-wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
	.idsk-gridpage-wrap { grid-template-columns: 1fr; }
}

/* idsk-gp-card – karty v GridPage / Zoznamgrid */
.idsk-gp-card.idsk-card {
	display: flex;
	flex-direction: column;
	border: 2px solid #b1b4b6;
	border-radius: 0;
	padding: 1rem;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	text-decoration: none !important;
}
.idsk-gp-card.idsk-card:hover {
	border-color: #1d70b8;
	box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.idsk-gp-card__icon {
	margin-bottom: 0.625rem;
}
.idsk-gp-card__icon .material-icons {
	font-size: 2rem;
	color: #1d70b8;
	line-height: 1;
}
.idsk-gp-card__link.govuk-link {
	font-size: 1rem;
	font-weight: 700;
	color: #1d70b8;
	text-decoration: none;
}
.idsk-gp-card__link.govuk-link:hover {
	color: #003078;
	text-decoration: underline;
}
.idsk-gp-card__desc {
	margin-top: 0.5rem;
	font-size: 0.9375rem;
	color: #505a5f;
	line-height: 1.5;
}

/* Hover fix – IDSK 3 beta bold/underline potlacenie */
.idsk-gp-card.idsk-card:hover .idsk-gp-card__desc,
.idsk-gp-card.idsk-card:hover .idsk-gp-card__icon .material-icons {
	font-weight: 400 !important;
	text-decoration: none !important;
}
.idsk-gp-card.idsk-card:hover .idsk-card__heading h3 {
	text-decoration: none !important;
	font-weight: 700 !important;
}
.idsk-gp-card.idsk-card:hover .idsk-gp-card__link.govuk-link {
	font-weight: 700 !important;
	text-decoration: underline !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   idsk-download-list – Variant B kompaktný zoznam stiahnutí
   ═══════════════════════════════════════════════════════════════════════════ */
.idsk-download-list {
	list-style: none !important;
	padding: 0 !important;
	margin: 1rem 0 1.5rem !important;
}
.idsk-download-list li {
	border-bottom: 1px solid #e8e8e8;
}
.idsk-download-list li:first-child {
	border-top: 1px solid #e8e8e8;
}
.idsk-dl-compact {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.625rem 0.5rem;
	text-decoration: none !important;
	color: #0b0c0c;
	transition: background-color 0.1s ease;
}
.idsk-dl-compact:hover {
	background-color: #f3f2f1;
}
.idsk-dl-compact__icon.material-icons {
	font-size: 1.75rem;
	flex-shrink: 0;
	line-height: 1;
}
.idsk-dl-compact__body {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	min-width: 0;
}
.idsk-dl-compact__name {
	font-size: 1rem;
	font-weight: 600;
	color: #1d70b8;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.idsk-dl-compact:hover .idsk-dl-compact__name {
	color: #003078;
	text-decoration: underline;
}
.idsk-dl-compact__meta {
	font-size: 0.8125rem;
	color: #505a5f;
	line-height: 1.3;
}

/* ═══════════════════════════════════════════════════════════════════════════
   cv-help-idsk – callout / zvýraznenie v obsahu (náhrada cv-help pre IDSK)
   Použitie: pridaj triedu "cv-help-idsk" na ľubovoľný WP blok (Group, Paragraph…)
   ═══════════════════════════════════════════════════════════════════════════ */
.cv-help-idsk {
	position: relative;
	background: #eef3ff;
	border-left: 5px solid #1d70b8;
	padding: 1.25rem 1.25rem 1.25rem 3.5rem;
	margin: 1.75rem 0;
	border-radius: 0 4px 4px 0;
}
.cv-help-idsk::before {
	font-family: "Material Icons";
	content: "\e88e";          /* info */
	position: absolute;
	left: 0.75rem;
	top: 1.1rem;
	font-size: 1.5rem;
	line-height: 1;
	color: #1d70b8;
	font-feature-settings: "liga";
	-webkit-font-feature-settings: "liga";
}
.cv-help-idsk > *:first-child { margin-top: 0; }
.cv-help-idsk > *:last-child  { margin-bottom: 0; }
.cv-help-idsk h2,
.cv-help-idsk h3,
.cv-help-idsk h4 {
	color: #1d4f91;
	margin-top: 0;
}

/* Varianty */
.cv-warn-idsk {
	background: #fff8e5;
	border-left-color: #f47738;
}
.cv-warn-idsk::before {
	content: "\e002";          /* warning */
	color: #f47738;
}
.cv-warn-idsk h2,
.cv-warn-idsk h3,
.cv-warn-idsk h4 { color: #b84600; }

.cv-ok-idsk {
	background: #e9f7ef;
	border-left-color: #00703c;
}
.cv-ok-idsk::before {
	content: "\e86c";          /* check_circle */
	color: #00703c;
}
.cv-ok-idsk h2,
.cv-ok-idsk h3,
.cv-ok-idsk h4 { color: #004e2a; }
