/**
 * _tables.css — the kit's tables: striped by default (a navy header, tint on every other row), and Bordered.
 * Owns: the Table block (.wp-block-table) and .is-style-rl-bordered.
 * Doesn't own: Gravity Forms' list fields, any table a plugin draws.
 * Depends on: global/_tokens.css. Core draws 1px cell borders and a 3px header rule; the .site-scoped doubled class
 * out-ranks them. Never core's Stripes style: the default already stripes.
 */
:is(.site, .editor-styles-wrapper) .wp-block-table.wp-block-table {
	overflow-x: auto;
}

:is(.site, .editor-styles-wrapper) .wp-block-table.wp-block-table table {
	width: 100%;
	min-width: 560px;
	border: 0;
	border-collapse: collapse;
	font-size: 16px;
	line-height: 26px;
}

:is(.site, .editor-styles-wrapper) .wp-block-table.wp-block-table :is(thead, tbody, tfoot) {
	border: 0;
}

:is(.site, .editor-styles-wrapper) .wp-block-table.wp-block-table :is(th, td) {
	padding: 14px 18px;
	border: 0;
	text-align: left;
}

:is(.site, .editor-styles-wrapper) .wp-block-table.wp-block-table th {
	background: var(--rl-color-brand);
	font-weight: 700;
	color: var(--rl-white);
}

/* The first column labels its row: 600 navy. */
:is(.site, .editor-styles-wrapper) .wp-block-table.wp-block-table tbody td:first-child {
	font-weight: 600;
	color: var(--rl-color-headings);
}

:is(.site, .editor-styles-wrapper) .wp-block-table.wp-block-table tbody tr:nth-child(even) td {
	background: var(--rl-color-tint);
}

/* Bordered: 1px on every cell, a tint header row with navy 700 text, no stripes. */
:is(.site, .editor-styles-wrapper) .wp-block-table.is-style-rl-bordered :is(th, td) {
	border: 1px solid var(--rl-color-border);
}

:is(.site, .editor-styles-wrapper) .wp-block-table.is-style-rl-bordered th {
	background: var(--rl-color-tint);
	color: var(--rl-color-headings);
}

:is(.site, .editor-styles-wrapper) .wp-block-table.is-style-rl-bordered tbody tr:nth-child(even) td {
	background: transparent;
}
