/*
 * Týčko Blog: styly webu podle návrhu redesignu (Týčko blog – návrh redesignu.html).
 * Hodnoty (barvy, velikosti, odsazení) jsou převzaté z inline stylů návrhu; viz docs/DESIGN.md.
 */

/* ===== 1. Tokeny ===== */
:root {
	--t-green: #268068;
	--t-green-2: #288063;
	--t-green-dark: #1a5948;
	--t-green-text: #1e6f5a;
	--t-green-tint: #d8f3ec;
	--t-cream: #faf7f2;
	--t-sand: #f2ebde;
	--t-sand-hover: #ebe1cf;
	--t-olive: #664700;
	--t-olive-2: #806826;
	--t-red: #a31621;
	--t-red-dark: #742334;
	--t-ink: #262940;
	--t-ink-2: #16271f;
	--t-nav: rgba(22, 39, 31, .75);
	--t-text: #353535;
	--t-muted: #5c5c5c;
	--t-line: #e8e8e8;
	--t-line-warm: #efe9de;
	--t-line-pill: #ddd2bd;
	--t-line-chip: #d6cbb4;
	--t-line-input: #b8ad97;
	--t-card-title: #fcedca;
	--t-mark: #fcedca;
	/* Tmavší než návrh: text přes fotku musí být čitelný i na světlých fotkách. */
	--t-shade: linear-gradient(0deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .64) 38%, rgba(0, 0, 0, .32) 68%, rgba(0, 0, 0, .16) 100%);
	--t-font: Inter, Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
	--t-container: 1368px;
	--t-gutter: 24px;
	--t-header-h: 72px;
	--t-admin-bar: var(--wp-admin--admin-bar--height, 0px);
	--t-ease: cubic-bezier(.4, 0, .2, 1);
	--t-ease-out: cubic-bezier(.22, 1, .36, 1);
}
@media (max-width: 767px) {
	:root { --t-gutter: 16px; --t-header-h: 64px; }
}

