/* Free WordPress Plugins Directory — inherits the theme table and
   .app-container styling (light and .dark-skin), like the Top Apps tables. */
.mtz-dk-plugins-wrap .mtz-app-body {
	padding: 18px 20px;
}

.mtz-dk-plugins-figure {
	margin: 0 !important;
}

.mtz-dk-plugins-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.mtz-dk-plugins-table {
	width: 100%;
	min-width: 0;
	margin: 0 !important;
	border-collapse: collapse;
	table-layout: fixed;
}

.mtz-dk-plugins-table caption {
	caption-side: bottom;
	padding: 8px 4px 0;
	font-size: 0.85em;
	font-style: italic;
	text-align: right;
	color: inherit;
	opacity: 0.78;
}

/* Table text matches the other app tables (theme $font-size-small, 12px). */
.mtz-dk-plugins-table th,
.mtz-dk-plugins-table td,
.mtz-dk-plugins-table th *,
.mtz-dk-plugins-table td * {
	font-size: 12px;
}

.mtz-dk-plugins-table th,
.mtz-dk-plugins-table td {
	vertical-align: middle;
	padding: 9px 10px;
}

.mtz-dk-plugins-table .col-icon {
	width: 76px;
	text-align: center;
}

.mtz-dk-plugins-table .col-plugin {
	width: 30%;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.mtz-dk-plugins-table .col-desc {
	overflow-wrap: anywhere;
	word-wrap: break-word;
}

.mtz-dk-plugins-link {
	font-weight: 600;
	line-height: 1.35;
}

.mtz-dk-plugins-icon-link {
	display: inline-block;
	line-height: 0;
	text-decoration: none;
}

.mtz-dk-plugins-icon {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 12px;
	object-fit: cover;
}

/* No icon in the repository: a neutral tile that works in light and dark. */
.mtz-dk-plugins-icon--none {
	background: currentColor;
	opacity: 0.12;
}

/* Mobile: same three columns as desktop; the table keeps a readable width and
   scrolls sideways inside .mtz-app-scroll-hint (fade plus "Swipe →" pill).
   The theme sets `.wp-block-table, .wp-block-table table { overflow: hidden }`
   for rounded corners, which would clip the wider table, so override it on
   this figure only. */
@media (max-width: 600px) {
	.mtz-dk-plugins-wrap .mtz-app-body {
		padding: 14px 10px;
	}

	.wp-block-table.mtz-dk-plugins-figure {
		overflow: visible;
		max-width: 100%;
	}

	.wp-block-table.mtz-dk-plugins-figure table {
		overflow: visible;
		max-width: none;
	}

	.mtz-dk-plugins-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
		max-width: 100%;
	}

	.mtz-dk-plugins-table {
		min-width: 560px;
		width: 560px;
		max-width: none;
		table-layout: fixed;
	}

	.mtz-dk-plugins-table th,
	.mtz-dk-plugins-table td {
		padding: 8px 8px;
	}

	.mtz-dk-plugins-table .col-icon {
		width: 64px;
	}

	.mtz-dk-plugins-table .col-plugin {
		width: 36%;
	}

	.mtz-dk-plugins-icon {
		width: 48px;
		height: 48px;
	}
}
