/**
 * ClinicianCore Comparison Blocks — single shared stylesheet.
 * Enqueued once via enqueue_block_assets (frontend + editor), never inline per post.
 *
 * TYPOGRAPHY RULE: no component hardcodes a font-family, and no child element hardcodes
 * a font-size or color. Each block root sets a base size/color in px; children size
 * themselves in em and inherit color. That is what lets the theme's / Elementor's global
 * font flow in, and lets the block's own Typography and Color panels (which write inline
 * styles on the block root) override the defaults without !important.
 *
 * Deviations from spec section 3, all required for the markup to render correctly:
 *   1. Header cell styles are scoped to `thead`. The spec's bare
 *      `.cc-cmp-table th:first-child{background:#1A365D;color:#fff}` also matched every
 *      `<th scope="row">`, painting all nine row labels navy.
 *   2. `.sr-only` and the callout bullet marker are added — the spec's `<li>` is
 *      `list-style:none` + flex, so with no marker the bullets disappeared.
 *   3. font-family: inherit replaces the hardcoded 'Albert Sans' stack, so global
 *      typography applies.
 */

/* -- shared ------------------------------------------------------------- */
.cc-cmp-sr-only,
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.cc-cmp-icon {
	flex: 0 0 auto;
	display: block;
}

/* -- 1. Key Takeaways ---------------------------------------------------- */
.cc-cmp-callout {
	background: #E9F6FB;
	border-left: 4px solid #0D98BA;
	border-radius: 14px;
	padding: 24px 28px;
	margin: 28px 0;
	font-family: inherit;
	font-size: 14.5px;
	color: #2D3748;
}

.cc-cmp-callout h2 {
	font-size: 1.24em;
	color: #1A365D;
	margin: 0 0 14px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.cc-cmp-callout ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cc-cmp-callout li {
	display: flex;
	gap: 10px;
	font-size: inherit;
	color: inherit;
	margin-bottom: 10px;
	line-height: 1.55;
}

.cc-cmp-callout li:last-child {
	margin-bottom: 0;
}

.cc-cmp-callout li::before {
	content: "\2022";
	color: #0D98BA;
	font-weight: 700;
	line-height: 1.55;
	flex: 0 0 auto;
}

/* -- 2. Comparison table ------------------------------------------------- */
.cc-cmp-table-wrap {
	overflow-x: auto;
	border-radius: 18px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
	border: 1px solid #E2E8F0;
	margin: 20px 0;
	clear: both;
}

.cc-cmp-intro {
	font-size: inherit;
	color: inherit;
	margin: 0 0 12px;
}

.cc-cmp-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	min-width: 640px;
	font-family: inherit;
	font-size: 13px;
	color: #4A5568;
}

.cc-cmp-table thead th {
	padding: 14px 16px;
	font-size: 1.04em;
	text-align: left;
	font-weight: 800;
}

.cc-cmp-table thead th:first-child {
	background: #1A365D;
	color: #fff;
	width: 24%;
}

.cc-cmp-table thead th.cc {
	background: #0D98BA;
	color: #fff;
}

.cc-cmp-table thead th.comp {
	background: #122A48;
	color: #fff;
}

.cc-cmp-table td {
	padding: 13px 16px;
	font-size: inherit;
	color: inherit;
	border-top: 1px solid #E2E8F0;
	vertical-align: top;
}

/* Row label cell — <th scope="row">, styled to match the spec's td:first-child. */
.cc-cmp-table tbody th {
	padding: 13px 16px;
	font-size: inherit;
	border-top: 1px solid #E2E8F0;
	vertical-align: top;
	text-align: left;
	font-weight: 700;
	color: #1A365D;
	background: #fff;
}

/* Icon + label wrapper. Flexing the <th> itself would drop the cell out of the
   table layout and break the column widths, hence the inner span. */
.cc-cmp-table tbody th .cc-cmp-row-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.cc-cmp-table tbody th .cc-cmp-icon {
	margin-top: 1px;
}

.cc-cmp-table td.cc {
	background: #EAF6FA;
	font-weight: 600;
	color: #1A365D;
}

