/*
 * KČT Jičín – styly šablony (jediný CSS soubor webu).
 *
 *  1  Tokeny            7  Obsah (.prose)             13 Pluginy (výlety, akce, galerie, cestopisy)
 *  2  Základ            8  Tlačítka a formuláře       14 Hledání, 404, banner
 *  3  Rozvržení         9  Komponenty kct-page        15 Patička
 *  4  Hlavička         10  Archiv aktualit            16 Tisk
 *  5  Menu             11  Detaily
 *  6  Hledání v hl.    12  Fotogalerie
 *
 * Stránky v editoru: obalová skupina s třídou „kct-page“, uvnitř prvky kct-p-* (viz sekce 9).
 * Písmo je systémové (nic se nestahuje).
 *
 * UPRAVUJTE ZDROJE v assets/css/src/*.css – assets/css/site.css z nich šablona sestaví sama
 * (inc/assets.php), jakmile je některý zdroj novější.
 */

/* 1 Tokeny ------------------------------------------------------------------------------ */
:root {
	--p-green: #1e7b3c;
	--p-green-hover: #166331;
	--p-accent: #f4c20d; /* slunečně žlutý akcent: pruh pod hlavičkou, podtržení nadpisů sekcí */
	--p-soft: #e3f3e6;
	--p-card: #f3faf4;
	--p-line: #d3e6d7;
	--p-line-strong: #bfd9c5;
	--p-ink: #12301c;
	--p-muted: #5a6b5f;
	--p-text: #333;
	--p-red: #c1272d;
	--kct-red: #e3001b;
	--focus: #1a5fd0;
	--footer-bg: #17603a;
	--footer-bg-2: #104a2c;
	--footer-text: #e3f2e6;
	--footer-muted: #a8cdb2;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
	--header-h: 64px;
	--gutter: 16px;
	--radius: 12px;
	--shadow-hover: 0 8px 22px rgba(30, 123, 60, .12);
}
@media (min-width: 782px) {
	:root { --gutter: 24px; }
}
@media (min-width: 1100px) {
	:root { --header-h: 76px; }
}

