/* Golamac Training Classes — layout only; type and link colours come from the theme (Avada). */

.gmtc-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.gmtc-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5rem;
}

.gmtc-caption {
	text-align: left;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.gmtc-table th,
.gmtc-table td {
	text-align: left;
	vertical-align: top;
	padding: 0.75rem 0.75rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.gmtc-table thead th {
	font-weight: 700;
	border-bottom-width: 2px;
}

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

.gmtc-location-name {
	display: block;
	font-weight: 600;
}

.gmtc-register {
	white-space: nowrap;
}

.gmtc-table .gmtc-col-register {
	vertical-align: middle;
}

.gmtc-muted {
	opacity: 0.8;
}

/* Phones: each class becomes a labelled card. The ARIA roles in the markup keep
   it announced as a table even though the rows no longer lay out as one. */
@media (max-width: 700px) {
	.gmtc-table,
	.gmtc-table tbody,
	.gmtc-table tr,
	.gmtc-table th,
	.gmtc-table td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.gmtc-table thead tr {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.gmtc-table tbody tr {
		border: 1px solid rgba(0, 0, 0, 0.15);
		border-radius: 4px;
		margin: 0 0 1rem;
		padding: 0.25rem 0;
	}

	.gmtc-table tbody th,
	.gmtc-table tbody td {
		border: 0;
		padding: 0.4rem 1rem;
	}

	.gmtc-table tbody th[data-label]::before,
	.gmtc-table tbody td[data-label]::before {
		content: attr(data-label);
		content: attr(data-label) / ""; /* Empty alt text: screen readers already hear the column header. */
		display: block;
		font-size: 0.8em;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		opacity: 0.75;
	}
}
