/**
 * ZE Osobnosti – detail osobnosti, formulář návrhů na konci profilu a formulář „Přidat osobnost“.
 * Barvy a rozměry jsou v proměnných. Při najetí myší se mění jen barva, nikdy rozměr ani odsazení.
 */

.zeo-navrh {
	--zeo-ink: #1b1f24;
	--zeo-muted: #6a737d;
	--zeo-line: #e3e5e8;
	--zeo-accent: #c8102e;
	--zeo-ok: #1a7f37;
	--zeo-error: #cf222e;
	--zeo-soft: #f6f7f9;
	--zeo-radius: 8px;

	clear: both;
	margin: 48px 0 24px;
	padding: 24px;
	border: 1px solid var(--zeo-line);
	border-radius: var(--zeo-radius);
	background: var(--zeo-soft);
	color: var(--zeo-ink);
	line-height: 1.5;
	box-sizing: border-box;
}

.zeo-navrh *,
.zeo-navrh *::before,
.zeo-navrh *::after {
	box-sizing: inherit;
}

.zeo-navrh [hidden] {
	display: none !important;
}

.zeo-navrh .zeo-navrh__nadpis {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
}

.zeo-navrh__uvod {
	margin: 0 0 18px;
	color: var(--zeo-muted);
}

/* Výběr typu (jen s JavaScriptem) */
.zeo-typy {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 12px;
	margin: 0 0 18px;
}

.zeo-navrh .zeo-typ {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	border: 1px solid #cfd4da;
	border-radius: var(--zeo-radius);
	background: #fff;
	color: var(--zeo-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color .15s;
}

.zeo-navrh .zeo-typ strong {
	font-size: 16px;
}

.zeo-navrh .zeo-typ span {
	color: var(--zeo-muted);
	font-size: 14px;
	line-height: 1.35;
}

.zeo-navrh .zeo-typ:hover,
.zeo-navrh .zeo-typ:focus-visible,
.zeo-navrh .zeo-typ.is-active {
	border-color: var(--zeo-ink);
	outline: none;
}

.zeo-navrh .zeo-typ.is-active {
	border-width: 2px;
	padding: 13px 15px;
}

/* Formulář */
.zeo-radios {
	margin: 0 0 14px;
	padding: 0;
	border: 0;
}

.zeo-radio {
	display: inline-block;
	margin: 0 16px 0 0;
	font-weight: 600;
}

.zeo-field {
	margin: 0 0 14px;
	min-width: 0;
}

.zeo-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0 16px;
}

.zeo-row > .zeo-field {
	flex: 1 1 240px;
}

.zeo-navrh .zeo-label {
	display: block;
	margin: 0 0 5px;
	padding: 0;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.zeo-req {
	color: var(--zeo-accent);
}

.zeo-navrh .zeo-input {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #cfd4da;
	border-radius: 6px;
	background: #fff;
	box-shadow: none;
	color: var(--zeo-ink);
	font: inherit;
	font-size: 16px; /* iOS nezoomuje */
	line-height: 1.4;
	transition: border-color .15s;
}

.zeo-navrh textarea.zeo-input {
	min-height: 120px;
	resize: vertical;
}

.zeo-navrh .zeo-input:focus {
	border-color: var(--zeo-ink);
	outline: none;
}

.zeo-navrh .zeo-input--file {
	padding: 8px;
}

.zeo-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 10px 0 0;
	cursor: pointer;
}

.zeo-check input {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--zeo-accent);
}

.zeo-hint {
	margin: 4px 0 0;
	color: var(--zeo-muted);
	font-size: 13px;
}

.zeo-error {
	margin: 4px 0 0;
	color: var(--zeo-error);
	font-size: 14px;
	font-weight: 600;
}

.zeo-error--general {
	padding: 10px 14px;
	border-radius: 6px;
	background: #ffebe9;
}

.zeo-notice {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 6px;
	font-weight: 600;
}

