.irac-taxonomy-references {
	box-sizing: border-box;
	color: var(--wp--preset--color--body-text, #38423a);
	margin: 2rem auto 0;
	max-width: var(--wp--style--global--wide-size, 1440px);
	padding-inline: var(--wp--style--root--padding-left, 1.5rem) var(--wp--style--root--padding-right, 1.5rem);
}

.irac-taxonomy-references h2 {
	color: var(--wp--preset--color--primary, #34a047);
	font-size: var(--wp--preset--font-size--x-large, 24px);
	font-weight: 400;
	line-height: 1.2;
	margin: 0 0 1rem;
	text-transform: none;
}

.irac-taxonomy-references__table-wrap {
	margin-block-start: 1.5rem;
	overflow-x: auto;
}

.irac-taxonomy-references table {
	border-collapse: collapse;
	min-width: 48rem;
	width: 100%;
}

.irac-taxonomy-references th,
.irac-taxonomy-references td {
	border-bottom: 1px solid var(--wp--preset--color--border, #aab6ac);
	padding: 0.85rem;
	text-align: left;
	vertical-align: top;
}

.irac-taxonomy-references th {
	background: var(--wp--preset--color--white, #fff);
	border-top: 1px solid var(--wp--preset--color--border, #aab6ac);
	color: var(--wp--preset--color--primary, #34a047);
	font-size: 0.9rem;
}

.irac-taxonomy-references__sort {
	align-items: center;
	appearance: none;
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 700;
	gap: 0.45rem;
	padding: 0;
	text-align: left;
}

.irac-taxonomy-references__sort-icon {
	align-items: center;
	display: inline-flex;
	flex-direction: column;
	gap: 1px;
	height: 0.9rem;
	justify-content: center;
	width: 0.55rem;
}

.irac-taxonomy-references__sort-icon::before,
.irac-taxonomy-references__sort-icon::after {
	border-inline: 0.25rem solid transparent;
	content: "";
	display: block;
	height: 0;
	width: 0;
}

.irac-taxonomy-references__sort-icon::before {
	border-bottom: 0.32rem solid currentColor;
}

.irac-taxonomy-references__sort-icon::after {
	border-top: 0.32rem solid currentColor;
}

.irac-taxonomy-references td span {
	display: block;
	font-size: var(--wp--preset--font-size--small, 16px);
	margin-block-start: 0.2rem;
}

@media (max-width: 640px) {
	.irac-taxonomy-references {
		padding-inline: 1rem;
	}

	.irac-taxonomy-references table,
	.irac-taxonomy-references thead,
	.irac-taxonomy-references tbody,
	.irac-taxonomy-references th,
	.irac-taxonomy-references td,
	.irac-taxonomy-references tr {
		display: block;
		min-width: 0;
	}

	.irac-taxonomy-references thead {
		display: none;
	}

	.irac-taxonomy-references tr {
		border: 1px solid var(--wp--preset--color--border, #aab6ac);
		border-radius: 8px;
		margin-block-end: 1rem;
		overflow: hidden;
	}

	.irac-taxonomy-references td {
		border: 0;
		padding: 0.75rem 1rem;
	}

	.irac-taxonomy-references td::before {
		color: var(--wp--preset--color--primary-dark, #267735);
		content: attr(data-label);
		display: block;
		font-size: 0.8rem;
		font-weight: 700;
		margin-block-end: 0.2rem;
		text-transform: uppercase;
	}
}
