/* =========================================================
   SDH Bělov — Hlavní styly (Varianta C: Moderní karty)
   ========================================================= */

/* ===== Design tokeny ===== */
:root {
	--c-blue: #2563eb;
	--c-blue-dark: #1e40af;
	--c-blue-light: #dbeafe;
	--c-red: #dc2626;
	--c-red-dark: #b91c1c;
	--c-bg: #ffffff;
	--c-surface: #f8fafc;
	--c-surface-2: #f1f5f9;
	--c-text: #0f172a;
	--c-text-muted: #64748b;
	--c-border: #e2e8f0;
	--c-border-strong: #cbd5e1;
	--c-anniversary: #f59e0b;

	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 20px;
	--radius-xl: 24px;

	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
	--shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.08);
	--shadow-blue: 0 8px 20px rgba(37, 99, 235, 0.25);

	--container: 1200px;
	--container-narrow: 760px;
	--container-wide: 1100px;

	--font-base: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-base);
	font-size: 16px;
	line-height: 1.6;
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--c-blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--c-blue-dark); }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--c-text); margin: 0; letter-spacing: -0.02em; }

p { margin: 0 0 1em; }

.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;
}
.skip-link:focus {
	position: fixed; top: 16px; left: 16px; z-index: 10000; width: auto; height: auto; clip: auto;
	background: var(--c-blue); color: #fff; padding: 12px 18px; border-radius: var(--radius);
}

/* ===== Container ===== */
.sdh-container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
	width: 100%;
}
.sdh-container--narrow { max-width: var(--container-narrow); }
.sdh-container--wide { max-width: var(--container-wide); }

/* ===== Header / Nav ===== */
.sdh-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, 0.85);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--c-border);
}
.sdh-header__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	gap: 24px;
}

.sdh-brand {
	display: flex; align-items: center; gap: 12px;
	color: inherit; flex-shrink: 0;
}
.sdh-brand__logo {
	width: 48px; height: 48px;
	object-fit: contain; flex-shrink: 0;
}
.sdh-brand__text { display: flex; flex-direction: column; line-height: 1; }
.sdh-brand__name { font-size: 16px; font-weight: 800; color: var(--c-text); letter-spacing: -0.02em; }
.sdh-brand__sub { font-size: 11px; color: var(--c-text-muted); margin-top: 3px; }

.sdh-nav { flex: 1; display: flex; justify-content: flex-end; }
.sdh-nav__list {
	list-style: none; margin: 0; padding: 4px;
	display: flex; gap: 2px;
	background: var(--c-surface);
	border-radius: 999px;
}
.sdh-nav__list li { margin: 0; }
.sdh-nav__list a {
	display: block;
	padding: 8px 16px;
	font-size: 13px; font-weight: 500;
	color: var(--c-text-muted);
	border-radius: 999px;
	transition: all .15s ease;
}
.sdh-nav__list a:hover { color: var(--c-text); }
.sdh-nav__list .current-menu-item > a,
.sdh-nav__list .current_page_item > a {
	background: #fff;
	color: var(--c-blue);
	box-shadow: var(--shadow-sm);
}

.sdh-cta-btn {
	display: inline-flex; align-items: center;
	padding: 10px 18px;
	background: var(--c-blue); color: #fff;
	font-size: 13px; font-weight: 600;
	border-radius: 999px;
	box-shadow: var(--shadow-blue);
	transition: transform .15s ease, box-shadow .15s ease;
	flex-shrink: 0;
}
.sdh-cta-btn:hover { background: var(--c-blue-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37,99,235,.35); }

.sdh-menu-toggle {
	display: none;
	width: 44px; height: 44px;
	flex-direction: column; justify-content: center; align-items: center;
	gap: 5px;
	border-radius: 12px;
	background: var(--c-surface);
}
.sdh-menu-toggle span { width: 22px; height: 2px; background: var(--c-text); border-radius: 2px; transition: all .2s; }

