/*
 * CryptoLiveLeak Assets — Networks panel (2.13.0)
 * Inherits the page tokens set on .cll-asset-page (--cll-asset-*), so per-Asset
 * accent colours carry through. Numbers are tabular throughout; addresses are mono.
 */

.cll-net {
	--net-line: var(--cll-asset-border, rgba(255, 255, 255, 0.12));
	--net-soft: rgba(255, 255, 255, 0.045);
	--net-muted: var(--cll-asset-muted, #9da7b2);
	--net-text: var(--cll-asset-text, #f4f6f8);
	--net-up: var(--cll-asset-green, #31d27c);
	--net-down: var(--cll-asset-red, #ff5c6c);
	--net-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
	display: grid;
	gap: 18px;
	font-variant-numeric: tabular-nums;
}

.cll-net__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px 16px;
}

.cll-net__eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cll-asset-accent, #f4b400);
	margin-bottom: 4px;
}

.cll-net__head h2 {
	margin: 0;
	font-size: clamp(20px, 2.2vw, 26px);
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--net-text);
}

.cll-net__fresh {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12px;
	color: var(--net-muted);
}

.cll-net__fresh i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--net-up);
	box-shadow: 0 0 0 3px rgba(49, 210, 124, 0.18);
}

@media (prefers-reduced-motion: no-preference) {
	.cll-net__fresh i { animation: cll-net-pulse 2.4s ease-in-out infinite; }
	@keyframes cll-net-pulse { 50% { box-shadow: 0 0 0 6px rgba(49, 210, 124, 0); } }
}

/* ---------- KPI strip ---------- */

.cll-net__kpis {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	margin: 0;
	border: 1px solid var(--net-line);
	border-radius: var(--cll-asset-radius, 8px);
	overflow: hidden;
}

.cll-net__kpis > div {
	padding: 12px 14px;
	border-right: 1px solid var(--net-line);
	min-width: 0;
}

.cll-net__kpis > div:last-child { border-right: 0; }

.cll-net__kpis dt {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--net-muted);
	margin: 0 0 4px;
	white-space: nowrap;
}

.cll-net__kpis dt abbr {
	text-decoration: none;
	border-bottom: 1px dotted currentColor;
	cursor: help;
}

.cll-net__kpis dd {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: var(--net-text);
	display: flex;
	align-items: center;
	gap: 7px;
	white-space: nowrap;
}

