/*--------------------------------------------------------------
# MCW Knowledge Base Index Grid
# Image + real text title below
--------------------------------------------------------------*/

.mcw-kb-index {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 34px 38px;
	align-items: start;
}

.mcw-kb-card {
	margin: 0;
	padding: 0;
	text-align: center;
}

.mcw-kb-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.mcw-kb-card-image-wrap {
	width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	overflow: visible;

	/*
	Optional border styling if MCW supplies plain images later.

	border: 2px solid #111111;
	background: #ffffff;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	*/
}

.mcw-kb-card-image {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;

	/*
	Use this with the optional bordered square image box above.

	width: 100%;
	height: 100%;
	object-fit: contain;
	*/
}

.mcw-kb-card-content {
	margin-top: 10px;
}

.mcw-kb-card-title {
	margin: 0;
	font-size: 15px;
	line-height: 1.25;
	font-weight: 700;
	color: #8da8d9;
}

.mcw-kb-card-link:hover .mcw-kb-card-title {
	color: #1e3264;
}

/*
Button text is currently hidden because this layout only uses:
- image
- title underneath

The ACF button field can be kept for future use or removed later.
*/
.mcw-kb-card-button {
	display: none;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/

@media (max-width: 980px) {
	.mcw-kb-index {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 28px;
	}
}

@media (max-width: 767px) {
	.mcw-kb-index {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px;
	}

	.mcw-kb-card-title {
		font-size: 14px;
	}
}

/*--------------------------------------------------------------
# MCW Knowledge Base Section Documents
--------------------------------------------------------------*/

.mcw-kb-documents {
	width: 100%;
}

.mcw-kb-section-intro,
.mcw-kb-access-notice {
	margin-bottom: 24px;
	font-size: 16px;
	line-height: 1.7;
	color: #1f2a44;
}

.mcw-kb-access-notice {
	padding: 18px 22px;
	background: #f6f8fc;
	border-left: 5px solid #8da8d9;
}

.mcw-kb-table-wrap {
	width: 100%;
	overflow-x: auto;
}

.mcw-kb-document-table {
	width: 100%;
	border-collapse: collapse;
	background: #f6ffff;
	border: 1px solid #111111;
}

.mcw-kb-document-table th,
.mcw-kb-document-table td {
	border: 1px solid #111111;
	padding: 12px 14px;
	vertical-align: middle;
	color: #1f2a44;
	font-size: 15px;
	line-height: 1.5;
}

.mcw-kb-document-table th {
	text-align: center;
	font-weight: 700;
	text-decoration: underline;
	background: #f6ffff;
}

.mcw-kb-document-table th span {
	font-weight: 400;
	text-decoration: none;
}

.mcw-kb-document-table td:first-child {
	width: 150px;
	text-align: center;
	white-space: nowrap;
}

.mcw-kb-document-table td:nth-child(2) {
	width: 360px;
	text-align: center;
}

.mcw-kb-document-table a {
	color: #0000ff;
	text-decoration: underline;
	font-style: italic;
}

.mcw-kb-empty {
	font-size: 16px;
	line-height: 1.6;
	color: #1f2a44;
}

/*--------------------------------------------------------------
# MCW Knowledge Base Document Table - Mobile
--------------------------------------------------------------*/

@media (max-width: 767px) {

	.mcw-kb-document-table,
	.mcw-kb-document-table thead,
	.mcw-kb-document-table tbody,
	.mcw-kb-document-table th,
	.mcw-kb-document-table td,
	.mcw-kb-document-table tr {
		display: block;
	}

	.mcw-kb-document-table thead {
		display: none;
	}

	.mcw-kb-document-table tr {
		margin-bottom: 16px;
		border: 1px solid #111111;
		background: #f6ffff;
	}

	.mcw-kb-document-table td {
		width: 100% !important;
		text-align: left !important;
		white-space: normal !important;
		border: 0;
		border-bottom: 1px solid #d8d8d8;
	}

	.mcw-kb-document-table td::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 4px;
		font-weight: 700;
		color: #1e3264;
	}

	.mcw-kb-document-table td:last-child {
		border-bottom: 0;
	}

}