/* ===== Buttons ===== */
.sdh-btn {
	display: inline-flex; align-items: center; justify-content: center;
	gap: 6px;
	padding: 14px 24px;
	font-size: 14px; font-weight: 600;
	border-radius: var(--radius);
	transition: all .15s ease;
	border: 1px solid transparent;
	white-space: nowrap;
}
.sdh-btn--primary {
	background: var(--c-blue); color: #fff;
	box-shadow: var(--shadow-blue);
}
.sdh-btn--primary:hover { background: var(--c-blue-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(37,99,235,.35); }
.sdh-btn--ghost {
	background: #fff;
	color: var(--c-text);
	border-color: var(--c-border);
}
.sdh-btn--ghost:hover { background: var(--c-surface); color: var(--c-text); }
.sdh-btn--white {
	background: #fff; color: var(--c-blue);
}
.sdh-btn--white:hover { background: var(--c-surface); color: var(--c-blue-dark); }
.sdh-btn--outline-white {
	background: transparent; color: #fff;
	border-color: rgba(255,255,255,.4);
}
.sdh-btn--outline-white:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ===== Pills / Badges ===== */
.sdh-pill {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 12px; font-weight: 600;
}
.sdh-pill__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sdh-pill--alert { background: rgba(220, 38, 38, 0.1); color: var(--c-red); }
.sdh-pill--anniversary {
	background: linear-gradient(135deg, #fef3c7, #fde68a);
	color: #92400e;
}

.sdh-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 11px; font-weight: 700;
	letter-spacing: 0.02em;
}
.sdh-badge--blue { background: rgba(37, 99, 235, 0.1); color: var(--c-blue); }
.sdh-badge--red { background: rgba(220, 38, 38, 0.1); color: var(--c-red); }

/* ===== Main / Section ===== */
.sdh-main { min-height: 60vh; }
.sdh-section { padding: 60px 0; }
.sdh-section--featured { padding-top: 20px; padding-bottom: 0; }
.sdh-section--stats { padding-top: 60px; padding-bottom: 0; }
.sdh-section--cta { padding-top: 80px; padding-bottom: 80px; }
.sdh-section--anniversary-banner { padding-top: 60px; padding-bottom: 0; }
.sdh-section--list { padding-top: 60px; }
.sdh-section--surface { background: var(--c-surface); }

.sdh-section__header {
	display: flex; align-items: baseline; justify-content: space-between;
	gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.sdh-section__title {
	font-size: clamp(24px, 4vw, 32px);
	letter-spacing: -0.025em;
}
.sdh-section__link {
	font-size: 14px; font-weight: 600;
	color: var(--c-blue);
}
.sdh-section__link:hover { color: var(--c-blue-dark); }

/* ===== Hero (titulka) ===== */
.sdh-hero { padding: 60px 0 40px; }
.sdh-hero__badges {
	display: flex; flex-wrap: wrap; gap: 10px;
	margin-bottom: 24px;
}
.sdh-hero__title {
	font-size: clamp(38px, 6vw, 64px);
	letter-spacing: -0.04em;
	line-height: 1.05;
	margin: 0 0 20px;
	max-width: 900px;
	text-wrap: balance;
}
.sdh-hero__gradient {
	background: linear-gradient(135deg, var(--c-blue), var(--c-blue-dark));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	display: inline;
}
.sdh-hero__lede {
	font-size: clamp(16px, 2.2vw, 19px);
	color: var(--c-text-muted);
	line-height: 1.6;
	max-width: 640px;
	margin: 0 0 32px;
}
.sdh-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Feature grid (hero card + sidebar) ===== */
.sdh-feature-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 24px;
}
.sdh-feature-card {
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform .2s, box-shadow .2s;
}
.sdh-feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.sdh-feature-card a { color: inherit; display: block; }
.sdh-feature-card__image {
	height: 360px;
	background: var(--c-blue-dark) center/cover no-repeat;
	display: flex; align-items: center; justify-content: center;
	color: rgba(255,255,255,.5);
	font-size: 24px;
}
.sdh-feature-card__body { padding: 28px 32px 32px; }
.sdh-feature-card__title {
	font-size: clamp(20px, 3vw, 28px);
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 14px 0 12px;
	text-wrap: balance;
}
.sdh-feature-card__excerpt { font-size: 15px; color: var(--c-text-muted); line-height: 1.6; margin: 0; }

.sdh-feature-side { display: flex; flex-direction: column; gap: 16px; }

.sdh-card-gradient {
	position: relative; overflow: hidden;
	background: linear-gradient(135deg, var(--c-blue), var(--c-blue-dark));
	color: #fff;
	padding: 28px;
	border-radius: var(--radius-lg);
}
.sdh-card-gradient__decor {
	position: absolute; border-radius: 50%;
	background: rgba(255,255,255,.08);
}
.sdh-card-gradient__decor--a { right: -40px; top: -40px; width: 160px; height: 160px; }
.sdh-card-gradient__decor--b { right: 60px; bottom: -60px; width: 120px; height: 120px; background: rgba(255,255,255,.04); }
.sdh-card-gradient__label { font-size: 12px; font-weight: 600; opacity: .85; margin-bottom: 14px; position: relative; }

.sdh-event-row {
	display: flex; gap: 14px;
	padding: 12px 0;
	color: #fff;
	position: relative;
}
.sdh-event-row--border { border-top: 1px solid rgba(255,255,255,.15); }
.sdh-event-row__date {
	width: 48px; flex-shrink: 0; text-align: center;
	padding: 6px 0;
	background: rgba(255,255,255,.15);
	border-radius: 10px;
}
.sdh-event-row__date strong { display: block; font-size: 18px; font-weight: 700; line-height: 1; }
.sdh-event-row__date span { font-size: 9px; opacity: .85; margin-top: 2px; display: block; }
.sdh-event-row__info { flex: 1; min-width: 0; }
.sdh-event-row__title { font-size: 13px; font-weight: 600; line-height: 1.3; }
.sdh-event-row__meta { font-size: 11px; opacity: .7; margin-top: 3px; }

.sdh-event-row__cd {
	flex-shrink: 0;
	min-width: 50px;
	text-align: right;
	color: #fff;
	line-height: 1.1;
	align-self: center;
	padding-left: 4px;
}
.sdh-event-row__cd strong {
	display: block;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.01em;
}
.sdh-event-row__cd span {
	display: block;
	font-size: 10px;
	opacity: .7;
	margin-top: 1px;
	text-transform: lowercase;
}
.sdh-event-row__cd--soon strong { color: #fde047; }
.sdh-event-row__cd--today strong { color: #fde047; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.sdh-event-row__cd--past { opacity: .55; }
.sdh-event-row__cd--past strong { font-weight: 500; }

.sdh-card-emergency {
	background: #fff;
	border: 1px solid var(--c-border);
	padding: 20px 24px;
	border-radius: var(--radius-lg);
}
.sdh-card-emergency__label { font-size: 12px; font-weight: 700; color: var(--c-red); margin-bottom: 4px; }
.sdh-card-emergency__number { font-size: 36px; font-weight: 800; color: var(--c-text); letter-spacing: -0.03em; display: block; }
.sdh-card-emergency__number:hover { color: var(--c-red); }
.sdh-card-emergency__sub { font-size: 12px; color: var(--c-text-muted); margin-top: 4px; }

/* ===== Stats ===== */
.sdh-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.sdh-stat {
	background: var(--c-surface);
	padding: 28px;
	border-radius: var(--radius-lg);
}
.sdh-stat__num {
	font-size: clamp(32px, 5vw, 44px);
	font-weight: 800;
	color: var(--c-blue);
	letter-spacing: -0.04em;
	line-height: 1;
}
.sdh-stat__label {
	font-size: 13px;
	color: var(--c-text-muted);
	margin-top: 10px;
	font-weight: 500;
}

/* ===== Anniversary banner ===== */
.sdh-anniversary-banner {
	position: relative; overflow: hidden;
	background: linear-gradient(135deg, var(--c-blue), var(--c-blue-dark));
	color: #fff;
	padding: 60px;
	border-radius: var(--radius-xl);
}
.sdh-anniversary-banner__decor {
	position: absolute; border-radius: 50%;
	background: rgba(255,255,255,.06);
}
.sdh-anniversary-banner__decor--a { right: -80px; top: -80px; width: 280px; height: 280px; }
.sdh-anniversary-banner__decor--b { right: 60px; bottom: -60px; width: 180px; height: 180px; background: rgba(255,255,255,.04); }
.sdh-anniversary-banner__content { position: relative; max-width: 700px; }
.sdh-anniversary-banner__eyebrow { font-size: 12px; font-weight: 700; opacity: .9; margin-bottom: 14px; letter-spacing: 0.05em; }
.sdh-anniversary-banner__title { font-size: clamp(28px, 4vw, 40px); color: #fff; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 16px; text-wrap: balance; }
.sdh-anniversary-banner__text { font-size: 16px; opacity: .9; line-height: 1.6; margin-bottom: 28px; max-width: 580px; }
.sdh-anniversary-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Grid (článkové karty) ===== */
.sdh-grid { display: grid; gap: 20px; }
.sdh-grid--2 { grid-template-columns: repeat(2, 1fr); }
.sdh-grid--3 { grid-template-columns: repeat(3, 1fr); }

.sdh-card {
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: transform .15s, box-shadow .15s;
}
.sdh-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.sdh-card__link { color: inherit; display: block; }

.sdh-card__image {
	height: 200px;
	background: var(--c-blue-dark) center/cover no-repeat;
	display: flex; align-items: center; justify-content: center;
}
.sdh-card__placeholder { color: rgba(255,255,255,.5); font-size: 14px; }
.sdh-card__body { padding: 20px 24px 22px; }
.sdh-card__meta {
	display: flex; align-items: center; gap: 10px;
	margin-bottom: 10px; flex-wrap: wrap;
}
.sdh-card__date { font-size: 12px; color: var(--c-text-muted); }
.sdh-card__title {
	font-size: 17px; font-weight: 700;
	color: var(--c-text); line-height: 1.3;
	margin: 0 0 8px; letter-spacing: -0.015em;
}
.sdh-card__excerpt {
	font-size: 13px; color: var(--c-text-muted);
	line-height: 1.55; margin: 0;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
	overflow: hidden;
}
.sdh-card--compact .sdh-card__image { height: 160px; }

/* ===== Compact list ===== */
.sdh-list {
	background: var(--c-surface);
	border-radius: var(--radius-lg);
	padding: 8px;
}
.sdh-list__row {
	display: grid;
	grid-template-columns: 60px 100px 1fr auto;
	gap: 20px;
	align-items: center;
	padding: 16px 20px;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: 14px;
	margin-bottom: 6px;
	color: inherit;
	transition: transform .12s;
}
.sdh-list__row:last-child { margin-bottom: 0; }
.sdh-list__row:hover { transform: translateX(4px); }
.sdh-list__date { text-align: center; }
.sdh-list__date strong { display: block; font-size: 18px; font-weight: 700; color: var(--c-text); line-height: 1; }
.sdh-list__date span { font-size: 10px; color: var(--c-text-muted); margin-top: 3px; display: block; }
.sdh-list__image {
	height: 64px;
	background: var(--c-blue-dark) center/cover no-repeat;
	border-radius: 8px;
}
.sdh-list__cat { font-size: 11px; font-weight: 600; color: var(--c-blue); margin-bottom: 4px; }
.sdh-list__title { font-size: 15px; font-weight: 600; color: var(--c-text); line-height: 1.3; }
.sdh-list__arrow { color: var(--c-text-muted); font-size: 18px; }

/* ===== Join CTA ===== */
.sdh-join {
	position: relative; overflow: hidden;
	background: linear-gradient(135deg, var(--c-blue), var(--c-blue-dark));
	color: #fff;
	padding: 60px;
	border-radius: var(--radius-xl);
}
.sdh-join__decor {
	position: absolute; border-radius: 50%; background: rgba(255,255,255,.06);
}
.sdh-join__decor--a { right: -80px; top: -80px; width: 280px; height: 280px; }
.sdh-join__decor--b { right: 80px; bottom: -60px; width: 180px; height: 180px; background: rgba(255,255,255,.04); }
.sdh-join__content { position: relative; max-width: 600px; }
.sdh-join__eyebrow { font-size: 12px; font-weight: 600; opacity: .85; margin-bottom: 14px; }
.sdh-join__title { font-size: clamp(28px, 4vw, 40px); color: #fff; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 16px; }
.sdh-join__text { font-size: 16px; opacity: .9; line-height: 1.6; margin-bottom: 28px; }

/* ===== Archive ===== */
.sdh-archive { padding: 60px 0 80px; }
.sdh-archive__header { margin-bottom: 32px; }
.sdh-archive__title { font-size: clamp(40px, 6vw, 56px); letter-spacing: -0.035em; margin-bottom: 16px; }
.sdh-archive__lede { font-size: clamp(16px, 2vw, 18px); color: var(--c-text-muted); max-width: 600px; margin: 0; }

.sdh-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.sdh-filter {
	padding: 10px 16px;
	font-size: 13px; font-weight: 600;
	border-radius: 999px;
	background: var(--c-surface);
	color: var(--c-text);
	border: 1px solid transparent;
}
.sdh-filter:hover { background: var(--c-surface-2); color: var(--c-text); }
.sdh-filter--active { background: var(--c-blue); color: #fff; box-shadow: var(--shadow-blue); }
.sdh-filter--active:hover { background: var(--c-blue-dark); color: #fff; }

/* ===== Pagination ===== */
.sdh-pagination { margin-top: 48px; display: flex; justify-content: center; }
.sdh-pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.sdh-pagination a, .sdh-pagination span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 12px;
	font-size: 14px; font-weight: 600;
	color: var(--c-text);
	background: var(--c-surface);
	border-radius: 12px;
}
.sdh-pagination a:hover { background: var(--c-surface-2); color: var(--c-text); }
.sdh-pagination .current { background: var(--c-blue); color: #fff; }

/* ===== Article ===== */
.sdh-article { padding: 0 0 40px; }
.sdh-article__head { padding: 40px 0 32px; }
.sdh-breadcrumb {
	font-size: 13px; color: var(--c-text-muted); margin-bottom: 20px;
}
.sdh-breadcrumb a { color: var(--c-text-muted); }
.sdh-breadcrumb a:hover { color: var(--c-blue); }
.sdh-breadcrumb span { color: var(--c-text); }

.sdh-article__title {
	font-size: clamp(30px, 5vw, 44px);
	letter-spacing: -0.035em;
	line-height: 1.15;
	margin: 18px 0 24px;
	text-wrap: balance;
}
.sdh-article__meta {
	display: flex; align-items: center; gap: 12px;
	font-size: 14px; color: var(--c-text-muted);
	padding-bottom: 24px; border-bottom: 1px solid var(--c-border);
	flex-wrap: wrap;
}
.sdh-article__author { font-weight: 600; color: var(--c-text); }

.sdh-avatar {
	width: 36px; height: 36px; border-radius: 50%;
	background: rgba(37,99,235,.15); color: var(--c-blue);
	display: inline-flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 14px;
}

.sdh-article__hero { margin-bottom: 40px; }
.sdh-article__hero-image {
	height: 587px;
	background: var(--c-blue-dark) center/cover no-repeat;
	border-radius: var(--radius-lg);
}

.sdh-article__content { padding-bottom: 60px; }

/* WP / Gutenberg prose */
.sdh-prose, .sdh-article__content, .sdh-page__content {
	font-size: 17px;
	line-height: 1.75;
	color: var(--c-text);
}
.sdh-prose p, .sdh-article__content p, .sdh-page__content p { margin: 0 0 1.1em; }
.sdh-prose h2, .sdh-article__content h2, .sdh-page__content h2 { font-size: 28px; margin-top: 2em; margin-bottom: .6em; letter-spacing: -0.02em; }
.sdh-prose h3, .sdh-article__content h3, .sdh-page__content h3 { font-size: 22px; margin-top: 1.8em; margin-bottom: .5em; }
.sdh-prose ul, .sdh-article__content ul, .sdh-page__content ul,
.sdh-prose ol, .sdh-article__content ol, .sdh-page__content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.sdh-prose li, .sdh-article__content li, .sdh-page__content li { margin-bottom: .4em; }
.sdh-prose blockquote, .sdh-article__content blockquote, .sdh-page__content blockquote {
	background: var(--c-surface);
	padding: 24px 28px;
	border-radius: var(--radius);
	margin: 1.8em 0;
	border-left: 4px solid var(--c-blue);
	font-style: italic;
	font-size: 18px;
}
.sdh-prose img, .sdh-article__content img, .sdh-page__content img { border-radius: var(--radius); margin: 1em 0; }
.sdh-prose figure, .sdh-article__content figure, .sdh-page__content figure { margin: 1.5em 0; }
.sdh-prose figcaption { font-size: 13px; color: var(--c-text-muted); margin-top: 8px; text-align: center; }

.sdh-article__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--c-border); }
.sdh-tag {
	padding: 6px 12px;
	background: var(--c-surface);
	color: var(--c-text-muted);
	font-size: 12px; font-weight: 500;
	border-radius: 999px;
}
.sdh-tag:hover { background: var(--c-blue-light); color: var(--c-blue); }

.sdh-article__nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--c-border);
}
.sdh-article__nav-link {
	display: flex; flex-direction: column;
	padding: 18px 22px;
	background: var(--c-surface);
	border-radius: var(--radius);
	color: var(--c-text);
}
.sdh-article__nav-link:hover { background: var(--c-surface-2); color: var(--c-text); }
.sdh-article__nav-link--next { text-align: right; }
.sdh-article__nav-label { font-size: 12px; color: var(--c-text-muted); font-weight: 600; margin-bottom: 4px; }
.sdh-article__nav-title { font-size: 14px; font-weight: 600; }

/* Related */
.sdh-related {
	background: var(--c-surface);
	padding: 60px 0;
	margin-top: 40px;
}
.sdh-related__title { font-size: 24px; margin-bottom: 24px; letter-spacing: -0.02em; }

/* ===== Page ===== */
.sdh-page__head { padding: 60px 0 32px; }
.sdh-page__title { font-size: clamp(36px, 6vw, 56px); letter-spacing: -0.035em; margin-bottom: 16px; }
.sdh-page__lede { font-size: clamp(16px, 2vw, 18px); color: var(--c-text-muted); max-width: 600px; margin: 0; }
.sdh-page__hero-image {
	height: 507px;
	background: var(--c-blue-dark) center/cover no-repeat;
	border-radius: var(--radius-xl);
	margin: 0 0 48px;
}
.sdh-page__hero-image--full {
	width: 100%;
	max-width: 100vw;
	border-radius: 0;
	margin: 0 0 48px;
}

/* Hero obrázek v přirozeném poměru — drží se uvnitř containeru */
.sdh-page__hero-img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 auto 20px;
	border-radius: var(--radius-xl);
	background: var(--c-surface);
}

/* Event meta panel pod hero obrázkem v detailu článku */
.sdh-event-meta {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	margin: 0 0 28px;
	background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(37,99,235,.02));
	border: 1px solid rgba(37,99,235,.18);
	border-radius: var(--radius);
}
.sdh-event-meta__icon {
	flex-shrink: 0;
	color: var(--c-blue);
}
.sdh-event-meta__body {
	min-width: 0;
	line-height: 1.4;
}
.sdh-event-meta__date {
	font-weight: 700;
	color: var(--c-text);
	font-size: 16px;
	text-transform: capitalize;
}
.sdh-event-meta__sub {
	color: var(--c-text-muted);
	font-size: 14px;
	margin-top: 2px;
}
.sdh-page__content { padding-bottom: 60px; }

/* ===== About page ===== */
.sdh-page--about { padding-bottom: 80px; }
.sdh-about__head { padding: 60px 0 32px; }
.sdh-about__brand-row { display: flex; align-items: center; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.sdh-about__brand-row img { width: 96px; height: 96px; object-fit: contain; }
.sdh-about__eyebrow { font-size: 13px; color: var(--c-text-muted); letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; }
.sdh-about__title { font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 20px; max-width: 900px; text-wrap: balance; }
.sdh-about__title-accent { color: var(--c-blue); }
.sdh-about__lede { font-size: clamp(16px, 2vw, 19px); color: var(--c-text-muted); line-height: 1.6; max-width: 720px; margin: 0; }

.sdh-roster {
	background: var(--c-surface);
	border-radius: var(--radius-lg);
	padding: 8px 16px;
}
.sdh-roster__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding: 14px 12px;
	border-top: 1px solid var(--c-border);
	font-size: 14px;
}
.sdh-roster__row:first-child { border-top: none; }
.sdh-roster__role { color: var(--c-text-muted); }
.sdh-roster__name { font-weight: 600; color: var(--c-text); }

.sdh-person {
	background: #fff;
	border: 1px solid var(--c-border);
	padding: 20px 24px;
	border-radius: var(--radius-lg);
}
.sdh-person__role { font-size: 11px; font-weight: 700; color: var(--c-blue); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 8px; }
.sdh-person__name { font-size: 18px; font-weight: 700; color: var(--c-text); }
.sdh-person__desc { font-size: 14px; color: var(--c-text-muted); margin-top: 8px; line-height: 1.5; }

.sdh-note {
	background: var(--c-surface);
	padding: 14px 18px;
	border-radius: 12px;
	margin-top: 16px;
	font-size: 13px;
}
.sdh-note strong { color: var(--c-text); font-weight: 700; }
.sdh-note span { color: var(--c-text-muted); }

.sdh-table-wrap {
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
}
.sdh-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.sdh-table thead th {
	background: var(--c-surface);
	padding: 14px 22px;
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	color: var(--c-text-muted);
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.sdh-table tbody td {
	padding: 14px 22px;
	border-top: 1px solid var(--c-border);
	color: var(--c-text-muted);
}
.sdh-table__name { font-weight: 600; color: var(--c-text) !important; }
.sdh-legend { font-size: 12px; color: var(--c-text-muted); margin-top: 12px; }

/* ===== Anniversary hero (page-100-let) ===== */
.sdh-anniversary-hero {
	position: relative; overflow: hidden;
	background: linear-gradient(135deg, var(--c-blue), var(--c-blue-dark));
	color: #fff;
	padding: 100px 0 80px;
	text-align: center;
}
.sdh-anniversary-hero__decor {
	position: absolute; border-radius: 50%; background: rgba(255,255,255,.07);
}
.sdh-anniversary-hero__decor--a { left: -120px; top: -120px; width: 400px; height: 400px; }
.sdh-anniversary-hero__decor--b { right: -100px; bottom: -100px; width: 300px; height: 300px; background: rgba(255,255,255,.04); }
.sdh-anniversary-hero__inner { position: relative; }
.sdh-anniversary-hero__eyebrow { font-size: 14px; font-weight: 700; opacity: .9; letter-spacing: 0.1em; margin-bottom: 24px; }
.sdh-anniversary-hero__title { display: inline-flex; align-items: baseline; gap: 16px; flex-wrap: wrap; justify-content: center; color: #fff; margin-bottom: 24px; }
.sdh-anniversary-hero__big { font-size: clamp(80px, 14vw, 160px); letter-spacing: -0.06em; line-height: .9; font-weight: 800; }
.sdh-anniversary-hero__sub { font-size: clamp(24px, 3vw, 36px); font-weight: 600; opacity: .95; }
.sdh-anniversary-hero__lede { font-size: clamp(16px, 2vw, 20px); opacity: .9; max-width: 600px; margin: 0 auto; line-height: 1.5; }

/* ===== Program (100-let) ===== */
.sdh-program { display: flex; flex-direction: column; gap: 16px; }
.sdh-program__item {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: 24px;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	padding: 24px 28px;
	align-items: start;
	transition: transform .15s, box-shadow .15s;
}
.sdh-program__item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sdh-program__date {
	text-align: center;
	background: linear-gradient(135deg, var(--c-blue), var(--c-blue-dark));
	color: #fff;
	padding: 16px 8px;
	border-radius: 14px;
}
.sdh-program__date strong { display: block; font-size: 28px; font-weight: 800; line-height: 1; }
.sdh-program__date span { display: block; font-size: 11px; opacity: .9; margin-top: 4px; letter-spacing: 0.05em; }
.sdh-program__body h3 { font-size: 20px; letter-spacing: -0.015em; margin: 0 0 4px; }
.sdh-program__meta { font-size: 13px; color: var(--c-blue); font-weight: 600; margin-bottom: 10px; }
.sdh-program__body p { font-size: 15px; color: var(--c-text-muted); line-height: 1.6; margin: 0; }

/* ===== Timeline ===== */
.sdh-timeline { display: flex; flex-direction: column; gap: 16px; position: relative; }
.sdh-timeline__item {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 20px;
	align-items: start;
}
.sdh-timeline__year {
	font-size: 28px;
	font-weight: 800;
	color: var(--c-blue);
	letter-spacing: -0.02em;
	padding-top: 16px;
}
.sdh-timeline__card {
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	padding: 20px 24px;
	transition: transform .12s;
}
.sdh-timeline__card:hover { transform: translateX(4px); }
.sdh-timeline__card h3 { font-size: 17px; margin: 0 0 6px; letter-spacing: -0.015em; }
.sdh-timeline__card p { font-size: 14px; color: var(--c-text-muted); line-height: 1.55; margin: 0; }
.sdh-timeline--full .sdh-timeline__card { background: var(--c-surface); border: none; }

/* ===== Technika cards ===== */
.sdh-tech-card {
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
}
.sdh-tech-card__image {
	height: 220px;
	background: var(--c-blue-dark) center/cover no-repeat;
	display: flex; align-items: center; justify-content: center;
	color: rgba(255,255,255,.65);
	font-weight: 600;
	font-size: 15px;
}
.sdh-tech-card__image--placeholder { background: linear-gradient(135deg, var(--c-blue), var(--c-blue-dark)); }
.sdh-tech-card__body { padding: 22px 26px 26px; }
.sdh-tech-card__meta { font-size: 11px; font-weight: 600; color: var(--c-blue); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 8px; }
.sdh-tech-card__title { font-size: 22px; font-weight: 700; color: var(--c-text); letter-spacing: -0.02em; margin-bottom: 8px; }
.sdh-tech-card__desc { font-size: 14px; color: var(--c-text-muted); line-height: 1.55; margin: 0; }

/* ===== Gallery cards ===== */
.sdh-gallery-card {
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: transform .15s, box-shadow .15s;
}
.sdh-gallery-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sdh-gallery-card a { color: inherit; display: block; }
.sdh-gallery-card__image {
	height: 220px;
	background: var(--c-surface-2) center/cover no-repeat;
	display: flex; align-items: center; justify-content: center;
	font-size: 28px;
}
.sdh-gallery-card__body { padding: 16px 20px 20px; }
.sdh-gallery-card__title { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.sdh-gallery-card__date { font-size: 12px; color: var(--c-text-muted); }

/* ===== Contact ===== */
.sdh-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 32px;
}
.sdh-contact-info { display: flex; flex-direction: column; gap: 16px; }
.sdh-info-card {
	background: var(--c-surface);
	padding: 24px 28px;
	border-radius: var(--radius-lg);
}
.sdh-info-card__label { font-size: 12px; font-weight: 700; color: var(--c-text-muted); margin-bottom: 8px; letter-spacing: 0.02em; }
.sdh-info-card__value { font-size: 16px; font-weight: 600; color: var(--c-text); }
.sdh-info-card__link { font-size: 14px; margin-top: 6px; }
.sdh-info-card__link a { color: var(--c-blue); font-weight: 600; }
.sdh-info-card--emergency {
	background: linear-gradient(135deg, var(--c-red), var(--c-red-dark));
	color: #fff;
}
.sdh-info-card--emergency .sdh-info-card__label { color: rgba(255,255,255,.9); }
.sdh-info-card__big-number { display: block; font-size: 44px; font-weight: 800; color: #fff; letter-spacing: -0.04em; line-height: 1; }
.sdh-info-card__big-number:hover { color: #fff; }
.sdh-info-card__sub { font-size: 13px; margin-top: 8px; opacity: .9; }

.sdh-form { background: #fff; border: 1px solid var(--c-border); padding: 32px 36px; border-radius: var(--radius-lg); }
.sdh-form__row { margin-bottom: 18px; }
.sdh-form__row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.sdh-form__row input,
.sdh-form__row textarea {
	width: 100%; padding: 12px 16px;
	font-size: 14px; font-family: inherit;
	border: 1px solid var(--c-border);
	border-radius: 10px;
	background: var(--c-surface);
	outline: none;
	transition: border-color .15s, box-shadow .15s;
}
.sdh-form__row input:focus, .sdh-form__row textarea:focus { border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.sdh-form__row textarea { resize: vertical; }
.sdh-form__note { font-size: 12px; color: var(--c-text-muted); margin-top: 14px; }

/* ===== 404 ===== */
.sdh-404 { padding: 100px 0; }
.sdh-404__inner { text-align: center; }
.sdh-404__big { font-size: clamp(80px, 12vw, 140px); font-weight: 800; color: var(--c-blue); letter-spacing: -0.05em; line-height: 1; }
.sdh-404__title { font-size: clamp(24px, 4vw, 36px); margin: 16px 0; }
.sdh-404__text { font-size: 16px; color: var(--c-text-muted); margin-bottom: 28px; }
.sdh-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== Search form ===== */
.sdh-searchform {
	display: flex; gap: 8px;
	max-width: 480px; margin: 24px auto;
}
.sdh-searchform input {
	flex: 1; padding: 12px 16px;
	border: 1px solid var(--c-border);
	border-radius: 10px;
	font-size: 14px;
	background: var(--c-surface);
}

/* ===== Empty state ===== */
.sdh-empty {
	padding: 60px 20px; text-align: center;
	color: var(--c-text-muted);
	background: var(--c-surface);
	border-radius: var(--radius-lg);
}

/* ===== Footer ===== */
.sdh-footer {
	background: var(--c-surface);
	padding: 60px 0 32px;
	margin-top: 80px;
	border-top: 1px solid var(--c-border);
}
.sdh-footer__inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sdh-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 40px;
	margin-bottom: 40px;
}
.sdh-footer__logo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 15px; font-weight: 800; color: var(--c-text); }
.sdh-footer__logo-row img { width: 44px; height: 44px; object-fit: contain; }
.sdh-footer__about { font-size: 13px; color: var(--c-text-muted); line-height: 1.6; max-width: 320px; }
.sdh-footer__social { font-size: 13px; color: var(--c-blue); font-weight: 600; }
.footer-title { font-size: 12px; font-weight: 800; color: var(--c-text); margin: 0 0 14px; letter-spacing: 0.05em; text-transform: uppercase; }
.sdh-footer__title--red { color: var(--c-red); }
.sdh-footer__menu { list-style: none; margin: 0; padding: 0; }
.sdh-footer__menu li { margin-bottom: 8px; }
.sdh-footer__menu a { font-size: 13px; color: var(--c-text-muted); }
.sdh-footer__menu a:hover { color: var(--c-blue); }
.sdh-footer__line { font-size: 13px; color: var(--c-text-muted); margin: 0 0 8px; }
.sdh-footer__line a { color: var(--c-text-muted); }
.sdh-footer__line a:hover { color: var(--c-blue); }
.sdh-footer__big-number { display: inline-block; font-size: 32px; font-weight: 800; color: var(--c-text); letter-spacing: -0.03em; line-height: 1; }
.sdh-footer__big-number:hover { color: var(--c-red); }
.sdh-footer__bottom {
	border-top: 1px solid var(--c-border);
	padding-top: 20px;
	font-size: 12px;
	color: var(--c-text-muted);
	display: flex; gap: 12px; flex-wrap: wrap;
}
.sdh-footer__bottom a { color: var(--c-text-muted); }
.sdh-footer__bottom a:hover { color: var(--c-blue); }

/* ===== Widgets ===== */
.widget { margin-bottom: 32px; }
.widget-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-text); margin: 0 0 12px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 6px 0; border-bottom: 1px solid var(--c-border); font-size: 14px; }
.widget ul li:last-child { border-bottom: none; }
.widget a { color: var(--c-text); }
.widget a:hover { color: var(--c-blue); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
	.sdh-feature-grid { grid-template-columns: 1fr; }
	.sdh-feature-card__image { height: 280px; }
	.sdh-contact-grid { grid-template-columns: 1fr; }
	.sdh-stats { grid-template-columns: repeat(2, 1fr); }
	.sdh-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
	.sdh-header__inner { padding: 12px 20px; gap: 12px; }
	.sdh-brand__sub { display: none; }
	.sdh-menu-toggle { display: inline-flex; order: 3; }
	.sdh-cta-btn { display: none; }
	.sdh-nav {
		display: none;
		position: absolute; top: 100%; left: 0; right: 0;
		background: #fff;
		border-bottom: 1px solid var(--c-border);
		padding: 16px;
		box-shadow: var(--shadow);
	}
	.sdh-nav.is-open { display: block; }
	.sdh-nav__list {
		flex-direction: column;
		background: transparent;
		padding: 0;
		gap: 4px;
	}
	.sdh-nav__list a { padding: 12px 16px; }
	.sdh-nav__list a:hover, .sdh-nav__list .current-menu-item a {
		background: var(--c-surface);
	}

	.sdh-grid--3, .sdh-grid--2 { grid-template-columns: 1fr; }
	.sdh-list__row { grid-template-columns: 50px 80px 1fr auto; gap: 12px; padding: 12px; }

	.sdh-section { padding: 40px 0; }
	.sdh-section--featured { padding-top: 0; }
	.sdh-hero { padding: 32px 0 24px; }

	.sdh-anniversary-banner, .sdh-join { padding: 36px 24px; }
	.sdh-anniversary-hero { padding: 60px 0 50px; }

	.sdh-program__item { grid-template-columns: 70px 1fr; gap: 16px; padding: 16px; }
	.sdh-program__date strong { font-size: 22px; }

	.sdh-timeline__item { grid-template-columns: 80px 1fr; gap: 12px; }
	.sdh-timeline__year { font-size: 22px; padding-top: 14px; }

	.sdh-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
	.sdh-stat { padding: 20px; }

	.sdh-roster__row { grid-template-columns: 1fr; padding: 12px; gap: 4px; }
	.sdh-roster__role { font-size: 12px; }

	.sdh-footer { margin-top: 60px; padding: 40px 0 24px; }
	.sdh-footer__grid { grid-template-columns: 1fr; gap: 28px; }

	.sdh-article__nav { grid-template-columns: 1fr; }
	.sdh-article__hero-image { height: 320px; }
	.sdh-page__hero-image { height: 320px; }

	.sdh-form { padding: 24px; }
}

@media (max-width: 480px) {
	.sdh-brand__name { font-size: 14px; }
	.sdh-hero__title { font-size: 36px; }
	.sdh-archive__title, .sdh-page__title { font-size: 36px; }
	.sdh-list__row { grid-template-columns: 50px 1fr; }
	.sdh-list__image, .sdh-list__arrow { display: none; }
	.sdh-program__date strong { font-size: 18px; }
}

/* ===== Print ===== */
@media print {
	.sdh-header, .sdh-footer, .sdh-cta-btn, .sdh-menu-toggle, .sdh-nav { display: none !important; }
	.sdh-card, .sdh-feature-card, .sdh-timeline__card, .sdh-program__item { break-inside: avoid; }
	body { background: #fff; color: #000; }
}

/* ===== Kontakt: mapa, formulář notice, honeypot ===== */
.sdh-section--map { padding-top: 20px; padding-bottom: 80px; }
.sdh-map {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	aspect-ratio: 16 / 9;
	position: relative;
}
.sdh-map__iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
.sdh-map__placeholder {
	display: flex; align-items: center; justify-content: center;
	width: 100%; height: 100%;
	font-size: 16px; font-weight: 600;
	color: var(--c-blue);
	background:
		repeating-linear-gradient(45deg, var(--c-surface), var(--c-surface) 12px, var(--c-surface-2) 12px, var(--c-surface-2) 24px);
}
.sdh-map__placeholder:hover { color: var(--c-blue-dark); }

.sdh-form-notice {
	padding: 14px 18px;
	border-radius: var(--radius);
	margin-bottom: 18px;
	font-size: 14px;
	line-height: 1.5;
}
.sdh-form-notice--ok {
	background: #d1fae5;
	color: #065f46;
	border-left: 4px solid #10b981;
}
.sdh-form-notice--error {
	background: #fee2e2;
	color: #991b1b;
	border-left: 4px solid var(--c-red);
}
.sdh-form-notice strong { display: block; margin-bottom: 4px; }

/* Honeypot — skrýt vizuálně, ale ne pro asistivní techniku */
.sdh-form__honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px; height: 1px; overflow: hidden;
}

@media (max-width: 768px) {
	.sdh-map { aspect-ratio: 4 / 3; }
}

/* ===== Externí fotogalerie (rajce / FB album) ===== */
.sdh-section--extgal { padding-top: 60px; padding-bottom: 0; }
.sdh-extgal {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--radius-xl);
	min-height: 440px;
	color: #fff;
	background-color: var(--c-blue-dark);
	background-size: cover;
	background-position: center;
	transition: transform .2s ease, box-shadow .2s ease;
	box-shadow: var(--shadow);
}
.sdh-extgal:hover {
	color: #fff;
	transform: translateY(-3px);
	box-shadow: var(--shadow-lg);
}
.sdh-extgal--gradient {
	background-image: linear-gradient(135deg, var(--c-blue) 0%, var(--c-blue-dark) 60%, #0c1f4a 100%);
}
.sdh-extgal__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(135deg, rgba(15, 23, 42, 0.55) 0%, rgba(30, 64, 175, 0.65) 100%);
	z-index: 1;
}
.sdh-extgal--gradient .sdh-extgal__overlay { background: transparent; }
.sdh-extgal__decor {
	position: absolute; border-radius: 50%;
	background: rgba(255,255,255,.08);
	z-index: 2;
	pointer-events: none;
}
.sdh-extgal__decor--a { right: -90px; top: -90px; width: 320px; height: 320px; }
.sdh-extgal__decor--b { left: -60px; bottom: -100px; width: 220px; height: 220px; background: rgba(255,255,255,.05); }
.sdh-extgal__content {
	position: relative;
	z-index: 3;
	max-width: 720px;
	padding: 80px 64px;
}
.sdh-extgal__eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	opacity: .9;
	margin-bottom: 14px;
}
.sdh-extgal__title {
	color: #fff;
	font-size: clamp(32px, 5vw, 48px);
	letter-spacing: -0.025em;
	line-height: 1.15;
	margin: 0 0 14px;
	text-wrap: balance;
}
.sdh-extgal__desc {
	font-size: 16px;
	line-height: 1.6;
	margin: 0 0 24px;
	opacity: .92;
	max-width: 540px;
}
.sdh-extgal__btn {
	display: inline-flex; align-items: center; gap: 8px;
	background: #fff;
	color: var(--c-blue);
	padding: 13px 22px;
	font-size: 14px; font-weight: 700;
	border-radius: var(--radius);
	box-shadow: 0 6px 18px rgba(0,0,0,.18);
	transition: transform .15s ease;
}
.sdh-extgal:hover .sdh-extgal__btn { transform: translateY(-1px); }
.sdh-extgal__arrow { font-size: 16px; transition: transform .15s ease; }
.sdh-extgal:hover .sdh-extgal__arrow { transform: translate(3px, -3px); }
.sdh-extgal__host {
	margin-top: 20px;
	font-size: 12px;
	opacity: .75;
	letter-spacing: 0.03em;
}

@media (max-width: 768px) {
	.sdh-extgal { min-height: 280px; }
	.sdh-extgal__content { padding: 36px 24px; }
}

/* ===== Edit tlačítko (pro přihlášené redaktory) ===== */
.sdh-edit-link {
	display: inline-flex; align-items: center; gap: 6px;
	margin: 0 0 16px;
	padding: 6px 14px;
	background: var(--c-anniversary, #f59e0b);
	color: #fff !important;
	font-size: 12px; font-weight: 700;
	letter-spacing: 0.02em;
	border-radius: 999px;
	box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
	text-decoration: none !important;
}
.sdh-edit-link:hover {
	background: #d97706;
	color: #fff !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}
.sdh-edit-link__icon { font-size: 13px; }
.sdh-edit-link__text { line-height: 1; }

/* Plovoucí varianta — vpravo nahoře */
.sdh-edit-link--floating {
	position: fixed;
	top: 80px; right: 24px;
	z-index: 40;
	margin: 0;
}

@media (max-width: 768px) {
	.sdh-edit-link--floating { top: auto; bottom: 16px; right: 16px; }
}

/* Skrýt v admin baru / když je tělo .logged-in & .admin-bar — admin bar má vlastní edit */
@media print {
	.sdh-edit-link { display: none !important; }
}

/* ===== Filter count badge ===== */
.sdh-filter {
	display: inline-flex; align-items: center; gap: 8px;
}
.sdh-filter__count {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 22px; height: 22px;
	padding: 0 7px;
	background: rgba(255,255,255,.25);
	color: inherit;
	font-size: 11px; font-weight: 700;
	border-radius: 999px;
	line-height: 1;
}
.sdh-filter:not(.sdh-filter--active) .sdh-filter__count {
	background: rgba(37, 99, 235, .1);
	color: var(--c-blue);
}

/* ===== Edit tlačítko — bottom (centrovaná velká varianta) ===== */
.sdh-edit-link__bottom-wrap {
	margin: 32px 0 60px;
	display: flex;
	justify-content: center;
}
.sdh-edit-link--bottom {
	margin: 0;
	padding: 12px 22px;
	font-size: 14px;
	border-radius: var(--radius);
}
.sdh-edit-link--bottom .sdh-edit-link__icon {
	font-size: 16px;
}

/* ===== Footer admin link ===== */
.sdh-footer__admin {
	color: var(--c-blue) !important;
	font-weight: 600;
}
.sdh-footer__admin:hover { color: var(--c-blue-dark) !important; }

/* ===== Leaflet mapa ===== */
.sdh-leaflet {
	width: 100%;
	height: 100%;
	min-height: 380px;
	border-radius: var(--radius-lg);
	background: var(--c-surface);
}
.sdh-map { padding: 0; }  /* vnitřek je samotná mapa */
.sdh-map .sdh-leaflet { min-height: 100%; }
.leaflet-container { font-family: inherit; }
.leaflet-popup-content-wrapper {
	border-radius: var(--radius);
}
.leaflet-popup-content {
	font-size: 14px;
	line-height: 1.4;
	margin: 12px 16px;
}
.leaflet-popup-content strong {
	color: var(--c-blue-dark);
	font-weight: 700;
}

/* ===== Přílohy ke stažení ===== */
.sdh-attachments {
	margin: 32px 0 40px;
	padding: 0;
	background: transparent;
	border: 0;
}
.sdh-attachments__title {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--c-text);
	text-transform: none;
	margin: 0 0 14px;
}
.sdh-attachments__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.sdh-attachments__item { margin: 0; }
.sdh-attachment {
	display: flex;
	flex-wrap: nowrap;
	align-items: baseline;
	gap: 8px;
	padding: 6px 0;
	color: var(--c-text) !important;
	text-decoration: none !important;
	line-height: 1.45;
}
.sdh-attachment__icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	color: var(--c-text-muted);
	align-self: center;
	transition: color .15s ease;
}
.sdh-attachment__name {
	font-weight: 500;
	color: var(--c-text);
}
.sdh-attachment__filename {
	color: var(--c-text-muted);
	font-size: 14px;
	font-weight: 400;
}
.sdh-attachment__size {
	color: var(--c-text-muted);
	font-size: 13px;
	margin-left: auto;
	white-space: nowrap;
}
.sdh-attachment:hover .sdh-attachment__name {
	color: var(--c-blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.sdh-attachment:hover .sdh-attachment__icon {
	color: var(--c-blue);
}

.sdh-downloads-empty {
	margin: 24px 0;
	padding: 24px;
	background: var(--c-surface, #f8fafc);
	border: 1px dashed var(--c-border, #e5e7eb);
	border-radius: 8px;
	color: var(--c-text-muted, #64748b);
}
.sdh-downloads-empty p { margin: 0; }
.sdh-downloads-empty p + p { margin-top: 8px; font-size: 14px; }
.sdh-downloads-empty__hint { font-size: 14px; }

@media (max-width: 480px) {
	.sdh-attachment { gap: 6px; }
	.sdh-attachment__name { font-size: 15px; }
	.sdh-attachment__size { margin-left: 0; }
}

/* ===== Submenu (dropdown) ===== */
.sdh-nav__list .menu-item-has-children {
	position: relative;
}
.sdh-nav__list .menu-item-has-children > a {
	display: inline-flex; align-items: center; gap: 5px;
}
.sdh-nav__caret {
	font-size: 9px; line-height: 1;
	opacity: .7;
	transition: transform .15s ease;
}
.sdh-nav__list .menu-item-has-children:hover .sdh-nav__caret {
	transform: rotate(180deg);
}

.sdh-nav__list .sub-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%) translateY(-6px);
	min-width: 200px;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	padding: 8px;
	margin: 0;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
	z-index: 60;
}
.sdh-nav__list .menu-item-has-children:hover > .sub-menu,
.sdh-nav__list .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}
.sdh-nav__list .sub-menu li {
	margin: 0;
}
.sdh-nav__list .sub-menu a {
	display: block;
	padding: 9px 14px;
	font-size: 13px; font-weight: 500;
	color: var(--c-text);
	border-radius: 8px;
	transition: background .12s, color .12s;
}
.sdh-nav__list .sub-menu a:hover {
	background: var(--c-blue-light);
	color: var(--c-blue-dark);
}

/* Mobilní menu: submenu vertikálně pod položkou */
@media (max-width: 768px) {
	.sdh-nav__list .sub-menu {
		position: static;
		transform: none;
		box-shadow: none;
		border: none;
		padding: 4px 0 4px 16px;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		min-width: auto;
		background: transparent;
		margin-top: 4px;
		border-left: 2px solid var(--c-border);
	}
	.sdh-nav__list .sub-menu a { font-size: 13px; padding: 8px 12px; }
	.sdh-nav__caret { display: none; }
}

/* ===== Submenu — fix tečícího hoveru ===== */
.sdh-nav__list .sub-menu::before {
	content: '';
	position: absolute;
	top: -10px;
	left: 0; right: 0;
	height: 10px;
	background: transparent;
}
.sdh-nav__list .menu-item-has-children > .sub-menu {
	transition-delay: .15s;
}
.sdh-nav__list .menu-item-has-children:hover > .sub-menu,
.sdh-nav__list .menu-item-has-children:focus-within > .sub-menu {
	transition-delay: 0s;
}
@media (max-width: 768px) {
	.sdh-nav__list .sub-menu::before { display: none; }
}

/* ===== Stránka O sboru — větší prostor mezi nadpisy H2 ===== */
.sdh-page--about .sdh-section { padding: 80px 0; }
.sdh-page--about h2.sdh-section__title {
	margin: 0 0 32px !important;
	line-height: 1.2;
}
@media (max-width: 768px) {
	.sdh-page--about .sdh-section { padding: 48px 0; }
	.sdh-page--about h2.sdh-section__title { margin-bottom: 20px !important; }
}

/* ===== Nadcházející akce — hover fix + empty state + past ===== */
.sdh-card-gradient a.sdh-event-row,
.sdh-card-gradient a.sdh-event-row:hover,
.sdh-card-gradient a.sdh-event-row:focus {
	color: #fff;
	text-decoration: none;
	transition: background .15s ease;
	border-radius: 10px;
	padding: 12px 8px;
	margin: 0 -8px;
}
.sdh-card-gradient a.sdh-event-row:hover {
	background: rgba(255,255,255,.12);
}
.sdh-card-gradient .sdh-event-row__title {
	color: #fff;
}
.sdh-card-gradient .sdh-event-row--border {
	border-top: 1px solid rgba(255,255,255,.15);
	margin-top: 0;
}

.sdh-card-gradient .sdh-event-row--past {
	opacity: 0.65;
}
.sdh-card-gradient .sdh-event-row--past .sdh-event-row__date::after {
	content: '';
}
.sdh-card-gradient .sdh-event-row--past .sdh-event-row__title::before {
	content: 'Proběhlo · ';
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	opacity: .8;
}

.sdh-card-gradient__empty {
	padding: 18px 0 4px;
	font-size: 13px;
	color: rgba(255,255,255,.85);
	font-style: italic;
}

/* Popisek přílohy z mediální knihovny */
/* ===== CTA "Hledáme nové hasiče" — červená varianta ===== */
.sdh-join--red {
	background: linear-gradient(135deg, var(--c-red) 0%, var(--c-red-dark) 100%);
}
.sdh-join--red .sdh-btn--white {
	color: var(--c-red-dark);
}
.sdh-join--red .sdh-btn--white:hover {
	color: var(--c-red);
	background: #fff;
}

/* ===== Detail galerie — mřížka fotek ===== */
.sdh-section--gallery-grid { padding: 40px 0 60px; }
.sdh-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}
.sdh-gallery-item {
	display: block;
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--c-surface);
	cursor: zoom-in;
	transition: transform .15s ease, box-shadow .15s ease;
}
.sdh-gallery-item:hover {
	transform: scale(1.02);
	box-shadow: var(--shadow-lg);
}
.sdh-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sdh-gallery__date {
	color: var(--c-text-muted);
	font-size: 14px;
	margin: 8px 0 0;
}

/* ===== Lightbox ===== */
.sdh-lightbox {
	position: fixed; inset: 0;
	z-index: 9999;
	visibility: hidden;
	opacity: 0;
	transition: opacity .2s ease, visibility .2s;
}
.sdh-lightbox.is-open {
	visibility: visible;
	opacity: 1;
}
.sdh-lightbox__backdrop {
	position: absolute; inset: 0;
	background: #000;
}
.sdh-lightbox__stage {
	position: absolute; inset: 60px 20px 100px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.sdh-lightbox__img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: var(--radius);
	box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.sdh-lightbox__caption {
	position: absolute;
	bottom: -40px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 14px;
	max-width: 80%;
	text-align: center;
	opacity: .9;
}
.sdh-lightbox__counter {
	position: absolute;
	top: -36px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255,255,255,.7);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.05em;
}
.sdh-lightbox__close,
.sdh-lightbox__prev,
.sdh-lightbox__next {
	position: absolute;
	z-index: 2;
	color: #fff;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 999px;
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	transition: background .15s ease, transform .15s ease;
	font-family: inherit;
	line-height: 1;
}
.sdh-lightbox__close:hover,
.sdh-lightbox__prev:hover,
.sdh-lightbox__next:hover {
	background: rgba(255,255,255,.2);
}
.sdh-lightbox__close {
	top: 20px; right: 20px;
	width: 44px; height: 44px;
	font-size: 28px;
}
.sdh-lightbox__prev, .sdh-lightbox__next {
	top: 50%;
	width: 52px; height: 52px;
	font-size: 32px;
	transform: translateY(-50%);
}
.sdh-lightbox__prev { left: 20px; }
.sdh-lightbox__next { right: 20px; }
.sdh-lightbox__prev:hover { transform: translateY(-50%) translateX(-2px); }
.sdh-lightbox__next:hover { transform: translateY(-50%) translateX(2px); }

@media (max-width: 768px) {
	.sdh-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
	.sdh-lightbox__prev, .sdh-lightbox__next { width: 40px; height: 40px; font-size: 24px; }
	.sdh-lightbox__close { width: 36px; height: 36px; font-size: 20px; top: 12px; right: 12px; }
	.sdh-lightbox__stage { inset: 50px 8px 80px; }
}

/* Kurzor zoom-out na obrázku v lightboxu (pro klik na obraz = zavřít) */
.sdh-lightbox.is-open .sdh-lightbox__img { cursor: zoom-out; }

/* ===== Photo grid (2 dlaždice + 1 more overlay = 3 tiles) ===== */
.sdh-photo-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.sdh-photo-grid a:not(.sdh-photo-grid__more) img,
.sdh-photo-grid .sdh-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 6px;
}
.sdh-photo-grid > a {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: 6px;
	overflow: hidden;
	display: block;
	transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s cubic-bezier(.22,.61,.36,1), filter .25s ease;
}
.sdh-photo-grid > a:hover {
	transform: scale(1.012);
	box-shadow: 0 6px 18px rgba(0,0,0,.08);
	filter: brightness(1.04);
}
.sdh-photo-grid a[hidden] { display: none !important; }

