/* WYSIWYG / prose tables — tokens: colors.css (:root).
 * This theme uses #resource-details > article (single.php), not .entry-content. */

#resource-details article table,
.main-body article table,
.rh-table {
	width: 100%;
	max-width: 100%;
	margin-bottom: 1.5rem;
	border-collapse: collapse;
	font-size: var(--rh-font-size-table);
	background-color: var(--rh-pale-blue);
	border: 1px solid var(--navy-blue);
}

#resource-details article table th,
#resource-details article table td,
.main-body article table th,
.main-body article table td,
.rh-table th,
.rh-table td {
	padding: var(--rh-space-half);
	font-size: var(--rh-font-size-table);
	vertical-align: top;
	border: 1px solid var(--navy-blue);
	border-radius: 1rem;
}

/* Optional BEM modifiers (class on <table>) */
.rh-table--border {
	border-width: 2px;
}

.rh-table--border th,
.rh-table--border td {
	border-width: 1px;
}

.rh-table--inset {
	background-color: color-mix(in srgb, var(--rh-pale-blue) 92%, var(--navy-blue));
	border-radius: 4px;
	overflow: hidden;
}

.rh-table--inset th,
.rh-table--inset td {
	border-color: color-mix(in srgb, var(--navy-blue) 35%, transparent);
}

.rh-table__cell--numeric {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

tr.rh-table__row--head th,
tr.rh-table__row--head td {
	font-weight: 600;
	background-color: color-mix(in srgb, var(--rh-pale-blue) 70%, var(--navy-blue));
}
