/* =========================================================================
 * Module: Resource Section (downloadable resources table)
 * Auto-loaded on pages that use the `resource_section` layout.
 * ====================================================================== */

.resource-table-wrap {
	overflow-x: auto;
	border-radius: 12px;
	box-shadow: 0 4px 18px rgba(15, 31, 65, 0.08);
}

.resource-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	font-family: var(--fuchs-font, 'Montserrat', sans-serif);
}

.resource-table thead th {
	background: var(--fuchs-dark-blue, #0f1f41);
	color: #fff;
	font-size: 1rem;
	font-weight: var(--fuchs-fw-semibold, 600);
	text-align: left;
	padding: 16px 24px;
	white-space: nowrap;
}
.resource-table thead .resource-col-dl {
	text-align: center;
	width: 140px;
}

.resource-table tbody td {
	padding: 6px 24px;
	border-top: 1px solid var(--fuchs-primary-100, #d0dfee);
	vertical-align: middle;
}

.resource-row:hover {
	background: rgba(18, 96, 169, 0.04);
}

.resource-name {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 1.05rem;
	font-weight: var(--fuchs-fw-medium, 500);
	color: var(--fuchs-dark-blue, #0f1f41);
}
.resource-name-icon {
	color: var(--fuchs-primary, #1260a9);
	font-size: 1.3rem;
	flex-shrink: 0;
}

.resource-dl {
	text-align: center;
}
.resource-dl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--fuchs-primary-100, #d0dfee);
	color: var(--fuchs-primary, #1260a9);
	font-size: 1.2rem;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.resource-dl-btn:hover,
.resource-dl-btn:focus-visible {
	background: var(--fuchs-primary, #1260a9);
	color: #fff;
	transform: translateY(-2px);
}

@media (max-width: 575.98px) {
	.resource-table thead th,
	.resource-table tbody td {
		padding: 14px 16px;
	}
	.resource-name {
		font-size: 0.98rem;
	}
}