.cll-net__kpis dd small { font-size: 11px; font-weight: 500; color: var(--net-muted); }
.cll-net__kpis dd.is-warn { color: var(--cll-asset-accent, #f4b400); }

.cll-net__dot {
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	border-radius: 2px;
	background: var(--c);
}

/* ---------- Distribution ---------- */

.cll-net__dist { margin: 0; display: grid; gap: 9px; }

.cll-net__dist figcaption {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 12px;
	font-weight: 600;
	color: var(--net-muted);
}

.cll-net__dist figcaption span { font-weight: 500; }

.cll-net__bar {
	display: flex;
	height: 12px;
	border-radius: 3px;
	overflow: hidden;
	background: var(--net-soft);
	gap: 2px;
}

.cll-net__bar span {
	flex: 0 0 var(--w);
	background: var(--c);
	min-width: 3px;
}

.cll-net__legend {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	font-size: 12.5px;
	color: var(--net-muted);
}

.cll-net__legend li { display: inline-flex; align-items: center; gap: 6px; }
.cll-net__legend b { color: var(--net-text); font-weight: 700; }
.cll-net__legend em { font-style: normal; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Table ---------- */

.cll-net__tablewrap { overflow-x: auto; margin: 0 -2px; }

.cll-net__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
	color: var(--net-text);
}

.cll-net__table thead th {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--net-muted);
	text-align: left;
	padding: 0 12px 9px;
	border-bottom: 1px solid var(--net-line);
	white-space: nowrap;
}

.cll-net__table td,
.cll-net__table tbody th {
	padding: 12px;
	border-bottom: 1px solid var(--net-line);
	text-align: left;
	vertical-align: middle;
	font-weight: 500;
}

.cll-net__table tbody tr:last-child td,
.cll-net__table tbody tr:last-child th { border-bottom: 0; }

.cll-net__table tbody tr.is-primary { background: linear-gradient(90deg, rgba(244, 180, 0, 0.07), transparent 60%); }

.cll-net__table .num { text-align: right; white-space: nowrap; }

.cll-net__table td small {
	display: block;
	font-size: 11px;
	color: var(--net-muted);
	margin-top: 2px;
	font-weight: 500;
}

.cll-net__table td small.up { color: var(--net-up); }
.cll-net__table td small.down { color: var(--net-down); }

.cll-net__table sub {
	font-size: 0.8em;
	font-weight: 700;
	vertical-align: -0.3em;
	line-height: 0;
	color: var(--cll-asset-accent, #f4b400);
	padding: 0 0.5px;
}

.cll-net__chain { display: flex; align-items: center; gap: 11px; }
.cll-net__chain b { display: block; font-weight: 700; }
.cll-net__chain small { display: block; font-size: 11.5px; color: var(--net-muted); font-weight: 500; }

.cll-net__mono {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: color-mix(in srgb, var(--c) 22%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent);
	color: var(--net-text);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.cll-net__addr {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 8px;
	border: 1px solid var(--net-line);
	border-radius: 6px;
	background: var(--net-soft);
	color: var(--net-text);
	font: inherit;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.cll-net__addr:hover { border-color: var(--cll-asset-accent, #f4b400); }
.cll-net__addr:focus-visible { outline: 2px solid var(--cll-asset-accent, #f4b400); outline-offset: 2px; }
.cll-net__addr code { font-family: var(--net-mono); font-size: 12px; background: none; padding: 0; color: inherit; }
.cll-net__addr svg { color: var(--net-muted); }

.cll-net__ext { text-align: right; white-space: nowrap; }

.cll-net__ext a {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--cll-asset-accent, #f4b400);
	text-decoration: none;
}

.cll-net__ext a:hover { text-decoration: underline; }

.cll-net__na { color: var(--net-muted); }

.cll-net__note {
	margin: 0;
	font-size: 11.5px;
	line-height: 1.55;
	color: var(--net-muted);
	max-width: 80ch;
}

/* ---------- Narrow screens: rows become cards ---------- */

@media (max-width: 720px) {
	.cll-net__kpis > div { border-right: 0; border-bottom: 1px solid var(--net-line); }
	.cll-net__kpis > div:last-child { border-bottom: 0; }
	.cll-net__table thead { display: none; }
	.cll-net__table,
	.cll-net__table tbody,
	.cll-net__table tr,
	.cll-net__table td,
	.cll-net__table tbody th { display: block; width: 100%; }
	.cll-net__table tr {
		border: 1px solid var(--net-line);
		border-radius: var(--cll-asset-radius, 8px);
		margin-bottom: 10px;
		padding: 4px 0;
	}
	.cll-net__table td,
	.cll-net__table tbody th {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		border-bottom: 0;
		padding: 7px 14px;
		text-align: right;
	}
	.cll-net__table tbody th { padding-bottom: 10px; border-bottom: 1px solid var(--net-line); margin-bottom: 4px; text-align: left; justify-content: flex-start; }
	.cll-net__v { display: block; text-align: right; min-width: 0; }
	.cll-net__table .num .cll-net__v small { display: inline; margin: 0 0 0 6px; }
	.cll-net__table td::before {
		content: attr(data-label);
		font-size: 11px;
		font-weight: 600;
		color: var(--net-muted);
		text-align: left;
	}
	.cll-net__ext.is-empty { display: none !important; }
}

/* Hero chip */
.cll-asset-badges .cll-asset-badge-networks {
	border-style: dashed;
}
