/* ACJC Content - tabulky, vypisy clanku, strankovani */

.acjc-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 0 0 1.75rem;
}

table.acjc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
	background: #fff;
}

table.acjc-table th,
table.acjc-table td {
	padding: 0.7rem 0.9rem;
	text-align: left;
	border-bottom: 1px solid #e4e7eb;
	vertical-align: top;
}

table.acjc-table thead th {
	background: #f4f6f8;
	font-weight: 700;
	white-space: nowrap;
	border-bottom-width: 2px;
}

table.acjc-table tbody th {
	font-weight: 600;
}

table.acjc-table tbody tr:last-child th,
table.acjc-table tbody tr:last-child td {
	border-bottom: 0;
}

/* Na uzkych displejich se kazdy radek zlomi do dvojic popisek/hodnota. */
@media (max-width: 640px) {
	table.acjc-table,
	table.acjc-table tbody,
	table.acjc-table tr,
	table.acjc-table th,
	table.acjc-table td {
		display: block;
		width: auto;
	}

	table.acjc-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}

	table.acjc-table tbody tr {
		border: 1px solid #e4e7eb;
		border-radius: 6px;
		margin-bottom: 0.9rem;
		padding: 0.4rem 0.2rem;
	}

	table.acjc-table tbody th,
	table.acjc-table tbody td {
		border-bottom: 0;
		padding: 0.4rem 0.9rem;
	}

	table.acjc-table tbody th {
		font-size: 1.02rem;
		padding-bottom: 0.2rem;
	}

	table.acjc-table tbody td[data-label]::before {
		content: attr(data-label) ": ";
		font-weight: 600;
		color: #5a6472;
	}
}

/* Strankovani - nahrazuje Pagination Styler */
.acjc-pagination {
	margin: 2rem 0;
}

.acjc-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: center;
}

.acjc-pagination li {
	margin: 0;
}

.acjc-pagination a,
.acjc-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.6rem;
	border: 1px solid #d5dae1;
	border-radius: 4px;
	text-decoration: none;
	line-height: 1;
	color: inherit;
}

.acjc-pagination a:hover,
.acjc-pagination a:focus-visible {
	border-color: #0a7d3e;
	color: #0a7d3e;
}

.acjc-pagination .current {
	background: #0a7d3e;
	border-color: #0a7d3e;
	color: #fff;
	font-weight: 600;
}

.acjc-pagination .dots {
	border-color: transparent;
}

/* Vypis clanku */
.display-posts-listing {
	list-style: none;
	margin: 0;
	padding: 0;
}

.display-posts-listing .listing-item {
	margin: 0 0 1.6rem;
	padding: 0 0 1.6rem;
	border-bottom: 1px solid #e4e7eb;
}

.display-posts-listing .listing-item:last-child {
	border-bottom: 0;
}

.display-posts-listing .image {
	display: block;
	float: left;
	margin: 0 1.2rem 0.6rem 0;
	max-width: 40%;
}

.display-posts-listing .image img {
	display: block;
	height: auto;
	max-width: 100%;
	border-radius: 4px;
}

.display-posts-listing .title {
	display: block;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 0.35rem;
}

.display-posts-listing .date,
.display-posts-listing .author,
.display-posts-listing .tags {
	font-size: 0.86rem;
	color: #5a6472;
}

.display-posts-listing .excerpt {
	display: block;
	margin-top: 0.5rem;
}

.display-posts-listing .excerpt-dash {
	display: none;
}

.display-posts-listing .excerpt-more {
	display: inline-block;
	margin-top: 0.4rem;
	font-weight: 600;
}

.display-posts-listing .listing-item::after {
	content: "";
	display: table;
	clear: both;
}

@media (max-width: 640px) {
	.display-posts-listing .image {
		float: none;
		max-width: 100%;
		margin: 0 0 0.8rem;
	}
}