/* 2 Základ ------------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px); /* jediné odsazení kotev pod lepící hlavičkou */
}
/* pojistka proti vodorovnému posunu (clip na rozdíl od hidden nevytváří posuvnou oblast, sticky hlavička funguje) */
html, body { overflow-x: clip; }
body {
	margin: 0;
	background: #fff;
	color: var(--p-text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}
img, video { max-width: 100%; height: auto; }
img { border-style: none; }
svg { flex-shrink: 0; }
a { color: var(--p-green); text-decoration-thickness: 1px; text-underline-offset: .16em; }
a:hover { color: var(--p-green-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
::selection { background: #cfe9d6; color: var(--p-ink); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; color: var(--p-ink); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(30px, 3.2vw, 38px); line-height: 1.15; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--p-line); }
button, input, select, textarea { font-family: inherit; }
main:focus { outline: 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
	word-wrap: normal !important;
}
.skip-link {
	position: absolute; left: 12px; top: -200px; z-index: 1000;
	padding: 10px 16px; border-radius: 8px;
	background: var(--p-ink); color: #fff; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* náhrada společných stylů bloků (wp-block-library se nenačítá) */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.has-text-align-center { text-align: center; }
.has-text-align-left { text-align: left; }
.has-text-align-right { text-align: right; }
html :where(img[class*="wp-image-"]) { height: auto; max-width: 100%; }
:where(figure) { margin: 0 0 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: 13px; line-height: 1.45; color: var(--p-muted); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Pojistka: výběry a tabulky nikdy širší než sloupec (původně proti ASE snippetu „CSS Obecné“, od přepnutí šablony vypnutému). */
html body select { width: auto; max-width: 100%; }
@media (max-width: 799px) {
	html body table { width: auto; max-width: 100%; }
	html body select { width: auto; }
}

/* 3 Rozvržení --------------------------------------------------------------------------- */
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.site-main { display: block; min-height: 50vh; padding: 4px 0 24px; }
.site-main .kct-page .kct-p-block:last-child { margin-bottom: 0; padding-bottom: 0; }
/* kotvy: odsazení řeší jen html { scroll-padding-top }, vlastní scroll-margin z obsahu by se přičítal */
.site-main [id] { scroll-margin-top: 0; }
.kct-page { max-width: 1200px; margin: 0 auto; color: var(--p-text); }
.kct-page * { box-sizing: border-box; }

/* 4 Hlavička ---------------------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: #fff;
	border-bottom: 3px solid var(--p-accent);
}
/* průsvitná hlavička jen na desktopu – backdrop-filter by na mobilu ukotvil panel menu k hlavičce */
@media (min-width: 1100px) {
	@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
		.site-header {
			background: rgba(255, 255, 255, .92);
			-webkit-backdrop-filter: saturate(1.6) blur(10px);
			backdrop-filter: saturate(1.6) blur(10px);
		}
	}
}
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media screen and (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}
.site-header__bar { display: flex; align-items: center; gap: 8px; min-height: var(--header-h); }
.brand {
	display: inline-flex; align-items: center; gap: 12px;
	min-width: 0; margin-right: auto; padding: 6px 0;
	color: var(--p-ink); text-decoration: none;
}
.brand:hover { color: var(--p-ink); }
.brand__logo { display: block; flex: 0 0 auto; width: 44px; height: 44px; }
.brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand__name { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.brand__tag { margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--p-muted); white-space: nowrap; }
@media (min-width: 1100px) {
	.site-header__bar { gap: 14px; }
	.brand__logo { width: 52px; height: 52px; }
	.brand__name { font-size: 20px; }
}
@media (max-width: 440px) {
	.brand { gap: 10px; }
	.brand__tag { font-size: 12px; }
	.nav-toggle { padding: 0 13px; }
	.nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}
@media (max-width: 340px) {
	.brand__tag { display: none; }
}

/* 5 Menu -------------------------------------------------------------------------------- */
.menu { margin: 0; padding: 0; list-style: none; }
.menu a { text-decoration: none; }
.sub-toggle {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	margin: 0; padding: 0; border: 0;
	background: none; color: inherit; font: inherit; cursor: pointer;
}
.chev { transition: transform .15s; }
.sub-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* desktop: položky vedle sebe, podmenu jako karta */
@media (min-width: 1100px) {
	.nav-toggle { display: none; }
	.menu { display: flex; align-items: center; gap: 2px; }
	.menu > li { position: relative; display: flex; align-items: center; }
	.menu > li > a,
	.menu > li > .sub-toggle--label {
		position: relative;
		display: inline-flex; align-items: center; gap: 6px;
		min-height: 42px; padding: 8px 12px; border-radius: 8px;
		font-size: 15.5px; font-weight: 650; line-height: 1.2; white-space: nowrap;
		color: var(--p-ink);
		transition: background-color .15s, color .15s;
	}
	.menu > li > a:hover,
	.menu > li > .sub-toggle--label:hover,
	.menu > li.is-open > a,
	.menu > li.is-open > .sub-toggle--label { background: var(--p-soft); color: var(--p-green); }
	.menu > li.current-menu-item > a::after,
	.menu > li.current-menu-ancestor > a::after,
	.menu > li.current-menu-parent > a::after,
	.menu > li.current-menu-ancestor > .sub-toggle--label::after {
		content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px;
		height: 2px; border-radius: 2px; background: var(--p-green);
	}
	.menu > li.current-menu-item > a,
	.menu > li.current-menu-ancestor > a,
	.menu > li.current-menu-parent > a { color: var(--p-green); }
	.menu > li > a + .sub-toggle { position: relative; z-index: 1; width: 28px; height: 42px; margin-left: -8px; border-radius: 6px; color: var(--p-muted); }
	.menu > li > a + .sub-toggle:hover { color: var(--p-green); }

	.menu .sub-menu {
		position: absolute; top: 100%; left: 0; z-index: 10;
		min-width: 260px; margin: 0; padding: 8px; list-style: none;
		background: #fff; border: 1px solid var(--p-line); border-radius: var(--radius);
		box-shadow: 0 16px 40px rgba(31, 43, 27, .14);
		opacity: 0; visibility: hidden; transform: translateY(6px);
		transition: opacity .15s, transform .15s, visibility 0s .15s;
	}
	.menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
	/* klávesnice otevírá podmenu tlačítkem se šipkou (aria-expanded odpovídá tomu, co je vidět) */
	.menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s; }
	.menu > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }
	.menu .sub-menu li { position: relative; }
	.menu .sub-menu a {
		display: block; padding: 9px 12px; border-radius: 8px;
		font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--p-ink);
	}
	.menu .sub-menu a:hover { background: var(--p-soft); color: var(--p-green); }
	.menu .sub-menu .current-menu-item > a { background: var(--p-card); color: var(--p-green); }
	.menu .sub-menu a + .sub-toggle { display: none; }
	.menu .sub-menu .sub-menu {
		position: static; min-width: 0; margin: 0 0 4px 12px; padding: 0 0 0 8px;
		border: 0; border-left: 2px solid var(--p-line); border-radius: 0; box-shadow: none;
		opacity: 1; visibility: visible; transform: none;
	}
	.menu .sub-menu .sub-menu::before { display: none; }
	.menu .sub-menu .sub-menu a { font-size: 14.5px; }
	.menu > li.menu-cta { margin-left: 6px; }
	.menu > li.menu-cta > a { padding: 9px 18px; background: var(--p-green); color: #fff; }
	.menu > li.menu-cta > a:hover { background: var(--p-green-hover); color: #fff; }
	.menu > li.menu-cta > a::after { display: none; }
}
@media (min-width: 1100px) and (hover: hover) {
	.menu > li:hover > .sub-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s; }
	.menu > li:hover > a,
	.menu > li:hover > .sub-toggle--label { background: var(--p-soft); color: var(--p-green); }
}

/* mobil a tablet: tlačítko Menu, panel přes celou výšku, podmenu jako akordeon */
@media (max-width: 1099.98px) {
	.hsearch { order: 2; }
	.nav-toggle { order: 3; }
	.nav-toggle {
		display: inline-flex; align-items: center; gap: 10px;
		height: 44px; padding: 0 16px;
		border: 1px solid var(--p-line-strong); border-radius: 999px;
		background: #fff; color: var(--p-ink);
		font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
	}
	.nav-toggle[aria-expanded="true"] { background: var(--p-soft); border-color: var(--p-soft); }
	.nav-toggle__bars { position: relative; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: background-color .15s; }
	.nav-toggle__bars::before,
	.nav-toggle__bars::after {
		content: ""; position: absolute; left: 0; width: 18px; height: 2px;
		border-radius: 2px; background: currentColor; transition: transform .2s;
	}
	.nav-toggle__bars::before { top: -6px; }
	.nav-toggle__bars::after { top: 6px; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

	.site-nav {
		position: fixed; left: 0; right: 0; bottom: 0;
		top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px));
		z-index: 99; display: none;
		overflow-y: auto; overscroll-behavior: contain;
		padding: 6px var(--gutter) 48px;
		background: #fff; border-top: 1px solid var(--p-line);
	}
	.nav-open .site-nav { display: block; }
	html.nav-open { overflow: hidden; }
	.menu { max-width: 720px; margin: 0 auto; }
	.menu li { position: relative; }
	.menu > li { border-bottom: 1px solid var(--p-line); }
	.menu a,
	.menu .sub-toggle--label {
		display: flex; align-items: center; width: 100%; min-height: 54px;
		padding: 12px 56px 12px 4px;
		font-size: 17px; font-weight: 700; line-height: 1.3; text-align: left; color: var(--p-ink);
	}
	.menu .sub-toggle--label { justify-content: space-between; padding-right: 12px; }
	.menu a + .sub-toggle {
		position: absolute; right: 0; top: 5px;
		width: 44px; height: 44px; border-radius: 10px;
		background: var(--p-soft); color: var(--p-green);
	}
	.menu .sub-menu { display: none; margin: 0 0 12px 4px; padding: 0 0 0 14px; list-style: none; border-left: 2px solid var(--p-line); }
	.menu li.is-open > .sub-menu { display: block; }
	.menu .sub-menu a { min-height: 44px; padding: 10px 56px 10px 4px; font-size: 16px; font-weight: 600; }
	.menu .sub-menu a + .sub-toggle { top: 0; width: 40px; height: 40px; background: transparent; }
	.menu .current-menu-item > a { color: var(--p-green); }
	.menu > li.menu-cta { padding: 16px 0 0; border-bottom: 0; }
	.menu > li.menu-cta > a { justify-content: center; padding: 12px 16px; border-radius: 10px; background: var(--p-green); color: #fff; }
}

/* 6 Vyhledávání v hlavičce -------------------------------------------------------------- */
.hsearch { position: relative; }
.hsearch > summary {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 999px;
	color: var(--p-ink); cursor: pointer; list-style: none;
}
.hsearch > summary::-webkit-details-marker { display: none; }
.hsearch > summary:hover,
.hsearch[open] > summary { background: var(--p-soft); color: var(--p-green); }
.hsearch__panel {
	position: absolute; right: 0; top: calc(100% + 12px); z-index: 120;
	width: min(440px, 100vw - 2 * var(--gutter));
	padding: 12px; background: #fff;
	border: 1px solid var(--p-line); border-radius: 14px;
	box-shadow: 0 16px 40px rgba(31, 43, 27, .16);
}
@media (max-width: 1099.98px) {
	.hsearch__panel {
		position: fixed; left: var(--gutter); right: var(--gutter); width: auto;
		top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px) + 8px);
	}
}
.search-form { display: flex; gap: 8px; }
.search-form__input {
	flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 14px;
	border: 1px solid #cfd6ca; border-radius: 10px;
	background: #fff; color: var(--p-ink); font-size: 16px;
	-webkit-appearance: none; appearance: none;
}
.search-form__input:focus { border-color: var(--p-green); outline: 2px solid var(--p-green); outline-offset: 1px; }
.search-form__btn {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border: 0; border-radius: 10px;
	background: var(--p-green); color: #fff; cursor: pointer;
}
.search-form__btn:hover { background: var(--p-green-hover); }

/* drobečková navigace (Rank Math) */
.crumbs { margin: 16px 0 -8px; font-size: 13.5px; line-height: 1.5; color: var(--p-muted); }
.crumbs p { margin: 0; }
.crumbs a { color: var(--p-muted); font-weight: 600; text-decoration: none; }
.crumbs a:hover { color: var(--p-green); text-decoration: underline; }
.crumbs .separator { margin: 0 4px; opacity: .7; }
.crumbs .last { color: var(--p-ink); }

/* 7 Obsah (.prose) – běžný text klasických příspěvků a stránek; nízká specifičnost kvůli komponentám */
.prose { font-size: 16px; line-height: 1.7; color: var(--p-text); }
.prose--narrow { max-width: 820px; }
.prose::after { content: ""; display: table; clear: both; }
.prose :where(p, ul, ol, dl, blockquote, table, pre) { margin: 0 0 1.1em; }
.prose :where(h2) { margin: 1.6em 0 .6em; font-size: 24px; line-height: 1.3; }
.prose :where(h3) { margin: 1.4em 0 .5em; font-size: 19px; line-height: 1.35; }
.prose :where(h4, h5, h6) { margin: 1.2em 0 .4em; font-size: 17px; line-height: 1.4; }
.prose > :where(:first-child) { margin-top: 0; }
.prose :where(ul, ol) { padding-left: 1.4em; }
.prose :where(li) { margin: .25em 0; }
.prose :where(a) { font-weight: 600; }
.prose :where(img) { border-radius: 8px; }
.prose :where(blockquote) {
	margin-left: 0; padding: 12px 18px;
	border-left: 4px solid var(--p-green); border-radius: 0 10px 10px 0;
	background: var(--p-soft);
}
.prose :where(blockquote > :last-child) { margin-bottom: 0; }
.prose :where(table) { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose table[style*="height"] { height: auto !important; } /* starý obsah z TinyMCE má u tabulek pevnou výšku */
.prose :where(th, td) { padding: 8px 12px; border: 1px solid var(--p-line); text-align: left; vertical-align: top; }
.prose :where(th) { background: var(--p-card); font-weight: 700; color: var(--p-ink); }
.prose :where(tbody tr:nth-child(even) td) { background: #fafbf8; }
.prose :where(pre) { overflow: auto; padding: 12px 14px; border-radius: 8px; background: var(--p-card); font-size: 14px; }
.prose :where(iframe, embed, object, video) { max-width: 100%; }
.prose :where(iframe[src*="youtube"], iframe[src*="youtube-nocookie"], iframe[src*="vimeo"]) { width: 100%; height: auto; aspect-ratio: 16 / 9; }
@media (max-width: 781px) {
	.prose :where(table) { display: block; overflow-x: auto; }
	.prose table[style*="width"] { width: 100% !important; }
	/* malé obrázky zůstanou obtékané (starý obsah je mívá uprostřed věty), velké přes celou šířku */
	.alignleft { float: left; max-width: 45%; margin: .25em 1em .5em 0; }
	.alignright { float: right; max-width: 45%; margin: .25em 0 .5em 1em; }
	:is(img, figure).alignleft:is(.size-large, .size-full),
	:is(img, figure).alignright:is(.size-large, .size-full) { float: none; display: block; max-width: 100%; margin: 0 auto 1em; }
}
/* klasická galerie [gallery] (když ji nepřevezme Responsive Gallery Grid) */
.gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 8px; margin: 0 0 1.2em; }
.gallery-columns-1 { --cols: 1; } .gallery-columns-2 { --cols: 2; } .gallery-columns-4 { --cols: 4; }
.gallery-columns-5 { --cols: 5; } .gallery-columns-6 { --cols: 6; } .gallery-columns-7 { --cols: 7; }
.gallery-columns-8 { --cols: 8; } .gallery-columns-9 { --cols: 9; }
.gallery-item { margin: 0; }
.gallery-item img { display: block; width: 100%; height: auto; border-radius: 8px; }
.gallery-caption { margin-top: 4px; font-size: 12px; }
@media (max-width: 781px) {
	.gallery { --cols: 2; }
}

/* 8 Tlačítka a formuláře ---------------------------------------------------------------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wp-block-button > .wp-block-button__link {
	display: inline-block; padding: 8px 16px;
	border: 1px solid var(--p-green); border-radius: 6px;
	background: var(--p-green); color: #fff;
	font-size: 14px; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none;
	transition: background-color .15s, border-color .15s;
}
.wp-block-button > .wp-block-button__link:hover { background: var(--p-green-hover); border-color: var(--p-green-hover); color: #fff; }
.kct-p-pill > .wp-block-button__link { padding: 6px 14px; border-color: var(--p-line-strong); border-radius: 999px; background: var(--p-soft); font-weight: 600; color: var(--p-green); }
.kct-p-pill > .wp-block-button__link:hover { background: #e2eadc; border-color: #c9d2c2; color: var(--p-green); }

.button, .button-primary, .button-secondary, input[type="submit"], input[type="button"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	padding: 9px 18px; border: 1px solid var(--p-green); border-radius: 8px;
	background: var(--p-green); color: #fff;
	font-size: 15px; font-weight: 700; line-height: 1.3; text-decoration: none; cursor: pointer;
	transition: background-color .15s, border-color .15s;
}
.button:hover, .button-primary:hover, input[type="submit"]:hover, input[type="button"]:hover { background: var(--p-green-hover); border-color: var(--p-green-hover); color: #fff; }
.button-secondary { background: var(--p-soft); border-color: var(--p-line-strong); color: var(--p-green); }
.button-secondary:hover { background: #e2eadc; color: var(--p-green); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="url"],
input[type="password"], input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"], input[type="week"], select, textarea {
	max-width: 100%; padding: 9px 12px;
	border: 1px solid #cfd6ca; border-radius: 8px;
	background: #fff; color: var(--p-ink); font-size: 16px; line-height: 1.4;
}
input:focus, select:focus, textarea:focus { border-color: var(--p-green); outline: 2px solid var(--p-green); outline-offset: 1px; }
textarea { width: 100%; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--p-green); }
label { cursor: pointer; }
.widefat { width: 100%; }
.description { font-size: 13px; color: var(--p-muted); }

/* 9 Komponenty kct-page (převzato z betheme-child/kct-pages.css) -------------------------- */
/* základní text s nulovou specifičností obalu – vlastní třídy pluginů (cestopisy, průvodce výletem …) mají přednost */
:where(.kct-page) p { margin: 0 0 16px; font-size: 16px; line-height: 1.7; }
:where(.kct-page) a { color: var(--p-green); font-weight: 600; }
.kct-page :is(h1, h2, h3, h4, h5, h6) a,
.kct-page .kct-trip-list .kct-trip-title a { font-weight: inherit; }
.kct-page .kct-p-title,
.kct-page .kct-p-section { text-wrap: balance; }

/* hlavička stránky */
.kct-page .kct-p-head { padding: 20px 0 18px; margin: 0 0 26px; border-bottom: 1px solid var(--p-line); }
.kct-page .kct-p-head .wp-block-columns { margin: 0; align-items: center; }
.kct-page .kct-p-kicker { margin: 0 0 6px; font-size: 16px; line-height: 1.4; color: var(--p-muted); }
.kct-page .kct-p-title { margin: 0; font-size: 38px; line-height: 1.1; font-weight: 700; color: var(--p-ink); }
.kct-page .kct-p-actions { justify-content: flex-end; gap: 8px; }

/* úvod */
.kct-page .kct-p-intro { margin: 0 0 40px; gap: 40px; }
.kct-page .kct-p-lead { font-size: 19px; line-height: 1.65; color: #2b3328; }
.kct-page ul.kct-p-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0 24px; padding: 0; list-style: none; }
.kct-page ul.kct-p-facts li { margin: 0; padding: 12px 14px; border: 1px solid var(--p-line); border-radius: 10px; background: var(--p-card); font-size: 15px; line-height: 1.4; list-style: none; }
.kct-page ul.kct-p-facts li::before { display: none; }
.kct-page ul.kct-p-facts.kct-p-facts-row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 0 0 18px; }
.kct-page .kct-p-jump { gap: 8px; margin: 0 0 28px; }
.kct-page ul.kct-p-facts strong { display: block; margin: 0 0 2px; font-size: 13.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #2b3328; }

/* fotky */
.kct-page .kct-p-photos { gap: 14px; margin: 0; }
.kct-page .kct-p-photo { margin: 0; }
.kct-page .kct-p-photo img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 6px 20px rgba(31, 43, 27, .14); }
.kct-page .kct-p-photo figcaption { margin: 8px 0 0; font-size: 13px; font-weight: 600; text-align: left; color: var(--p-muted); }

/* hlavní obsah */
.kct-page .kct-p-main { gap: 40px; }
.kct-page .kct-p-section { margin: 0 0 18px; font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: .02em; text-transform: uppercase; color: var(--p-green); }
.kct-page .kct-p-section::after { content: ""; display: block; width: 36px; height: 3px; margin-top: 8px; border-radius: 2px; background: var(--p-accent); }
.kct-page .kct-p-sub { margin: 26px 0 10px; font-size: 21px; font-weight: 700; line-height: 1.3; color: var(--p-ink); }
.kct-page .kct-p-block { margin: 0 0 36px; padding: 0 0 30px; border-bottom: 1px solid var(--p-line); }
.kct-page .kct-p-block:last-child { border-bottom: 0; }
.kct-page .kct-p-main + .kct-p-block { margin-top: 4px; padding-top: 34px; border-top: 1px solid var(--p-line); }
.kct-page .kct-p-media { gap: 24px; margin: 6px 0 18px; align-items: flex-start; }
.kct-page .kct-p-media .kct-p-photo img { box-shadow: 0 4px 14px rgba(31, 43, 27, .12); }
.kct-page .kct-p-videos { gap: 18px; margin: 18px 0 0; }
.kct-page .kct-p-videos .kct-yt { margin: 0; }

/* osobnosti */
.kct-page .kct-p-people { gap: 16px; margin: 0 0 16px; }
.kct-page .kct-p-person { height: 100%; margin: 0; padding: 18px; border: 1px solid var(--p-line); border-radius: 12px; background: #fff; }
.kct-page .kct-p-person > .wp-block-group__inner-container,
.kct-page .kct-p-person:not(:has(> .wp-block-group__inner-container)) { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 16px; align-items: start; }
.kct-page .kct-p-person .kct-p-avatar { grid-column: 1; grid-row: 1 / span 2; align-self: center; margin: 0; }
.kct-page .kct-p-person > .wp-block-group__inner-container > :not(.kct-p-avatar),
.kct-page .kct-p-person > :not(.kct-p-avatar):not(.wp-block-group__inner-container) { grid-column: 2; }
.kct-page .kct-p-person .kct-p-person-year { align-self: end; }
.kct-page .kct-p-person .kct-p-person-name { align-self: start; }
.kct-page .kct-p-person > .wp-block-group__inner-container > p:not(.kct-p-person-year),
.kct-page .kct-p-person > p:not(.kct-p-person-year) { grid-column: 1 / -1; margin-top: 14px; }
.kct-page .kct-p-figure { margin: 0; }
.kct-page .kct-p-figure img { display: block; width: 100%; max-width: 120px; height: auto; margin: 0 auto; }
.kct-page .kct-p-person .kct-p-avatar img { display: block; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: center top; box-shadow: 0 2px 8px rgba(31, 43, 27, .18); }
.kct-page .kct-p-person-year { margin: 0 0 2px; font-size: 13.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #2b3328; }
.kct-page .kct-p-person-name { margin: 0 0 6px; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--p-ink); }
.kct-page .kct-p-person p:last-child { margin: 0; font-size: 15px; line-height: 1.6; }

/* zvýrazněné číslo */
.kct-page .kct-p-stat { margin: 6px 0 20px; padding: 18px 22px; border-left: 4px solid var(--p-green); border-radius: 0 12px 12px 0; background: var(--p-soft); }
.kct-page .kct-p-stat-number { margin: 0; font-size: 40px; font-weight: 700; line-height: 1.1; color: var(--p-green); }
.kct-page .kct-p-stat p:last-child { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: #2b3328; }

/* boční karty, časová osa, razítko, odkazy, výzva */
.kct-page .kct-p-card { margin: 0 0 22px; padding: 20px 22px; border: 1px solid var(--p-line); border-radius: 12px; background: var(--p-card); }
.kct-page .kct-p-card .kct-p-section { margin-bottom: 14px; font-size: 20px; }
.kct-page .kct-p-card .kct-p-section::after { width: 28px; margin-top: 6px; }
.kct-page .kct-p-card p:last-child { margin-bottom: 0; }
.kct-page ul.kct-p-timeline { margin: 0 0 0 6px; padding: 0 0 0 20px; border-left: 2px solid var(--p-line-strong); list-style: none; }
.kct-page ul.kct-p-timeline li { position: relative; margin: 0 0 12px; padding: 0; font-size: 14px; line-height: 1.45; list-style: none; }
.kct-page ul.kct-p-timeline li:last-child { margin-bottom: 0; }
.kct-page ul.kct-p-timeline li::before { content: ""; position: absolute; left: -27px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--p-green); box-shadow: 0 0 0 3px var(--p-card); }
.kct-page ul.kct-p-timeline strong { display: block; color: var(--p-green); }
.kct-page ul.kct-p-timeline.kct-p-timeline-cols li { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px; margin: 0 0 6px; }
.kct-page ul.kct-p-timeline.kct-p-timeline-cols li:last-child { margin-bottom: 0; }
.kct-page .kct-p-stamp, .kct-page .kct-p-stamp figure { display: block; width: auto; margin: 0; text-align: center; }
.kct-page .kct-p-stamp img { display: inline-block; width: 150px; height: auto; }
.kct-page .kct-p-stamp figure > figcaption, .kct-page figure.kct-p-stamp > figcaption { display: block; margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--p-muted); text-align: center; }
.kct-page ul.kct-p-links { margin: 0; padding: 0; list-style: none; }
.kct-page ul.kct-p-links li { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--p-line); font-size: 14px; line-height: 1.4; list-style: none; }
.kct-page ul.kct-p-links li:first-child { padding-top: 0; }
.kct-page ul.kct-p-links li:last-child { padding-bottom: 0; border-bottom: 0; }
.kct-page ul.kct-p-links li::before { display: none; }
.kct-page ul.kct-p-links strong { display: block; font-size: 13.5px; font-weight: 700; color: #2b3328; }
.kct-page .kct-p-cta { background: var(--p-green); border-color: var(--p-green); color: #fff; }
.kct-page .kct-p-cta .kct-p-section { color: #e3f3e6; }
.kct-page .kct-p-cta .kct-p-section::after { background: var(--p-accent); }
.kct-page .kct-p-cta p { font-size: 15px; line-height: 1.6; color: #fff; }
.kct-page .kct-p-cta a:not(.wp-block-button__link) { color: #fff; }
.kct-page .kct-p-cta .wp-block-buttons { gap: 8px; }
.kct-page .kct-p-cta .wp-block-button > .wp-block-button__link { background: #fff; border-color: #fff; color: var(--p-green); }
.kct-page .kct-p-cta .wp-block-button > .wp-block-button__link:hover { background: var(--p-soft); color: var(--p-green); }
.kct-page .kct-p-cta .kct-p-pill > .wp-block-button__link { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.kct-page .kct-p-cta .kct-p-pill > .wp-block-button__link:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.kct-page .kct-p-cta :focus-visible { outline-color: #fff; }

/* časté dotazy (blok Podrobnosti) */
.kct-page details.kct-p-faq { margin: 0 0 10px; border: 1px solid var(--p-line); border-radius: 10px; background: #fff; overflow: hidden; }
.kct-page details.kct-p-faq > summary { position: relative; padding: 14px 48px 14px 18px; font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--p-ink); cursor: pointer; list-style: none; }
.kct-page details.kct-p-faq > summary::-webkit-details-marker { display: none; }
.kct-page details.kct-p-faq > summary:focus-visible { outline-offset: -3px; border-radius: 9px; } /* rodič má overflow:hidden */
.kct-page details.kct-p-faq > summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; line-height: 1; color: var(--p-green); }
.kct-page details.kct-p-faq[open] > summary::after { content: "–"; }
.kct-page details.kct-p-faq[open] > summary { background: var(--p-card); border-bottom: 1px solid var(--p-line); }
.kct-page details.kct-p-faq > :not(summary) { margin-left: 18px; margin-right: 18px; }
.kct-page details.kct-p-faq > summary + * { margin-top: 14px; }
.kct-page details.kct-p-faq > :last-child { margin-bottom: 16px; }

/* tabulky po desetiletích */
.kct-page .kct-p-tables { margin: 18px 0 12px; }
.kct-page .kct-p-tables > .wp-block-group__inner-container,
.kct-page .kct-p-tables:not(:has(> .wp-block-group__inner-container)) { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; align-items: start; }
.kct-page figure.kct-p-table { display: flex; flex-direction: column-reverse; margin: 0; border: 1px solid var(--p-line); border-radius: 10px; background: #fff; overflow: hidden; }
.kct-page figure.kct-p-table figcaption { margin: 0; padding: 9px 12px; background: var(--p-green); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-align: left; color: #fff; }
.kct-page figure.kct-p-table table { width: 100%; min-width: 0; max-width: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; border-collapse: collapse; table-layout: auto; font-size: 14px; line-height: 1.35; }
.kct-page figure.kct-p-table thead, .kct-page figure.kct-p-table tfoot { border: 0; }
.kct-page figure.kct-p-table th,
.kct-page figure.kct-p-table td { padding: 6px 12px; border: 0; border-bottom: 1px solid #eef0ea; background: transparent; font-weight: 400; color: var(--p-text); text-align: left; vertical-align: middle; }
.kct-page figure.kct-p-table thead th { border-bottom: 1px solid var(--p-line); background: var(--p-card); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--p-muted); }
.kct-page figure.kct-p-table th:last-child,
.kct-page figure.kct-p-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.kct-page figure.kct-p-table tbody tr:nth-child(even) td { background: #fafbf8; }
.kct-page figure.kct-p-table tbody tr:hover td { background: #f1f5ee; }
.kct-page figure.kct-p-table tbody tr:last-child td { border-bottom: 0; }
.kct-page figure.kct-p-table td strong { font-weight: 700; color: var(--p-green); }
.kct-page figure.kct-p-table td em { font-style: normal; font-size: 12px; color: var(--p-muted); }
.kct-page .kct-p-note { font-size: 14px; line-height: 1.6; color: var(--p-muted); }

/* 9 Komponenty kct-page – pokračování (výpisy, dlaždice, dokumenty, ceník, značky, graf …) */
/* dynamické výpisy (Query Loop) – ročníky pochodu */
.kct-page .kct-p-current .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.kct-page .kct-p-current .wp-block-post-template > li { margin: 0; padding: 0; list-style: none; }
.kct-page .kct-p-current .wp-block-post-title { margin: 0 0 14px; font-size: 24px; font-weight: 700; line-height: 1.3; color: var(--p-ink); }
.kct-page .kct-p-current .wp-block-post-content h2 { margin: 26px 0 12px; font-size: 21px; line-height: 1.3; color: var(--p-ink); }
.kct-page .kct-p-current .wp-block-post-content h3 { margin: 0 0 16px; font-size: 18px; font-weight: 600; line-height: 1.5; color: #2b3328; }
.kct-page .kct-p-current .wp-block-post-content img { max-width: 100%; height: auto; border-radius: 10px; }
.kct-page .kct-p-archive .wp-block-post-template { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.kct-page .kct-p-archive .wp-block-post-template > li { margin: 0; padding: 0; list-style: none; }
.kct-page .kct-p-archive .wp-block-post-title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.kct-page .kct-p-archive .wp-block-post-title a { display: inline-block; padding: 8px 14px; border: 1px solid var(--p-line-strong); border-radius: 999px; background: var(--p-soft); color: var(--p-green); text-decoration: none; }
.kct-page .kct-p-archive .wp-block-post-title a:hover { background: #e2eadc; border-color: #c9d2c2; }

/* úvodní stránka: velká fotka s tlačítky */
.kct-page .wp-block-cover.kct-p-hero { min-height: 0 !important; aspect-ratio: 1920 / 440; margin: 0 0 26px; padding: 16px 18px; border-radius: 12px; overflow: hidden; align-items: flex-end; justify-content: flex-end; }
.kct-page .kct-p-hero .wp-block-cover__image-background { object-position: left center; }
.kct-page .kct-p-hero .wp-block-cover__inner-container { width: auto; margin: 0; }
.kct-page .kct-p-hero .wp-block-buttons { justify-content: flex-end; gap: 8px; }

/* dlaždice s odkazy na hlavní stránky */
.kct-page .kct-p-tiles { margin: 0 0 40px; }
.kct-page .kct-p-tiles > .wp-block-group__inner-container,
.kct-page .kct-p-tiles:not(:has(> .wp-block-group__inner-container)) { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.kct-page .kct-p-tile { position: relative; margin: 0; padding: 0 0 14px; border: 1px solid var(--p-line); border-radius: 12px; background: #fff; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.kct-page .kct-p-tile:hover { box-shadow: 0 8px 22px rgba(30, 123, 60, .14); transform: translateY(-2px); }
.kct-page .kct-p-tile .kct-p-tile-img { margin: 0 0 12px; }
.kct-page .kct-p-tile .kct-p-tile-img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.kct-page .kct-p-tile h3 { margin: 0 14px 4px; font-size: 17px; font-weight: 700; line-height: 1.3; }
.kct-page .kct-p-tile h3 a { color: var(--p-ink); text-decoration: none; }
.kct-page .kct-p-tile h3 a::after { content: ""; position: absolute; inset: 0; }
.kct-page .kct-p-tile p { margin: 0 14px; font-size: 14px; line-height: 1.5; color: var(--p-muted); }

/* odkaz „… →“ pod sekcí */
.kct-page .kct-p-more { margin: 14px 0 0; font-size: 15px; font-weight: 700; }

/* aktuality (Query Loop) */
.kct-page .kct-p-news .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.kct-page .kct-p-news .wp-block-post-template > li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0; padding: 12px 0; border-bottom: 1px solid #e5e8e1; list-style: none; }
.kct-page .kct-p-news .wp-block-post-template > li:first-child { padding-top: 0; }
.kct-page .kct-p-news .wp-block-post-title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.kct-page .kct-p-news .wp-block-post-title a { color: var(--p-ink); text-decoration: none; }
.kct-page .kct-p-news .wp-block-post-title a:hover { color: var(--p-green); }
.kct-page .kct-p-news .wp-block-post-date { flex: 0 0 auto; margin: 0; font-size: 13px; color: var(--p-muted); }
.kct-page .kct-p-card .kct-p-news .wp-block-post-template > li { flex-direction: column-reverse; align-items: flex-start; gap: 2px; padding: 10px 0; }
.kct-page .kct-p-card .kct-p-news .wp-block-post-template > li:first-child { padding-top: 0; }
.kct-page .kct-p-card .kct-p-news .wp-block-post-title { font-size: 16px; }
.kct-page .kct-p-card .kct-p-news .wp-block-post-date { font-size: 12px; }
.kct-page .kct-p-card .kct-p-more { margin-top: 12px; font-size: 14px; }

/* fotogalerie (Query Loop) */
.kct-page .kct-p-gallery .wp-block-post-template { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; padding: 0; list-style: none; }
.kct-page .kct-p-gallery .wp-block-post-template > li { position: relative; margin: 0; padding: 0; overflow: hidden; border-radius: 8px; background: #d9ded3; list-style: none; }
.kct-page .kct-p-gallery .wp-block-post-template > li:first-child { grid-column: 1 / -1; }
.kct-page .kct-p-gallery .wp-block-post-featured-image { margin: 0; }
.kct-page .kct-p-gallery .wp-block-post-featured-image img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.kct-page .kct-p-gallery .wp-block-post-template > li:first-child .wp-block-post-featured-image img { aspect-ratio: 16 / 9; }
.kct-page .kct-p-gallery .wp-block-post-template > li:hover img { transform: scale(1.04); }
.kct-page .kct-p-gallery .wp-block-post-featured-image a:focus-visible { outline-offset: -3px; border-radius: 8px; }
.kct-page .kct-p-gallery .wp-block-post-title { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 22px 10px 8px; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .72) 40%, rgba(0, 0, 0, .8)); font-size: 13px; font-weight: 700; line-height: 1.25; text-shadow: 0 1px 2px rgba(0, 0, 0, .85); pointer-events: none; }
.kct-page .kct-p-gallery .wp-block-post-title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #fff; text-decoration: none; pointer-events: auto; }

/* dokumenty ke stažení (seznam: <li><a>název</a><em>PDF · velikost</em></li>) */
.kct-page ul.kct-p-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.kct-page ul.kct-p-docs li { position: relative; min-height: 74px; margin: 0; padding: 14px 16px 14px 66px; border: 1px solid var(--p-line); border-radius: 12px; background: #fff; list-style: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.kct-page ul.kct-p-docs li::before { content: "PDF"; position: absolute; left: 14px; top: 14px; display: flex; align-items: center; justify-content: center; width: 38px; height: 46px; margin: 0; border-radius: 6px 14px 6px 6px; background: var(--p-soft); font-size: 11px; font-weight: 700; letter-spacing: .04em; line-height: 1; color: var(--p-red); }
.kct-page ul.kct-p-docs li.kct-p-doc-img::before { content: "JPG"; color: var(--p-green); }
.kct-page ul.kct-p-docs li.kct-p-doc-page::before { content: "WEB"; color: var(--p-green); }
.kct-page ul.kct-p-docs li:hover { border-color: #c5d1bd; box-shadow: 0 6px 18px rgba(31, 43, 27, .08); transform: translateY(-1px); }
.kct-page ul.kct-p-docs a { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--p-ink); text-decoration: none; }
.kct-page ul.kct-p-docs a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.kct-page ul.kct-p-docs li:hover a { color: var(--p-green); }
.kct-page ul.kct-p-docs em { display: block; margin: 4px 0 0; font-size: 12px; font-style: normal; line-height: 1.4; color: var(--p-muted); }
.kct-page .kct-p-card ul.kct-p-docs { grid-template-columns: 1fr; }

/* ceník (seznam: <li><strong>kategorie</strong>věk<em>částka</em></li>) */
.kct-page ul.kct-p-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; }
.kct-page ul.kct-p-prices li { margin: 0; padding: 16px 12px; border: 1px solid var(--p-line); border-radius: 12px; background: #fff; font-size: 13px; line-height: 1.4; text-align: center; color: var(--p-muted); list-style: none; }
.kct-page ul.kct-p-prices strong { display: block; margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--p-green); }
.kct-page ul.kct-p-prices em { display: block; margin: 10px 0 0; font-size: 26px; font-style: normal; font-weight: 700; line-height: 1.1; white-space: nowrap; color: var(--p-ink); }
.kct-page ul.kct-p-prices li.kct-p-accent { background: var(--p-green); border-color: var(--p-green); color: #dbe6c8; }
.kct-page ul.kct-p-prices li.kct-p-accent strong { color: #dbe6c8; }
.kct-page ul.kct-p-prices li.kct-p-accent em { color: #fff; }

/* postup v krocích (číslovaný seznam) */
.kct-page ol.kct-p-steps { margin: 0; padding: 0; list-style: none; counter-reset: kctstep; }
.kct-page ol.kct-p-steps > li { position: relative; min-height: 36px; margin: 0 0 16px; padding: 4px 0 0 52px; font-size: 16px; line-height: 1.6; list-style: none; counter-increment: kctstep; }
.kct-page ol.kct-p-steps > li:last-child { margin-bottom: 0; }
.kct-page ol.kct-p-steps > li::before { content: counter(kctstep); position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--p-green); font-size: 16px; font-weight: 700; line-height: 1; color: #fff; }
.kct-page ol.kct-p-steps > li > strong:first-child { display: block; margin: 0 0 2px; color: var(--p-ink); }
.kct-page ol.kct-p-steps + p { margin-top: 12px; }

/* ukázky značek (skupina obrázků s popiskem) */
.kct-page .kct-p-signs { margin: 8px 0 24px; }
.kct-page .kct-p-signs > .wp-block-group__inner-container,
.kct-page .kct-p-signs:not(:has(> .wp-block-group__inner-container)) { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.kct-page .kct-p-signs figure.wp-block-image { display: flex; flex-direction: column; align-items: center; margin: 0; padding: 18px 12px 14px; border: 1px solid var(--p-line); border-radius: 12px; background: #fff; text-align: center; }
.kct-page .kct-p-signs figure.wp-block-image img { display: block; flex: 0 0 auto; width: auto; max-width: 100%; height: 70px; margin: 0 auto; object-fit: contain; }
.kct-page .kct-p-signs figure.wp-block-image figcaption { margin: 12px 0 0; font-size: 14px; font-weight: 600; line-height: 1.4; text-align: center; color: var(--p-ink); }
.kct-page .kct-p-signs.kct-p-signs-lg > .wp-block-group__inner-container,
.kct-page .kct-p-signs.kct-p-signs-lg:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.kct-page .kct-p-signs.kct-p-signs-lg figure.wp-block-image img { height: 170px; }
.kct-page .kct-p-signs.kct-p-signs-lg figure.wp-block-image figcaption { font-weight: 400; color: #444; }
.kct-page .kct-p-signs figure.wp-block-image figcaption strong { display: block; margin: 0 0 2px; font-weight: 700; color: var(--p-ink); }
/* počet sloupců podle počtu značek, aby na desktopu byly řady plné (12 → 2 × 6, 6 velkých → 2 × 3 …) */
@media (min-width: 782px) {
	.kct-page :is(.kct-p-signs, .kct-p-signs > .wp-block-group__inner-container):has(> figure:nth-child(1):last-child) { grid-template-columns: minmax(0, 260px); }
	.kct-page :is(.kct-p-signs, .kct-p-signs > .wp-block-group__inner-container):has(> figure:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kct-page :is(.kct-p-signs, .kct-p-signs > .wp-block-group__inner-container):has(> figure:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.kct-page :is(.kct-p-signs, .kct-p-signs > .wp-block-group__inner-container):has(> figure:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.kct-page :is(.kct-p-signs, .kct-p-signs > .wp-block-group__inner-container):has(> figure:nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.kct-page :is(.kct-p-signs, .kct-p-signs > .wp-block-group__inner-container):has(> figure:nth-child(6):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.kct-page :is(.kct-p-signs, .kct-p-signs > .wp-block-group__inner-container):has(> figure:nth-child(7):last-child) { grid-template-columns: repeat(7, minmax(0, 1fr)); }
	.kct-page :is(.kct-p-signs, .kct-p-signs > .wp-block-group__inner-container):has(> figure:nth-child(8):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.kct-page :is(.kct-p-signs, .kct-p-signs > .wp-block-group__inner-container):has(> figure:nth-child(9):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.kct-page :is(.kct-p-signs, .kct-p-signs > .wp-block-group__inner-container):has(> figure:nth-child(10):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.kct-page :is(.kct-p-signs, .kct-p-signs > .wp-block-group__inner-container):has(> figure:nth-child(11):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.kct-page :is(.kct-p-signs, .kct-p-signs > .wp-block-group__inner-container):has(> figure:nth-child(12):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.kct-page :is(.kct-p-signs, .kct-p-signs > .wp-block-group__inner-container):has(> figure:nth-child(13):last-child) { grid-template-columns: repeat(7, minmax(0, 1fr)); }
	.kct-page :is(.kct-p-signs, .kct-p-signs > .wp-block-group__inner-container):has(> figure:nth-child(14):last-child) { grid-template-columns: repeat(7, minmax(0, 1fr)); }
	.kct-page :is(.kct-p-signs-lg, .kct-p-signs-lg > .wp-block-group__inner-container):has(> figure:nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.kct-page :is(.kct-p-signs-lg, .kct-p-signs-lg > .wp-block-group__inner-container):has(> figure:nth-child(7):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.kct-page :is(.kct-p-signs-lg, .kct-p-signs-lg > .wp-block-group__inner-container):has(> figure:nth-child(9):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.kct-page :is(.kct-p-signs-lg, .kct-p-signs-lg > .wp-block-group__inner-container):has(> figure:nth-child(11):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.kct-page :is(.kct-p-signs-lg, .kct-p-signs-lg > .wp-block-group__inner-container):has(> figure:nth-child(12):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.kct-page .kct-p-signs.kct-p-signs-lg figure.wp-block-image img { height: 200px; }
}

/* rychlé údaje vedle fotky pod sebou, fotka na šířku ořezaná na 3 : 2 */
.kct-page .kct-p-media ul.kct-p-facts { grid-template-columns: 1fr; margin: 0; }
.kct-page .kct-p-photo.kct-p-photo-wide img { aspect-ratio: 3 / 2 !important; object-fit: cover; } /* !important kvůli zástupnému poměru z lazy-loadu Smush */

/* barvy tras – legenda s pásovou značkou (li s třídou kct-c-red / -blue / -green / -yellow) */
.kct-page ul.kct-p-colors { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 4px 0 22px; padding: 0; list-style: none; }
.kct-page ul.kct-p-colors li { position: relative; min-height: 66px; margin: 0; padding: 14px 16px 14px 66px; border: 1px solid var(--p-line); border-radius: 12px; background: #fff; font-size: 14px; line-height: 1.45; color: #444; list-style: none; }
.kct-page ul.kct-p-colors li::before { content: ""; position: absolute; left: 16px; top: 15px; width: 36px; height: 36px; margin: 0; border: 1px solid #cfd4cb; border-radius: 3px; background: linear-gradient(#fff 0 33.3%, var(--kct-c, #999) 33.3% 66.7%, #fff 66.7%); }
.kct-page ul.kct-p-colors strong { display: block; margin: 0 0 2px; font-size: 15px; color: var(--p-ink); }
.kct-page ul.kct-p-colors li.kct-c-red { --kct-c: #e2001a; }
.kct-page ul.kct-p-colors li.kct-c-blue { --kct-c: #0061b0; }
.kct-page ul.kct-p-colors li.kct-c-green { --kct-c: #00963f; }
.kct-page ul.kct-p-colors li.kct-c-yellow { --kct-c: #ffd200; }

/* dvě stejně vysoké karty vedle sebe */
.kct-page .kct-p-duo { gap: 22px; margin: 0; }
.kct-page .kct-p-duo > .wp-block-column > .kct-p-card { height: 100%; margin: 0; }

/* rozcestník druhů (ikona + nadpis s odkazem + text) */
.kct-page .kct-p-kinds { margin: 0 0 36px; }
.kct-page .kct-p-kinds > .wp-block-group__inner-container,
.kct-page .kct-p-kinds:not(:has(> .wp-block-group__inner-container)) { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.kct-page .kct-p-kind { position: relative; margin: 0; padding: 18px; border: 1px solid var(--p-line); border-radius: 12px; background: #fff; transition: box-shadow .2s, transform .2s; }
.kct-page .kct-p-kind:hover { box-shadow: 0 8px 22px rgba(30, 123, 60, .14); transform: translateY(-2px); }
.kct-page .kct-p-kind > .wp-block-group__inner-container,
.kct-page .kct-p-kind:not(:has(> .wp-block-group__inner-container)) { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; align-items: center; }
.kct-page .kct-p-kind .kct-p-kind-icon { grid-row: 1 / span 2; margin: 0; }
.kct-page .kct-p-kind .kct-p-kind-icon img { display: block; width: 52px; height: 52px; border-radius: 8px; }
.kct-page .kct-p-kind h3 { grid-column: 2; margin: 0 0 2px; font-size: 17px; font-weight: 700; line-height: 1.3; }
.kct-page .kct-p-kind h3 a { color: var(--p-ink); text-decoration: none; }
.kct-page .kct-p-kind h3 a::after { content: ""; position: absolute; inset: 0; }
.kct-page .kct-p-kind p { grid-column: 2; margin: 0; font-size: 14px; line-height: 1.45; color: var(--p-muted); }

/* sloupcový graf z tabulek (assets/js/kct-chart.js) */
.kct-page .kct-p-chart { margin: 6px 0 20px; padding: 16px 16px 12px; border: 1px solid var(--p-line); border-radius: 12px; background: #fff; }
.kct-page .kct-p-chart:empty { display: none; }
.kct-page .kct-p-chart .kct-p-chart-title { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--p-muted); }
.kct-page .kct-p-chart-plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.kct-page .kct-p-chart-plot text { font-size: 12px; fill: var(--p-muted); }
.kct-page .kct-p-chart-plot .kc-grid { stroke: #eceee8; stroke-width: 1; }
.kct-page .kct-p-chart-plot .kc-bar { fill: #7f9c73; transition: fill .15s; }
.kct-page .kct-p-chart-plot .kc-bar.is-max, .kct-page .kct-p-chart-plot .kc-bar.is-last { fill: var(--p-green); }
.kct-page .kct-p-chart-plot .kc-bar.is-active { fill: var(--p-red); }
.kct-page .kct-p-chart-plot .kc-hit { fill: transparent; cursor: pointer; }
.kct-page .kct-p-chart-plot .kc-hit:hover { fill: rgba(30, 123, 60, .06); }
.kct-page .kct-p-chart-plot .kc-gap { font-size: 12px; font-weight: 700; fill: #b9bdb4; }
.kct-page .kct-p-chart-plot .kc-label { font-size: 12px; font-weight: 700; fill: var(--p-ink); }
.kct-page .kct-p-chart .kct-p-chart-info { min-height: 1.6em; margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--p-muted); }
.kct-page .kct-p-chart .kct-p-chart-info strong { color: var(--p-ink); }

/* náhled dokumentu v kartě */
.kct-page .kct-p-preview { margin: 0 0 14px; }
.kct-page .kct-p-preview img { display: block; width: 100%; height: auto; border: 1px solid var(--p-line); border-radius: 8px; box-shadow: 0 4px 14px rgba(31, 43, 27, .08); background: #fff; }

@media (max-width: 781px) {
	.kct-page .kct-p-title { font-size: 30px; }
	.kct-page .kct-p-actions { justify-content: flex-start; }
	.kct-page .kct-p-lead { font-size: 17px; }
	.kct-page ul.kct-p-facts { grid-template-columns: 1fr; }
	.kct-page ul.kct-p-facts.kct-p-facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.kct-page ul.kct-p-facts.kct-p-facts-row li { padding: 10px 12px; font-size: 14px; }
	.kct-page ul.kct-p-facts.kct-p-facts-row li:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.kct-page .kct-p-intro, .kct-page .kct-p-main { gap: 24px; }
	.kct-page ul.kct-p-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kct-page ul.kct-p-prices em { font-size: 22px; }
	.kct-page .kct-p-signs > .wp-block-group__inner-container,
	.kct-page .kct-p-signs:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.kct-page .kct-p-signs.kct-p-signs-lg > .wp-block-group__inner-container,
	.kct-page .kct-p-signs.kct-p-signs-lg:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: 1fr; }
	.kct-page .kct-p-signs figure.wp-block-image { padding: 14px 8px 12px; }
	.kct-page .kct-p-signs figure.wp-block-image figcaption { font-size: 13px; }
	.kct-page .wp-block-cover.kct-p-hero { aspect-ratio: 16 / 9; padding: 10px 12px; }
	.kct-page .kct-p-hero .kct-p-pill { display: none; }
	.kct-page .kct-p-hero .wp-block-button > .wp-block-button__link { padding: 6px 12px; font-size: 13px; }
	.kct-page .kct-p-news .wp-block-post-template > li { flex-direction: column; gap: 2px; }
	.kct-page .kct-p-tables > .wp-block-group__inner-container,
	.kct-page .kct-p-tables:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.kct-page figure.kct-p-table th, .kct-page figure.kct-p-table td { padding: 5px 9px; }
	.kct-page figure.kct-p-table table { font-size: 13px; }
	.kct-page .kct-p-person > .wp-block-group__inner-container,
	.kct-page .kct-p-person:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: 60px minmax(0, 1fr); }
	.kct-page .kct-p-person .kct-p-avatar img { width: 60px; height: 60px; }
	.kct-page .kct-p-stat-number { font-size: 32px; }
}

/* ==========================================================================
   Nové výlety e-mailem: formulář [kct_odber] (mu-plugin kct-odber.php) na stránkách
   Aktuální výlety a Plán turistických akcí + stránky z odkazů v e-mailu (?kct_odber=…).
   Selektory s .kct-odber na začátku – globální styly inputů (01-zaklad) a .kct-page p mají vyšší váhu.
   ========================================================================== */

.kct-odber {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px 36px; align-items: center;
	margin: 8px 0 36px; padding: 24px 28px;
	border: 1px solid var(--p-line-strong); border-radius: var(--radius);
	background: var(--p-soft);
}
.kct-odber .kct-odber-text { position: relative; padding-left: 60px; }
.kct-odber .kct-odber-icon {
	position: absolute; left: 0; top: 0;
	display: flex; align-items: center; justify-content: center; width: 46px; height: 46px;
	border-radius: 50%; background: var(--p-green); color: #fff;
}
.kct-odber .kct-odber-title { margin: 0 0 6px; font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--p-ink); text-wrap: balance; }
.kct-odber .kct-odber-lead { margin: 0; font-size: 16px; line-height: 1.6; color: #2b3328; }

.kct-odber .kct-odber-form { position: relative; margin: 0; }
.kct-odber .kct-odber-label { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--p-ink); }
.kct-odber .kct-odber-row { display: flex; gap: 8px; }
.kct-odber .kct-odber-input {
	flex: 1 1 auto; min-width: 0; width: auto; height: 50px; margin: 0; padding: 0 14px;
	border: 1px solid #c4ccbf; border-radius: 10px; background: #fff; color: var(--p-ink); font-size: 17px;
}
.kct-odber-btn {
	flex: 0 0 auto; height: 50px; margin: 0; padding: 0 20px;
	border: 1px solid var(--p-green); border-radius: 10px; background: var(--p-green); color: #fff;
	font-size: 16px; font-weight: 700; line-height: 1.2; cursor: pointer;
	transition: background-color .15s, border-color .15s;
}
.kct-odber-btn:hover { background: var(--p-green-hover); border-color: var(--p-green-hover); }
.kct-odber-btn:disabled { opacity: .7; cursor: wait; }
.kct-odber .kct-odber-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.kct-odber .kct-odber-msg { margin: 10px 0 0; padding: 10px 14px; border-left: 4px solid var(--p-line-strong); border-radius: 8px; background: #fff; font-size: 15px; line-height: 1.5; color: var(--p-ink); }
.kct-odber .kct-odber-msg[hidden] { display: none; }
.kct-odber .kct-odber-msg.is-ok { border-left-color: var(--p-green); }
.kct-odber .kct-odber-msg.is-error { border-left-color: var(--p-red); }
.kct-odber .kct-odber-form.is-done .kct-odber-label,
.kct-odber .kct-odber-form.is-done .kct-odber-row { display: none; }
.kct-odber .kct-odber-form.is-done .kct-odber-msg { margin-top: 0; }
.kct-odber .kct-odber-note { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--p-muted); }
.kct-odber .kct-odber-note a { color: inherit; }

/* tlačítko „Nové výlety e-mailem“ v hlavičce stránek (třída kct-p-novinka): červený vykřičník před textem */
.kct-p-novinka > .wp-block-button__link::before {
	content: "!"; content: "!" / "";
	margin-right: 5px; font-size: 1.2em; font-weight: 900; line-height: 1; color: var(--kct-red);
}

/* stránky z odkazu v e-mailu: potvrzení / zrušení odběru */
.kct-odber-page { max-width: 780px; padding-bottom: 40px; }
.kct-odber-page .kct-odber-confirm { margin: 0 0 18px; }
.kct-odber-page .kct-odber-btn { height: auto; padding: 13px 24px; font-size: 17px; }

@media (max-width: 820px) {
	.kct-odber { grid-template-columns: 1fr; padding: 20px 18px; }
}
@media (max-width: 520px) {
	.kct-odber .kct-odber-text { padding-left: 0; }
	.kct-odber .kct-odber-icon { position: static; width: 40px; height: 40px; margin: 0 0 10px; }
	.kct-odber .kct-odber-row { flex-direction: column; }
	.kct-odber-btn { width: 100%; }
}
/* Kvíz [kct_kviz] (mu-plugin kct-kviz, stránka Loneček – kvíz): jedna otázka na obrazovce, přezdívka nad první otázkou,
   vyhodnocuje server. Výsledek a souřadnice kešky přijdou až po odeslání. */
.kct-kviz { max-width: 720px; margin: 0 0 32px; }
.kct-kviz__otazka { margin: 0; padding: 18px 20px 12px; border: 1px solid var(--p-line); border-radius: 12px; background: #fff; }
.kct-kviz__otazka legend { float: left; width: 100%; margin: 0 0 14px; padding: 0; font-size: 19px; font-weight: 700; line-height: 1.4; color: var(--p-ink); }
.kct-kviz__cislo { display: block; margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--p-muted); }
.kct-kviz .kct-kviz__odpoved { clear: both; display: flex; align-items: flex-start; gap: 10px; margin: 0 0 8px; padding: 10px 14px; border: 1px solid var(--p-line-strong); border-radius: 10px; font-size: 16px; line-height: 1.45; cursor: pointer; transition: border-color .15s, background-color .15s; }
.kct-kviz .kct-kviz__odpoved:hover { border-color: var(--p-green); background: var(--p-soft); }
.kct-kviz .kct-kviz__odpoved:has(input:checked) { border-color: var(--p-green); background: var(--p-soft); font-weight: 600; }
.kct-kviz__odpoved input { flex: 0 0 auto; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--p-green); }
.kct-kviz__jmeno { margin: 0 0 14px; padding: 16px 20px; border: 1px dashed var(--p-line-strong); border-radius: 12px; background: var(--p-card); }
.kct-kviz__jmeno label, .kct-kviz__dopsat label { display: block; margin: 0 0 6px; font-weight: 700; color: var(--p-ink); }
.kct-kviz__jmeno label span { font-weight: 400; color: var(--p-muted); }
.kct-kviz input[type="text"] { box-sizing: border-box; width: 100%; max-width: 360px; min-height: 44px; margin: 0; padding: 8px 12px; border: 1px solid var(--p-line-strong); border-radius: 8px; background: #fff; font: inherit; font-size: max(16px, 1em); color: var(--p-ink); } /* aspoň 16 px – iPhone jinak přiblíží */
.kct-kviz input[type="text"]:focus { border-color: var(--p-green); outline: 2px solid var(--p-green); outline-offset: 1px; }
.kct-kviz__jmeno p { margin: 6px 0 0; font-size: 14px; color: var(--p-muted); }
.kct-kviz__chyba { margin: 10px 0 0; font-weight: 600; color: #b32d2e; }
.kct-kviz__chyba:empty { display: none; }
.kct-kviz__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 0; }
.kct-kviz__postup { margin-right: auto; font-size: 14px; color: var(--p-muted); }
.kct-kviz button { min-height: 44px; margin: 0; padding: 10px 20px; border: 1px solid var(--p-green); border-radius: 999px; background: var(--p-green); font: inherit; font-weight: 700; line-height: 1.2; color: #fff; cursor: pointer; }
.kct-kviz button:hover, .kct-kviz button:focus-visible { background: var(--p-green-hover); border-color: var(--p-green-hover); }
.kct-kviz button.kct-kviz__zpet { background: #fff; color: var(--p-green); }
.kct-kviz button.kct-kviz__zpet:hover { background: var(--p-soft); }
.kct-kviz button:disabled { opacity: .65; cursor: wait; }
.kct-kviz button[hidden] { display: none; }
.kct-kviz__vysledek { padding: 20px 22px; border: 1px solid var(--p-line); border-radius: 12px; background: var(--p-card); }
.kct-kviz__vysledek h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.3; color: var(--p-ink); }
.kct-kviz__vysledek .kct-kviz__skore { margin: 0 0 14px; font-size: 30px; font-weight: 800; line-height: 1.2; color: var(--p-green); }
.kct-kviz__vysledek p { margin: 0 0 10px; }
.kct-kviz__dopsat { margin: 18px 0 6px; padding: 14px 0 0; border-top: 1px dashed var(--p-line-strong); }
.kct-kviz__dopsat span { display: flex; flex-wrap: wrap; gap: 8px; }
.kct-kviz__dopsat input[type="text"] { flex: 1 1 220px; }
.kct-kviz__zapsano { margin-top: 14px; color: var(--p-muted); }
/* od druhého pokusu: které otázky byly špatně (ve výsledku a u otázek po „Zkusit znovu“) */
.kct-kviz__vysledek .kct-kviz__spatne { font-weight: 700; color: #9b1c1c; }
.kct-kviz__vysledek .kct-kviz__tip { font-size: 15px; color: var(--p-muted); }
.kct-kviz__otazka--spatne { border-color: #e7a8a8; box-shadow: inset 4px 0 0 #c62828; }
.kct-kviz__minule { clear: both; margin: 0 0 10px; padding: 6px 12px; border-radius: 8px; background: #fde2e2; font-size: 14px; font-weight: 700; color: #9b1c1c; }
/* 10 Archiv aktualit: karty zpráv po rocích, lichá poslední karta přes celou šířku -------- */
.kct-page .kct-p-pageinfo { margin: -8px 0 18px; }
.kct-page .kct-p-year { margin: 34px 0 16px; }
.kct-page .kct-p-newslist > .kct-p-year:first-child,
.kct-page .kct-p-pageinfo + .kct-p-year { margin-top: 0; }
.kct-page .kct-p-postgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 10px; }
.kct-page .kct-p-postgrid > .kct-p-post:last-child:nth-child(odd) { grid-column: 1 / -1; }
.kct-page .kct-p-post { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 16px; align-items: start; margin: 0; padding: 16px 18px; border: 1px solid var(--p-line); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.kct-page .kct-p-post.has-thumb { grid-template-columns: 58px minmax(0, 1fr) 112px; }
.kct-page .kct-p-post:hover { border-color: #c5d1bd; box-shadow: 0 8px 22px rgba(30, 123, 60, .10); transform: translateY(-1px); }
.kct-page .kct-p-post-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 10px; background: var(--p-soft); line-height: 1; text-align: center; color: var(--p-green); }
.kct-page .kct-p-post-date .d { font-size: 22px; font-weight: 700; }
.kct-page .kct-p-post-date .m { margin-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.kct-page .kct-p-post-body { min-width: 0; }
.kct-page .kct-p-post-title { margin: 2px 0 6px; font-size: 17px; font-weight: 700; line-height: 1.35; }
.kct-page .kct-p-post-title a { color: var(--p-ink); text-decoration: none; }
.kct-page .kct-p-post-title a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.kct-page .kct-p-post:hover .kct-p-post-title a { color: var(--p-green); }
.kct-page p.kct-p-post-excerpt { display: -webkit-box; margin: 0; overflow: hidden; font-size: 14px; line-height: 1.55; color: #555; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.kct-page .kct-p-post-thumb { margin: 0; }
.kct-page .kct-p-post-thumb img { display: block; width: 112px; height: 84px; border-radius: 8px; object-fit: cover; }
.kct-page .kct-p-post-new { display: inline-block; margin: 0 0 4px; padding: 2px 8px; border-radius: 999px; background: var(--p-red); font-size: 12px; font-weight: 700; letter-spacing: .04em; line-height: 1.5; text-transform: uppercase; color: #fff; }
.kct-p-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 30px 0 10px; }
.kct-p-pager .page-numbers,
.kct-p-pager > a,
.kct-p-pager .post-page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--p-line-strong); border-radius: 999px; background: var(--p-soft); font-size: 15px; font-weight: 600; line-height: 1; color: var(--p-green); text-decoration: none; }
.kct-p-pager a:hover { background: #e2eadc; border-color: #c9d2c2; }
.kct-p-pager .current { background: var(--p-green); border-color: var(--p-green); color: #fff; }
.kct-p-pager .dots { min-width: 0; padding: 0 4px; border-color: transparent; background: transparent; }
@media (max-width: 781px) {
	.kct-page .kct-p-postgrid { grid-template-columns: 1fr; }
	.kct-page .kct-p-post, .kct-page .kct-p-post.has-thumb { grid-template-columns: 50px minmax(0, 1fr); column-gap: 12px; padding: 14px; }
	.kct-page .kct-p-post-date { width: 50px; height: 50px; }
	.kct-page .kct-p-post-date .d { font-size: 19px; }
	.kct-page .kct-p-post-thumb { display: none; }
	.kct-p-pager .page-numbers { min-width: 36px; height: 36px; padding: 0 10px; font-size: 14px; }
}

/* 11 Detaily (aktualita, výlet, akce, cestopis, ročník, obecná stránka) ------------------ */
.kct-page .kct-p-head-simple { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.kct-page .kct-p-head-simple .kct-p-head-text { flex: 1 1 520px; min-width: 0; }
.kct-page .kct-p-head-simple .kct-p-actions { display: flex; flex-wrap: wrap; }
.kct-page .kct-p-single-photo { margin: 0 0 24px; }
.kct-page .kct-p-single-photo img { display: block; width: auto; max-width: 100%; height: auto; max-height: 520px; border-radius: 12px; box-shadow: 0 6px 20px rgba(31, 43, 27, .14); }
.kct-page .kct-p-single-content { margin: 0 0 34px; font-size: 16px; line-height: 1.7; }
.kct-page .kct-p-single-content > :last-child { margin-bottom: 0; }
.kct-page .kct-p-single-content img { max-width: 100%; height: auto; border-radius: 8px; }
/* obecná typografie textu s nízkou specifičností – vlastní styly pluginů (výlety, cestopisy, průvodce) mají přednost */
.kct-p-single-content :where(h2) { margin: 28px 0 12px; font-size: 22px; line-height: 1.3; color: var(--p-ink); }
.kct-p-single-content :where(h3) { margin: 22px 0 10px; font-size: 18px; line-height: 1.35; color: var(--p-ink); }
.kct-p-single-content :where(ul, ol) { margin: 0 0 16px 22px; padding: 0; }
.kct-p-single-content :where(ul.kct-active, ul.kct-summary-list, ul.kct-waitlist) > li { margin: 0; }
/* stránka, jejíž obsah začíná vlastním H1 (klasický obsah) – stejný vzhled jako hlavička šablony */
.kct-page.kct-p-single > .kct-p-single-content > h1:first-child { margin: 0 0 26px; padding: 20px 0 18px; border-bottom: 1px solid var(--p-line); font-size: 38px; line-height: 1.1; color: var(--p-ink); text-wrap: balance; }
@media (max-width: 781px) {
	.kct-page.kct-p-single > .kct-p-single-content > h1:first-child { font-size: 30px; }
}
/* úzké textové stránky (klasický obsah) uprostřed, dlouhé řádky textu omezené */
.kct-page.kct-p-single--narrow { max-width: 820px; }
.kct-page .kct-p-results,
.single-vylety .kct-trip-content,
.single-portfolio .kct-p-single-content,
.single-dalsi-akce .kct-p-single-content { max-width: 820px; }
.single-cestopis .kct-cest-back { display: none; } /* zpět na cestopisy je tlačítko v hlavičce */
.kct-page.kct-p-more-news { margin-top: 6px; padding-top: 30px; border-top: 1px solid var(--p-line); }
.kct-page.kct-p-more-news ul.kct-gallery-list { margin-bottom: 6px; }
.single-cestopis .kct-p-single { max-width: 1000px; }

/* 12 Fotogalerie: [kct_gallery_index], karty galerií, alba z Rajčete ---------------------- */
.kct-page .kct-gallery-section-title { margin: 0 0 18px; font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: .02em; text-transform: uppercase; color: var(--p-green); }
.kct-page .kct-gallery-section-title::after { content: ""; display: block; width: 36px; height: 3px; margin-top: 8px; border-radius: 2px; background: var(--p-green); }
.kct-page .kct-gallery-years { display: flex; flex-wrap: wrap; align-items: stretch; gap: 16px; margin: 0; }
.kct-page .kct-gallery-year { display: block; flex: 1 1 auto; min-width: 0; margin: 0; padding: 14px 16px 16px; border: 1px solid var(--p-line); border-radius: 14px; background: var(--p-card); box-shadow: none; }
.kct-page .kct-gallery-year-title { display: block; margin: 0 0 12px; padding: 0; border: 0; background: none; font-size: 20px; font-weight: 700; line-height: 1.2; color: var(--p-green); }
.kct-page .kct-gallery-years ul.kct-gallery-list { display: flex; flex-wrap: wrap; gap: 12px; }
.kct-page .kct-gallery-years li.kct-gallery-item { flex: 0 0 172px; width: 172px; }
.kct-page ul.kct-gallery-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.kct-page li.kct-gallery-item { display: block; width: auto; margin: 0; list-style: none; }
.kct-page .kct-gallery-item a { position: relative; display: flex; flex-direction: column; height: 100%; border: 1px solid var(--p-line); border-radius: 12px; background: #fff; overflow: hidden; font-size: inherit; color: var(--p-ink); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.kct-page .kct-gallery-item a:hover { border-color: #c5d1bd; box-shadow: 0 8px 22px rgba(30, 123, 60, .12); transform: translateY(-2px); }
.kct-page .kct-gallery-item img { display: block; width: 100%; height: auto; margin: 0; border-radius: 0; aspect-ratio: 4 / 3 !important; object-fit: cover; background: #d9ded3; } /* !important: zástupný poměr z lazy-loadu Smush */
.kct-page .kct-gallery-item-count { position: absolute; top: 8px; right: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(31, 43, 27, .72); font-size: 12px; font-weight: 700; line-height: 1.3; color: #fff; }
.kct-page .kct-gallery-item-count::after { content: none; }
.kct-page .kct-gallery-item-count::before { content: ""; display: inline-block; width: 13px; height: 13px; margin: 0 5px -2px 0; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3 7.2 5H4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-3.2L15 3H9zm3 5a5 5 0 1 1 0 10 5 5 0 0 1 0-10zm0 2a3 3 0 1 0 0 6 3 3 0 0 0 0-6z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3 7.2 5H4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-3.2L15 3H9zm3 5a5 5 0 1 1 0 10 5 5 0 0 1 0-10zm0 2a3 3 0 1 0 0 6 3 3 0 0 0 0-6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.kct-page .kct-gallery-item-title { display: -webkit-box; margin: 10px 12px 12px; padding: 0; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.35; text-align: left; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.kct-page .kct-gallery-accordion { margin: 10px 0 0; padding: 14px 16px; border: 1px solid var(--p-line); border-radius: 12px; background: var(--p-card); }
.kct-page .kct-gallery-accordion summary { font-size: 16px; font-weight: 700; color: var(--p-green); cursor: pointer; }
/* Rajče – alba z profilu jcturisti (mu-plugin kct-rajce): červený štítek „Na Rajčeti ↗“ vlevo nahoře */
.kct-page .kct-rajce-badge { position: absolute; top: 8px; left: 8px; z-index: 1; padding: 3px 9px; border-radius: 999px; background: #c62828; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); font-size: 12px; font-weight: 700; line-height: 1.3; color: #fff; pointer-events: none; }
@media (max-width: 781px) {
	.kct-page ul.kct-gallery-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.kct-page .kct-gallery-years { gap: 12px; }
	.kct-page .kct-gallery-year { flex: 1 1 100%; padding: 12px 12px 14px; }
	.kct-page .kct-gallery-years ul.kct-gallery-list { display: grid; }
	.kct-page .kct-gallery-years li.kct-gallery-item { flex: none; width: auto; }
	.kct-page .kct-gallery-year-title { margin: 0 0 10px; font-size: 18px; }
	.kct-page .kct-gallery-item-count { top: 6px; right: 6px; }
	.kct-page .kct-gallery-item-title { margin: 8px 10px 10px; font-size: 13px; }
	.kct-page .kct-rajce-badge { top: 6px; left: 6px; padding: 2px 7px; font-size: 12px; }
}
/* Galerie [gallery] (inc/galerie.php): řádky stejné výšky jen v CSS – fotka roste podle poměru stran (--r),
   prázdný ::after s obrovským flex-grow drží poslední řádek ve výchozí výšce (--h). Bez skriptu, nic neposkočí. */
.kct-galerie { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2px; margin: 0 0 24px; --h: 166px; }
.kct-galerie::after { content: ""; flex-grow: 1000000; }
.kct-galerie > .kct-galerie__foto { position: relative; display: block; flex: var(--r, 1.3333) 1 calc(var(--h) * var(--r, 1.3333)); aspect-ratio: var(--r, 1.3333); overflow: hidden; background: #d9ded3; }
.kct-galerie > .kct-galerie__foto > img { display: block; width: 100%; height: 100%; margin: 0; border-radius: 0; object-fit: cover; transition: transform .3s ease; }
.kct-galerie > a.kct-galerie__foto:hover > img,
.kct-galerie > a.kct-galerie__foto:focus-visible > img { transform: scale(1.06); }
.kct-galerie > a.kct-galerie__foto:focus-visible { outline: 3px solid var(--p-accent); outline-offset: -3px; }
@media (max-width: 599px) {
	.kct-galerie { --h: 120px; }
}
/* Lightbox (assets/js/galerie.js) – fotka přes celou obrazovku v <dialog>, šipky, počítadlo, popisek */
html.kct-lb-otevreno { overflow: hidden; }
.kct-lb { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 16, 11, .95); color: #fff; overflow: hidden; }
.kct-lb[open] { display: flex; align-items: center; justify-content: center; }
.kct-lb::backdrop { background: rgba(0, 0, 0, .6); }
.kct-lb__fig { display: flex; flex-direction: column; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; height: 100%; margin: 0; padding: 56px 72px 24px; }
.kct-lb__img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100% - 40px); margin: 0; border-radius: 0; object-fit: contain; user-select: none; transition: opacity .2s; }
.kct-lb.is-loading .kct-lb__img { opacity: .35; }
.kct-lb__popis { max-width: 900px; margin: 10px 0 0; font-size: 15px; line-height: 1.45; text-align: center; color: #e6ede2; }
.kct-lb__popis:empty { display: none; }
.kct-lb__pocet { position: absolute; top: 16px; left: 18px; margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; color: #c9d4c4; }
.kct-lb .kct-lb__btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 30px; line-height: 1; color: #fff; cursor: pointer; }
.kct-lb .kct-lb__btn:hover, .kct-lb .kct-lb__btn:focus-visible { background: var(--p-green); outline: 2px solid #fff; outline-offset: 2px; }
.kct-lb .kct-lb__btn[hidden] { display: none; }
.kct-lb__zavrit { top: 10px; right: 12px; }
.kct-lb__pred { top: 50%; left: 12px; transform: translateY(-50%); }
.kct-lb__dalsi { top: 50%; right: 12px; transform: translateY(-50%); }
@media (max-width: 600px) {
	.kct-lb__fig { padding: 56px 0 76px; }
	.kct-lb__pred, .kct-lb__dalsi { top: auto; bottom: 14px; transform: none; }
	.kct-lb__pred { left: calc(50% - 60px); }
	.kct-lb__dalsi { right: calc(50% - 60px); }
}

/* 13 Pluginy ---------------------------------------------------------------------------- */
/* výpis výletů [trip_list] (plugin rezervace-vyletu-kct) – přebíjí vložené styly pluginu */
.kct-page .kct-trip-list { display: grid; gap: 10px; margin: 0 0 10px; }
.kct-page .kct-trip-list + ul.kct-p-facts { margin-top: 24px; }
.kct-page .kct-trip-list .kct-trip-row { position: relative; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) auto; gap: 18px; padding: 14px 18px; border: 1px solid var(--p-line); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.kct-page .kct-trip-list .kct-trip-row:hover { border-color: #c5d1bd; box-shadow: 0 8px 22px rgba(30, 123, 60, .10); transform: translateY(-1px); }
.kct-page .kct-trip-list .kct-trip-date { font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--p-green); }
.kct-page .kct-trip-list .kct-trip-title { min-width: 0; font-size: 17px; font-weight: 700; line-height: 1.35; }
.kct-page .kct-trip-list .kct-trip-title a { color: var(--p-ink); text-decoration: none; }
.kct-page .kct-trip-list .kct-trip-title a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.kct-page .kct-trip-list .kct-trip-row:hover .kct-trip-title a { color: var(--p-green); }
.kct-page .kct-trip-list .kct-trip-occupancy { display: inline-block; min-width: 0; padding: 6px 12px; border-radius: 999px; background: #e3f1de; font-size: 12px; font-weight: 700; line-height: 1.25; text-align: center; white-space: nowrap; color: #166331; }
.kct-page .kct-trip-list .kct-trip-occupancy span { display: inline; font-size: inherit; font-weight: inherit; line-height: inherit; }
.kct-page .kct-trip-list .kct-occupancy-prefix, .kct-page .kct-trip-list .kct-occupancy-count { margin-right: 4px; }
.kct-page .kct-trip-list .kct-availability-high .kct-trip-occupancy { background: #e3f1de; color: #166331; }
.kct-page .kct-trip-list .kct-availability-mid .kct-trip-occupancy { background: #fdf3d7; color: #8a5a00; }
.kct-page .kct-trip-list .kct-availability-low .kct-trip-occupancy { background: #fde7d2; color: #9a4a00; }
.kct-page .kct-trip-list .kct-availability-waitlist .kct-trip-occupancy { border-radius: 10px; background: #fdf3d7; font-size: 12px; line-height: 1.25; text-align: center; text-transform: none; white-space: normal; color: #8a5a00; } /* ASE snippet „REZERVACE“ dává 9 px; „Čekací listina“ na jednom řádku, zalomí se jen, když se nevejde */
.kct-page .kct-trip-list .kct-availability-full .kct-trip-occupancy { background: #fde2e2; font-size: 12px; color: #b91c1c; }
.kct-page .kct-trip-list .kct-trip-row:nth-child(n) { background: #fff; } /* ruší modré pruhování sudých řádků z pluginu */
.kct-page .kct-trip-list .kct-trip-occupancy:empty,
.kct-page .kct-trip-list .kct-trip-row--canceled .kct-trip-occupancy { display: none !important; } /* plugin má display:flex!important */
.kct-page .kct-trip-list .kct-trip-row--canceled:nth-child(n) { background: #fafaf8; }
.kct-page .kct-trip-list .kct-trip-row--canceled .kct-trip-date,
.kct-page .kct-trip-list .kct-trip-row--canceled .kct-trip-title a { color: var(--p-muted); }
.kct-page .kct-trip-list .kct-trip-row--canceled .kct-trip-title a { text-decoration: line-through; }
/* Proběhlé výlety: výpis po letech s filtry ([trip_list layout="years" filtry="1"], plugin + assets/js/trip-archive.js) */
.kct-page .kct-trip-list--years { display: block; }
.kct-page .kct-trip-list--years [hidden] { display: none !important; }
/* rozcestník roků: dlaždice s rokem a počtem výletů */
.kct-page .kct-trip-years-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.kct-page .kct-trip-years-nav a { display: flex; flex: 0 1 112px; flex-direction: column; gap: 3px; min-width: 0; padding: 10px 14px 11px; border: 1px solid var(--p-line-strong); border-radius: 12px; background: #fff; line-height: 1.1; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.kct-page .kct-trip-years-nav a:hover, .kct-page .kct-trip-years-nav a:focus-visible { border-color: var(--p-green); background: var(--p-soft); box-shadow: 0 6px 16px rgba(30, 123, 60, .12); transform: translateY(-1px); }
.kct-page .kct-trip-years-nav-year { font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: var(--p-green); }
.kct-page .kct-trip-years-nav-count { font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--p-muted); }
@media (max-width: 781px) {
	.kct-page .kct-trip-years-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.kct-page .kct-trip-years-nav a { padding: 8px 10px 9px; }
	.kct-page .kct-trip-years-nav-year { font-size: 19px; }
}
.kct-page .kct-trip-year { margin: 0 0 36px; scroll-margin-top: 90px; }
/* nadpis roku: velký letopočet, vedle počet výletů a součet účastníků (trip-archive.js je přepočítává podle filtrů) */
.kct-page .kct-trip-year-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; margin: 0 0 14px; padding: 0 0 10px; border-bottom: 3px solid var(--p-accent); }
.kct-page .kct-trip-year-title { margin: 0; font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.01em; color: var(--p-green); }
.kct-page .kct-trip-year-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--p-muted); }
.kct-page .kct-trip-year-sum { display: inline-flex; align-items: center; gap: 6px; color: var(--p-ink); }
/* řádek výletu: vlevo datum bez roku (pod ním počet dní), vpravo název a pod ním vpravo organizátor a počet účastníků */
.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-row { grid-template-columns: minmax(140px, 180px) minmax(0, 1fr); gap: 6px 20px; align-items: center; padding: 14px 18px; }
.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-date { grid-column: 1; grid-row: 1 / span 2; font-size: 19px; font-weight: 800; line-height: 1.2; color: var(--p-green); }
.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-days { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--p-muted); }
.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-title { grid-column: 2; grid-row: 1; }
.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-occupancy { display: none !important; } /* u proběhlých výletů prázdné */
.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-foot { display: flex; grid-column: 2; grid-row: 2; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-width: 0; }
.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-links { display: flex; flex-wrap: wrap; gap: 6px; }
/* odkazy nad průhlednou vrstvou odkazu názvu (a::after přes celý řádek) */
.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border: 1px solid var(--p-line-strong); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--p-green); text-decoration: none; }
.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-link:hover,
.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-link:focus-visible { border-color: var(--p-green); background: var(--p-soft); }
.kct-page .kct-trip-list--years .kct-trip-link::before { content: ""; flex: 0 0 auto; width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--kct-ico) center / contain no-repeat; mask: var(--kct-ico) center / contain no-repeat; }
.kct-page .kct-trip-list--years .kct-trip-link--fotky { --kct-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3 7.2 5H4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-3.2L15 3H9zm3 5a5 5 0 1 1 0 10 5 5 0 0 1 0-10zm0 2a3 3 0 1 0 0 6 3 3 0 0 0 0-6z'/%3E%3C/svg%3E"); }
.kct-page .kct-trip-list--years .kct-trip-link--cestopis { --kct-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 2H20v16H6.5a1.5 1.5 0 0 0 0 3H20v1H6.5A3.5 3.5 0 0 1 3 18.5v-13A3.5 3.5 0 0 1 6.5 2zM8 6v2h8V6H8zm0 4v2h6v-2H8z'/%3E%3C/svg%3E"); }
.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 12px; margin-left: auto; font-size: 14px; font-weight: 600; line-height: 1.3; text-align: right; color: var(--p-muted); }
.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-ucast { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; background: var(--p-soft); font-weight: 700; white-space: nowrap; color: var(--p-green); }
.kct-page .kct-trip-list--years .kct-trip-ucast::before,
.kct-page .kct-trip-year-sum::before { content: ""; flex: 0 0 auto; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm8 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM9 13c-3.3 0-7 1.6-7 4.5V20h14v-2.5C16 14.6 12.3 13 9 13zm8 0c-.5 0-1 0-1.5.1 1.5 1 2.5 2.5 2.5 4.4V20h4v-2.5c0-2.7-2.8-4.5-5-4.5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm8 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM9 13c-3.3 0-7 1.6-7 4.5V20h14v-2.5C16 14.6 12.3 13 9 13zm8 0c-.5 0-1 0-1.5.1 1.5 1 2.5 2.5 2.5 4.4V20h4v-2.5c0-2.7-2.8-4.5-5-4.5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.kct-page .kct-trip-list--years .kct-trip-row--canceled .kct-trip-date { color: var(--p-muted); }
/* od 782 px: výlety roku v jedné kartě, řádky oddělené linkou (záporný okraj schová linku prvního viditelného
   řádku pod okraj karty i při filtrech); od 1100 px celý výlet na jednom řádku se zarovnanými sloupci */
@media (min-width: 782px) {
	.kct-page .kct-trip-year { margin-bottom: 30px; }
	.kct-page .kct-trip-list--years .kct-trip-year > .kct-trip-list { gap: 0; overflow: hidden; border: 1px solid var(--p-line); border-radius: 12px; background: #fff; }
	.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-row { margin: -1px 0 0 !important; padding: 9px 16px; border: 0; border-top: 1px solid var(--p-line); border-radius: 0; transition: background-color .15s; } /* !important: ASE snippet dává margin 0 !important */
	.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-row:hover { border-color: var(--p-line); background: var(--p-card); box-shadow: none; transform: none; }
	.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-title a::after { border-radius: 0; }
	.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-date { font-size: 17px; }
}
@media (min-width: 1100px) {
	.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-row { grid-template-columns: 160px minmax(0, 1fr) auto; gap: 0 16px; padding: 7px 16px; }
	.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-date { grid-row: 1; font-size: 16px; }
	.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-days { display: inline; margin: 0 0 0 6px; font-size: 12px; }
	.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-title { font-size: 16px; }
	.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-foot { grid-column: 3; grid-row: 1; flex-wrap: nowrap; gap: 12px; }
	.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-meta { display: grid; grid-template-columns: 150px 128px; gap: 0 10px; align-items: center; font-size: 13px; }
	.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-org { grid-column: 1; text-align: right; }
	.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-ucast { grid-column: 2; justify-self: end; padding: 2px 9px; font-size: 13px; }
	.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-link { padding: 2px 9px; font-size: 13px; }
}
/* graf po měsících za posledních 5 let nad výpisem (kreslí trip-archive.js; sloupce v zelené webu, osa a mřížka tlumené) */
.kct-page .kct-archive-chart { margin: 0 0 22px; padding: 14px 16px 12px; border: 1px solid var(--p-line); border-radius: 12px; background: #fff; }
.kct-page .kct-archive-chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 10px; }
.kct-page .kct-archive-chart-title { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.3; color: var(--p-ink); }
.kct-page .kct-archive-chart-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--p-line-strong); border-radius: 999px; background: var(--p-card); }
.kct-page .kct-archive-chart-switch button { margin: 0; padding: 5px 14px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--p-green); cursor: pointer; }
.kct-page .kct-archive-chart-switch button[aria-pressed="true"] { background: var(--p-green); color: #fff; }
.kct-page .kct-archive-chart-switch button:focus-visible { outline: 2px solid var(--p-green); outline-offset: 2px; }
.kct-page .kct-archive-chart-plot { position: relative; min-height: 210px; }
.kct-page .kct-archive-chart-plot svg { display: block; overflow: visible; }
.kct-page .kct-archive-chart-plot svg:focus-visible { outline: 2px solid var(--p-green); outline-offset: 4px; border-radius: 4px; }
.kct-archive-chart-bar { fill: var(--p-green); }
.kct-archive-chart-bar.is-active { fill: #2e9a50; }
.kct-archive-chart-hover { fill: var(--p-soft); }
.kct-archive-chart-grid { stroke: #e1e0d9; stroke-width: 1; }
.kct-archive-chart-base { stroke: #c3c2b7; stroke-width: 1; }
.kct-archive-chart-band { fill: var(--p-card); } /* každý druhý rok podbarvený */
.kct-archive-chart-label { font-size: 12px; font-variant-numeric: tabular-nums; fill: var(--p-muted); }
.kct-archive-chart-year { font-size: 16px; font-weight: 800; fill: var(--p-ink); }
.kct-archive-chart-value { font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; fill: var(--p-muted); pointer-events: none; }
.kct-archive-chart-value.is-active { font-size: 12px; font-weight: 800; fill: var(--p-ink); }
.kct-page .kct-archive-chart-tip.is-side { transform: none; }
.kct-page .kct-archive-chart-tip { position: absolute; z-index: 2; display: flex; flex-direction: column; padding: 6px 10px; border: 1px solid var(--p-line-strong); border-radius: 8px; background: #fff; box-shadow: 0 6px 18px rgba(18, 48, 28, .14); font-size: 13px; line-height: 1.35; white-space: nowrap; color: var(--p-muted); pointer-events: none; transform: translate(-50%, -100%); }
.kct-page .kct-archive-chart-tip strong { font-size: 15px; color: var(--p-ink); }
.kct-page .kct-archive-chart-note { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--p-muted); }
.kct-page .kct-archive-chart-table { margin: 6px 0 0; }
.kct-page .kct-archive-chart-table summary { display: inline-block; font-size: 14px; font-weight: 700; color: var(--p-green); cursor: pointer; }
.kct-page .kct-archive-chart-tablewrap { margin-top: 8px; overflow-x: auto; }
.kct-page .kct-archive-chart-tablewrap table { width: 100%; margin: 0; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.kct-page .kct-archive-chart-tablewrap caption { padding: 0 0 6px; font-weight: 700; text-align: left; color: var(--p-ink); }
.kct-page .kct-archive-chart-tablewrap th,
.kct-page .kct-archive-chart-tablewrap td { padding: 4px 6px; border-bottom: 1px solid var(--p-line); text-align: right; white-space: nowrap; }
.kct-page .kct-archive-chart-tablewrap th[scope="row"] { text-align: left; }
.kct-page .kct-archive-chart-tablewrap td:last-child { font-weight: 700; color: var(--p-ink); }
@media (max-width: 781px) {
	.kct-page .kct-trip-year-title { font-size: 34px; }
	.kct-page .kct-trip-year-stats { font-size: 15px; }
	.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 14px; }
	.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-date { grid-column: 1; grid-row: 1; font-size: 17px; }
	.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-days { display: inline; margin: 0 0 0 8px; }
	.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-title { grid-column: 1; grid-row: 2; }
	.kct-page .kct-trip-list--years .kct-trip-list .kct-trip-foot { grid-column: 1; grid-row: 3; margin-top: 2px; }
}
.kct-page .kct-archive-filters { margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--p-line-strong); border-radius: 12px; background: var(--p-card); }
.kct-page .kct-archive-f-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.kct-page .kct-archive-f { display: flex; flex: 0 1 15em; flex-direction: column; gap: 4px; min-width: 0; margin: 0; }
.kct-page .kct-archive-f-search { flex: 1 1 18em; }
.kct-page .kct-archive-f-label { font-size: 12px; font-weight: 700; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; color: var(--p-muted); }
.kct-page .kct-archive-f-input { box-sizing: border-box; width: 100%; min-height: 42px; margin: 0; padding: 8px 12px; border: 1px solid var(--p-line-strong); border-radius: 8px; background: #fff; font: inherit; font-size: max(16px, 1em); color: var(--p-ink); } /* aspoň 16 px – iPhone jinak stránku přiblíží */
.kct-page .kct-archive-f-input:focus { border-color: var(--p-green); outline: 2px solid var(--p-green); outline-offset: 1px; }
.kct-page .kct-archive-f-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 12px; font-size: 15px; }
.kct-page .kct-archive-f-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; cursor: pointer; }
.kct-page .kct-archive-f-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--p-green); }
.kct-page .kct-archive-count { color: var(--p-muted); }
.kct-page .kct-archive-reset { margin: 0 0 0 auto; padding: 6px 14px; border: 1px solid var(--p-line-strong); border-radius: 999px; background: #fff; font: inherit; font-weight: 700; color: var(--p-green); cursor: pointer; }
.kct-page .kct-archive-reset:hover, .kct-page .kct-archive-reset:focus-visible { border-color: var(--p-green); background: var(--p-soft); }
.kct-page .kct-archive-empty { margin: 8px 0 24px; padding: 14px 16px; border: 1px dashed var(--p-line-strong); border-radius: 12px; color: var(--p-muted); }
.kct-page .kct-trip-list--months { gap: 18px; }
.kct-page .kct-trip-list--months .kct-trip-month { display: block; margin: 0; padding: 0; border: 0; background: none; }
.kct-page .kct-trip-list--months .kct-trip-month-header { margin: 0 0 8px; }
.kct-page .kct-trip-list--months .kct-trip-month-title { display: block; margin: 0; padding: 0; border: 0; font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: var(--p-muted); }
.kct-page .kct-trip-list--months .kct-trip-month-rows { display: grid; gap: 8px; width: 100%; }
.kct-page .kct-trip-list--months .kct-trip-row { grid-template-columns: minmax(96px, 132px) minmax(0, 1fr) auto; gap: 14px; padding: 12px 14px; }
.kct-page .kct-trip-list--months .kct-trip-month-rows .kct-trip-row--canceled { background: #fafaf8 !important; text-decoration: none; } /* plugin: šedé pozadí !important */
.kct-page .kct-trip-list .kct-trip-canceled-badge { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #fde2e2; font-size: 12px; letter-spacing: .04em; vertical-align: 2px; }
/* 782–1240 px: plugin posílá datum na vlastní řádek (grid-column 1/-1), šablona drží tři sloupce vedle sebe */
@media (min-width: 782px) {
	.kct-page .kct-trip-list--months .kct-trip-date,
	.kct-page .kct-trip-list--months .kct-trip-title,
	.kct-page .kct-trip-list--months .kct-trip-occupancy { grid-column: auto; grid-row: auto; }
	.kct-page .kct-trip-list--months .kct-trip-occupancy { justify-self: end; }
}
@media (min-width: 782px) and (max-width: 1099.98px) {
	.kct-page .kct-trip-list--months .kct-trip-row { grid-template-columns: minmax(90px, 118px) minmax(0, 1fr) auto; gap: 12px; }
}
@media (max-width: 781px) {
	.kct-page .kct-trip-list .kct-trip-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 14px; }
	.kct-page .kct-trip-list .kct-trip-date { grid-column: 1; grid-row: 1; font-size: 13px; }
	.kct-page .kct-trip-list .kct-trip-occupancy { grid-column: 2; grid-row: 1; padding: 4px 10px; font-size: 12px; }
	.kct-page .kct-trip-list .kct-trip-title { grid-column: 1 / -1; grid-row: 2; font-size: 16px; }
}

/* detail výletu (plugin rezervace-vyletu-kct + ASE snippet „CSS - REZERVACE KCT PLUGIN“): viz 03b-detail-vyletu.css */
/* průvodce „Přidej výlet“: panel nástrojů editoru se na mobilu zalamuje */
.kct-trip-submit .mce-toolbar .mce-btn-group,
.kct-trip-submit .mce-toolbar .mce-btn-group > div { white-space: normal; }

/* „Akce KČT po celé ČR“ [kct_dalsi_akce_accordion] (mu-plugin + ASE snippet „CSS - dalsi akce“) v barvách webu */
.kct-dalsi-akce .kct-dalsi-akce-item:hover { background-color: var(--p-card); }
.kct-dalsi-akce .kct-dalsi-akce-item::before { background-color: var(--p-red); }
.kct-dalsi-akce .kct-dalsi-akce-date { color: var(--p-red); }
.kct-dalsi-akce .kct-dalsi-akce-link { color: var(--p-ink); font-weight: 700; }
.kct-dalsi-akce .kct-dalsi-akce-link:hover { color: var(--p-green); }
.kct-dalsi-akce .kct-dalsi-akce-categories { border-color: var(--p-line-strong); background-color: var(--p-soft); color: var(--p-green); }
.kct-dalsi-akce .kct-dalsi-akce-more summary { background-color: var(--p-green); }
.kct-dalsi-akce .kct-dalsi-akce-more summary:hover { background-color: var(--p-green-hover); }
.kct-dalsi-akce .kct-dalsi-akce-list--secondary { border-top-color: var(--p-green); }
.kct-dalsi-akce .kct-dalsi-akce-filters { border-color: var(--p-line); border-radius: 12px; background-color: var(--p-card); }
.kct-dalsi-akce .kct-dalsi-akce-filter input[type="checkbox"] { accent-color: var(--p-green); }
.kct-dalsi-akce .kct-dalsi-akce-category-count { color: var(--p-green); font-size: 12px; }
.kct-dalsi-akce .kct-dalsi-akce-filter--misto input { font-size: 16px; } /* menší písmo = iOS při psaní přiblíží stránku */
.kct-dalsi-akce .kct-dalsi-akce-filter--misto input:focus { border-color: var(--p-green); }
/* Cestopisy [kct_cestopisy]: počty ve filtru let (mu-plugin má 11 px) */
.kct-page .kct-cest-filter button span { font-size: 12px; }
/* PDF ve stránce [pdf-embedder] (mu-plugin kct-pdf): vestavěný prohlížeč PDF, pod ním odkaz; bez náhledu (Android) jen odkaz */
.kct-pdf { margin: 0 0 24px; }
.kct-pdf__ramec { width: 100%; aspect-ratio: 1 / 1.3; max-height: 85vh; overflow: hidden; border: 1px solid var(--p-line); border-radius: 8px; background: var(--p-card); }
.kct-pdf__ramec iframe { display: block; width: 100%; height: 100%; border: 0; }
.kct-pdf--bez-nahledu .kct-pdf__ramec { display: none; }
.kct-pdf__lista { margin: 8px 0 0; font-size: 15px; line-height: 1.4; }
.kct-pdf__lista a { font-weight: 700; color: var(--p-green); }
.kct-pdf--bez-nahledu .kct-pdf__lista a { display: inline-block; padding: 10px 16px; border-radius: 8px; background: var(--p-green); color: #fff; text-decoration: none; }
.kct-dalsi-akce .kct-dalsi-akce-filter-actions button { background-color: var(--p-green); }
.kct-dalsi-akce .kct-dalsi-akce-filter-actions button:hover { background-color: var(--p-green-hover); }
.kct-dalsi-akce .kct-dalsi-akce-place-suggestion:hover { color: var(--p-green); }

/* 14 Hledání, 404, sezónní banner ------------------------------------------------------- */
.kct-page .kct-p-searchbox { max-width: 640px; margin: 0 0 22px; }
.kct-page .kct-p-results { margin: 0; padding: 0; list-style: none; }
.kct-page .kct-p-result { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--p-line); list-style: none; }
.kct-page .kct-p-result:first-child { padding-top: 4px; }
.kct-page .kct-p-result-meta { margin: 0 0 2px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--p-muted); }
.kct-page .kct-p-result-title { margin: 0 0 4px; font-size: 19px; line-height: 1.35; }
.kct-page .kct-p-result-title a { color: var(--p-ink); text-decoration: none; }
.kct-page .kct-p-result-title a:hover { color: var(--p-green); text-decoration: underline; }
.kct-page .kct-p-result-text { margin: 0; font-size: 15px; line-height: 1.6; color: #555; }
.kct-page.kct-p-404 { max-width: 760px; margin-top: 12px; }
/* detail galerie s albem na Rajčeti: na mobilu jen dvě tlačítka v hlavičce */
@media (max-width: 781px) {
	.kct-p-gallery-single .kct-p-actions .kct-p-pill:last-child:not(:first-child) { display: none; }
}

.kct-banner { margin: 0 0 24px; padding: 16px 18px; border: 1px solid var(--p-line-strong); border-radius: 12px; background: var(--p-soft); }
.kct-banner--rumcajs { border-color: #eab29d; background: #f4c4b3; }
.kct-banner .kct-banner__title { display: block; margin: 0 0 4px; font-size: 16px; color: var(--p-ink); }
.kct-banner .kct-banner__text { display: block; margin: 0 0 10px; font-size: 14.5px; color: #3b2a24; }
.kct-banner .kct-banner__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.kct-banner .kct-banner__links a { display: inline-block; padding: 7px 10px; border-radius: 6px; background: var(--p-green); font-size: 13px; font-weight: 700; color: #fff; text-decoration: none; }
.kct-banner .kct-banner__links a:hover { background: var(--p-green-hover); color: #fff; }
.kct-banner .kct-banner__more { font-weight: 700; color: var(--p-green); }
.kct-banner--rumcajs .kct-banner__more { color: #5a1f10; }

/* 15 Patička ---------------------------------------------------------------------------- */
.site-footer { margin-top: 24px; color: var(--footer-text); }
.site-footer__skyline {
	display: block; width: 100%; height: auto;
	aspect-ratio: 8 / 1; min-height: 72px; max-height: 320px; /* celá kresba až do šířky 2560 px */
	margin: 0 0 -1px;
	color: var(--footer-bg);
}
.site-footer__main { padding: 28px 0 36px; background: var(--footer-bg); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px 40px; }
@media (min-width: 640px) {
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
	.footer-grid { grid-template-columns: 1.3fr 1fr 1.25fr .85fr; }
}
.footer-col { min-width: 0; }
.footer-title { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .09em; line-height: 1.3; text-transform: uppercase; color: #f4d35e; }
.site-footer p, .site-footer address { margin: 0 0 10px; font-size: 15px; font-style: normal; line-height: 1.6; }
.site-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, .45); }
.site-footer a:hover { color: #fff; text-decoration-color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 17px; font-weight: 600; line-height: 1.25; color: #fff; text-decoration: none; }
.footer-brand > span { text-wrap: balance; }
.footer-brand img { flex: 0 0 auto; width: 56px; height: 56px; padding: 2px; border-radius: 50%; background: #fff; }
.footer-col--brand p { color: var(--footer-text); }
.footer-small { font-size: 14px; color: var(--footer-muted); }
.site-footer .footer-small { font-size: 14px; }
.footer-mail, .footer-social { display: inline-flex; align-items: center; gap: 8px; }
.footer-list, .footer-links { margin: 0; padding: 0; list-style: none; }
.footer-list li { position: relative; margin: 0 0 12px; padding-left: 22px; font-size: 14.5px; line-height: 1.55; }
/* odrážka jako turistická značka (bílá – červená – bílá) */
.footer-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 12px; height: 12px; border-radius: 2px; background: linear-gradient(#fff 0 33.3%, var(--kct-red) 33.3% 66.7%, #fff 66.7%); }
.footer-links li { margin: 0; font-size: 15px; line-height: 1.6; }
.footer-links a { display: inline-block; padding: 0; font-size: 15px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.site-footer__bottom { background: var(--footer-bg-2); color: var(--footer-muted); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding: 14px 0 16px; }
.site-footer .footer-bottom p { margin: 0; font-size: 13.5px; }
.site-footer__bottom a { color: var(--footer-text); }
.to-top { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; text-decoration: none; }

/* 16 Tisk ------------------------------------------------------------------------------- */
@media print {
	.site-header, .site-footer, .crumbs, .kct-p-actions, .skip-link, .kct-p-more-news { display: none !important; }
	body { font-size: 11pt; }
	.kct-page a { color: #000; }
	.kct-page .kct-p-head { padding-top: 0; }
}
/* 13b Detail výletu ----------------------------------------------------------------------
 * Plugin rezervace-vyletu-kct (includes/trait-frontend.php) + ASE snippet „CSS - REZERVACE KCT PLUGIN“
 * (vkládá se až za site.css, proto selektory začínají body.single-vylety).
 * Stránky čtou hlavně starší lidé: větší písmo, silný kontrast a to podstatné hned nahoře –
 * termín, volná místa a odkaz na seznam přihlášených (#prihlaseni) a na přihlášku (#rezervace).
 */

/* přehled nahoře: termín, stav, obsazenost */
body.single-vylety .kct-trip-block-stats { margin: 0 0 28px; }
body.single-vylety .kct-trip-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; padding: 20px 22px; border: 2px solid var(--p-line-strong); border-radius: 14px; background: var(--p-card); }
body.single-vylety .kct-trip-stats p { margin: 0; }
body.single-vylety .kct-trip-stat-date { min-width: 0; margin: 0; font-size: 26px; font-weight: 800; line-height: 1.25; color: var(--p-ink); }
body.single-vylety .kct-trip-stat-date .kct-icon { width: 26px !important; height: 26px !important; margin-right: 8px !important; vertical-align: -3px !important; } /* ikona má vložené style="" */
body.single-vylety .kct-trip-stat-date .kct-icon svg { width: 26px; height: 26px; }
body.single-vylety .kct-trip-weekday { color: var(--p-green); }
body.single-vylety .kct-trip-status { padding: 6px 16px; border-radius: 999px; font-size: 17px; font-weight: 700; line-height: 1.3; }
body.single-vylety .kct-trip-status em { font-style: normal; }
body.single-vylety .kct-status-available { background: #dcefd5; color: #24542a; }
body.single-vylety .kct-status-closed, body.single-vylety .kct-status-full, body.single-vylety .kct-status-canceled { background: #fde2e2; color: #a61b1b !important; }
body.single-vylety .kct-status-waitlist, body.single-vylety p.kct-status-waitlist { background: #fdf0c8; color: #7a4f00; }
body.single-vylety p.kct-status-waitlist > strong { color: inherit; }
body.single-vylety .kct-status-unavailable { background: #eef0eb; color: var(--p-text); }
body.single-vylety .kct-trip .kct-icon, body.single-vylety .kct-trip-organizer .kct-icon { color: var(--p-green) !important; } /* ikony mají vložené style="color:…" */
body.single-vylety .kct-trip-places { flex: 1 1 100%; padding-top: 16px; border-top: 1px solid var(--p-line-strong); }
body.single-vylety .kct-trip-numbers { display: flex; flex-wrap: wrap; gap: 10px 34px; margin: 0 0 14px; padding: 0; list-style: none; }
body.single-vylety .kct-trip-numbers .kct-num { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 0; }
body.single-vylety .kct-trip-numbers .kct-num::before { content: none; }
body.single-vylety .kct-num-value { font-size: 32px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--p-ink); }
body.single-vylety .kct-num-label { font-size: 18px; font-weight: 600; color: var(--p-text); }
body.single-vylety .kct-num-free .kct-num-value { color: #1d7a33; }
body.single-vylety .kct-num-free.kct-num-zero .kct-num-value { color: #a61b1b; }
body.single-vylety .kct-num-waitlist .kct-num-value { color: #8a5a00; }
body.single-vylety .kct-trip-bar { height: 12px; margin: 0 0 16px; border-radius: 999px; background: #dfe5d9; overflow: hidden; }
body.single-vylety .kct-trip-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--p-green); }
body.single-vylety .kct-trip-waitlist-only { margin: -4px 0 14px; font-size: 18px; font-weight: 700; color: #7a4f00; }
body.single-vylety .kct-trip-jumps { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 0; }
body.single-vylety .kct-jump { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 10px 22px; border: 2px solid var(--p-green); border-radius: 10px; font-size: 18px; font-weight: 700; line-height: 1.2; text-decoration: none; transition: background-color .15s; }
body.single-vylety .kct-jump::after { content: "↓"; content: "↓" / ""; }
body.single-vylety .kct-jump-list { background: #fff; color: var(--p-green); }
body.single-vylety .kct-jump-list:hover { background: var(--p-soft); color: var(--p-green); }
body.single-vylety .kct-jump-form { background: var(--p-green); color: #fff; }
body.single-vylety .kct-jump-form:hover { border-color: var(--p-green-hover); background: var(--p-green-hover); color: #fff; }
body.single-vylety :is(#rezervace, #prihlaseni) { scroll-margin-top: 90px; } /* pod přilepenou hlavičkou */

/* popis výletu */
body.single-vylety .kct-trip-content { font-size: 18px; line-height: 1.65; color: var(--p-text); }
body.single-vylety .kct-trip-content :is(p, li) { font-size: inherit; line-height: inherit; } /* :where(.kct-page) p má pevných 16 px */
body.single-vylety .kct-trip-content :is(strong, b) { color: var(--p-ink); }
body.single-vylety .kct-trip-content h2 { font-size: 24px; line-height: 1.3; }
body.single-vylety .kct-trip-content h3 { font-size: 21px; line-height: 1.3; }

/* organizátor */
body.single-vylety .kct-trip-organizer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; margin: 28px 0; padding: 16px 20px !important; border: 2px solid var(--p-line-strong); border-radius: 14px !important; background: var(--p-card) !important; font-size: 18px; } /* plugin: vložené style="" */
body.single-vylety .kct-trip-organizer p { margin: 0; }
body.single-vylety .kct-trip-organizer .kct-organizer-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
body.single-vylety .kct-trip-organizer .kct-organizer-title { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #2b3328; }
body.single-vylety .kct-trip-organizer .kct-organizer-name { font-size: 20px; font-weight: 700; color: var(--p-ink); }
body.single-vylety .kct-trip-organizer a { color: var(--p-green); font-weight: 700; overflow-wrap: anywhere; }
body.single-vylety .kct-trip-organizer a[href^="tel:"] { font-size: 20px; white-space: nowrap; }

/* přihláška */
body.single-vylety .kct-trip-block-form { margin: 28px 0; padding: 22px 24px; border: 2px solid var(--p-line-strong); border-radius: 14px; background: var(--p-soft); }
body.single-vylety .kct-trip-form-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; margin: 0 0 14px; }
body.single-vylety .kct-trip-block-form h3 { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.25; color: var(--p-green); }
body.single-vylety .kct-trip-deadline { margin: 0; font-size: 16px; }
body.single-vylety .kct-trip-form { font-size: 18px; }
body.single-vylety .kct-trip-form label { font-size: 18px; font-weight: 600; color: var(--p-ink); }
body.single-vylety .kct-trip-form .kct-form-optional { font-size: 15px; font-weight: 400; color: var(--p-muted); }
body.single-vylety .kct-trip-form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea) { min-height: 50px; padding: 10px 14px; border: 2px solid #b8c3b0; border-radius: 10px; background: #fff; font-size: 18px; color: var(--p-ink); }
body.single-vylety .kct-trip-form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea):focus { border-color: var(--p-green); outline: 3px solid rgba(30, 123, 60, .25); outline-offset: 0; }
body.single-vylety .kct-trip-form .kct-form-row-contact .kct-form-field { flex: 1 1 260px; max-width: 380px; }
body.single-vylety .kct-trip-form .kct-form-field :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"]) { display: block; width: 100%; margin-top: 6px; }
body.single-vylety .kct-trip-form :is(input[type="checkbox"], input[type="radio"]) { width: 24px; height: 24px; margin: 0 10px 0 0; vertical-align: -5px; accent-color: var(--p-green); }
body.single-vylety .kct-trip-form .kct-form-checkbox { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; }
body.single-vylety .kct-form-row-submit button { min-height: 56px; padding: 14px 38px !important; border: 2px solid var(--p-green) !important; border-radius: 10px; background: var(--p-green); font-size: 20px !important; font-weight: 800; color: #fff !important; cursor: pointer; transition: background-color .15s; }
body.single-vylety .kct-form-row-submit button:hover { background: var(--p-green-hover); }
body.single-vylety .kct-form-waitlist-note { background: #fdf3d7; }

/* seznam přihlášených: číslovaný, velké písmo, sloupce shora dolů (jako telefonní seznam) */
body.single-vylety .kct-trip-block-registrations { margin: 28px 0 0; }
body.single-vylety :is(.kct-registrations-active, .kct-registrations-summary, .kct-registrations-waitlist) { margin: 0 0 18px; padding: 20px 22px 14px; border: 2px solid var(--p-line-strong); border-radius: 14px; background: var(--p-card); }
body.single-vylety .kct-registrations-waitlist { border-color: #ead7a0; background: #fffaf0; }
body.single-vylety .kct-registrations :is(.kct-active-title, .kct-waitlist-title) { margin: 0 0 2px; font-size: 26px; font-weight: 800; line-height: 1.3; }
body.single-vylety .kct-registrations .kct-active-title { color: var(--p-green); }
body.single-vylety .kct-registrations .kct-waitlist-title { color: #8a4b00; }
body.single-vylety .kct-title-count { font-weight: 700; }
body.single-vylety .kct-list-hint { margin: 0 0 12px; font-size: 16px; color: var(--p-muted); }
body.single-vylety .kct-registrations :is(ol.kct-active, ol.kct-waitlist) { counter-reset: kct-reg; columns: 3 230px; column-gap: 30px; margin: 10px 0 12px; padding: 0; list-style: none; font-size: 19px; line-height: 1.35; }
body.single-vylety .kct-registrations :is(ol.kct-active, ol.kct-waitlist) > li { counter-increment: kct-reg; display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 8px 6px; border-bottom: 1px solid var(--p-line); break-inside: avoid; font-weight: 600; color: var(--p-ink); opacity: 1; }
body.single-vylety .kct-registrations :is(ol.kct-active, ol.kct-waitlist) > li::before { content: counter(kct-reg) "."; flex: 0 0 2.1em; font-size: 16px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; color: var(--p-muted); }
body.single-vylety .kct-registrations .kct-waitlist-note { margin: 4px 0 0; font-size: 16px; }
body.single-vylety .kct-registrations-summary h4 { margin: 0 0 10px; font-size: 21px; }
body.single-vylety .kct-registrations ul.kct-summary-list { font-size: 17px; }
body.single-vylety .kct-registrations-empty { margin: 0; padding: 16px 20px; border: 2px dashed var(--p-line-strong); border-radius: 14px; font-size: 18px; color: var(--p-muted); }
body.single-vylety .kct-trip-date { color: var(--p-green); }

@media (max-width: 781px) {
	body.single-vylety .kct-trip-stats { padding: 16px; }
	body.single-vylety .kct-trip-stat-date { font-size: 23px; }
	body.single-vylety .kct-trip-numbers { gap: 8px 24px; }
	body.single-vylety .kct-num-value { font-size: 28px; }
	body.single-vylety .kct-num-label { font-size: 17px; }
	body.single-vylety .kct-jump { flex: 1 1 100%; }
	body.single-vylety .kct-trip-content { font-size: 17px; }
	body.single-vylety .kct-trip-organizer { padding: 14px 16px !important; }
	body.single-vylety .kct-trip-block-form { padding: 16px; }
	body.single-vylety .kct-trip-block-form h3 { font-size: 23px; }
	body.single-vylety .kct-form-row-submit button { width: 100%; }
	body.single-vylety :is(.kct-registrations-active, .kct-registrations-summary, .kct-registrations-waitlist) { padding: 16px 14px 10px; }
	body.single-vylety .kct-registrations :is(.kct-active-title, .kct-waitlist-title) { font-size: 23px; }
	body.single-vylety .kct-registrations :is(ol.kct-active, ol.kct-waitlist) { font-size: 18px; }
}

/* obohacení popisu (plugin: includes/trait-enrichment.php, návrh připravuje Claude Code a schvaluje správce):
   důležité údaje a odkaz na trasu v přehledu nahoře, užitečné odkazy pod popisem */
body.single-vylety .kct-trip-facts { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px 28px; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--p-line-strong); }
body.single-vylety .kct-fact { min-width: 0; margin: 0; }
body.single-vylety .kct-fact dt { margin: 0 0 2px; font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #2b3328; }
body.single-vylety .kct-fact dd { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.35; color: var(--p-ink); }
body.single-vylety .kct-trip-maplink { flex: 1 1 100%; margin: 0; }
body.single-vylety .kct-jump-map { background: #fff; color: var(--p-green); }
body.single-vylety .kct-jump-map:hover { background: var(--p-soft); color: var(--p-green); }
body.single-vylety .kct-jump-map::after { content: "↗"; content: "↗" / ""; }
body.single-vylety .kct-trip-links { margin: 28px 0; padding: 18px 22px 10px; border: 2px solid var(--p-line-strong); border-radius: 14px; background: #fff; }
body.single-vylety .kct-trip-links h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.3; color: var(--p-green); }
body.single-vylety .kct-trip-links ul { margin: 0; padding: 0; list-style: none; }
body.single-vylety .kct-trip-links li { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--p-line); font-size: 18px; line-height: 1.4; }
body.single-vylety .kct-trip-links li:last-child { border-bottom: 0; }
body.single-vylety .kct-trip-links li::before { content: none; }
body.single-vylety .kct-trip-links a { font-weight: 700; color: var(--p-green); }
body.single-vylety .kct-link-source { margin-left: 6px; font-size: 14px; color: var(--p-muted); }
@media (max-width: 781px) {
	body.single-vylety .kct-fact dd { font-size: 18px; }
	body.single-vylety .kct-trip-links { padding: 14px 16px 6px; }
}

/* QR Platba pod popisem výletu (plugin: includes/trait-enrichment-payment.php): číslo účtu a QR kód pro bankovní
   aplikaci, odkaz na něj u ceny v přehledu nahoře */
body.single-vylety .kct-pay-jump { margin-left: 8px; font-size: 16px; font-weight: 700; white-space: nowrap; color: var(--p-green); }
body.single-vylety .kct-trip-pay { margin: 28px 0; padding: 18px 22px 20px; border: 2px solid var(--p-line-strong); border-radius: 14px; background: var(--p-card); scroll-margin-top: 90px; }
body.single-vylety .kct-trip-pay h2 { margin: 0 0 14px; font-size: 22px; line-height: 1.3; color: var(--p-green); }
body.single-vylety .kct-pay-body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px 28px; }
body.single-vylety .kct-pay-qr { flex: 0 0 auto; margin: 0; text-align: center; }
body.single-vylety .kct-pay-qr svg { display: block; width: 200px; height: 200px; border: 1px solid var(--p-line-strong); border-radius: 8px; background: #fff; }
body.single-vylety .kct-pay-qr figcaption { margin: 6px 0 0; font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--p-muted); }
body.single-vylety .kct-pay-info { flex: 1 1 280px; min-width: 0; }
body.single-vylety .kct-pay-details { display: grid; gap: 10px; margin: 0; }
body.single-vylety .kct-pay-details > div { margin: 0; }
body.single-vylety .kct-pay-details dt { margin: 0 0 2px; font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #2b3328; }
body.single-vylety .kct-pay-details dd { margin: 0; font-size: 19px; line-height: 1.35; color: var(--p-ink); }
body.single-vylety .kct-pay-details strong { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
body.single-vylety .kct-pay-note { margin: 14px 0 0; font-size: 18px; font-weight: 700; line-height: 1.45; color: var(--p-ink); }
body.single-vylety .kct-pay-help { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--p-muted); }
@media (max-width: 781px) {
	body.single-vylety .kct-trip-pay { padding: 14px 16px 16px; }
	body.single-vylety .kct-pay-qr { flex: 1 1 100%; }
	body.single-vylety .kct-pay-qr svg { margin: 0 auto; }
}

/* 17 Široké obrazovky ------------------------------------------------------------------- */
/* Kolem obsahu jemný náznak turistické mapy (vrstevnice, značená trasa, potok – assets/img/mapa.svg,
   stáhne se jen od 1280 px) a obsah na bílém listu. Třída kct-web je jen na webu, ne v editoru. */
@media (min-width: 1280px) {
	body.kct-web { background: #eaf5ec url("../img/mapa.svg") 0 0 / 560px 560px repeat; }
	.kct-web .site-main { position: relative; isolation: isolate; }
	.kct-web .site-main::before {
		content: ""; position: absolute; top: 0; bottom: 0; left: 50%; z-index: -1;
		width: min(1264px, 100%); transform: translateX(-50%);
		background: #fff; border-radius: 0 0 18px 18px;
		box-shadow: 0 0 0 1px rgba(31, 43, 27, .06), 0 18px 40px rgba(31, 43, 27, .07);
	}
}