.zeo-notice--ok {
	background: #dafbe1;
	color: var(--zeo-ok);
}

.zeo-notice--error {
	background: #ffebe9;
	color: var(--zeo-error);
}

.zeo-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 18px 0 8px;
}

.zeo-navrh .zeo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 24px;
	border: 1px solid transparent;
	border-radius: 6px;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .15s, border-color .15s;
}

.zeo-navrh .zeo-btn--primary {
	background: var(--zeo-accent);
	color: #fff;
}

.zeo-navrh .zeo-btn--primary:hover,
.zeo-navrh .zeo-btn--primary:focus-visible {
	background: #a50d26;
}

.zeo-navrh .zeo-btn--ghost {
	border-color: #cfd4da;
	background: #fff;
	color: var(--zeo-ink);
}

.zeo-navrh .zeo-btn--ghost:hover,
.zeo-navrh .zeo-btn--ghost:focus-visible {
	border-color: var(--zeo-ink);
}

.zeo-navrh .zeo-btn:disabled {
	opacity: .6;
	cursor: default;
}

/* Honeypot: skryté pole pro roboty */
.zeo-hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (max-width: 560px) {
	.zeo-navrh {
		padding: 18px 16px;
	}
}

/* Fotografie s popiskem: jeden řádek na fotografii */
.zeo-fotky {
	display: grid;
	gap: 14px;
	margin: 8px 0 12px;
}

.zeo-foto {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 14px;
	border: 1px solid #cfd4da;
	border-radius: 6px;
	background: #fff;
}

.zeo-foto__nahled {
	flex: 0 0 96px;
	width: 96px;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: 4px;
	background: var(--zeo-soft);
}

.zeo-foto__nahled img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.zeo-foto__pole {
	flex: 1 1 auto;
	min-width: 0;
}

.zeo-navrh .zeo-label--maly {
	margin: 8px 0 4px;
	font-size: 12px;
}

.zeo-navrh .zeo-label--maly:first-child {
	margin-top: 0;
}

.zeo-navrh .zeo-btn--small {
	min-height: 38px;
	padding: 6px 16px;
	font-size: 14px;
}

.zeo-navrh .zeo-link {
	margin-top: 6px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--zeo-accent);
	font: inherit;
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
}

@media (max-width: 560px) {
	.zeo-foto {
		flex-direction: column;
	}

	.zeo-foto__nahled {
		flex-basis: auto;
		width: 120px;
	}
}

/* ------------------------------------------------------------ */
/* Detail osobnosti: fotografie vlevo, základní údaje vpravo      */
/* ------------------------------------------------------------ */

.zeo-osoba {
	--zeo-ink: #1b1f24;
	--zeo-muted: #6a737d;
	--zeo-line: #e3e5e8;
}

.zeo-osoba__hlavicka {
	display: grid;
	grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
	margin: 0 0 28px;
}

.zeo-osoba__hlavicka--bez-fota {
	grid-template-columns: minmax(0, 1fr);
}

.zeo-osoba__foto {
	margin: 0;
}

.zeo-osoba__foto img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
}

.zeo-osoba__foto figcaption {
	margin: 6px 0 0;
	color: var(--zeo-muted);
	font-size: 13px;
	line-height: 1.4;
}

.zeo-osoba__udaje {
	margin: 0;
	padding: 0;
}

.zeo-osoba__udaj {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 4px 16px;
	margin: 0;
	padding: 10px 0;
	border-bottom: 1px solid var(--zeo-line);
}

.zeo-osoba__udaj:first-child {
	border-top: 1px solid var(--zeo-line);
}

.zeo-osoba__udaj dt {
	margin: 0;
	color: var(--zeo-muted);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	line-height: 1.6;
}

.zeo-osoba__udaj dd {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
}

