/**
 * Porównanie modeli — spójne z .erl-step1 / kartami kroku 1.
 * Szerokość +~20% względem kroku 1 (tylko ten shortcode, bez wpływu na kalkulator).
 */

.erl-models-compare.erl-step1 {
	--erl-inner-max: min(92vw, 64.8rem);
}

.erl-mc-lead {
	max-width: 48rem;
}

.erl-mc-actions {
	margin: -0.35rem 0 1.35rem;
}

.erl-mc-jump-full {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.55rem 1.15rem;
	font-size: 0.875rem;
	font-weight: 650;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none !important;
	border: 1px solid var(--erl-gold-border);
	border-radius: 0;
	background-color: var(--erl-gold);
	color: var(--erl-navy) !important;
	box-shadow: none;
	transition: background-color 0.15s ease;
}

.erl-mc-jump-full:hover {
	background-color: var(--erl-gold-hover);
	color: var(--erl-navy) !important;
}

.erl-mc-jump-full:focus-visible {
	outline: 2px solid var(--erl-navy);
	outline-offset: 2px;
}

.erl-models-compare .erl-mc-picker {
	margin-bottom: 1.25rem;
}

.erl-models-compare .erl-mc-model-select {
	max-width: 100%;
	font-size: 0.9rem;
	line-height: 1.35;
}

.erl-mc-panel[data-active='0'] .erl-mc-val--0,
.erl-mc-panel[data-active='1'] .erl-mc-val--1,
.erl-mc-panel[data-active='2'] .erl-mc-val--2,
.erl-mc-panel[data-active='3'] .erl-mc-val--3,
.erl-mc-panel[data-active='4'] .erl-mc-val--4 {
	display: block;
}

.erl-mc-panel .erl-mc-val {
	display: none;
	margin: 0;
	padding: 0;
	font-size: 0.9rem;
	line-height: 1.58;
	color: inherit;
	hyphens: auto;
	flex: 1 1 auto;
	min-height: 0;
}

.erl-mc-dl {
	margin: 0;
}

/* Siatka kryteriów — kilka kolumn, szerokość wypełniona (auto-fit + 1fr) */
.erl-mc-dl--grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
	gap: 1rem 1.15rem;
	align-items: stretch;
}

@media (min-width: 40rem) {
	.erl-mc-dl--grid {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.25rem), 1fr));
	}
}

@media (min-width: 52rem) {
	.erl-mc-dl--grid {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
		gap: 1.1rem 1.25rem;
	}
}

.erl-mc-dl__block {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	margin: 0;
	padding: 0.85rem 0.95rem 1rem;
	border: 1px solid var(--erl-border);
	border-radius: 10px;
	background: var(--erl-surface);
	box-sizing: border-box;
}

.erl-mc-dt {
	margin: 0 0 0.55rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--erl-border);
	font-size: 0.82rem;
	font-weight: 650;
	line-height: 1.42;
	opacity: 0.95;
	text-transform: none;
	letter-spacing: -0.01em;
}

.erl-mc-section {
	margin-bottom: 1.25rem;
}

.erl-mc-section--all {
	background: color-mix(in srgb, currentColor 4%, transparent);
}

/* Pełna tabela */
.erl-mc-table-details {
	margin-top: 1.5rem;
}

.erl-mc-table-summary {
	cursor: pointer;
	font-size: 1.02rem;
	font-weight: 650;
	padding: 0.15rem 0;
	list-style: none;
}

.erl-mc-table-summary::-webkit-details-marker {
	display: none;
}

.erl-mc-table-summary::before {
	content: '▸ ';
	opacity: 0.55;
}

details[open].erl-mc-table-details > .erl-mc-table-summary::before {
	content: '▾ ';
}

.erl-mc-table-scroll {
	overflow-x: auto;
	margin-top: 1rem;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--erl-border);
	border-radius: 10px;
	background: color-mix(in srgb, currentColor 3%, transparent);
}

.erl-mc-table {
	width: 100%;
	min-width: 62rem;
	border-collapse: collapse;
	font-size: 0.8rem;
	line-height: 1.48;
}

.erl-mc-table th,
.erl-mc-table td {
	border: 1px solid var(--erl-border);
	padding: 0.55rem 0.6rem;
	vertical-align: top;
	text-align: left;
	font-weight: 400;
}

.erl-mc-table thead th {
	background: color-mix(in srgb, currentColor 7%, transparent);
	font-weight: 650;
	font-size: 0.72rem;
}

.erl-mc-table__criterion {
	font-weight: 600;
	background: color-mix(in srgb, currentColor 5%, transparent);
	max-width: 11rem;
	min-width: 8rem;
}

.erl-mc-table__sep td {
	height: 0.65rem;
	padding: 0 !important;
	border: none !important;
	background: color-mix(in srgb, currentColor 10%, transparent);
}