.sdh-photo-grid__more {
	cursor: pointer;
}
.sdh-photo-grid__more img {
	filter: brightness(0.55);
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.sdh-photo-grid__more-overlay {
	position: absolute; inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: #fff;
	text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.sdh-photo-grid__more-count {
	font-size: clamp(22px, 4vw, 36px);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
}
.sdh-photo-grid__more svg {
	opacity: .9;
}
.sdh-photo-grid__more:hover img { filter: brightness(0.45); }
.sdh-photo-grid__more:hover .sdh-photo-grid__more-overlay { transform: scale(1.05); transition: transform .15s; }

@media (max-width: 768px) {
	.sdh-photo-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

/* ===== Gallery modal (popup s mřížkou všech thumbnailů) ===== */
.sdh-gallery-modal {
	position: fixed; inset: 0;
	z-index: 9998;
	visibility: hidden;
	opacity: 0;
	transition: opacity .2s ease, visibility .2s;
}
.sdh-gallery-modal.is-open { visibility: visible; opacity: 1; }
.sdh-gallery-modal__backdrop {
	position: absolute; inset: 0;
	background: #000;
}
.sdh-gallery-modal__panel {
	position: absolute;
	inset: 0;
	background: #000;
	color: #fff;
	border: 0;
	border-radius: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.sdh-gallery-modal__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 24px;
	border-bottom: 1px solid rgba(255,255,255,.08);
	flex-shrink: 0;
}
.sdh-gallery-modal__title {
	margin: 0;
	display: flex;
	align-items: baseline;
	gap: 14px;
	flex-wrap: wrap;
}
.sdh-gallery-modal__title-main {
	font-size: 18px;
	font-weight: 700;
	color: #fff;
}
.sdh-gallery-modal__title-count {
	font-size: 13px;
	color: rgba(255,255,255,.6);
	font-weight: 500;
}
.sdh-gallery-modal__close {
	width: 36px; height: 36px;
	border-radius: 999px;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.15);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	display: flex; align-items: center; justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	transition: background .15s ease;
}
.sdh-gallery-modal__close:hover { background: rgba(255,255,255,.18); }
.sdh-gallery-modal__grid {
	flex: 1 1 auto !important;
	overflow-y: auto !important;
	overscroll-behavior: contain;
	padding: 24px !important;
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
	gap: 12px !important;
	scrollbar-width: thin;
	scrollbar-color: rgba(255,255,255,.25) transparent;
	box-sizing: border-box;
}
.sdh-gallery-modal__grid::-webkit-scrollbar { width: 8px; }
.sdh-gallery-modal__grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 4px; }
.sdh-gallery-modal__grid::-webkit-scrollbar-track { background: transparent; }
.sdh-gallery-modal__thumb {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: 6px;
	overflow: hidden;
	cursor: zoom-in;
	transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease, filter .25s ease;
}
.sdh-gallery-modal__thumb:hover {
	transform: scale(1.015);
	box-shadow: 0 6px 16px rgba(0,0,0,.45);
	filter: brightness(1.06);
}
.sdh-gallery-modal__thumb img {
	width: 100%; height: 100%;
	object-fit: cover; display: block;
}
@media (max-width: 768px) {
	.sdh-gallery-modal__bar { padding: 14px 16px; }
	.sdh-gallery-modal__grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important; padding: 16px !important; gap: 10px !important; }
}

