.wp-block-caltrout-species-score-table {
	--ct-species-concern-color: var(--wp--preset--color--ink-2);
}

.wp-block-caltrout-species-score-table table {
	border-collapse: collapse;
	width: 100%;
}

.wp-block-caltrout-species-score-table th,
.wp-block-caltrout-species-score-table td {
	border: 1px solid var(--wp--preset--color--line);
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	text-align: left;
	vertical-align: top;
}

.wp-block-caltrout-species-score-table thead {
	background: var(--wp--preset--color--ink-2);
	color: var(--wp--preset--color--white);
}

.wp-block-caltrout-species-score-table tfoot {
	background: var(--ct-species-concern-color);
	color: var(--wp--preset--color--white);
	font-weight: 700;
}

.wp-block-caltrout-species-score-table tfoot td {
	border-color: var(--ct-species-concern-color);
}

body.single-ct_species #Species-characteristics .wp-block-accordion-item:last-child,
.editor-styles-wrapper #Species-characteristics .wp-block-accordion-item:last-child {
	border-bottom-width: 0;
}

@media (max-width: 700px) {
	.wp-block-caltrout-species-score-table {
		overflow-x: visible;
	}

	.wp-block-caltrout-species-score-table table,
	.wp-block-caltrout-species-score-table tbody,
	.wp-block-caltrout-species-score-table tfoot {
		display: block;
		width: 100%;
	}

	.wp-block-caltrout-species-score-table thead {
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		height: 1px;
		overflow: hidden;
		position: absolute;
		white-space: nowrap;
		width: 1px;
	}

	.wp-block-caltrout-species-score-table tbody {
		display: grid;
		gap: var(--wp--preset--spacing--30);
	}

	.wp-block-caltrout-species-score-table tbody tr,
	.wp-block-caltrout-species-score-table tfoot tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.wp-block-caltrout-species-score-table tbody tr {
		border: 1px solid var(--wp--preset--color--line);
	}

	.wp-block-caltrout-species-score-table td {
		border: 0;
		display: block;
	}

	.wp-block-caltrout-species-score-table td::before {
		content: attr(data-label);
		display: block;
		font-size: var(--wp--preset--font-size--eyebrow);
		font-weight: 700;
		letter-spacing: 0.04em;
		margin-bottom: var(--wp--preset--spacing--20);
		text-transform: uppercase;
	}

	.wp-block-caltrout-species-score-table tbody td:nth-child(2) {
		font-size: var(--wp--preset--font-size--heading-3);
		font-weight: 700;
		text-align: right;
	}

	.wp-block-caltrout-species-score-table tbody td:nth-child(3),
	.wp-block-caltrout-species-score-table tfoot td:nth-child(3) {
		border-top: 1px solid var(--wp--preset--color--line);
		grid-column: 1 / -1;
	}

	.wp-block-caltrout-species-score-table tfoot {
		margin-top: var(--wp--preset--spacing--30);
	}

	.wp-block-caltrout-species-score-table tfoot td:nth-child(3) {
		border-color: rgb(255 255 255 / 35%);
	}
}

/* Trim 25% of a square species illustration's transparent canvas, split evenly
   above/below. This frame changes layout height as well as the visible crop. */
body.single-ct_species .wp-block-caltrout-species-hero .ct-species-hero-illustration {
    width: min(100%, var(--ct-species-illustration-width, 500px));
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
}
body.single-ct_species .wp-block-caltrout-species-hero .ct-species-hero-illustration > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
