/* Blok - celý prvek */
.blok {
	margin-bottom: 1.5em;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
	overflow: visible;
	border: 1px solid #e0e0e0;
}

/* Skrytý toggle input */
.blok input.toggle {
	display: none;
}

/* Hlavička / záhlaví (label) */
.blok label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: linear-gradient(180deg, #d9ead3 0%, #edf5e1 60%, #fafafa 100%);
	color: #2e2e2e;
	padding: 1em 1.25em;
	cursor: pointer;
	font-weight: 600;
	transition: background 0.3s ease, color 0.3s ease;
	border-radius: 8px;
	letter-spacing: 0.25px;
}

/* Hover + otevřený stav */
.blok input.toggle:checked ~ label, .blok label:hover {
	background: #5c8edc;
	color: #fff;
	border-radius: 8px 8px 0 0;
}
.blok label:hover { 
	background: #5c8edc;
	color: #fff;
	border-radius: 8px;
}

/* Symbol +/− */
.blok label .symbol::before {
	content: "+";
	background: #f1f1f1;
	color: #333;
	padding: 0 .6em;
	margin-left: 0.75em;
	border-radius: 5px;
	font-weight: normal;
	display: inline-block;
	transition: transform 0.3s ease;
	box-shadow: inset 0 0 2px rgba(0,0,0,0.1);
}

.blok input.toggle:checked ~ label .symbol::before {
	content: "−";
}

/* Rozbalený obsah */
.blok .obsah {
	height: 0;
	overflow: hidden;
	background: #ffffff;
	padding: 0 1.25em;
	border-top: 0px solid #ccc;
	transition: 0.4s ease;
	border-radius: 0 0 8px 8px;
	box-shadow: inset 0 1px 0 rgba(0,0,0,0.05);
	color: #444;
}

.blok input.toggle:checked ~ .obsah {
	border: 1px solid #e0e0e0;
	border-top: none;
	padding: 1.25em;
}

/* Drobnosti */
.blok .obsah .end {
	height: 2em;
}

.blok .obsah ul {
	padding-left: 1.25em;
}

.blok .obsah ol > li {
	padding-left: 0.5em;
	margin: 0.25em 0;
}

.blok .obsah ol > li::marker {
	font-weight: normal;
}

/* Gridový layout pro .box-posta */
.blok .obsah .box-posta {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr));
	grid-auto-rows: auto;
	gap: 1.5rem;
}

.blok .obsah .box-posta img {
	max-width: 100%;
	border-radius: 6px;
}

/* Mobilní zobrazení */
@media screen and (max-width: 900px) {
	.blok .obsah .blok .box-posta {
		display: flex;
		flex-direction: column;
		gap: 1rem;
	}
}


/*** ruční přepnutí light nebo dark režim  ***/
html[data-theme='dark'] .blok {
	background: #1e1e1e;
	border: 1px solid #444;
	box-shadow: 0 4px 10px rgba(255, 255, 255, 0.05);
}

html[data-theme='dark'] .blok label {
	background: linear-gradient(180deg, #2d2d2d 0%, #3a3a3a 60%, #444 100%);
	color: #e0e0e0;
}

html[data-theme='dark'] .blok input.toggle:checked ~ label,
html[data-theme='dark'] .blok label:hover {
	background: #5c8edc;
	color: #fff;
}

html[data-theme='dark'] .blok label .symbol::before {
	background: #2c2c2c;
	color: #ccc;
	box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.1);
}

html[data-theme='dark'] .blok .obsah {
	background: #1e1e1e;
	color: #ccc;
	border-top: 0px solid #555;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme='dark'] .blok input.toggle:checked ~ .obsah {
	border: 1px solid #444;
	border-top: none;
}

html[data-theme='dark'] .blok .obsah ol > li::marker {
  	color: #aaa;
}

html[data-theme='dark'] .blok .obsah .box-posta img {
	border-radius: 6px;
	box-shadow: 0 2px 6px rgba(255, 255, 255, 0.1);
}