/* ===== Lightbox — upgrade (s download a header) ===== */
.sdh-lightbox__header {
	position: absolute;
	top: 0; left: 0; right: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	background: linear-gradient(to bottom, rgba(0,0,0,.5), rgba(0,0,0,0));
	pointer-events: none;
}
.sdh-lightbox__header > * { pointer-events: auto; }
.sdh-lightbox__counter {
	color: rgba(255,255,255,.85);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
}
.sdh-lightbox__actions {
	display: flex;
	gap: 6px;
}
.sdh-lightbox__btn {
	display: inline-flex;
	align-items: center; justify-content: center;
	width: 40px; height: 40px;
	color: #fff;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 999px;
	cursor: pointer;
	transition: background .15s, transform .12s;
	text-decoration: none !important;
	font-family: inherit;
}
.sdh-lightbox__btn:hover {
	background: rgba(255,255,255,.2);
	color: #fff;
}
.sdh-lightbox__nav {
	position: absolute;
	top: 50%;
	width: 52px; height: 52px;
	font-size: 32px;
	transform: translateY(-50%);
	color: #fff;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 999px;
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	z-index: 2;
	line-height: 1;
}
.sdh-lightbox__nav:hover { background: rgba(255,255,255,.2); }
.sdh-lightbox__prev { left: 20px; }
.sdh-lightbox__next { right: 20px; }
.sdh-lightbox__caption {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 14px;
	max-width: 70%;
	text-align: center;
	opacity: .9;
	z-index: 2;
	text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.sdh-lightbox__image {
	cursor: zoom-out;
}

@media (max-width: 768px) {
	.sdh-lightbox__nav { width: 40px; height: 40px; font-size: 22px; }
	.sdh-lightbox__prev { left: 8px; } .sdh-lightbox__next { right: 8px; }
	.sdh-lightbox__btn { width: 36px; height: 36px; }
	.sdh-lightbox__stage { inset: 50px 8px 80px; }
}

/* ===== Lightbox v2 — filmstrip, thumbs, loader ===== */
.sdh-lightbox__viewport {
	position: absolute;
	top: 0; left: 0; right: 0;
	bottom: 110px; /* prostor pro caption + thumbs */
	overflow: hidden;
	z-index: 1;
	cursor: grab;
	touch-action: pan-y;
	-webkit-user-select: none;
	user-select: none;
}
.sdh-lightbox__viewport.is-dragging { cursor: grabbing; }

.sdh-lightbox__track {
	display: flex;
	height: 100%;
	width: 100%;
	will-change: transform;
	transform: translate3d(0, 0, 0);
}

.sdh-lightbox__slide {
	flex: 0 0 100%;
	height: 100%;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	transform: scale(0.94);
	transition: transform .42s cubic-bezier(.22,.61,.36,1);
}
.sdh-lightbox__slide.is-current {
	transform: scale(1);
}

.sdh-lightbox__img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	opacity: 0;
	transition: opacity .35s ease;
	-webkit-user-drag: none;
	user-select: none;
	pointer-events: none; /* klik propadne na slide kvuli zavreni */
	box-shadow: 0 24px 60px rgba(0,0,0,.6);
	border-radius: 6px;
}
.sdh-lightbox__slide:not(.is-loading) .sdh-lightbox__img {
	opacity: 1;
}

