/* =========================================================================
   ZŠ a MŠ – Dokumenty (frontend)
   Mřížka odkazů s ikonou souboru. Barvy, velikosti a mezery řídí Elementor
   style controls; tady je jen struktura a rozumné výchozí hodnoty.
   ========================================================================= */

.zsms-dok,
.zsms-dok * {
	box-sizing: border-box;
}

.zsms-dok__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 40px;
	row-gap: 32px;
	align-items: start;
}

/* ---------- Jedna položka (ikona + název) ---------- */
.zsms-dok__item {
	display: flex;
	align-items: center;
	gap: 18px;
	text-decoration: none;
	color: inherit;
	transition: transform 0.15s ease;
}

.zsms-dok__item:hover {
	transform: translateX(2px);
}

/* ---------- Ikona souboru ---------- */
.zsms-dok__icon {
	position: relative;
	flex: 0 0 auto;
	width: 48px;
	color: #a5657f;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.zsms-dok__icon svg {
	display: block;
	width: 100%;
	height: auto;
}

.zsms-dok__icon-label {
	position: absolute;
	bottom: 22%;
	left: 0;
	right: 0;
	text-align: center;
	font-size: 0.62em;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	color: currentColor;
	pointer-events: none;
}

/* ---------- Text odkazu ---------- */
.zsms-dok__link {
	color: #a5657f;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	line-height: 1.3;
	transition: color 0.15s ease;
}

.zsms-dok__item:hover .zsms-dok__link {
	color: #7c4459;
}

/* ---------- Tlačítko „Zobrazit vše" ---------- */
.zsms-dok__more-wrap {
	display: flex;
	justify-content: flex-start;
	margin-top: 40px;
}

.zsms-dok__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	background-color: #a5657f;
	color: #fff;
	border-radius: 40px;
	text-decoration: none;
	font-weight: 700;
	line-height: 1;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.zsms-dok__more:hover {
	background-color: #7c4459;
	transform: translateY(-1px);
}

.zsms-dok__more-arrow {
	font-size: 1.2em;
	line-height: 1;
}

/* ---------- Prázdný stav (editor) ---------- */
.zsms-dok__empty {
	margin: 0;
	padding: 16px 20px;
	background: #f6f7f7;
	border: 1px dashed #c9ced3;
	border-radius: 10px;
	color: #50575e;
}

/* ---------- Responzivita: jistota jednoho sloupce na malých displejích ---------- */
@media (max-width: 480px) {
	.zsms-dok__grid {
		grid-template-columns: 1fr;
	}
}
