.wp-block-likidata-table,
.wp-block-likidata-chart {
	--ld-accent: #006b68;
	--ld-rule: #dce4e8;
	max-width: 100%;
	margin: 2em 0;
	color: #17212b;
	font-family: system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}
.ld-table-scroll {
	max-width: 100%;
	overflow-x: auto;
}
.ld-table-scroll:focus-visible {
	outline: 2px solid var(--ld-accent);
	outline-offset: 3px;
}
.ld-table {
	width: 100%;
	border-collapse: collapse;
}
.ld-table caption {
	text-align: left;
	font-size: 1.4em;
	font-weight: 750;
	padding: 0 0 16px;
}
.ld-table th,
.ld-table td {
	padding: 12px;
	border: 0;
	border-bottom: 1px solid var(--ld-rule);
	vertical-align: middle;
	text-align: left;
	min-width: 90px;
	overflow-wrap: anywhere;
}
.ld-table thead th {
	border-bottom: 2px solid #17212b;
	font-weight: 700;
}
.ld-table .ld-number {
	text-align: right;
	font-variant-numeric: tabular-nums;
}
.ld-cell {
	display: flex;
	align-items: center;
	gap: 10px;
	white-space: pre-wrap;
}
.ld-number .ld-cell {
	justify-content: flex-end;
}
.ld-cell.ld-above {
	flex-direction: column;
	align-items: flex-start;
}
.ld-cell img {
	flex-shrink: 0;
	max-width: 160px;
	margin: 0;
	object-fit: contain;
}
.ld-cell a {
	color: inherit !important;
	text-decoration: underline;
}
.ld-cell a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}
.ld-bar {
	display: block;
	position: relative;
	margin-top: 7px;
	height: 6px;
	background: transparent;
	outline: 1px solid currentColor;
}
.ld-bar > span {
	position: absolute;
	top: 0;
	bottom: 0;
	background: currentColor;
}
.ld-source {
	font-size: 0.8em;
	color: #4a5560;
	margin: 8px 0;
}
.ld-summary {
	margin: 16px 0;
	white-space: pre-wrap;
}
.ld-chart-title {
	font-size: 1.4em;
	font-weight: 750;
	margin: 0 0 12px;
}
.ld-chart-svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}
.ld-chart-svg text {
	font-family: system-ui, sans-serif;
	fill: #33414d;
	font-size: 13px;
}
.ld-chart-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 12px 0;
	font-size: 0.85em;
}
.ld-chart-legend span {
	display: inline-flex;
	gap: 6px;
	align-items: center;
}
.ld-chart-legend i {
	width: 12px;
	height: 12px;
	display: inline-block;
	border: 1px solid #33414d;
}
.ld-chart-data {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.ld-error {
	border-left: 3px solid #a82020;
	padding: 12px;
}
.ld-annotations {
	font-size: 0.9em;
}
.ld-chart-scroll {
	overflow-x: auto;
}
.ld-chart-scroll .ld-chart-svg {
	min-width: 500px;
}
@media (max-width: 500px) {
	.ld-table th,
	.ld-table td {
		padding: 10px 8px;
	}
	.ld-chart-svg text {
		font-size: 16px;
	}
	.ld-chart-svg {
		min-width: 320px;
	}
}

/* Compact table type and provenance, on the site and in editor previews. */
.wp-block-likidata-table .ld-table,
.wp-block-likidata-chart .ld-table {
	font-size: 14px;
}
.wp-block-likidata-table .ld-source,
.wp-block-likidata-chart .ld-source {
	font-size: 10px;
	line-height: 1.4;
	margin: 4px 0;
}
.wp-block-likidata-table .ld-table-scroll + .ld-source,
.wp-block-likidata-chart .ld-chart-legend + .ld-source {
	border-top: 1px solid #dce4e8;
	padding-top: 8px;
	margin-top: 8px;
}
