/* PD Comparison Table – front end + editor */

.wp-block-table.is-style-pd-compare {
	--pd-text: #153832;          /* dark forest green */
	--pd-muted: #5F6D69;         /* header text */
	--pd-line: #ECE7E1;          /* row lines */
	--pd-header: #F8F6F4;        /* header row background */
	--pd-accent: #EB6014;        /* orange header */
	--pd-accent-soft: #FDF3EC;   /* peach column */
	--pd-yes: #2E8540;           /* green values */
	--pd-no: #C8381E;            /* red values */

	background: #FFFFFF;
	border-radius: 15px;
	overflow: auto;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
	margin: 0;
}

.wp-block-table.is-style-pd-compare table {
	width: 100%;
	min-width: 520px;
	border: 0 !important;
	border-collapse: collapse;
	margin: 0;
	font-size: 16px;
	background: transparent;
}

.wp-block-table.is-style-pd-compare thead,
.wp-block-table.is-style-pd-compare tfoot {
	border: 0 !important;
}

.wp-block-table.is-style-pd-compare th,
.wp-block-table.is-style-pd-compare td {
	border: 0 !important;
	border-bottom: 1px solid var(--pd-line) !important;
	padding: 26px 28px;
	text-align: center;
	vertical-align: middle;
	color: var(--pd-text);
	line-height: 1.35;
	background: transparent;
}

/* First column: labels, left aligned */
.wp-block-table.is-style-pd-compare th:first-child,
.wp-block-table.is-style-pd-compare td:first-child {
	text-align: left;
	width: 46%;
}

/* Header row */
.wp-block-table.is-style-pd-compare thead th {
	font-size: 15px;
	font-weight: 500;
	color: var(--pd-muted);
	background: var(--pd-header);
	height: 75px;
	padding-top: 0;
	padding-bottom: 0;
}

.wp-block-table.is-style-pd-compare thead th:first-child {
	font-size: 17px;
	font-weight: 600;
	color: var(--pd-text);
}

/* Highlighted last column */
.wp-block-table.is-style-pd-compare thead th:last-child {
	background: var(--pd-accent);
	color: #FFFFFF;
	font-weight: 600;
	border-bottom-color: var(--pd-accent) !important;
}

.wp-block-table.is-style-pd-compare tbody td:last-child {
	background: var(--pd-accent-soft);
}

.wp-block-table.is-style-pd-compare tbody tr:last-child td {
	border-bottom: 0 !important;
}

/* Auto-coloured values (set by the script) */
.wp-block-table.is-style-pd-compare td.pd-yes {
	color: var(--pd-yes);
	font-weight: 500;
}

.wp-block-table.is-style-pd-compare td.pd-no {
	color: var(--pd-no);
	font-weight: 500;
}

/* Caption, if the client adds one */
.wp-block-table.is-style-pd-compare figcaption {
	padding: 12px 28px;
	font-size: 13px;
	color: var(--pd-muted);
	margin: 0;
}

/* Mobile */
@media (max-width: 600px) {
	.wp-block-table.is-style-pd-compare table { font-size: 14px; }
	.wp-block-table.is-style-pd-compare th,
	.wp-block-table.is-style-pd-compare td { padding: 16px 14px; }
	.wp-block-table.is-style-pd-compare thead th:first-child { font-size: 15px; }
}
