/* Approach comparison table — Figma 226:975. Rounded cells come from a separated table with 12px border-spacing;
   the negative margin keeps the outer cells flush with the content column. */
.wp-block-post-content > .scico-approach-compare { margin-block-start: 0; }

.scico-approach-compare { box-sizing: border-box; margin-block-start: 0; padding: 8px 96px 96px; background: #fff; }
.scico-approach-compare__inner { width: min(100%, var(--compare-contentWidth, 1040px)); margin-inline: auto; }
.scico-approach-compare__table { width: calc(100% + 24px); margin: -12px; border-collapse: separate; border-spacing: 12px; table-layout: fixed; direction: rtl; }

.scico-approach-compare__table th,
.scico-approach-compare__table td { box-sizing: border-box; height: 48px; padding: 0 16px; border: 0; border-radius: 10px; line-height: 1.4; vertical-align: middle; }
.scico-approach-compare__table thead th { color: #fff; font-size: var(--compare-headerSize, 16px); font-weight: var(--compare-headerWeight, 600); }
.scico-approach-compare__axis-head { background: var(--compare-axisHeaderColor, #4c504a); text-align: right; }
/* Service columns share 62.4% of the width, as the three 252px columns do in Figma; the axis column takes the rest. */
.scico-approach-compare__service { width: calc(62.4% / var(--compare-columns, 3)); background: var(--compare-column, #4c504a); text-align: center; }
.scico-approach-compare__axis { background: var(--compare-cellBackground, #f3efe5); color: var(--compare-textColor, #000); font-size: var(--compare-labelSize, 16px); font-weight: var(--compare-labelWeight, 600); text-align: right; }
.scico-approach-compare__cell { background: var(--compare-cellBackground, #f3efe5); text-align: center; }
.scico-approach-compare__dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--compare-dotColor, #000); vertical-align: middle; visibility: hidden; }
.scico-approach-compare__cell.is-on .scico-approach-compare__dot { visibility: visible; }

/* Editor: cells are toggle buttons; an empty cell shows a faint ring. */
.scico-approach-compare__toggle { display: flex; width: 100%; height: 100%; min-height: 48px; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
.scico-approach-compare--editor .scico-approach-compare__cell:not(.is-on) .scico-approach-compare__dot { visibility: visible; background: transparent; box-shadow: inset 0 0 0 1.5px rgb(0 0 0 / 22%); }

/* Hover: the whole row darkens a step and its dots grow slightly, so a row reads across the table. */
.scico-approach-compare tbody th,
.scico-approach-compare tbody td { transition: background-color 200ms ease; }
.scico-approach-compare__dot { transition: transform 200ms ease; }
@media (hover: hover) {
	.scico-approach-compare tbody tr:hover > th,
	.scico-approach-compare tbody tr:hover > td { background: color-mix(in srgb, var(--compare-cellBackground, #f3efe5) 95%, #000); }
	.scico-approach-compare tbody tr:hover .scico-approach-compare__dot { transform: scale(1.25); }
}
@media (prefers-reduced-motion: reduce) {
	.scico-approach-compare tbody th,
	.scico-approach-compare tbody td,
	.scico-approach-compare__dot { transition: none; }
}

@media (max-width: 1100px) {
	.scico-approach-compare { padding: 8px 32px 80px; }
}

@media (max-width: 760px) {
	.scico-approach-compare { padding: 0 16px 64px; }
	.scico-approach-compare__table { width: calc(100% + 12px); margin: -6px; border-spacing: 6px; }
	.scico-approach-compare__table th,
	.scico-approach-compare__table td { height: 44px; padding: 6px 8px; border-radius: 8px; }
	.scico-approach-compare__table thead th { font-size: min(var(--compare-headerSize, 16px), 13px); line-height: 1.3; }
	.scico-approach-compare__service { width: calc(64% / var(--compare-columns, 3)); }
	.scico-approach-compare__axis { font-size: min(var(--compare-labelSize, 16px), 14px); }
	.scico-approach-compare__dot { width: 10px; height: 10px; }
}
