/* NechEmpire Tools: HEX to CMYK and RGB converter. Builds on base.css. */

.net-tool .net-hexcmyk__small {
	font-size: 0.8125rem;
	color: var(--net-muted);
}

.net-tool .net-hexcmyk .net-row--4 {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.net-tool .net-hexcmyk .net-row--4 .net-input input,
.net-tool .net-hexcmyk .net-row--3 .net-input input {
	padding-left: 8px;
	padding-right: 4px;
}

.net-tool .net-hexcmyk .net-row--4 .net-unit {
	padding: 0 6px;
}

.net-tool .net-hexcmyk__hexrow {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 8px;
	align-items: stretch;
}

.net-tool .net-hexcmyk__picker {
	width: 56px;
	height: 100%;
	min-height: 46px;
	padding: 3px;
	border: 1px solid var(--net-line);
	border-radius: var(--net-radius-sm);
	background: var(--net-bg);
	cursor: pointer;
}

.net-tool .net-hexcmyk .net-unit--before {
	order: -1;
	border-left: 0;
	border-right: 1px solid var(--net-line);
}

.net-tool .net-hexcmyk input[name="hex"] {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	text-transform: lowercase;
}

/* The color itself, text in white or ink depending on how light it is. */
.net-tool .net-hexcmyk__swatch {
	padding: 26px 22px;
	border-radius: var(--net-radius);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
	color: #fff;
}

.net-tool .net-hexcmyk__swatch.is-light {
	color: #0b0521;
}

.net-tool .net-hexcmyk__big {
	margin: 0;
	font-size: clamp(1.8rem, 5vw, 2.4rem);
	font-weight: 700;
	letter-spacing: 0.02em;
}

.net-tool .net-hexcmyk__sub {
	margin: 4px 0 0;
	font-size: 0.9375rem;
	opacity: 0.9;
}

.net-tool .net-hexcmyk__values dd {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.net-tool .net-hexcmyk__values code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.875rem;
	background: none;
	padding: 0;
	color: var(--net-ink);
}

.net-tool .net-hexcmyk__copy {
	margin: 0;
	padding: 3px 10px;
	border: 1px solid var(--net-line);
	border-radius: 999px;
	background: var(--net-bg);
	color: var(--net-ink);
	font: 500 0.75rem/1.4 var(--net-sans);
	cursor: pointer;
	box-shadow: none;
}

.net-tool .net-hexcmyk__copy:hover,
.net-tool .net-hexcmyk__copy:focus-visible {
	border-color: var(--net-primary);
	background: var(--net-paper);
	color: var(--net-ink);
}

.net-tool .net-hexcmyk__warn {
	margin-top: 14px;
	padding: 14px 16px;
	border-radius: var(--net-radius-sm);
	background: var(--net-paper);
	font-size: 0.9375rem;
}

.net-tool .net-hexcmyk__warn p {
	margin: 0 0 8px;
}

.net-tool .net-hexcmyk__warntitle {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: var(--net-ink);
}

.net-tool .net-hexcmyk__pair {
	display: flex;
	align-items: center;
	gap: 10px;
}

.net-tool .net-hexcmyk__pair small {
	display: block;
	font-size: 0.75rem;
	color: var(--net-muted);
}

.net-tool .net-hexcmyk__chip {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.net-tool .net-hexcmyk__arrow {
	color: var(--net-muted);
}

.net-tool .net-hexcmyk__use {
	margin: 10px 0 0 !important;
}

.net-tool .net-hexcmyk__use .net-btn {
	min-height: 38px;
	padding: 6px 14px;
}

.net-tool .net-hexcmyk__dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 8px;
	border-radius: 3px;
	vertical-align: -1px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}
