/**
 * D3 responsive blog tables.
 * Scoped only to the Elementor blog content wrapper: .d3blog.
 */

.d3blog {
	--d3-table-accent: #f37f25;
	--d3-table-accent-dark: #d96814;
	--d3-table-head: #191b1f;
	--d3-table-head-2: #282b30;
	--d3-table-line: #eadfd7;
	--d3-table-text: #191b1f;
	--d3-table-muted: #676b72;
	--d3-table-row-alt: #fffaf6;
}

.d3blog .d3-table-scroll {
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 24px 0 34px;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--d3-table-line);
	border-radius: 15px;
	background: #ffffff;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
	scrollbar-width: thin;
	scrollbar-color: var(--d3-table-accent) #f1f1f1;
}

.d3blog .d3-table-scroll:focus-visible {
	outline: 2px solid var(--d3-table-accent);
	outline-offset: 3px;
}

.d3blog .d3-table-scroll::-webkit-scrollbar {
	height: 7px;
}

.d3blog .d3-table-scroll::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.d3blog .d3-table-scroll::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: var(--d3-table-accent);
}

.d3blog figure.wp-block-table.d3-table-figure {
	width: 100%;
	max-width: 100%;
	margin: 24px 0 34px;
	overflow: visible;
}

.d3blog figure.wp-block-table.d3-table-figure > .d3-table-scroll {
	margin: 0;
}

.d3blog figure.wp-block-table.d3-table-figure figcaption {
	margin: 9px 4px 0;
	color: var(--d3-table-muted);
	font-size: 13px;
	line-height: 1.8;
	text-align: left;
}

.d3blog .d3-table-scroll > table.d3-blog-table {
	width: max-content !important;
	min-width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	border: 0 !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	table-layout: auto !important;
	direction: ltr;
	color: var(--d3-table-text) !important;
	background: transparent !important;
	font-size: 15px;
	font-variant-numeric: tabular-nums;
	line-height: 1.75;
}

.d3blog .d3-table-scroll > table.d3-blog-table th,
.d3blog .d3-table-scroll > table.d3-blog-table td {
	box-sizing: border-box;
	min-width: 145px;
	max-width: 320px;
	padding: 15px 17px !important;
	border: 0 !important;
	border-inline-end: 1px solid var(--d3-table-line) !important;
	border-bottom: 1px solid var(--d3-table-line) !important;
	color: inherit !important;
	background: transparent !important;
	text-align: center !important;
	vertical-align: middle !important;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: normal;
}

.d3blog .d3-table-scroll > table.d3-blog-table tr > :last-child {
	border-inline-end: 0 !important;
}

.d3blog .d3-table-scroll > table.d3-blog-table th > *,
.d3blog .d3-table-scroll > table.d3-blog-table td > * {
	text-align: center !important;
}

.d3blog .d3-table-scroll > table.d3-blog-table th > :first-child,
.d3blog .d3-table-scroll > table.d3-blog-table td > :first-child {
	margin-top: 0 !important;
}

.d3blog .d3-table-scroll > table.d3-blog-table th > :last-child,
.d3blog .d3-table-scroll > table.d3-blog-table td > :last-child {
	margin-bottom: 0 !important;
}

.d3blog .d3-table-scroll > table.d3-blog-table tbody:last-of-type > tr:last-child > * {
	border-bottom: 0 !important;
}

.d3blog .d3-table-scroll > table.d3-blog-table thead th,
.d3blog .d3-table-scroll > table.d3-blog-table.d3-table-assumed-head tbody:first-of-type > tr:first-child > td {
	padding-top: 16px !important;
	padding-bottom: 16px !important;
	color: #ffffff !important;
	background: linear-gradient(180deg, var(--d3-table-head), var(--d3-table-head-2)) !important;
	box-shadow: inset 0 -4px 0 var(--d3-table-accent) !important;
	font-weight: 800 !important;
	white-space: nowrap;
}

.d3blog .d3-table-scroll > table.d3-blog-table tbody tr:nth-child(even) > * {
	background: var(--d3-table-row-alt) !important;
}

.d3blog .d3-table-scroll > table.d3-blog-table tbody tr:hover > * {
	background: rgba(243, 127, 37, 0.09) !important;
}

.d3blog .d3-table-scroll > table.d3-blog-table.d3-table-assumed-head tbody:first-of-type > tr:first-child:hover > td {
	background: linear-gradient(180deg, var(--d3-table-head), var(--d3-table-head-2)) !important;
}

.d3blog .d3-table-scroll > table.d3-blog-table tbody td:first-child {
	color: #000000 !important;
	font-weight: 700;
}

.d3blog .d3-table-scroll > table.d3-blog-table caption {
	caption-side: bottom;
	padding: 12px 16px;
	color: var(--d3-table-muted);
	font-size: 13px;
	line-height: 1.8;
	text-align: left;
}

.d3blog .d3-table-scroll > table.d3-blog-table a {
	color: var(--d3-table-accent) !important;
	font-weight: 600;
	text-decoration: none;
}

.d3blog .d3-table-scroll > table.d3-blog-table a:hover {
	color: var(--d3-table-accent-dark) !important;
	text-decoration: underline;
}

@media (max-width: 767px) {
	.d3blog .d3-table-scroll,
	.d3blog figure.wp-block-table.d3-table-figure {
		margin-top: 18px;
		margin-bottom: 28px;
	}

	.d3blog .d3-table-scroll {
		border-radius: 12px;
		box-shadow: none;
	}

	.d3blog .d3-table-scroll > table.d3-blog-table {
		font-size: 14px;
	}

	.d3blog .d3-table-scroll > table.d3-blog-table th,
	.d3blog .d3-table-scroll > table.d3-blog-table td {
		min-width: 135px;
		max-width: 255px;
		padding: 13px 14px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.d3blog .d3-table-scroll {
		scroll-behavior: auto;
	}
}
