/*
 * DoctorX AI-Friendly Content Blocks: small default styles.
 *
 * Every rule sits inside :where(), so it carries no weight: any rule in your theme wins.
 * Colours come from the text colour (currentColor) and light transparent tints, so the
 * blocks fit light and dark themes alike. To drop these styles entirely:
 *   add_filter( 'doctorx_content_blocks_load_styles', '__return_false' );
 */

/* Short summary */
:where(.drx-summary) {
	margin-block: 1.5em;
	padding: 0.85em 1.1em;
	border-inline-start: 0.25em solid currentColor;
	border-radius: 0 0.25em 0.25em 0;
	background: rgba(127, 127, 127, 0.08);
	line-height: 1.6;
}

/* Comparison table */
:where(.drx-comparison) {
	margin-block: 1.5em;
	max-width: 100%;
	overflow-x: auto;
}
:where(.drx-comparison__table) {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95em;
	line-height: 1.45;
}
:where(.drx-comparison__table caption) {
	caption-side: top;
	padding-bottom: 0.5em;
	font-weight: 600;
	text-align: start;
}
:where(.drx-comparison__table th, .drx-comparison__table td) {
	padding: 0.55em 0.8em;
	border: 1px solid rgba(127, 127, 127, 0.35);
	text-align: start;
	vertical-align: top;
}
:where(.drx-comparison__table thead th) {
	background: rgba(127, 127, 127, 0.12);
	font-weight: 600;
}
:where(.drx-comparison__table tbody th) {
	font-weight: 600;
}
:where(.drx-comparison__table tbody tr:nth-child(even)) {
	background: rgba(127, 127, 127, 0.04);
}

/* Breadcrumb trail */
:where(.drx-breadcrumb) {
	margin-block: 1em;
	font-size: 0.9em;
}
:where(.drx-breadcrumb ol) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25em 0;
	margin: 0;
	padding: 0;
	list-style: none;
}
:where(.drx-breadcrumb li) {
	display: inline-flex;
	align-items: center;
	margin: 0;
}
/* The separator is drawn, not written, so screen readers do not read it out. */
:where(.drx-breadcrumb li + li)::before {
	content: "";
	display: inline-block;
	width: 0.4em;
	height: 0.4em;
	margin: 0 0.6em;
	border-top: 1px solid currentColor;
	border-right: 1px solid currentColor;
	opacity: 0.6;
	transform: rotate(45deg);
}
:where(.drx-breadcrumb [aria-current="page"]) {
	font-weight: 600;
	text-decoration: none;
}

/* Shown only to people who can edit, when a block's content needs fixing. */
:where(.drx-content-blocks-notice) {
	padding: 0.6em 0.9em;
	border: 1px dashed #b32d2e;
	color: #b32d2e;
	background: #fff;
	font-size: 0.9em;
}