.cc-cmp-disclaimer {
	font-size: 0.92em;
	color: #4A5568;
	font-style: italic;
	margin: 8px 0 0;
	font-family: inherit;
}

/* -- 3. Right Fit -------------------------------------------------------- */
.cc-cmp-fit {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin: 20px 0 8px;
	font-family: inherit;
	font-size: 13.5px;
	color: #4A5568;
	clear: both;
}

.cc-cmp-fit .card {
	border: 1px solid #E2E8F0;
	border-radius: 14px;
	padding: 22px;
}

.cc-cmp-fit .ic {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: #EAF6FA;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}

.cc-cmp-fit h3 {
	font-size: 1.15em;
	color: #1A365D;
	margin: 0 0 8px;
}

.cc-cmp-fit p {
	font-size: inherit;
	color: inherit;
	margin: 0;
}

.cc-cmp-fit p + p {
	margin-top: 10px;
}

/* -- 4. Highlight card --------------------------------------------------- */
.cc-cmp-aside {
	background: #E9F6FB;
	border-radius: 14px;
	padding: 20px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: #1A365D;
}

.cc-cmp-aside .ic {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
	margin-bottom: 12px;
}

/* Inherits weight/size/color from the card root, so the block's Typography and Color
   panels drive the text without needing a second control. */
.cc-cmp-aside p {
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
	margin: 0;
	line-height: 1.5;
}

/* -- 5. Feature Checklist -------------------------------------------------- */
.cc-cmp-checklist-wrap {
	overflow-x: auto;
	border-radius: 18px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
	border: 1px solid #E2E8F0;
	margin: 20px 0;
	clear: both;
}

.cc-cmp-checklist-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	min-width: 480px;
	font-family: inherit;
	font-size: 14px;
}

.cc-cmp-checklist-table th,
.cc-cmp-checklist-table td {
	text-align: left;
	vertical-align: middle;
}

.cc-cmp-checklist-table thead th {
	background: #1A365D;
	color: #fff;
	padding: 18px 24px;
	font-size: 1em;
	font-weight: 800;
}

.cc-cmp-checklist-th-status,
.cc-cmp-checklist-table td.cc-cmp-checklist-cell {
	text-align: center;
}

.cc-cmp-checklist-label {
	padding: 18px 24px;
	font-weight: 700;
	color: #1A365D;
	background: #fff;
	border-top: 1px solid #E2E8F0;
}

.cc-cmp-checklist-table tbody tr:first-child .cc-cmp-checklist-label,
.cc-cmp-checklist-table tbody tr:first-child .cc-cmp-checklist-cell {
	border-top: 0;
}

.cc-cmp-checklist-cell {
	padding: 18px 24px;
	border-top: 1px solid #E2E8F0;
}

.cc-cmp-checklist-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	box-sizing: border-box;
}

.cc-cmp-checklist-badge--yes {
	background: #0D98BA;
	border: 1.5px solid #0D98BA;
}

.cc-cmp-checklist-badge--yes svg {
	stroke: #fff;
}

.cc-cmp-checklist-badge--no {
	background: #fff;
	border: 1.5px solid #CBD5E0;
}

.cc-cmp-checklist-badge--no svg {
	stroke: #CBD5E0;
}

@media (max-width: 780px) {
	.cc-cmp-fit {
		grid-template-columns: 1fr;
	}
}

/* -- editor-only ---------------------------------------------------------
   Key Takeaways bullets are core/paragraph blocks inside the callout, so in the editor
   they arrive as <p> not <li>. These rules make the editing view read like the published
   bullet list without affecting frontend output. */
.cc-cmp-callout--editing .cc-cmp-callout__bullets > p {
	position: relative;
	padding-left: 20px;
	font-size: inherit;
	color: inherit;
	margin: 0 0 10px;
	line-height: 1.55;
}

.cc-cmp-callout--editing .cc-cmp-callout__bullets > p::before {
	content: "\2022";
	position: absolute;
	left: 0;
	color: #0D98BA;
	font-weight: 700;
}
