.side-label {
	margin-bottom: .75em;
	font-size: var(--fs-md);
}

.amount-controls button[aria-pressed="true"] {
	border-color: var(--c-blue);
	background: var(--c-blue);
	color: var(--c-white);
}

.width-control {
	display: grid;
	gap: .35em;
}

.width-control output {
	justify-self: end;
	font-size: var(--fs-xs);
}

.width-control input {
	width: 100%;
}

.comparison-stage {
	--sample-card-width: 33em;
	overflow-x: auto;
	padding-bottom: .5em;
}

.sample-grid {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: var(--section-gap);
	width: max-content;
	min-width: 100%;
}

.sample-card {
	flex: 0 0 var(--sample-card-width);
	width: var(--sample-card-width);
	border: 1px solid var(--c-border);
	border-radius: var(--border-radius);
	background: var(--c-white);
	overflow: hidden;
}

.sample-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1em;
	padding: .8em 1em;
	border-bottom: 1px solid var(--c-border);
	background: var(--c-gray-light);
}

.sample-language {
	font-size: var(--fs-md);
	font-weight: 500;
}

.sample-code {
	display: block;
	margin-top: .15em;
	font-size: var(--fs-xs);
	font-weight: 400;
	color: rgba(0, 0, 0, .55);
}

.sample-stats {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: .25em .7em;
	font-size: var(--fs-xs);
}

.sample-stats div {
	display: flex;
	gap: .3em;
}

.sample-stats dt {
	color: rgba(0, 0, 0, .55);
}

.sample-copy {
	padding: 1.4em;
	font-family: system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.8;
	letter-spacing: normal;
}

.sample-title {
	margin-bottom: .35em;
	font-size: 1.35em;
	font-weight: 600;
	line-height: 1.35;
}

.sample-meta {
	margin-bottom: 1.5em;
	font-size: .75em;
	line-height: 1.5;
	color: rgba(0, 0, 0, .58);
}

.sample-copy p {
	margin-bottom: 1em;
	font-size: 1em;
	line-height: inherit;
	overflow-wrap: normal;
}

.sample-copy p:last-child {
	margin-bottom: 0;
}

.sample-copy [lang="en"] {
	font-style: normal;
	font-weight: 550;
}

.sample-copy-ui {
	padding: 1.2em;
	line-height: 1.5;
}

.sample-ui-title {
	margin-bottom: 1em;
	font-size: 1.2em;
	font-weight: 600;
	line-height: 1.35;
}

.sample-ui-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .8em;
}

.sample-ui-field {
	min-width: 0;
}

.sample-ui-label {
	display: block;
	margin-bottom: .35em;
	font-size: .75em;
	color: rgba(0, 0, 0, .62);
}

.sample-ui input,
.sample-ui select {
	box-sizing: border-box;
	width: 100%;
	min-height: 2.8em;
	padding: .55em .7em;
	border: 1px solid var(--c-border);
	border-radius: calc(var(--border-radius) * .6);
	background: var(--c-white);
	color: inherit;
	font: inherit;
}

.sample-ui-result {
	margin-top: 1.2em;
	padding-top: 1.2em;
	border-top: 1px solid var(--c-border);
}

.sample-ui-count {
	margin-bottom: .75em;
	font-size: .75em;
	color: rgba(0, 0, 0, .58);
}

.sample-ui-result-title {
	margin-bottom: .25em;
	font-size: 1.05em;
	font-weight: 600;
	line-height: 1.35;
}

.sample-ui-meta {
	margin-bottom: .8em;
	font-size: .75em;
	color: rgba(0, 0, 0, .58);
}

.sample-ui-description {
	margin: 0;
	line-height: 1.65;
}

.sample-ui-detail {
	margin: .8em 0 0;
	line-height: 1.65;
}

.sample-ui-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .55em;
	margin-top: 1em;
}

.sample-ui-action {
	min-height: 2.6em;
	padding: .5em .9em;
	border: 1px solid var(--c-border);
	border-radius: calc(var(--border-radius) * .6);
	background: var(--c-white);
	color: inherit;
	font: inherit;
}

.sample-ui-action-primary {
	border-color: var(--c-black);
	background: var(--c-black);
	color: var(--c-white);
}

.condition-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12em, 1fr));
	gap: 1px;
	border: 1px solid var(--c-border);
	background: var(--c-border);
}

.condition-grid > div {
	display: flex;
	justify-content: space-between;
	gap: 1em;
	padding: 1em;
	background: var(--c-white);
	font-size: var(--fs-md);
}

