/* EPI Utility Ties — matrix view. Scoped to .epi-utm so the theme is untouched.
   The grid itself is drawn on white, because it is also downloaded as an image. */
.epi-utm {
	--epi-utm-ink: #15161a;
	--epi-utm-slate: #5d5f66;
	--epi-utm-rule: #d9d9d0;
	--epi-utm-panel: #f5f4f0;
	--epi-utm-accent: #c96a00;
	color: var(--epi-utm-ink);
	margin: 2rem 0;
	font-size: 16px;
}

.epi-utm *,
.epi-utm *::before,
.epi-utm *::after { box-sizing: border-box; }

.epi-utm button,
.epi-utm input,
.epi-utm select { font: inherit; color: inherit; }

.epi-utm :focus-visible {
	outline: 3px solid var(--epi-utm-accent);
	outline-offset: 2px;
}

.epi-utm__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 14px 20px;
	padding: 16px 18px;
	background: var(--epi-utm-panel);
	border-radius: 5px;
}

.epi-utm__ctl { display: grid; gap: 5px; }

.epi-utm__ctl > span,
.epi-utm__downloads > span {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--epi-utm-slate);
}

.epi-utm select,
.epi-utm input[type="search"] {
	min-height: 38px;
	padding: 7px 10px;
	border: 1px solid var(--epi-utm-rule);
	border-radius: 4px;
	background: #fff;
	color: var(--epi-utm-ink);
}

.epi-utm input[type="search"] { width: min(260px, 70vw); }

.epi-utm__downloads {
	margin-left: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.epi-utm__downloads > span { width: 100%; }

.epi-utm__dl {
	min-height: 38px;
	padding: 8px 15px;
	border: 1px solid var(--epi-utm-ink);
	border-radius: 4px;
	background: transparent;
	font-weight: 600;
	cursor: pointer;
}

.epi-utm__dl:hover {
	background: var(--epi-utm-ink);
	color: #fff;
}

.epi-utm__readout {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	align-items: baseline;
	min-height: 26px;
	margin: 18px 0 8px;
	font-size: 14.5px;
	line-height: 1.4;
	color: var(--epi-utm-slate);
}

.epi-utm__readout b { color: var(--epi-utm-ink); font-weight: 600; }
.epi-utm__readout .epi-utm__tag { color: var(--epi-utm-accent); font-weight: 600; }

.epi-utm__sheet {
	overflow-x: auto;
	border: 1px solid var(--epi-utm-rule);
	border-radius: 5px;
	background: #fff;
	-webkit-overflow-scrolling: touch;
}

.epi-utm__sheet svg { display: block; }

.epi-utm__status {
	margin: 10px 0 0;
	min-height: 20px;
	font-size: 13.5px;
	color: var(--epi-utm-accent);
}

@media (max-width: 640px) {
	.epi-utm__downloads { margin-left: 0; }
}