@media (max-width: 560px) {
	.zeo-osoba__hlavicka {
		grid-template-columns: minmax(110px, 140px) minmax(0, 1fr);
		gap: 16px;
	}

	.zeo-osoba__udaj {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ------------------------------------------------------------ */
/* Formulář „Přidat osobnost“                                     */
/* ------------------------------------------------------------ */

.zeo-pridat {
	margin-top: 8px;
}

.zeo-pridat .zeo-sekce {
	margin: 28px 0 12px;
	padding: 0 0 6px;
	border-bottom: 1px solid var(--zeo-line);
	font-size: 17px;
	font-weight: 800;
}

.zeo-pridat .zeo-datum {
	min-width: 0;
	margin: 0 0 14px;
	padding: 0;
	border: 0;
}

.zeo-pridat .zeo-datum legend {
	padding: 0;
}

.zeo-datum__pole {
	display: grid;
	grid-template-columns: 70px 70px 100px;
	gap: 8px;
}

.zeo-datum__pole .zeo-hint {
	display: block;
	margin: 0 0 2px;
}

.zeo-datum__pole .zeo-input {
	text-align: center;
}

.zeo-row--uzke > .zeo-field {
	flex-basis: 150px;
}

/* Abecední přehled */
.zeo-az {
	--zeo-ink: #1b1f24;
	--zeo-muted: #6a737d;
	--zeo-line: #e3e5e8;
	--zeo-accent: #c8102e;
}

.zeo-az__pismena {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 24px;
}

.zeo-az__pismena a,
.zeo-az__pismena span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 6px;
	border: 1px solid var(--zeo-line);
	border-radius: 6px;
	font-weight: 700;
	text-decoration: none;
}

.zeo-az__pismena a {
	color: var(--zeo-ink);
	transition: color .15s, border-color .15s;
}

.zeo-az__pismena a:hover,
.zeo-az__pismena a:focus-visible {
	border-color: var(--zeo-accent);
	color: var(--zeo-accent);
}

.zeo-az__pismena span {
	color: #c4c9cf;
}

.zeo-az__pismeno {
	margin: 28px 0 8px;
	padding: 0 0 6px;
	border-bottom: 2px solid var(--zeo-ink);
	font-size: 24px;
	font-weight: 800;
}

.zeo-az__seznam {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 4px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.zeo-az__seznam li {
	margin: 0;
	padding: 6px 0;
	border-bottom: 1px solid var(--zeo-line);
}

.zeo-az__seznam a {
	font-weight: 700;
}

.zeo-az__meta {
	color: var(--zeo-muted);
	font-size: 14px;
}

.zeo-osoba .zeo-osoba__aktualizace {
	margin: 40px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid #e3e5e8;
	color: #6a737d;
	font-size: 14px;
}

.zeo-osoba__galerie {
	display: grid;
	padding-bottom: 24px; /* min. 24 px mezi popiskem a čárou pod galerií */
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
	margin: 28px 0 0;
}

.zeo-osoba__galerie-foto {
	margin: 0;
}

.zeo-osoba__galerie-foto img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
}

.zeo-osoba__galerie-foto figcaption {
	margin: 6px 0 0;
	color: #6a737d;
	font-size: 13px;
	line-height: 1.4;
}

/* Tlačítko „Přidat osobnost“ pod profilem (stojí samo, mimo rámeček návrhů) */
.zeo-osoba .zeo-pridat-odkaz {
	clear: both;
	margin: 24px 0 32px;
}

.zeo-osoba .zeo-pridat-odkaz .zeo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 24px;
	border-radius: 6px;
	border: 0;
	box-shadow: none;
	background: #c8102e;
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .15s;
}

.zeo-osoba .zeo-pridat-odkaz .zeo-btn:hover,
.zeo-osoba .zeo-pridat-odkaz .zeo-btn:focus-visible {
	background: #a50d26;
	color: #fff;
	/* při najetí se mění jen barva, nic se neposouvá */
	border: 0;
	box-shadow: none;
	transform: none;
	text-decoration: none;
}
