/* The calculators added after the move from WordPress (LED resistor, transistor switch). They use
   the Conversion Tool plugin's classes from style.css; these rules are only what they add. */
.calc_inner.hobby-con {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	line-height: 1.3;
}
.calc-field-item.single {
	grid-template-columns: 1fr;
}
.calc-field-item.single select.selection {
	border-radius: 4px;
	background-color: #fff;
}
.hobby-con input.calc_input {
	min-width: 0;
}
.calc-results {
	margin-top: 20px;
	padding: 15px 18px;
	border-radius: 4px;
	background: #2d3142;
	color: #fff;
}
.calc-results dl {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, max-content);
	gap: 8px 15px;
	margin: 0;
	font-size: 15px;
}
.calc-results dt {
	font-weight: 400;
}
.calc-results dd {
	margin: 0;
	font-weight: 600;
	text-align: right;
}
.calc-error,
.calc-warning {
	margin-bottom: 12px;
	padding: 8px 10px;
	border-radius: 4px;
	font-size: 15px;
	background: #fbe3df;
	color: #8f2414;
}
.calc-warning {
	margin: 12px 0 0;
}
.calc-results.has-error dd {
	opacity: 0.4;
}
.hobby-con .output_diagram {
	width: 100%;
}
.calc-schematic {
	max-width: 440px;
	margin: auto;
}
@media only screen and (max-width: 768px) {
	.calc_inner.hobby-con {
		grid-template-columns: 1fr;
	}
	div.output_diagram svg.calc-schematic {
		height: auto !important;
	}
}
.calc-hint {
	margin: 0 0 15px;
	font-size: 15px;
	color: #555;
}
/* Ohm's law: the two values the calculator fills in */
.hobby-con input.calc_input.is-computed {
	background: #f4f4f4;
	font-weight: 600;
}
.hobby-con input.calc-code {
	height: 40px;
	border-radius: 4px;
	border-right: 1px solid #ddd;
	font-size: 16px;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.calc-field-item.with-remove {
	grid-template-columns: 1fr 65px 36px;
}
.calc-remove,
.calc-add {
	border: 1px solid #ccc;
	background: #fff;
	color: #2d3142;
	cursor: pointer;
	font-family: inherit;
}
.calc-remove {
	margin-left: 6px;
	border-radius: 4px;
	font-size: 18px;
	line-height: 1;
	padding: 0;
}
.calc-add {
	padding: 8px 14px;
	border-radius: 4px;
	font-size: 15px;
}
.calc-remove:hover,
.calc-add:hover {
	background: #f4f4f4;
}
.calc-remove[hidden],
.calc-add[hidden] {
	display: none;
}
.calc-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
}
.calc-section {
	margin: 0 0 12px;
	font-size: 18px;
}
.calc-results + .calc-section {
	margin-top: 25px;
}
.calc-capacitor-code .calc-schematic,
.calc-smd-resistor .calc-schematic {
	max-width: 200px;
}