/* ===== 2. Základ ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--t-header-h) + var(--t-admin-bar) + 16px); }
body {
	margin: 0; background: var(--t-cream); color: var(--t-text);
	font-family: var(--t-font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.has-overlay { overflow: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--t-green); text-underline-offset: .15em; }
a:hover { color: var(--t-green-dark); }
:focus-visible { outline: 3px solid var(--t-green); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4, h5, h6 { color: var(--t-ink); font-weight: 700; line-height: 1.3; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button { font: inherit; }
mark { background: var(--t-mark); color: inherit; border-radius: 3px; padding: 0 1px; }
.icon { flex-shrink: 0; display: inline-block; vertical-align: middle; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 1000; padding: 12px 20px; border-radius: 8px; background: var(--t-ink); color: #fff; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }
.site-content:focus { outline: none; }
.container { width: 100%; max-width: var(--t-container); margin-inline: auto; padding-inline: var(--t-gutter); }
.only-mobile { display: none; }
@media (max-width: 767px) {
	.only-mobile { display: inline; }
	.only-desktop { display: none; }
}

/* ===== 3. Tlačítka, pilulky ===== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border: 1px solid transparent;
	border-radius: 8px; font-size: 15px; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background-color .15s var(--t-ease), color .15s var(--t-ease);
}
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn--lg { height: 44px; }
.btn--primary { background: var(--t-green); color: #fff; }
.btn--primary:hover { background: var(--t-green-dark); color: #fff; }
.btn--outline { border-color: var(--t-ink); background: #fff; color: var(--t-ink); }
.btn--outline:hover { background: #f4f1ea; color: var(--t-ink); }
/* Návrh má obrysová tlačítka o rámeček vyšší (content-box): 44 + 2 px. */
.btn--outline:not(.btn--sm) { height: 46px; }
.btn--red { background: var(--t-red); color: #fff; height: 48px; padding: 0 22px; font-size: 16px; }
.btn--red:hover { background: var(--t-red-dark); color: #fff; }

.pill {
	display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 4px 12px 4px 10px; border-radius: 30px;
	background: var(--t-cream); color: var(--t-olive); font-size: 13.5px; font-weight: 500; line-height: 1.45; white-space: nowrap; text-decoration: none;
}
.pill .icon { width: 16px; height: 16px; }
.pill--cover { font-size: 14.5px; }
.pill--outline { background: #fff; border: 1px solid var(--t-line-pill); font-size: 14px; }
a.pill:hover { background: var(--t-sand); color: var(--t-olive); }

.tag-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tag-pill {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--t-line-pill); border-radius: 30px;
	background: #fff; color: var(--t-ink); font-size: 14px; font-weight: 500; line-height: 1.4; text-decoration: none; white-space: nowrap;
}
.tag-pill:hover { background: #f4f1ea; color: var(--t-ink); }
.tag-pill--hash { height: 36px; padding: 0 12px; }
.tag-pill__hash { color: var(--t-muted); }
.tag-pill__count { font-size: 12.5px; color: var(--t-muted); }

/* ===== 4. Hlavička ===== */
.site-header { position: sticky; top: var(--t-admin-bar); z-index: 100; background: #fff; transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--t-line), 0 6px 16px rgba(0, 0, 0, .04); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; min-height: var(--t-header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; margin-bottom: 4px; text-decoration: none; }
.brand__logo { display: block; width: 154px; height: 28px; }
.search-toggle {
	display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 12px; margin-top: 2px; border: 1px solid #ebebeb; border-radius: 8px;
	background: var(--t-sand); color: var(--t-nav); font-size: 14.5px; font-weight: 500; text-decoration: none; cursor: pointer;
	transition: background-color .15s var(--t-ease), color .15s var(--t-ease);
}
.search-toggle:hover, .search-toggle[aria-expanded="true"] { background: var(--t-sand-hover); color: var(--t-ink-2); }
.blog-nav { margin-left: 4px; margin-top: 2px; }
.blog-nav__list, .platform-nav__list, .header-social { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item {
	display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px; border: 0; border-radius: 5px; background: transparent;
	color: var(--t-nav); font: inherit; font-size: 14.5px; line-height: 21.75px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: color .15s var(--t-ease), background-color .15s var(--t-ease);
}
.nav-item:hover, .nav-item[aria-expanded="true"] { background: rgba(22, 39, 31, .05); color: var(--t-ink-2); }
.nav-item.is-active { color: var(--t-green-text); background: rgba(40, 128, 99, .07); }
.nav-item--toggle .icon { transition: transform .2s; }
.nav-item--toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.site-header__tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-divider { width: 1px; height: 24px; margin: 0 12px; background: rgba(22, 39, 31, .15); }
.platform-link {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px; border-radius: 5px; color: var(--t-green-2);
	font-size: 14.5px; line-height: 21.75px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color .15s var(--t-ease);
}
.platform-link:hover { background: rgba(40, 128, 99, .07); color: var(--t-green-2); }
.header-social { gap: 0; margin-left: 4px; }
.icon-button {
	display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 8px;
	background: transparent; color: var(--t-nav); cursor: pointer; text-decoration: none; transition: color .15s var(--t-ease), background-color .15s var(--t-ease);
}
.icon-button:hover { background: rgba(22, 39, 31, .05); color: var(--t-ink-2); }
.menu-toggle { display: none; width: 40px; height: 40px; color: var(--t-ink); }
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

/* Rubriky v hlavičce: panel přes celou šířku */
.blog-nav__list > li { position: static; }
.header-panel {
	position: absolute; left: 0; right: 0; top: 100%; z-index: 110; padding: 28px 0 32px; background: #fff;
	border-top: 1px solid #ece6da; box-shadow: 0 18px 40px rgba(22, 39, 31, .16);
}
.header-panel[hidden] { display: none; }

@media (max-width: 1359px) {
	.blog-nav, .platform-nav, .header-divider, .header-social { display: none; }
	.menu-toggle { display: inline-flex; }
	.search-toggle { margin-left: auto; }
	.site-header__tools { margin-left: 0; }
}
@media (max-width: 767px) {
	.site-header__inner { gap: 8px; }
	.brand { margin-bottom: 3px; }
	.brand__logo { width: 143px; height: 26px; }
	.search-toggle { width: 40px; height: 40px; padding: 0; justify-content: center; margin-top: 0; }
	.search-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	body.has-menu .search-toggle { width: auto; padding: 0 14px 0 12px; }
	body.has-menu .search-toggle__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
	body.has-menu .site-header, body.has-search .site-header { border-bottom: 1px solid var(--t-line); }
}

/* ===== 5. Hledání: překryvná vrstva s našeptávačem ===== */
.search-overlay { position: fixed; inset: calc(var(--t-header-h) + var(--t-admin-bar)) 0 0 0; z-index: 90; }
.search-overlay[hidden] { display: none; }
.search-overlay__backdrop { position: absolute; inset: 0; background: rgba(22, 39, 31, .4); }
.search-overlay__panel {
	position: relative; max-height: 100%; overflow-y: auto; padding: 20px 0 24px; background: #fff;
	border-top: 1px solid #ece6da; box-shadow: 0 18px 40px rgba(22, 39, 31, .16);
}
.search-overlay__bar { display: flex; align-items: center; gap: 10px; }
.search-box {
	position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 10px 0 18px;
	border: 2px solid var(--t-green); border-radius: 10px; background: #fff; color: var(--t-nav);
}
.search-box__input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: 18px; color: var(--t-ink); outline: none; -webkit-appearance: none; appearance: none; }
.search-box__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-box__clear {
	display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 999px;
	background: #f2efe8; color: var(--t-ink); cursor: pointer;
}
.search-box__clear[hidden] { display: none; }
.search-box__close {
	display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent;
	color: var(--t-ink); font-size: 14px; font-weight: 500; cursor: pointer;
}
.search-box__close:hover { background: #f4f1ea; }
.search-box__close kbd { padding: 1px 6px; border: 1px solid var(--t-line-pill); border-radius: 4px; font: inherit; font-size: 12px; color: var(--t-muted); }
.search-overlay__cancel { display: none; height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--t-green-text); font-size: 15px; font-weight: 600; cursor: pointer; }
.suggest { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0 48px; margin-top: 20px; }
.suggest[hidden] { display: none; }
.suggest__label { margin: 0 0 8px; font-size: 13px; line-height: 1.4; font-weight: 600; color: var(--t-muted); }
.suggest__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.suggest__item { display: flex; align-items: center; gap: 14px; padding: 8px; margin: 0 -8px; border-radius: 8px; color: var(--t-ink); text-decoration: none; }
.suggest__item:hover, .suggest__item:focus-visible { background: #f4f1ea; color: var(--t-ink); }
.suggest__item img, .suggest__thumb { flex: 0 0 96px; width: 96px; height: 64px; border-radius: 6px; object-fit: cover; background: var(--t-sand); }
.suggest__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.suggest__title { font-size: 15.5px; line-height: 1.3; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.suggest__meta { font-size: 13px; color: var(--t-muted); }
.suggest__terms { display: flex; flex-direction: column; gap: 20px; }
.suggest__terms [hidden] { display: none; }
.suggest__cats { display: flex; flex-direction: column; gap: 8px; }
.suggest__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--t-line-warm); }
.suggest__hint { font-size: 13px; color: var(--t-muted); }
.suggest__empty { margin: 20px 0 0; color: var(--t-muted); }
.suggest__empty[hidden] { display: none; }
.term-row {
	display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border: 1px solid var(--t-line-pill); border-radius: 10px;
	background: var(--t-cream); color: var(--t-ink); font-size: 15px; font-weight: 600; text-decoration: none;
}
.term-row:hover { background: #f4f1ea; color: var(--t-ink); }
.term-row__icon { display: inline-flex; color: var(--t-olive); }
.term-row__name { flex: 1; min-width: 0; }
.term-row__count { font-size: 13px; font-weight: 500; color: var(--t-muted); }

@media (max-width: 767px) {
	.search-overlay { inset: var(--t-admin-bar) 0 0 0; z-index: 120; }
	.search-overlay__backdrop { display: none; }
	.search-overlay__panel { height: 100%; padding: 0 0 24px; border-top: 0; box-shadow: none; }
	.search-overlay__bar { position: sticky; top: 0; z-index: 1; min-height: 64px; background: #fff; border-bottom: 1px solid var(--t-line); margin-inline: calc(-1 * var(--t-gutter)); padding: 0 var(--t-gutter); }
	.search-box { height: 44px; gap: 8px; padding: 0 6px 0 12px; }
	.search-box__input { font-size: 16px; }
	.search-box__clear { width: 30px; height: 30px; }
	.search-box__close { display: none; }
	.search-overlay__cancel { display: inline-flex; align-items: center; }
	.suggest { display: flex; flex-direction: column; gap: 18px; margin-top: 16px; }
	.suggest[hidden] { display: none; }
	.suggest__terms { order: -1; gap: 18px; }
	.suggest__item { gap: 12px; padding: 8px 0; margin: 0; }
	.suggest__item img, .suggest__thumb { flex-basis: 72px; width: 72px; height: 54px; }
	.suggest__title { font-size: 15px; }
	.suggest__meta { font-size: 12.5px; }
	.suggest__foot { margin-top: 0; padding-top: 0; border-top: 0; }
	.suggest__foot .btn { width: 100%; height: 48px; }
	.suggest__hint { display: none; }
	.term-row { height: 46px; }
}

/* ===== 6. Mobilní menu ===== */
.mobile-menu { position: fixed; inset: calc(var(--t-header-h) + var(--t-admin-bar)) 0 0 0; z-index: 99; overflow-y: auto; background: #fff; overscroll-behavior: contain; }
.mobile-menu[hidden] { display: none; }
.mobile-menu__inner { display: flex; flex-direction: column; gap: 14px; max-width: 640px; margin-inline: auto; padding: 14px var(--t-gutter) 24px; }
.mobile-menu__tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.tile {
	display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border: 1px solid #ece6da; border-radius: 10px; background: #fff;
	color: var(--t-ink); font-size: 14.5px; line-height: 1.2; font-weight: 700; white-space: nowrap; text-decoration: none;
}
.tile .icon { color: var(--t-green); }
.tile span { overflow: hidden; text-overflow: ellipsis; }
.tile.is-active { border-color: var(--t-green); color: var(--t-green-text); }
.mobile-menu__rubrics { padding-top: 2px; }
.mobile-menu__label { margin: 0 0 8px; font-size: 13px; line-height: 1.4; font-weight: 600; color: var(--t-muted); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { flex: 1 1 auto; display: flex; }
.chip {
	flex: 1; display: flex; align-items: center; justify-content: center; height: 32px; padding: 0 10px; border: 1px solid var(--t-line-chip); border-radius: 8px;
	background: #fff; color: var(--t-ink); font-size: 13px; font-weight: 500; white-space: nowrap; text-decoration: none;
}
.chip.is-active { border-color: var(--t-green); color: var(--t-green-text); }
.mobile-menu__platform { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mobile-menu__platform a {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 62px; padding: 0 6px; border-radius: 8px;
	background: rgba(22, 39, 31, .05); color: var(--t-green-2); font-size: 13.5px; line-height: 1.2; font-weight: 700; text-align: center; text-decoration: none;
}
.mobile-menu__social { list-style: none; margin: -4px 0 0; padding: 0; display: flex; justify-content: center; gap: 4px; }
.mobile-menu__social a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 8px; color: var(--t-ink); font-size: 14px; font-weight: 600; text-decoration: none; }

/* ===== 7. Stránky a sekce ===== */
.section { padding-top: 56px; }
.section--first { padding-top: 36px; }
.hero + .section { padding-top: 28px; }
/* Homepage: sekce rubrik blíž u sebe */
.site-main--home .section:not(.section--first) { padding-top: 36px; }
.site-main--home .band { margin-top: 40px; }
/* Karta Týčko Tour hned pod sekcí Týčko Tour */
.site-main--home .section.section--tour-attached { padding-top: 20px; }
/* Sekce rubrik se střídají: každá druhá (od první) na pískovém pásu přes celou šířku. */
.section-band--alt { margin-top: 36px; padding-bottom: 32px; background: #f4efe5; }
.site-main--home .section-band--alt > .section { padding-top: 28px; }
.section-band--alt + .section-band > .section { padding-top: 32px; }
/* Hned po bílém pásu rubrik navazuje tmavší sekce bez krémové mezery. */
.site-main--home .band + .section-band--alt { margin-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-bottom: 14px; }
.section-head__title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--t-ink); }
.section-head__title .icon { color: var(--t-ink); }
.section-head__link { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.section-head__link:hover { color: var(--t-green-text); }
.section-head__link:hover .icon { color: var(--t-green-text); }
.section-head__title .section-head__arrow { color: var(--t-green); opacity: 0; transform: translateX(-6px); transition: opacity .2s ease, transform .3s var(--t-ease-out); }
.section-head__link:hover .section-head__arrow, .section-head__link:focus-visible .section-head__arrow { opacity: 1; transform: none; }
@media (hover: none) { .section-head__title .section-head__arrow { opacity: .7; transform: none; } }
.page-head { display: flex; align-items: center; gap: 20px; padding-top: 32px; }
.page-head__text { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.page-title { margin: 0; font-size: 34px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; color: var(--t-ink); }
.page-title__paged { color: var(--t-muted); font-weight: 600; }
.page-head__count { margin: 0; font-size: 15px; color: var(--t-muted); }
.page-head__desc { margin: 0; max-width: 760px; color: var(--t-muted); font-size: 16px; line-height: 1.6; }
.page-head__desc p:last-child { margin-bottom: 0; }
.page-head--author { align-items: flex-start; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--t-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; }
.breadcrumbs a { color: var(--t-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--t-ink); }
.empty-state { padding: 32px; border-radius: 12px; background: #fff; color: var(--t-muted); }
@media (max-width: 767px) {
	.section { padding-top: 40px; }
	.section-head { flex-wrap: nowrap; gap: 12px; margin-bottom: 12px; }
	.section-head__title { gap: 6px; font-size: 20px; }
	.hero + .section { padding-top: 20px; }
	.site-main--home .section:not(.section--first) { padding-top: 28px; }
	.site-main--home .band { margin-top: 32px; }
	.section-band--alt { margin-top: 28px; padding-bottom: 24px; }
	.site-main--home .section-band--alt > .section { padding-top: 24px; }
	.section-band--alt + .section-band > .section { padding-top: 28px; }
	.section-more { margin-top: 12px; }
	.section-more .btn { width: 100%; }
	.section-head .btn--sm { flex-shrink: 0; height: 34px; padding: 0 12px; }
	.page-title { font-size: 28px; }
}

/* ===== 8. Hero (Náš výběr) ===== */
.hero { padding-top: 20px; }
/* Desktop: hlavní článek je fotka 16:9 s titulkem přes spodní přechod (jako na mobilu), vedle dva menší články
   ve vodorovných bílých kartách: fotka 16:9 přes celou výšku karty vlevo (rubrika přes ni), vpravo titulek a autor.
   Výšku sekce určuje fotka hlavního článku, aby byly na notebooku vidět i nejnovější články. */
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; }
.hero__grid > .cover--main { align-self: start; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--t-ink-2); }
.hero__grid > .cover--main .frame__blur { display: none; }
.hero__grid > .cover--main .frame__img { object-fit: cover; }
.hero__grid > .cover--main .cover__shade { background: linear-gradient(0deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .66) 28%, rgba(0, 0, 0, .24) 55%, rgba(0, 0, 0, 0) 75%); }
.hero__grid > .cover--main .cover__top { top: 16px; left: 16px; }
.hero__grid > .cover--main .cover__body { gap: 14px; padding: 0 32px 28px; }
.hero__grid > .cover--main .cover__title { font-size: 26px; line-height: 1.2; letter-spacing: -.012em; }
.hero__side { min-width: 0; display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 20px; }
/* Výška karty je daná mřížkou, šířka fotky z ní (cqh, platí jen uvnitř karty), text začíná za fotkou. */
.hero-card { --hero-media: calc(100cqh * 16 / 9); position: relative; container-type: size; display: flex; align-items: center; min-width: 0; padding: 16px 22px 16px 0; background: #fff; border-radius: 12px; overflow: hidden; }
.hero-card__media { position: absolute; top: 0; left: 0; display: block; width: var(--hero-media); height: 100%; overflow: hidden; background: var(--t-sand); }
.hero-card__media .frame__img { position: relative; object-fit: cover; }
.hero-card__media .frame__blur { display: none; }
.hero-card__top { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; max-width: calc(var(--hero-media) - 24px); }
.hero-card__top .pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.hero-card__body { display: flex; flex-direction: column; gap: 12px; min-width: 0; margin-left: var(--hero-media); padding-left: 22px; }
.hero-card__title { margin: 0; color: var(--t-ink); font-size: 18px; line-height: 1.3; font-weight: 700; text-wrap: pretty; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hero-card__title a { color: inherit; text-decoration: none; }
.hero-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hero-card__title a:focus-visible { outline: none; }
.hero-card:has(:focus-visible) { box-shadow: 0 0 0 3px var(--t-green); }
.hero-card .byline { position: relative; z-index: 3; }
.hero-card:hover .hero-card__title a { color: var(--t-green); }
@media (max-width: 1279px) {
	.hero__grid > .cover--main .cover__body { gap: 12px; padding: 0 24px 22px; }
	.hero__grid > .cover--main .cover__title { font-size: 25px; }
	.hero-card { padding: 12px 16px 12px 0; }
	.hero-card__body { gap: 8px; padding-left: 16px; }
	.hero-card__title { font-size: 16px; }
	.hero-card__top { top: 10px; left: 10px; }
	.hero-card .pill { padding: 2px 10px 2px 8px; font-size: 13px; }
	.hero-card .avatar { width: 22px; height: 22px; font-size: 10px; }
	.hero-card .byline__text { font-size: 12.5px; }
}
@media (max-width: 1099px) {
	.hero__grid { gap: 16px; }
	.hero__side { gap: 16px; }
	.hero__grid > .cover--main .cover__top { top: 12px; left: 12px; }
	.hero__grid > .cover--main .cover__body { gap: 10px; padding: 0 20px 18px; }
	.hero__grid > .cover--main .cover__title { font-size: 21px; }
	.hero-card { padding: 10px 14px 10px 0; }
	.hero-card__body { padding-left: 14px; }
	.hero-card__top { display: none; }
	.hero-card__title { font-size: 15px; -webkit-line-clamp: 3; }
}
/* Úzký tablet: hlavní článek přes celou šířku, dva menší pod ním (karta má pevnou výšku, šířka fotky se z ní počítá). */
@media (min-width: 768px) and (max-width: 899px) {
	.hero__grid { grid-template-columns: minmax(0, 1fr); }
	.hero__side { grid-template-rows: none; }
	.hero__grid > .cover--main .cover__body { padding: 0 28px 24px; }
	.hero__grid > .cover--main .cover__title { font-size: 26px; }
	.hero-card { height: 128px; }
	.hero-card__top { display: flex; }
	.hero-card__title { font-size: 17px; }
}
.cover { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 8px; overflow: hidden; background: #1f1f1f; isolation: isolate; }
.cover picture { display: contents; }
.cover__image { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.cover__shade { position: absolute; inset: 0; z-index: -1; background: var(--t-shade); }
.cover__top { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; }
.cover__body { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; }
.cover--main .cover__body { padding: 24px 28px 26px; }
.cover__title { margin: 0; color: var(--t-card-title); font-size: 19px; line-height: 1.22; font-weight: 700; text-wrap: pretty; }
.cover--main .cover__title { font-size: 30px; }
.cover__link { color: inherit; text-decoration: none; }
.cover__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cover__link:hover { color: #fff; }
.cover__link:focus-visible { outline: none; }
.cover:has(:focus-visible) { box-shadow: 0 0 0 3px var(--t-green); }
.cover .pill, .cover .byline { position: relative; z-index: 3; }
.cover .byline__text { color: rgba(255, 255, 255, .85); }
.cover .byline__author { color: #fff; }
.covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.covers > .cover { min-height: 240px; }
@media (max-width: 767px) {
	.hero { padding-top: 12px; }
}

/* Mobil: hero jako bílé karty (velký článek s fotkou 16:9, pod ním dva řádky s miniaturou) */
.hero__mob { display: none; }
@media (max-width: 767px) {
	.hero__desk { display: none; }
	.hero__mob { display: block; }
	.hero__mgrid { display: block; }
	.hero-m { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border-radius: 12px; overflow: hidden; }
	.hero-m__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--t-sand); }
	.hero-m__media .frame__img { position: relative; object-fit: cover; }
	.hero-m__media .frame__blur { display: none; }
	.hero-m__top { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; max-width: calc(100% - 28px); }
	.hero-m__body { display: flex; flex-direction: column; gap: 12px; }
	.hero-m--main .hero-m__body { padding: 16px 18px 18px; }
	.hero-m__title { margin: 0; color: var(--t-ink); font-size: 15.5px; line-height: 1.3; font-weight: 700; text-wrap: pretty; }
	.hero-m--main .hero-m__title { font-size: 22px; line-height: 1.25; }
	.hero-m__title a { color: inherit; text-decoration: none; }
	.hero-m__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
	.hero-m__title a:focus-visible { outline: none; }
	.hero-m:has(:focus-visible) { box-shadow: 0 0 0 2px var(--t-green); }
	.hero-m .pill, .hero-m .byline { position: relative; z-index: 3; }
	.hero__mside { display: block; margin-top: 14px; padding: 2px 16px; border-radius: 12px; background: #fff; }
	.hero-m--side { display: grid; grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 12px; padding: 14px 0; border-radius: 0; background: transparent; overflow: visible; align-items: start; }
	.hero-m--side + .hero-m--side { border-top: 1px solid var(--t-line-warm); }
	.hero-m--side .hero-m__media { grid-column: 1; grid-row: 1 / span 2; border-radius: 8px; }
	.hero-m--side .hero-m__top { position: static; grid-column: 2; grid-row: 1; max-width: none; }
	.hero-m--side .pill--cover { padding: 0; border-radius: 0; background: none; color: var(--t-olive); font-size: 12.5px; line-height: 1.4; }
	.hero-m--side .pill--cover .icon { display: none; }
	.hero-m--side .hero-m__body { grid-column: 2; grid-row: 2; padding: 4px 0 0; gap: 6px; }
	.hero-m--side .avatar { width: 20px; height: 20px; font-size: 10px; box-shadow: none; }
	.hero-m--side .byline { gap: 6px; }
	.hero-m--side .byline__text { font-size: 12.5px; }
}

/* Avatar s iniciálami a řádek autora */
.avatar {
	position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 999px;
	background: var(--t-sand); color: var(--t-olive); font-size: 11px; font-weight: 600; line-height: 1; overflow: hidden;
}
.avatar img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: 999px; object-fit: cover; background: transparent; box-shadow: none; }
.avatar--ring { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85); }
.avatar--20 { width: 20px; height: 20px; font-size: 10px; }
.avatar--26 { width: 26px; height: 26px; font-size: 10px; }
.avatar--32 { width: 32px; height: 32px; font-size: 12px; }
.avatar--44 { width: 44px; height: 44px; font-size: 17px; }
.avatar--56 { width: 56px; height: 56px; font-size: 21px; }
.byline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.byline__text { font-size: 13.5px; line-height: 1.3; color: var(--t-muted); min-width: 0; }
.byline__author { color: var(--t-ink); font-weight: 500; text-decoration: none; }
.byline__author:hover { text-decoration: underline; color: var(--t-ink); }

/* ===== 9. Bílé karty článků ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border-radius: 12px; overflow: hidden; }
/* Nižší fotky (16:9) než v návrhu, aby byly na desktopu vidět i titulky nejnovějších článků. */
.card__media { display: block; aspect-ratio: 16 / 9; background: var(--t-sand); overflow: hidden; }
.card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 14px 16px 16px; }
/* Pilulka rubriky přes fotku vlevo nahoře (nad odkazem přes celou kartu). */
.card__top { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; max-width: calc(100% - 24px); }
.card__top .pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.card__label { display: none; text-decoration: none; }
.card__title { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 700; color: var(--t-ink); text-wrap: pretty; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__title a:focus-visible { outline: none; }
/* Zelený rámeček karty jen při ovládání klávesnicí, ne po kliknutí nebo ťuknutí. */
.card:has(:focus-visible) { box-shadow: 0 0 0 3px var(--t-green); }
.card__excerpt { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--t-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { margin-top: auto; padding-top: 6px; position: relative; z-index: 2; }
.load-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 28px; }
/* Tlačítko pod sekcí (Nejnovější články → Všechny články) */
.section-more { display: flex; justify-content: center; margin-top: 20px; }
.load-more[hidden] { display: none; }
.load-more__count { font-size: 13.5px; color: var(--t-muted); }
.load-more .btn.is-loading { opacity: .6; pointer-events: none; }

@media (max-width: 767px) {
	/* Seznamy na mobilu: řádky s miniaturou 104 px. Nejnovější i sekce rubrik (v návrhu vodorovný posuvník, který
	   zasekával svislý scroll) mají první článek velký a pod ním řádky; sekce rubrik ukazují tři články. */
	.cards--latest, .cards--list, .cards--scroll { display: flex; flex-direction: column; gap: 0; }
	.cards--list { padding: 2px 0; border-radius: 12px; background: #fff; overflow: hidden; }
	.cards.cards--scroll > .card:nth-child(n+4) { display: none; }
	:is(.cards--latest, .cards--scroll) > .card:first-child { margin-bottom: 12px; }
	:is(.cards--latest, .cards--scroll) > .card:nth-child(2) { border-radius: 12px 12px 0 0; padding-top: 16px; }
	:is(.cards--latest > .card:last-child:not(:first-child), .cards--scroll > .card:nth-child(3)) { border-radius: 0 0 12px 12px; padding-bottom: 16px; }
	:is(.cards--latest, .cards--scroll) > .card:nth-child(2):last-child { border-radius: 12px; }
	:is(.cards--latest > .card:not(:first-child), .cards--list > .card, .cards--scroll > .card:not(:first-child)) { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: start; gap: 12px; padding: 14px 16px; border-radius: 0; }
	:is(.cards--latest > .card:not(:first-child), .cards--list > .card, .cards--scroll > .card:not(:first-child)) + .card::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; border-top: 1px solid var(--t-line-warm); }
	:is(.cards--latest > .card:not(:first-child), .cards--list > .card, .cards--scroll > .card:not(:first-child)):has(:focus-visible) { box-shadow: inset 0 0 0 3px var(--t-green); }
	:is(.cards--latest > .card:not(:first-child), .cards--list > .card, .cards--scroll > .card:not(:first-child)) .card__media { width: 112px; height: auto; aspect-ratio: 16 / 9; border-radius: 8px; }
	:is(.cards--latest > .card:not(:first-child), .cards--list > .card, .cards--scroll > .card:not(:first-child)) .card__body { padding: 0; gap: 6px; }
	:is(.cards--latest > .card:not(:first-child), .cards--list > .card, .cards--scroll > .card:not(:first-child)) :is(.card__top, .card__excerpt) { display: none; }
	:is(.cards--latest > .card:not(:first-child), .cards--list > .card, .cards--scroll > .card:not(:first-child)) .card__label { display: block; font-size: 12.5px; font-weight: 500; color: var(--t-olive); }
	:is(.cards--latest > .card:not(:first-child), .cards--list > .card, .cards--scroll > .card:not(:first-child)) .card__title { font-size: 15.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	:is(.cards--latest > .card:not(:first-child), .cards--list > .card, .cards--scroll > .card:not(:first-child)) .card__meta { padding-top: 0; }
	:is(.cards--latest > .card:not(:first-child), .cards--list > .card, .cards--scroll > .card:not(:first-child)) .avatar { width: 20px; height: 20px; font-size: 10px; }
	:is(.cards--latest > .card:not(:first-child), .cards--list > .card, .cards--scroll > .card:not(:first-child)) .byline { gap: 6px; }
	:is(.cards--latest > .card:not(:first-child), .cards--list > .card, .cards--scroll > .card:not(:first-child)) .byline__text { font-size: 12.5px; line-height: 1.5; }
	:is(.cards--latest > .card:not(:first-child), .cards--list > .card, .cards--scroll > .card:not(:first-child)) .byline__author { color: var(--t-muted); font-weight: 400; }
	.load-more { margin-top: 12px; }
	.load-more .btn { width: 100%; }
}

/* ===== 10. Pás rubrik, karta Tour, promo karty ===== */
.band { margin-top: 56px; padding: 32px 0 36px; background: #fff; }
.rubrics__title { margin: 0 0 16px; font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--t-ink); }
.rubrics__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 8px 12px; }
.rubric {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 16px; border-radius: 10px;
	background: var(--t-cream); color: var(--t-ink); font-size: 15px; font-weight: 500; text-decoration: none; transition: background-color .15s var(--t-ease);
}
.rubric:hover { background: #f4f1ea; color: var(--t-ink); }
.rubric.is-active { background: var(--t-green-tint); color: var(--t-green-dark); }
.rubric__name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.rubric__icon { display: inline-flex; color: var(--t-olive); }
.rubric__count { min-width: 28px; padding: 1px 8px; border-radius: 999px; background: #fff; color: var(--t-muted); font-size: 12px; font-weight: 600; text-align: center; }
.rubrics--panel .rubrics__title { font-size: 13px; font-weight: 600; color: var(--t-muted); margin-bottom: 12px; }
@media (max-width: 767px) {
	.band { margin-top: 40px; padding: 24px 0; }
	.section--tour { padding-top: 24px; }
	.site-main--home .section.section--tour-attached { padding-top: 16px; }
	.rubrics__title { font-size: 20px; margin-bottom: 12px; }
	.rubrics__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
	.rubric { gap: 6px; height: 100%; min-height: 44px; padding: 8px 8px 8px 12px; border-radius: 8px; font-size: 13.5px; line-height: 1.25; }
	.rubric__icon { display: none; }
	.rubric__count { flex-shrink: 0; min-width: 24px; padding: 1px 6px; font-size: 11.5px; line-height: 1.5; }
}

.tour { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: 28px 36px; border-radius: 12px; background: #fff; }
.tour__text { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tour__title { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--t-olive-2); }
.tour__desc { margin: 0; font-size: 15px; line-height: 1.55; color: var(--t-ink); }
.tour__pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 4px 0 0; padding: 0; }
.tour__pills li { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 30px; background: var(--t-cream); color: var(--t-ink); font-size: 14px; font-weight: 500; white-space: nowrap; }
.tour__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 767px) {
	.tour { flex-direction: column; align-items: stretch; gap: 12px; padding: 24px 20px; }
	.tour__text { flex: none; gap: 12px; }
	.tour__title { font-size: 20px; }
	.tour__pills { margin-top: 0; }
	.tour__pills li { font-size: 13.5px; }
	.tour__actions { flex-direction: column; gap: 10px; margin-top: 6px; }
	.tour__actions .btn { width: 100%; height: 46px; }
	.tour__actions .btn--outline { height: 48px; }
}

.promos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 20px; padding-top: 56px; padding-bottom: 72px; }
.promo { background: #fff; border-radius: 12px; }
.promo--newsletter { display: flex; flex-direction: column; gap: 16px; padding: 32px 36px; }
.promo__title { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--t-olive-2); }
.promo__checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--t-ink); }
.promo__checks li { display: flex; align-items: center; gap: 12px; }
.promo__checks .icon { color: var(--t-red); }
.promo__status { margin: 0; padding: 10px 14px; border-radius: 8px; font-size: 14.5px; }
.promo__status--ok { background: var(--t-green-tint); color: var(--t-green-dark); }
.promo__status--email, .promo__status--chyba { background: #fae3e5; color: var(--t-red); }
.promo__cta { margin: 22px 0 0; }
.signup { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.signup__label { font-size: 14px; font-weight: 500; color: var(--t-ink); }
.signup__row { display: flex; flex-wrap: wrap; gap: 12px; }
.signup__input { flex: 1 1 240px; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--t-line-input); border-radius: 8px; background: var(--t-sand); font: inherit; font-size: 15px; color: var(--t-ink); }
.signup__input:focus { outline: 2px solid var(--t-green); outline-offset: 0; background: #fff; }
.signup__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup__note { margin: 0; font-size: 13px; color: var(--t-muted); }
.signup__note a { color: var(--t-text); }
.promo--app { display: flex; flex-wrap: wrap; align-items: stretch; overflow: hidden; }
.promo__text { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 32px 36px; }
.promo__desc { margin: 0; font-size: 15px; line-height: 1.55; color: var(--t-ink); }
.promo__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.promo__badges a { display: inline-flex; }
.promo__badges img { display: block; height: 40px; width: auto; }
.promo__phone { flex: 0 0 200px; height: 250px; align-self: flex-end; overflow: hidden; display: flex; justify-content: center; padding-top: 28px; padding-right: 24px; box-sizing: content-box; }
.promo__phone img { display: block; width: 180px; height: auto; align-self: flex-start; }
@media (max-width: 767px) {
	.promos { gap: 16px; margin-top: 32px; padding-top: 40px; padding-bottom: 48px; background: var(--t-sand); }
	.promo--newsletter { gap: 14px; padding: 24px 20px; }
	.promo__title { font-size: 20px; }
	.promo__checks li { align-items: flex-start; gap: 10px; line-height: 1.4; }
	.signup__submit { width: 100%; }
	.promo--app { flex-direction: column; }
	.promo__text { flex: none; gap: 12px; padding: 24px 20px 0; }
	.promo__badges { margin-top: 4px; }
	.promo__phone { flex: none; align-self: stretch; height: 210px; padding: 24px 0 0; box-sizing: border-box; }
	.promo__phone img { width: 170px; }
	.signup__input { font-size: 16px; }
	.signup__note { margin-top: 2px; line-height: 1.45; }
}

/* ===== 11. Detail článku ===== */
.entry-top { padding-top: 32px; }
.entry-header { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.entry-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.entry-crumbs .breadcrumbs { flex: none; }
.entry-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.entry-title { margin: 0; font-size: 46px; line-height: 1.12; font-weight: 700; letter-spacing: -.02em; color: var(--t-ink); text-wrap: balance; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 4px; }
.entry-author { display: flex; align-items: center; gap: 14px; min-width: 0; }
.entry-author__text { display: flex; flex-direction: column; gap: 2px; line-height: 1.4; min-width: 0; }
.entry-author__name { font-size: 16px; font-weight: 700; color: var(--t-ink); text-decoration: none; }
.entry-author__name:hover { text-decoration: underline; color: var(--t-ink); }
.entry-author__info { font-size: 14px; color: var(--t-muted); }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn {
	display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: #fff;
	color: var(--t-ink); font: inherit; font-size: 14.5px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color .15s var(--t-ease);
}
.share__btn:hover { background: #f4f1ea; color: var(--t-ink); }
.share__native { display: none; }
.entry-layout { display: flex; flex-wrap: wrap; align-items: stretch; gap: 48px 64px; padding-top: 28px; }
.entry-main { flex: 1 1 600px; min-width: 0; }
.entry-aside { flex: 0 1 340px; min-width: 0; align-self: stretch; display: flex; flex-direction: column; gap: 16px; }
.entry-figure { margin: 0 0 8px; }
.entry-figure picture { display: block; }
.entry-figure__image { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--t-sand); }
.entry-figure figcaption { margin-top: 12px; font-size: 16px; line-height: 1.55; color: var(--t-text); }
.side-card { padding: 20px 22px; border-radius: 12px; background: #fff; }
.side-card__title { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--t-olive-2); }
.toc--card ul { list-style: none; margin: 0; padding: 0; font-size: 14.5px; line-height: 1.4; }
.toc--card a { display: block; padding: 6px 0 6px 12px; margin-left: -12px; border-radius: 6px; color: var(--t-ink); text-decoration: none; }
.toc--card a:hover { color: var(--t-green-text); }
.toc--card a.is-active { background: var(--t-cream); color: var(--t-green-text); font-weight: 600; box-shadow: inset 3px 0 0 var(--t-green); }

.minis { list-style: none; margin: 0; padding: 0; }
.mini { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--t-line-warm); }
.mini:first-child { border-top: 0; }
.mini__media { flex: 0 0 80px; height: 45px; border-radius: 6px; overflow: hidden; background: var(--t-sand); }
.mini__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mini__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mini__title { font-size: 14.5px; line-height: 1.35; font-weight: 600; color: var(--t-ink); text-decoration: none; }
.mini__date { font-size: 13px; color: var(--t-muted); }
.entry-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 40px; line-height: 1.4; }
.entry-tags__label, .entry-share__label { font-size: 15px; font-weight: 600; color: var(--t-ink); }
.entry-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #e8e2d6; line-height: 1.5; }
.entry-share__label { font-size: 16px; }
.author-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 28px; padding: 24px 28px; border-radius: 12px; background: #fff; }
.author-box__body { min-width: 0; }
.author-box__eyebrow { margin: 0 0 2px; font-size: 13px; font-weight: 600; color: var(--t-muted); }
.author-box__name { margin: 0 0 8px; font-size: 18px; }
.author-box__name a { color: var(--t-ink); text-decoration: none; }
.author-box__bio { color: var(--t-text); font-size: 15px; line-height: 1.6; }
.author-box__bio p { margin-bottom: .6em; }
.author-box .tag-pills { margin-top: 12px; }
/* Banner z widgetů (Postranní panel, např. Bryson): v pravém sloupci, na mobilu a tabletu pod článkem */
.side-banner .widget { margin: 0; }
.side-banner .widget + .widget { margin-top: 16px; }
.side-banner .wp-block-image { margin: 0; }
.side-banner img { display: block; width: 100%; height: auto; border-radius: 12px; }
.side-banner--inline { display: none; max-width: 360px; margin: 56px auto 0; }
/* V pravém sloupci článku banner při scrollu zůstává vidět (jen když se vejde do okna). */
@media (min-height: 720px) { .entry-aside .side-banner { position: sticky; top: calc(var(--t-header-h) + var(--t-admin-bar) + 24px); } }
.section--related { padding-top: 64px; }
.entry-page { max-width: calc(964px + 2 * var(--t-gutter)); padding-top: 32px; }
.entry-page .entry-header { gap: 16px; margin-bottom: 28px; }

@media (max-width: 1099px) {
	.entry-aside { display: none; }
	.side-banner--inline { display: block; }
}
@media (max-width: 767px) {
	.entry-top { padding-top: 16px; }
	.entry-header { gap: 12px; }
	.entry-cats .pill { font-size: 13.5px; }
	.entry-title { font-size: 30px; line-height: 1.17; letter-spacing: -.015em; }
	.entry-meta { gap: 12px; padding-top: 2px; }
	.entry-author { gap: 12px; }
	.entry-author .avatar--56 { width: 44px; height: 44px; font-size: 17px; }
	.entry-author__text { gap: 1px; line-height: 1.35; }
	.entry-author__name { font-size: 15px; }
	.entry-author__info { font-size: 13px; }
	.share--compact { position: relative; margin-left: auto; }
	.share--compact .share__btn { display: none; }
	.share--compact.is-open .share__btn { display: inline-flex; }
	.share--compact.is-open { flex-wrap: nowrap; }
	.share--compact.is-open .share__native { order: -1; }
	.share--compact.is-open .share__btn { position: absolute; right: 0; z-index: 5; box-shadow: 0 8px 24px rgba(22, 39, 31, .16); }
	.share--compact.is-open .share__btn:nth-child(1) { top: 52px; }
	.share--compact.is-open .share__btn:nth-child(2) { top: 100px; }
	.share--compact.is-open .share__btn:nth-child(3) { top: 148px; }
	.share__native { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: #fff; color: var(--t-ink); cursor: pointer; flex-shrink: 0; }
	.entry-layout { padding-top: 16px; gap: 0; }
	.entry-figure { margin: 0 calc(-1 * var(--t-gutter)) 16px; }
	.entry-figure__image { border-radius: 0; aspect-ratio: auto; height: auto; }
	.entry-figure figcaption { margin-top: 8px; padding-inline: var(--t-gutter); font-size: 14px; line-height: 1.5; color: var(--t-muted); }
	.entry-tags { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 32px; }
	.entry-share { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 24px; padding-top: 20px; }
	.section--related { padding-top: 48px; }
	.author-box { padding: 20px; }
}

/* ===== 12. Obsah článku ===== */
.entry-content { font-size: 19px; line-height: 1.75; color: var(--t-text); overflow-wrap: break-word; }
.entry-content > * { margin-block: 0 20px; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content > p:first-child { margin: 8px 0 32px; font-size: 21px; line-height: 1.6; font-weight: 500; color: var(--t-ink); text-wrap: pretty; }
.entry-content h2 { margin: 40px 0 12px; font-size: 26px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; color: var(--t-ink); text-wrap: balance; scroll-margin-top: 8px; }
/* Odsazení cíle kotvy: hlavičku řeší scroll-padding-top na html. */
.entry-content h3 { margin: 32px 0 10px; font-size: 21px; line-height: 1.35; color: var(--t-ink); }
.entry-content h4 { margin: 28px 0 8px; font-size: 18px; color: var(--t-ink); }
.entry-content strong, .entry-content b { color: var(--t-ink); }
/* Tučný text v tlačítkách, odkazech a barevných blocích přebírá jejich barvu (např. bílý text tlačítek PublishPress Blocks). */
.entry-content :is(a, button, .has-text-color, .has-background, [style*="color"]) :is(strong, b) { color: inherit; }
.entry-content a { color: var(--t-green-text); }
.entry-content a:hover { color: var(--t-green-dark); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .35em; }
.entry-content li::marker { color: var(--t-green); }
.entry-content .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content hr, .entry-content .wp-block-separator { border: 0; border-top: 1px solid #e8e2d6; height: 0; margin-block: 36px; }
.entry-content .wp-block-separator.is-style-dots { border: 0; height: auto; line-height: 1; text-align: center; background: none; }
.entry-content .wp-block-separator.is-style-dots::before { content: "···"; color: var(--t-green); font-size: 24px; letter-spacing: 1em; }
.entry-content .wp-block-separator.has-background:not(.is-style-dots) { border-top-width: 2px; }
@media (max-width: 767px) {
	.entry-content { font-size: 18px; line-height: 1.7; }
	.entry-content > * { margin-bottom: 18px; }
	.entry-content > p:first-child { margin: 0 0 24px; font-size: 19px; line-height: 1.55; }
	.entry-content h2 { margin: 36px 0 10px; font-size: 23px; }
}

/* Bloky jádra */
.wp-block-image img, .entry-content figure img { border-radius: 8px; }
.wp-element-caption, .wp-block-image figcaption, .wp-block-embed figcaption, .wp-block-table figcaption, .wp-block-video figcaption { margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--t-muted); }
.wp-block-image.is-style-rounded img { border-radius: 9999px; }
.wp-block-image.is-style-tycko-shadow img { box-shadow: 0 16px 32px rgba(22, 39, 31, .12); }
.wp-block-gallery.has-nested-images { gap: 12px; margin-block: 28px; }
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 8px; }
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption { background: linear-gradient(0deg, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0)); border-radius: 0 0 8px 8px; font-size: 13px; color: #fff; }
.wp-block-embed iframe { border-radius: 8px; }
.wp-block-embed.is-type-video .wp-block-embed__wrapper { border-radius: 8px; overflow: hidden; background: #000; }
.wp-block-video video { border-radius: 8px; width: 100%; }
.wp-block-quote { margin-block: 28px; padding: 4px 0 4px 24px; border-left: 4px solid var(--t-green); color: var(--t-ink); font-size: 21px; line-height: 1.55; }
.wp-block-quote p { margin-bottom: .6em; }
.wp-block-quote cite, .wp-block-pullquote cite { display: block; margin-top: 8px; color: var(--t-muted); font-size: 14px; font-style: normal; font-weight: 600; }
.wp-block-quote.is-style-tycko-highlight { position: relative; padding: 36px 32px 28px; border: 0; border-radius: 12px; background: #fff; font-size: 22px; font-weight: 600; line-height: 1.45; color: var(--t-olive); }
.wp-block-quote.is-style-tycko-highlight::before { content: "“"; position: absolute; top: -6px; left: 22px; color: var(--t-green); font-size: 72px; line-height: 1; font-weight: 800; }
.wp-block-pullquote { margin-block: 36px; padding: 28px 24px; border-top: 3px solid var(--t-green); border-bottom: 3px solid var(--t-green); text-align: center; color: var(--t-olive); }
.wp-block-pullquote blockquote { margin: 0; }
.wp-block-pullquote p { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.75rem); line-height: 1.35; font-weight: 700; }
.wp-block-pullquote.is-style-solid-color { border: 0; border-radius: 12px; background: var(--t-green-tint); }
.wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-block: 28px; }
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; background: #fff; border-radius: 12px; }
.wp-block-table th, .wp-block-table td { padding: 10px 14px; border: 1px solid #ece6da; text-align: left; vertical-align: top; }
.wp-block-table thead th, .wp-block-table th { background: var(--t-cream); color: var(--t-ink); font-weight: 700; }
.wp-block-table thead { border-bottom: 2px solid var(--t-green); }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: #fbfaf7; }
.wp-block-table.is-style-stripes td, .wp-block-table.is-style-stripes th { border-color: transparent; }
.wp-block-table.is-style-tycko-results table { overflow: hidden; box-shadow: 0 0 0 1px #ece6da; }
.wp-block-table.is-style-tycko-results thead th { background: var(--t-green); color: #fff; border-color: var(--t-green); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.wp-block-table.is-style-tycko-results td { border-inline: 0; }
.wp-block-table.is-style-tycko-results tbody tr:nth-child(-n+3) td:first-child { color: var(--t-olive); font-weight: 800; }
.wp-block-buttons { gap: 12px; }
.wp-block-button__link, .wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 8px;
	background: var(--t-green); color: #fff; font-size: 15px; font-weight: 500; text-decoration: none; border: 1px solid transparent;
}
.entry-content .wp-block-button__link { color: #fff; }
.wp-block-button__link:hover, .wp-element-button:hover { background: var(--t-green-dark); color: #fff; }
.wp-block-button.is-style-outline .wp-block-button__link, .wp-block-button.is-style-tycko-outline .wp-block-button__link { background: #fff; color: var(--t-ink); border-color: var(--t-ink); }
.wp-block-button.is-style-outline .wp-block-button__link:hover, .wp-block-button.is-style-tycko-outline .wp-block-button__link:hover { background: #f4f1ea; color: var(--t-ink); }
.wp-block-button.is-style-tycko-red .wp-block-button__link { background: var(--t-red); }
.wp-block-button.is-style-tycko-red .wp-block-button__link:hover { background: var(--t-red-dark); }
.wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 12px; background: #fff; font-size: 16px; }
.wp-block-file a:not(.wp-block-file__button) { font-weight: 600; }
.wp-block-file .wp-block-file__button { margin-left: auto; padding: 8px 16px; border-radius: 8px; background: var(--t-green); color: #fff; font-size: 15px; text-decoration: none; }
.wp-block-code { padding: 16px 20px; border-radius: 8px; background: var(--t-sand); color: var(--t-ink); font-size: 14px; overflow-x: auto; }
.wp-block-columns { gap: 24px; }
.wp-block-columns .wp-block-column > * { margin-block: 0 1em; }
.wp-block-columns .wp-block-column > :last-child { margin-bottom: 0; }
.wp-block-cover { border-radius: 12px; overflow: hidden; }
.wp-block-group.has-background { padding: 24px 28px; border-radius: 12px; }
.wp-block-details { padding: 16px 20px; border-radius: 12px; background: #fff; }
.wp-block-details summary { cursor: pointer; font-weight: 600; color: var(--t-ink); }
.wp-block-list.is-style-tycko-checks { list-style: none; padding-left: 0; }
.wp-block-list.is-style-tycko-checks li { position: relative; padding-left: 32px; }
.wp-block-list.is-style-tycko-checks li::before {
	content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a31621' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l10 -10'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.is-style-align-block { text-align: justify; hyphens: auto; }
.is-style-tycko-lead { font-size: 21px; line-height: 1.6; font-weight: 500; color: var(--t-ink); }
.is-style-tycko-eyebrow { margin: 0 0 8px; color: var(--t-green-text); font-size: 12px; line-height: 1.6; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.wp-block-group.is-style-tycko-card, .wp-block-column.is-style-tycko-card { padding: 28px 32px; border-radius: 12px; background: #fff; }
.wp-block-group.is-style-tycko-info { padding: 24px 28px; border-radius: 12px; background: var(--t-green-tint); color: var(--t-green-dark); }
.wp-block-group.is-style-tycko-info :where(h2, h3, h4) { color: var(--t-green-dark); margin-top: 0; }
.wp-block-group.is-style-tycko-cta { padding: 28px 32px; border-radius: 12px; background: #fff; }
.wp-block-group.is-style-tycko-cta :where(h2, h3) { margin-top: 0; color: var(--t-olive-2); font-size: 22px; }
.wp-block-group > :last-child, .wp-block-column > :last-child { margin-bottom: 0; }
.tycko-display { font-size: 32px !important; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.tycko-steps .tycko-step-number { margin: 0 0 6px; color: var(--t-green); font-size: 32px; line-height: 1.1; font-weight: 700; }
.entry-content .kb-image img, .entry-content .wp-block-kadence-image img { border-radius: 8px; }
.entry-content .wp-block-kadence-iconlist ul.kt-svg-icon-list { padding-left: 0; list-style: none; }
.entry-content .wp-block-kadence-iconlist ul.kt-svg-icon-list li::marker { content: ""; }
.entry-content .kb-button { text-decoration: none; }
/* Styly bloků pro redakci (náhrada Kadence Blocks a Simply Gallery); v editoru je stejné v editor.css. */
.wp-block-list.is-style-tycko-iconlist { list-style: none; margin-left: 0; padding-left: 0; font-size: 20px; line-height: 1.5; }
.wp-block-list.is-style-tycko-iconlist li { position: relative; margin: 0 0 6px; padding-left: 40px; }
.wp-block-list.is-style-tycko-iconlist li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 26px; height: 26px; background: var(--t-green);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 12l2 2l4 -4'/%3E%3Cpath d='M12 3a9 9 0 1 0 0 18a9 9 0 0 0 0 -18z'/%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' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 12l2 2l4 -4'/%3E%3Cpath d='M12 3a9 9 0 1 0 0 18a9 9 0 0 0 0 -18z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wp-block-button.is-style-tycko-large .wp-block-button__link { min-height: 52px; padding: 12px 32px; font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.wp-block-buttons { margin-block: 28px; }
.wp-block-gallery.has-nested-images.is-style-tycko-masonry { display: block; columns: 3; column-gap: 12px; margin-block: 28px; }
.wp-block-gallery.has-nested-images.is-style-tycko-masonry > figure.wp-block-image:not(#individual-image) { display: block; flex: none; width: 100%; margin: 0 0 12px; break-inside: avoid; }
.wp-block-gallery.is-style-tycko-masonry .wp-block-image img { display: block; width: 100%; height: auto; border-radius: 10px; }
.wp-block-gallery.has-nested-images.is-style-tycko-viewer:not(.is-ready) { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 10px; margin-block: 28px; }
.wp-block-gallery.has-nested-images.is-style-tycko-viewer:not(.is-ready) > figure.wp-block-image:not(#individual-image) { width: auto; margin: 0; }
.wp-block-gallery.is-style-tycko-viewer:not(.is-ready) img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
/* Prohlížeč s náhledy (main.js): velký obrázek, počítadlo, šipky, celá obrazovka a pás náhledů. */
.tycko-viewer-ui { margin-block: 28px; border-radius: 12px; overflow: hidden; background: var(--t-ink-2); color: #fff; }
.tycko-viewer-ui__bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; font-size: 14px; font-weight: 600; }
.tycko-viewer-ui__stage { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; background: #111; }
.tycko-viewer-ui__stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.tycko-viewer-ui__btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .5); color: #fff; cursor: pointer; transition: background-color .15s ease; }
.tycko-viewer-ui__btn:hover { background: rgba(0, 0, 0, .75); }
.tycko-viewer-ui__prev, .tycko-viewer-ui__next { position: absolute; top: 50%; margin-top: -20px; }
.tycko-viewer-ui__prev { left: 12px; }
.tycko-viewer-ui__next { right: 12px; }
.tycko-viewer-ui__cap { margin: 0; padding: 10px 14px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.tycko-viewer-ui__thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; background: #1b2a24; scrollbar-width: thin; }
.tycko-viewer-ui__thumb { flex: 0 0 96px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; cursor: pointer; opacity: .6; transition: opacity .15s ease, border-color .15s ease; }
.tycko-viewer-ui__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tycko-viewer-ui__thumb[aria-current="true"], .tycko-viewer-ui__thumb:hover { opacity: 1; }
.tycko-viewer-ui__thumb[aria-current="true"] { border-color: var(--t-green); }
.tycko-viewer-ui:fullscreen { display: flex; flex-direction: column; border-radius: 0; margin: 0; }
.tycko-viewer-ui:fullscreen .tycko-viewer-ui__stage { flex: 1; aspect-ratio: auto; }
@media (max-width: 767px) {
	.wp-block-gallery.has-nested-images.is-style-tycko-masonry { columns: 2; column-gap: 8px; }
	.wp-block-gallery.has-nested-images.is-style-tycko-masonry > figure.wp-block-image:not(#individual-image) { margin-bottom: 8px; }
	/* Obrázky obtékané textem vlevo/vpravo se na mobilu skládají přes celou šířku. */
	.entry-content .wp-block-image.alignleft, .entry-content .wp-block-image.alignright { float: none; max-width: 100%; margin: 0 0 20px; }
	.entry-content .wp-block-image.alignleft img, .entry-content .wp-block-image.alignright img { width: 100% !important; height: auto; }
	.wp-block-list.is-style-tycko-iconlist { font-size: 18px; }
}
/* Starší tlačítka z Advanced Gutenberg (barvu a velikost doplňuje Týčko Core z hodnot bloku) */
.wp-block-advgb-button.aligncenter { text-align: center; }
.wp-block-advgb-button_link { display: inline-block; box-sizing: border-box; text-align: center; line-height: 1.5; font-weight: 500; text-decoration: none; cursor: pointer; transition: box-shadow .2s ease; }
.entry-content a.wp-block-advgb-button_link { text-decoration: none; }
.wp-block-advgb-button_link:hover { box-shadow: 1px 1px 12px 0 #ccc; }
.wp-block-advgb-button_link > i { display: none; }
.entry-content .embed-pdf-viewer { width: 100%; border: 1px solid #ece6da; border-radius: 8px; }
/* Vložené PDF (Týčko Core): na desktopu přímo ve stránce s tlačítkem, na mobilu jen tlačítko „Otevřít PDF“. */
.pdf-embed { margin-block: 28px; }
.pdf-embed .embed-pdf-viewer { display: block; height: 720px; max-height: 80vh; background: #fff; }
.entry-content .pdf-embed__open { margin: 12px 0 0; }
.entry-content .pdf-embed__open .btn { color: var(--t-ink); text-decoration: none; }
@media (max-width: 767px) {
	.pdf-embed .embed-pdf-viewer { display: none; }
	.entry-content .pdf-embed__open { margin: 0; }
	.pdf-embed__open .btn { width: 100%; }
}

/* Kompatibilita obsahu: třídy palety Carrina a výchozí gradient jádra */
.has-theme-color-one-color, .has-theme-color-two-color { color: #268068 !important; }
.has-theme-color-one-background-color, .has-theme-color-two-background-color { background-color: #268068 !important; }
.has-theme-color-three-color { color: #f8b195 !important; }
.has-theme-color-three-background-color { background-color: #f8b195 !important; }
.has-theme-color-four-color { color: #c06c84 !important; }
.has-theme-color-four-background-color { background-color: #c06c84 !important; }
.has-very-dark-grey-color { color: #080a08 !important; }
.has-very-dark-grey-background-color { background-color: #080a08 !important; }
.has-dark-grey-color { color: #45464b !important; }
.has-dark-grey-background-color { background-color: #45464b !important; }
.has-medium-grey-color { color: #94979e !important; }
.has-medium-grey-background-color { background-color: #94979e !important; }
.has-light-grey-color { color: #d3d3d3 !important; }
.has-light-grey-background-color { background-color: #d3d3d3 !important; }
.has-vivid-cyan-blue-to-vivid-purple-gradient-background { background: linear-gradient(135deg, rgb(6, 147, 227) 0%, rgb(155, 81, 224) 100%) !important; }
.entry-content .wp-block-button__link.has-theme-color-one-background-color:hover { background-color: #1a5948 !important; }

/* Formuláře v obsahu */
.entry-content label { display: block; font-size: 15px; font-weight: 600; color: var(--t-ink); }
.entry-content input[type="text"], .entry-content input[type="email"], .entry-content input[type="tel"], .entry-content input[type="url"],
.entry-content input[type="number"], .entry-content input[type="password"], .entry-content input[type="date"], .entry-content select, .entry-content textarea {
	display: block; width: 100%; max-width: 560px; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--t-line-input); border-radius: 8px;
	background: var(--t-sand); color: var(--t-ink); font: inherit; font-size: 16px; line-height: 1.4;
}
.entry-content input:focus, .entry-content select:focus, .entry-content textarea:focus { outline: 2px solid var(--t-green); outline-offset: 0; background: #fff; }
.entry-content textarea { min-height: 160px; resize: vertical; }
.entry-content input[type="submit"], .entry-content button[type="submit"], 	display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border: 0; border-radius: 8px; background: var(--t-green); color: #fff;
	font: inherit; font-size: 16px; font-weight: 500; cursor: pointer;
}
.entry-content input[type="submit"]:hover, 
/* ===== 13. Výsledky hledání ===== */
.search-page { padding-top: 36px; padding-bottom: 72px; }
.search-page__summary { margin: 6px 0 0; font-size: 15px; color: var(--t-muted); }
.search-page__form { display: flex; gap: 10px; max-width: 720px; margin-top: 20px; }
.search-page__form--center { margin-inline: auto; width: 100%; }
.search-page__field { flex: 1; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border: 1px solid #cfc4ad; border-radius: 10px; background: #fff; color: var(--t-nav); }
.search-page__field input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: 17px; color: var(--t-ink); outline: none; -webkit-appearance: none; appearance: none; }
.search-page__field:focus-within { border-color: var(--t-green); box-shadow: 0 0 0 1px var(--t-green); }
.search-page__submit { height: 52px; padding: 0 24px; border-radius: 10px; font-size: 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--t-line-pill); border-radius: 30px; background: #fff; color: var(--t-ink); font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.tab span { font-size: 12.5px; opacity: .75; }
.tab:hover { background: #f4f1ea; color: var(--t-ink); }
.tab.is-active { background: var(--t-ink); border-color: var(--t-ink); color: #fff; }
.terms-card { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 48px; margin-top: 24px; padding: 20px 24px; border-radius: 12px; background: #fff; }
.terms-card__cats { flex: 0 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.terms-card__cats .suggest__label { margin-bottom: 0; }
.terms-card__tags { flex: 1 1 320px; min-width: 0; }
.section--search { padding-top: 36px; }
.sort { display: inline-flex; align-items: center; gap: 10px; }
.sort__label { font-size: 14px; color: var(--t-muted); }
.sort__select { appearance: none; height: 36px; padding: 0 36px 0 12px; border: 1px solid var(--t-ink); border-radius: 8px; background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23262940' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; font: inherit; font-size: 14px; font-weight: 500; color: var(--t-ink); }
.archive-sort { display: flex; justify-content: flex-start; width: 100%; margin-bottom: 14px; }
@media (max-width: 767px) {
	.search-page { padding-top: 20px; padding-bottom: 48px; }
	.search-page .page-title { font-size: 25px; line-height: 1.25; letter-spacing: 0; }
	.search-page__summary { margin-top: 4px; font-size: 14px; }
	.search-page__form { gap: 8px; margin-top: 14px; }
	.search-page__field { min-width: 0; gap: 8px; height: 48px; padding: 0 12px; }
	.search-page__field input { font-size: 16px; }
	.search-page__submit { height: 48px; padding: 0 16px; font-size: 15px; }
	.tabs { flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 16px calc(-1 * var(--t-gutter)) 0; padding: 0 var(--t-gutter) 2px; scrollbar-width: none; }
	.tab { flex: 0 0 auto; gap: 6px; height: 36px; padding: 0 12px; font-size: 14px; }
	.tab span { font-size: 12px; }
	.terms-card { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 16px; padding: 16px; }
	.terms-card__cats, .terms-card__tags { flex: none; }
	.section--search { padding-top: 28px; }
	.section--search .section-head { margin-bottom: 10px; }
	.sort__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.sort__select { height: 34px; padding: 0 32px 0 10px; font-size: 13.5px; }
}

/* Vyhledávací formulář (get_search_form) */
.search-form { display: flex; align-items: center; gap: 10px; max-width: 560px; height: 52px; padding: 0 6px 0 16px; border: 1px solid #cfc4ad; border-radius: 10px; background: #fff; color: var(--t-nav); }
.search-form:focus-within { border-color: var(--t-green); box-shadow: 0 0 0 1px var(--t-green); }
.search-form__field { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: 17px; color: var(--t-ink); outline: none; -webkit-appearance: none; appearance: none; }
.search-form__submit { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: var(--t-green); color: #fff; cursor: pointer; }
.search-form__submit:hover { background: var(--t-green-dark); }

/* Stránkování */
.pagination { margin-top: 32px; }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--t-line-pill); border-radius: 8px; background: #fff; color: var(--t-ink); font-weight: 600; text-decoration: none; }
.pagination a.page-numbers:hover { background: #f4f1ea; }
.pagination .page-numbers.current { background: var(--t-ink); border-color: var(--t-ink); color: #fff; }
.pagination .dots { border-color: transparent; background: transparent; }

/* ===== 14. 404 ===== */
.notfound { display: grid; justify-items: center; gap: 14px; padding-top: 56px; text-align: center; }
.notfound__code { margin: 0; color: var(--t-green); font-size: clamp(5rem, 3rem + 8vw, 8rem); line-height: 1; font-weight: 800; letter-spacing: -.06em; }
.notfound .page-head__desc { margin-inline: auto; }

/* Newslettery (plugin tycko-core) */
.tycko-nl-bar { border-bottom-color: #e8e2d6; }
.tycko-nl-back { background: #fff; color: var(--t-ink); border: 1px solid var(--t-ink); border-radius: 8px; }
.tycko-nl-back:hover { background: #f4f1ea; color: var(--t-ink); }
.tycko-nl-frame-wrap { border-radius: 12px; overflow: hidden; background: #fff; }
.tycko-nl-more { border-top-color: #e8e2d6; }
.tycko-nl-more-title { font-size: 22px; }

/* Stránkování dlouhého článku */
.page-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; font-weight: 600; }

/* ===== 15. Patička ===== */
.site-footer { background: var(--t-green-dark); color: var(--t-cream); padding: 40px 0 48px; font-size: 14px; line-height: 20px; }
.site-footer__inner { display: grid; grid-template-columns: auto repeat(4, auto); justify-content: center; gap: 24px 56px; align-items: start; }
.site-footer a { color: var(--t-cream); }
.site-footer a:hover { color: #fff; }
.site-footer__logo { display: block; }
.site-footer__logo img { display: block; width: 120px; height: auto; }
.site-footer__col { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; font-style: normal; }
.site-footer__ico { margin-top: 20px; }
.site-footer__contact, .site-footer__social, .site-footer__legal { gap: 12px; }
.site-footer__contact a, .site-footer__social a { display: inline-flex; align-items: center; gap: 10px; text-decoration: underline; }
.site-footer__legal a { text-decoration: underline; }
@media (max-width: 1023px) {
	.site-footer__inner { grid-template-columns: repeat(2, minmax(0, auto)); justify-content: start; }
	.site-footer__logo { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
	.site-footer__inner { grid-template-columns: 1fr; gap: 32px; }
	.site-footer__logo { justify-self: center; }
}


/* ===== 16. Pohyb: jen krátké přechody ovládacích prvků, bez vstupních animací (vypne je prefers-reduced-motion) ===== */
@keyframes tycko-spin { to { transform: rotate(360deg); } }
@keyframes tycko-pop { from { opacity: .3; transform: scale(.92); } to { opacity: 1; transform: none; } }

/* Plynulý posun jen při skoku na kotvu (obsah článku, „Další články“); běžný scroll zůstává nativní. */
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

/* Tlačítka a ovládací prvky: stisk */
.btn, .share__btn, .tag-pill, .chip, .tile, .tab, .term-row, .rubric, .pill, .icon-button, .search-toggle, .nav-item, .platform-link, .search-box__clear, .page-numbers, .mobile-menu__platform a {
	transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .25s var(--t-ease-out), transform .2s var(--t-ease-out);
}
.btn:active, .share__btn:active, .tag-pill:active, .chip:active, .tile:active, .tab:active, .term-row:active, .rubric:active, .icon-button:active,
.search-toggle:active, .nav-item:active, .platform-link:active, .search-box__clear:active, .page-numbers:active, .mobile-menu__platform a:active { transform: scale(.96); }
.search-toggle .icon, .nav-item .icon, .tile .icon { transition: transform .25s var(--t-ease-out); }

@media (hover: hover) {
	/* Hover u článků jen minimální: titulek změní barvu (fotky se nehýbou, karty se nezvedají). */
	.card__title a, .cover__link, .mini__title { transition: color .2s ease; }
	.card__title a:hover, .mini__title:hover { color: var(--t-green-text); }
	.rubric:hover .rubric__count { background: var(--t-green-tint); color: var(--t-green-dark); }
	.search-toggle:hover .icon { transform: scale(1.12) rotate(-8deg); }
	.tile:hover .icon { transform: scale(1.1); }
	.platform-link .icon { transition: transform .25s var(--t-ease-out); }
	.platform-link:hover .icon { transform: translateY(-2px); }
	.icon-button:hover .icon { transform: scale(1.1); }
	.icon-button .icon { transition: transform .25s var(--t-ease-out); }
}
.rubric__count { transition: background-color .2s ease, color .2s ease; }
.toc--card a { transition: background-color .25s ease, color .25s ease, padding .25s var(--t-ease-out); }
.mini__media { display: block; }

/* Rubriky v hlavičce, hledání a mobilní menu: příjezd a odjezd */
.header-panel { opacity: 0; transform: translateY(-6px); transition: opacity .2s ease, transform .28s var(--t-ease-out); }
.header-panel.is-open { opacity: 1; transform: none; }
.search-overlay__backdrop { opacity: 0; transition: opacity .25s ease; }
.search-overlay__panel { opacity: 0; transform: translateY(-12px); transition: opacity .2s ease, transform .3s var(--t-ease-out); }
.search-overlay.is-open .search-overlay__backdrop { opacity: 1; }
.search-overlay.is-open .search-overlay__panel { opacity: 1; transform: none; }
.mobile-menu { opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .3s var(--t-ease-out); }
.mobile-menu.is-open { opacity: 1; transform: none; }
.menu-toggle .icon { transition: transform .3s var(--t-ease-out); }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { animation: tycko-pop .25s var(--t-ease-out); }

/* „Načíst další“: točící se kolečko */
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::after { content: ""; width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: tycko-spin .7s linear infinite; }
[data-copy-label].is-done { display: inline-block; animation: tycko-pop .3s var(--t-ease-out); }
.load-more__count { transition: opacity .2s ease; }

/* Patička mimo obrazovku se nevykresluje dřív, než je potřeba. */
.site-footer { content-visibility: auto; contain-intrinsic-size: auto 320px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
	.site-header, .search-overlay, .mobile-menu, .site-footer, .entry-aside, .promos, .share, .section--related, .partners { display: none !important; }
	body { background: #fff; }
}

/* Fotky článků: celá fotka bez ořezu v rámečku 16:9, volné okraje vyplní rozmazaná kopie téže fotky */
.frame__blur { position: absolute; left: -8%; top: -8%; width: 116%; height: 116%; max-width: none; object-fit: cover; filter: blur(24px) saturate(1.05); z-index: 0; pointer-events: none; }
.frame__img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; }
.card__media { position: relative; }
.cover .frame__blur { z-index: -2; }
.cover .frame__img { position: absolute; inset: 0; z-index: -1; }


/* ===== 16. Bannery a partneři (Nástěnka: Týčko → Bannery a partneři) ===== */
/* Banner: šířka podle okolí, výška podle poměru stran (nezkreslený), rohy 12 px jako karty webu. */
.banner { margin: 0; }
.banner__label { margin: 0 0 8px; font-size: 13px; line-height: 1.3; font-weight: 600; color: var(--t-muted); }
.banner__media { line-height: 0; }
.banner__link { display: block; border-radius: 12px; }
.banner__img { display: block; width: 100%; height: auto; border-radius: 12px; }
.section--banner { padding-bottom: 0; }
/* Banner pod článkem: přes celou šířku sloupce článku. */
.banner--article-small { margin-top: 32px; }
/* Pruh „Partner Týčko Tour“ nad patičkou: jemná linka, popisek, svislý oddělovač a loga (jen výška, šířka podle poměru stran). */
.partners { --ep-line: #e8e2d4; --ep-label: rgb(22 38 31 / .55); border-top: 1px solid var(--ep-line); background: var(--t-cream); }
.partners__inner { display: flex; align-items: center; justify-content: center; gap: 28px; width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 36px 0; }
.partners__title { margin: 0; font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; color: var(--ep-label); }
.partners__line { width: 1px; height: 40px; background: var(--ep-line); }
.partners__list { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.partners__item { line-height: 0; }
.partners__item a { display: block; }
.partners__logo { display: block; width: auto; height: 72px; }
@media (max-width: 767px) {
	.banner--article-small { margin-top: 24px; }
}
@media (max-width: 639px) {
	.partners__inner { flex-direction: column; gap: 14px; width: calc(100% - 32px); padding: 28px 0; }
	.partners__line { display: none; }
	.partners__list { justify-content: center; }
	/* Obě loga vedle sebe přes šířku obrazovky, nejvýš 64 px. */
	.partners__logo { height: min(64px, calc((100vw - 32px - 12px) / 4.17)); }
}
