/* Network page. Tier colours: key = green, active = blue, quiet = amber, earlier = grey. */
.net { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; } .net > *, .net-main > * { min-width: 0; }
.tier-key { --tc: var(--ok); } .tier-active { --tc: var(--accent); } .tier-quiet { --tc: var(--warn); } .tier-past { --tc: var(--faint); }
.chip.tier-key, .chip.tier-active, .chip.tier-quiet, .chip.tier-past { color: var(--tc); border-color: color-mix(in srgb, var(--tc) 45%, transparent); background: color-mix(in srgb, var(--tc) 9%, transparent); }
.chip.tier-past { color: #aab3cc; }
i.dot.tier-key, i.dot.tier-active, i.dot.tier-quiet, i.dot.tier-past, .nodelink i.tier-key, .nodelink i.tier-active, .nodelink i.tier-quiet, .nodelink i.tier-past { background: var(--tc); }
.chip i.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }

.net-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.net-tile { display: grid; gap: 2px; border-top: 2px solid var(--tc); }
.net-tile b { font-size: 30px; font-weight: 650; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--text); }
.net-tile span { font-weight: 600; }

.net-main { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.net-map { width: 100%; height: auto; max-height: 560px; display: block; }
.net-spoke { stroke: rgba(150,170,225,.16); }
.net-link { stroke: rgba(166,139,255,.38); stroke-linecap: round; } .net-link.on { stroke: #cdb9ff; }
.net-me circle { fill: var(--panel-2); stroke: var(--accent); stroke-width: 2; } .net-me text { fill: var(--text); font-size: 11.5px; font-weight: 600; }
.net-node { cursor: pointer; outline: none; }
.net-node circle { fill: color-mix(in srgb, var(--tc) 30%, var(--panel)); stroke: var(--tc); stroke-width: 1.5; transition: fill .15s; }
.net-node text { fill: #c3cbe2; font-size: 11px; pointer-events: none; }
.net-node:hover circle, .net-node:focus-visible circle { fill: color-mix(in srgb, var(--tc) 55%, var(--panel)); }
.net-node:focus-visible circle { stroke: var(--focus); stroke-width: 3; }
.net-node.sel circle { fill: var(--tc); stroke: #fff; stroke-width: 2.5; } .net-node.sel text { fill: #fff; font-weight: 600; }
.net-legend { margin-top: 10px; }

.net-detail { display: grid; gap: 10px; align-content: start; }
.net-detail h2 { font-size: 20px; margin: 0; outline: none; } .net-detail h3.sec { margin: 8px 0 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.net-line { font-size: 15px; line-height: 1.5; } .net-line b { color: #fff; }
.net-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .net-facts > div:nth-child(n+3) { grid-column: 1 / -1; }
.net .nodelink[aria-pressed="true"] { color: #fff; font-weight: 600; }
.net-score { display: grid; grid-template-columns: minmax(60px, 1fr) 34px; gap: 8px; align-items: center; } .net-score b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.net-proj { display: grid; gap: 14px; } .net-proj li { display: grid; gap: 5px; } .np-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.net-proj .bar b.old { background: rgba(150,170,225,.35); }
.net .banner ul.plain li { padding: 2px 0; color: inherit; }
.net-fix { display: grid; gap: 10px; justify-items: start; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.net-same { display: grid; gap: 6px; width: 100%; } .net-same-row { display: flex; gap: 8px; flex-wrap: wrap; } .net-same-row select { flex: 1 1 160px; min-width: 0; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 8px; }
.net-aka, .net-oneway { display: grid; gap: 4px; width: 100%; } .net-aka li, .net-oneway li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.net .btn:disabled { opacity: .45; cursor: default; }
@media (max-width: 1000px) { .net-main { grid-template-columns: minmax(0, 1fr); } .net-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
