/* ProClinic — price list page. The list is pasted into the editor as HTML:
   section.mcd-prices > .mcd-sec (h3 + table: code / service / price). */


/* The paste leaves an HTML comment and a &nbsp; paragraph above the list. */
.pc-prose > p:empty,
.pc-prose > p:has(+ .mcd-prices) {
	display: none;
}

.mcd-prices {
	display: grid;
	gap: 24px;
}

/* Section: a card with a tinted head. */
.mcd-sec {
	overflow: hidden;
	border: 1px solid var(--pc-line);
	border-radius: var(--pc-radius);
	background: #fff;
}

.mcd-sec h3 {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 18px 24px;
	background: var(--pc-accent-soft);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--pc-ink);
}

.mcd-sec h3::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--pc-accent);
}

.mcd-sec table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
}

.mcd-sec th {
	padding: 14px 24px 12px;
	text-align: left;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--pc-muted);
}

.mcd-sec td {
	padding: 14px 24px;
	border-top: 1px solid var(--pc-line);
	color: var(--pc-ink);
	vertical-align: top;
}

.mcd-sec tbody tr {
	transition: background-color 0.15s ease;
}

.mcd-sec tbody tr:hover {
	background: var(--pc-bg-soft);
}

/* Code */
.mcd-sec .mcd-c {
	width: 1%;
	padding-right: 8px;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.mcd-sec td.mcd-c {
	font-size: 13px;
	color: var(--pc-muted);
}

/* Price */
.mcd-sec .mcd-p {
	width: 1%;
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.mcd-sec td.mcd-p {
	font-weight: 600;
	color: var(--pc-accent-dark);
}

.mcd-empty {
	padding: 24px;
	border-radius: var(--pc-radius);
	background: var(--pc-bg-soft);
	text-align: center;
	color: var(--pc-muted);
}

/* Closing remark: the final cost is set by the doctor. */
.mcd-prices .mcd-note {
	margin: 0;
	padding: 18px 24px;
	border-left: 4px solid var(--pc-accent);
	border-radius: var(--pc-radius-sm);
	background: var(--pc-accent-soft);
	font-size: 15px;
	line-height: 1.6;
	color: var(--pc-ink);
}


/* ------------------------------ Responsive ------------------------------ */

@media (max-width: 1024px) {
	.mcd-prices {
		gap: 16px;
	}

	.mcd-sec h3 {
		padding: 16px 18px;
		font-size: 17px;
	}

	.mcd-sec th,
	.mcd-sec td {
		padding-left: 18px;
		padding-right: 18px;
	}

	.mcd-sec .mcd-c {
		padding-right: 4px;
	}
}

/* Phones: three columns do not fit, so each row becomes a small card —
   code on top, the service on the left, the price on the right. */
@media (max-width: 560px) {
	.mcd-sec h3 {
		padding: 14px 16px;
		font-size: 16px;
	}

	.mcd-sec thead {
		display: none;
	}

	.mcd-sec table,
	.mcd-sec tbody {
		display: block;
	}

	.mcd-sec tbody tr {
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"code  code"
			"name  price";
		column-gap: 16px;
		row-gap: 2px;
		padding: 12px 16px;
		border-top: 1px solid var(--pc-line);
	}

	.mcd-sec tbody tr:first-child {
		border-top: 0;
	}

	.mcd-sec td {
		display: block;
		width: auto;
		padding: 0;
		border: 0;
		font-size: 14px;
	}

	.mcd-sec td.mcd-c {
		grid-area: code;
		width: auto;
		padding: 0;
		font-size: 12px;
	}

	.mcd-sec td:not(.mcd-c):not(.mcd-p) {
		grid-area: name;
	}

	.mcd-sec td.mcd-p {
		grid-area: price;
		align-self: end;
		width: auto;
	}

	.mcd-prices .mcd-note {
		padding: 14px 16px;
		font-size: 14px;
	}
}