/* Loader spinner */
.sdh-lightbox__loader {
	position: absolute;
	top: 50%; left: 50%;
	width: 56px; height: 56px;
	margin: -28px 0 0 -28px;
	border-radius: 50%;
	border: 3px solid rgba(255,255,255,.15);
	border-top-color: rgba(255,255,255,.85);
	animation: sdh-lb-spin 0.8s linear infinite;
	opacity: 1;
	transition: opacity .25s ease;
	pointer-events: none;
}
.sdh-lightbox__slide:not(.is-loading) .sdh-lightbox__loader {
	opacity: 0;
}
.sdh-lightbox__slide.is-error::after {
	content: 'Foto se nepodařilo načíst';
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	color: rgba(255,255,255,.7);
	font-size: 14px;
}
@keyframes sdh-lb-spin {
	to { transform: rotate(360deg); }
}

/* Caption sits above the thumbnail strip */
.sdh-lightbox__caption {
	position: absolute;
	left: 0; right: 0;
	bottom: 96px;
	top: auto;
	transform: none;
	max-width: 80%;
	margin: 0 auto;
	text-align: center;
	color: rgba(255,255,255,.85);
	font-size: 14px;
	padding: 0 16px;
	z-index: 3;
	text-shadow: 0 1px 4px rgba(0,0,0,.8);
	pointer-events: none;
}

/* Thumbnail strip */
.sdh-lightbox__thumbs {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	z-index: 3;
	padding: 8px 12px 14px;
	background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.4) 60%, rgba(0,0,0,0) 100%);
}
.sdh-lightbox__thumbs-track {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	padding: 4px 4px 6px;
	scrollbar-width: thin;
	scrollbar-color: rgba(255,255,255,.3) transparent;
}
.sdh-lightbox__thumbs-track::-webkit-scrollbar {
	height: 6px;
}
.sdh-lightbox__thumbs-track::-webkit-scrollbar-thumb {
	background: rgba(255,255,255,.25);
	border-radius: 3px;
}
.sdh-lightbox__thumbs-track::-webkit-scrollbar-track {
	background: transparent;
}
.sdh-lightbox__thumb {
	flex: 0 0 auto;
	width: 72px;
	height: 52px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	background: #111;
	opacity: 0.55;
	transition: opacity .18s ease, border-color .18s ease, transform .18s ease;
}
.sdh-lightbox__thumb img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}
.sdh-lightbox__thumb:hover {
	opacity: 0.9;
	transform: translateY(-2px);
}
.sdh-lightbox__thumb.is-active {
	opacity: 1;
	border-color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(0,0,0,.5);
}

.sdh-lightbox__header {
	background: linear-gradient(to bottom, rgba(0,0,0,.8) 0%, rgba(0,0,0,0) 100%);
	z-index: 3;
}

@media (max-width: 768px) {
	.sdh-lightbox__viewport { bottom: 92px; }
	.sdh-lightbox__caption { bottom: 80px; font-size: 13px; }
	.sdh-lightbox__thumbs { padding: 6px 8px 10px; }
	.sdh-lightbox__thumb { width: 56px; height: 42px; }
	.sdh-lightbox__loader { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
}

@media (prefers-reduced-motion: reduce) {
	.sdh-lightbox__track,
	.sdh-lightbox__slide,
	.sdh-lightbox__img,
	.sdh-lightbox__thumb {
		transition: none !important;
	}
	.sdh-lightbox__loader { animation: none; }
}

/* ===== Historie — layout 2/3 obsah + 1/3 sidebar ===== */
.sdh-page--with-sidebar .sdh-page__head { margin-bottom: 24px; }

.sdh-history-layout {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
	gap: 40px;
	align-items: start;
}
.sdh-history-layout__main { min-width: 0; }
.sdh-history-layout__aside { min-width: 0; }

.sdh-section--tight { padding: 24px 0; }
.sdh-history-layout__main > .sdh-section--tight:first-child { padding-top: 0; }

.sdh-history-sidebar {
	position: sticky;
	top: 96px;
}
.sdh-history-sidebar__inner {
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
}
.sdh-history-sidebar__title {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--c-text-muted, #64748b);
}
.sdh-history-sidebar__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.sdh-history-sidebar__item {
	margin: 0;
	border: 0;
}
.sdh-history-sidebar__item a {
	display: block;
	padding: 4px 0 4px 16px;
	position: relative;
	color: var(--c-text, #0f172a);
	text-decoration: none;
	font-weight: 400;
	line-height: 1.5;
	transition: color .12s ease;
}
.sdh-history-sidebar__item a::before {
	content: "·";
	position: absolute;
	left: 4px;
	top: 4px;
	color: var(--c-text-muted, #64748b);
	font-weight: 700;
}
.sdh-history-sidebar__item a:hover {
	color: var(--c-blue, #2563eb);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.sdh-history-sidebar__item.is-active a {
	color: var(--c-blue, #2563eb);
	font-weight: 600;
}
.sdh-history-sidebar__item.is-active a::before {
	color: var(--c-blue, #2563eb);
}

@media (max-width: 960px) {
	.sdh-history-layout {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.sdh-history-layout__aside { order: -1; }
	.sdh-history-sidebar { position: static; }
	.sdh-history-sidebar__title { margin-bottom: 6px; font-size: 12px; }
	.sdh-history-sidebar__nav ul {
		display: flex;
		flex-wrap: wrap;
		gap: 4px 14px;
	}
	.sdh-history-sidebar__item a {
		padding: 2px 0 2px 14px;
	}
}
