/* /banks: the bank tracker dashboard. Plain numbers, the map, the home page's cards, a dated list. Colours come from the Radar
   variables, so dark and light both work; nothing glows and nothing is a pill. */
.rd-banks .rd-bank-search { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 20px; }
.rd-banks .rd-bank-search input[type="search"] { flex: 1 1 240px; min-width: 0; }
.rd-banks .rd-bank-numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 8px 0 20px; padding: 0; list-style: none; }
.rd-banks .rd-bank-numbers li { border-top: 1px solid var(--line); padding-top: 10px; }
.rd-banks .rd-bank-numbers .big { display: block; font-size: 40px; line-height: 1.05; font-weight: 600; font-variant-numeric: tabular-nums; }
.rd-banks .rd-bank-numbers .what { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.rd-banks .rd-bank-map { margin: 0 0 8px; }
.rd-banks .rd-bank-map .zmap { width: 100%; }
.rd-banks .rd-bank-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding: 0; list-style: none; margin: 8px 0 20px; }
.rd-banks .rd-bank-note { margin: 4px 0 0; font-size: 13px; }
.rd-banks .rd-bank-news { padding: 0; list-style: none; }
.rd-banks .rd-bank-news li { display: grid; grid-template-columns: 9em 1fr; gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.rd-banks .rd-bank-news time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.rd-banks .rd-bank-news .src { display: block; color: var(--muted); font-size: 13px; }
.rd-banks .rd-bank-table { width: 100%; border-collapse: collapse; }
.rd-banks .rd-bank-table th, .rd-banks .rd-bank-table td { text-align: left; padding: 6px 8px 6px 0; border-top: 1px solid var(--line); }
.rd-banks .rd-bank-table td.num, .rd-banks .rd-bank-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .rd-banks .rd-bank-numbers { grid-template-columns: repeat(2, 1fr); }
  .rd-banks .rd-bank-numbers .big { font-size: 32px; }
  .rd-banks .rd-bank-news li { grid-template-columns: 1fr; }
}
/* one plain line per bank: the name, one of three states in words and colour, one sentence, a More link */
.rd-banks .rd-bank-list { padding: 0; list-style: none; margin: 8px 0 20px; display: grid; gap: 0; }
.rd-banks .bk { padding: 12px 0 12px 12px; border-top: 1px solid var(--line); border-left: 4px solid var(--line); }
.rd-banks .bk p { margin: 4px 0; }
.rd-banks .bk-state { margin-left: 8px; }
.rd-banks .bk-name { font-weight: 600; }
.rd-banks .bk-outage { border-left-color: var(--down); }
.rd-banks .bk-outage .bk-state { color: var(--down); }
.rd-banks .bk-problems { border-left-color: var(--warn); }
.rd-banks .bk-problems .bk-state { color: var(--warn); }
.rd-banks .bk-working { border-left-color: var(--up); }
.rd-banks .bk-working .bk-state { color: var(--up); }
.rd-banks .bk-heads { padding: 0 0 0 16px; margin: 4px 0; font-size: 14px; }
/* the biggest problems: a few larger lines side by side, the rest folded away; the map comes first and is clickable */
.rd-banks .rd-bank-top { padding: 0; list-style: none; margin: 8px 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.rd-banks .rd-bank-top .bk { border: 1px solid var(--line); border-left-width: 4px; padding: 12px 14px; }
.rd-banks .rd-bank-top .bk-outage { border-left-color: var(--down); }
.rd-banks .rd-bank-top .bk-problems { border-left-color: var(--warn); }
.rd-banks .rd-bank-top .bk-name { font-size: 18px; }
.rd-banks .rd-bank-more { margin: 8px 0 16px; }
.rd-banks .rd-bank-more summary { cursor: pointer; }
.rd-banks .rd-bank-map .cm-link { cursor: pointer; }
.rd-banks .rd-bank-legend { margin-top: 4px; }
.rd-banks .rd-bank-numbers { grid-template-columns: repeat(3, 1fr); }
/* /ping result: the map first and big, a plain verdict, the two ends, the table with small time bars */
.rd-ping .rd-ping-map { margin: 8px 0 4px; }
.rd-ping .rd-ping-ends { display: flex; flex-wrap: wrap; gap: 4px 32px; margin: 8px 0 16px; }
.rd-ping .pbar { display: inline-block; height: 8px; vertical-align: middle; background: var(--up); max-width: 140px; min-width: 2px; }
.rd-ping .pb-1 { background: var(--none); } .rd-ping .pb-2 { background: var(--warn); } .rd-ping .pb-3 { background: var(--down); }
.rd-ping .rd-share { width: min(100%, 460px); font: inherit; padding: 4px 6px; }
/* a ping or trace still running: a plain box with progress, so nobody thinks the page is stuck (owner 14 Nov) */
.rd-ping .rd-run { border: 1px solid var(--line); border-left: 4px solid var(--warn); padding: 10px 12px; margin: 12px 0; }
.rd-ping .rd-run-time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rd-ping .rd-run-bar { display: block; height: 6px; max-width: 420px; margin-top: 8px; background: var(--line); }
.rd-ping .rd-run-bar i { display: block; height: 100%; background: var(--up); transition: width .4s; }
/* the last seven days: one bar a day, outages red over problems amber */
.rd-banks .rd-bank-week { width: 100%; max-width: 560px; height: auto; display: block; margin: 8px 0; }
.rd-banks .wk-major { fill: var(--down); } .rd-banks .wk-minor { fill: var(--warn-bar); }
.rd-banks .wk-base { stroke: var(--line); stroke-width: 1; }
.rd-banks .wk-day { fill: var(--muted); font-size: 10px; } .rd-banks .wk-n { fill: var(--ink); font-size: 10px; }
/* /ping: the state colours; grey (no data) for a place that did not answer and for a dot still waiting */
.rd-ping .pbar.pb-1 { background: var(--state-nodata); } .rd-ping .pbar.pb-2 { background: var(--state-problems); } .rd-ping .pbar.pb-3 { background: var(--state-outage); }
.dotmap .wm-city.nodata, .dotmap .wm-city.pending { --c: var(--state-nodata); } .dotmap .wm-city.nodata .wm-ring, .dotmap .wm-city.pending .wm-ring { display: none; }
.cmap .cm-fill.s4 { fill: var(--state-nodata); } .cmap .cm-dots.s4 { stroke: var(--state-nodata); } .cm-explorer .cm-country.s4 { fill: var(--state-nodata); } .cm-explorer .s4 { --country-fill: var(--state-nodata); }
.rd-banks .rd-bank-news li.one { grid-template-columns: 1fr; }
/* small country flags (flag-icons, MIT, served from /static/flags) */
.flag { width: 20px; height: 15px; margin-right: 6px; vertical-align: -2px; border-radius: 2px; outline: 1px solid var(--line); outline-offset: -1px; object-fit: cover; }
.where-list { max-height: 220px; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 12px; padding: 6px 0; }
.where-list label { display: block; padding: 2px 0; cursor: pointer; } .where-list label[hidden] { display: none; }
.cmap .tr-path { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 3 4; fill: none; opacity: .85; pointer-events: stroke; }
.cmap .tr-likely { stroke-dasharray: 10 3 2 3; }  /* a likely route along cables: the routers could not be placed (route check uses the same dashes) */
/* Incident timeline rows (templates/_radar_incident.html), shared by /banks and /outages: a state bar, the name and state, one sentence,
   and on the right when it began and a small bar for how long (full = 24 hours). Text and one bar: no pills, no icons. */
.inc-list { list-style: none; padding: 0; margin: 8px 0 20px; border-bottom: 1px solid var(--line); }
.inc { display: grid; grid-template-columns: minmax(0, 1fr) 11.5rem; column-gap: 20px; align-items: start; padding: 12px 0 12px 14px; border-top: 1px solid var(--line); border-left: 4px solid var(--state-nodata, #8a8f98); }
.inc-outage { border-left-color: var(--state-outage); } .inc-problems { border-left-color: var(--state-problems); }
.inc-maint { border-left-color: var(--state-maint); } .inc-working { border-left-color: var(--state-working); }
.inc p { margin: 0; } .inc-head { line-height: 1.4; } .inc-name { font-weight: 600; font-size: 17px; }
.inc-state { margin-left: 6px; font-weight: 600; } .inc-outage .inc-state { color: var(--state-outage); } .inc-problems .inc-state { color: var(--state-problems); }
.inc-maint .inc-state { color: var(--state-maint); } .inc-working .inc-state { color: var(--state-working); }
.inc-text { margin-top: 3px !important; color: var(--text); } .inc .bk-heads { margin: 4px 0 0; padding-left: 16px; font-size: 14px; }
.inc-when { text-align: right; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; display: grid; gap: 3px; justify-items: end; }
.inc-time { color: var(--text); } .inc-dur { font-size: 13px; }
.inc-bar { display: block; width: 100%; height: 4px; } .inc-bar-all { fill: var(--line); } .inc-bar-on { fill: var(--state-nodata, #8a8f98); }
.inc-outage .inc-bar-on { fill: var(--state-outage); } .inc-problems .inc-bar-on { fill: var(--state-problems); } .inc-maint .inc-bar-on { fill: var(--state-maint); }
.inc-none { font-size: 18px; font-weight: 600; margin: 16px 0 4px; }
@media (max-width: 640px) { .inc { grid-template-columns: 1fr; row-gap: 6px; } .inc-when { text-align: left; justify-items: start; grid-template-columns: auto auto; column-gap: 10px; } .inc-bar { grid-column: 1 / -1; max-width: 12rem; } }
/* DNS lookup tool: the verdict line first, in the colour of what it says */
.rd-dns-verdict { margin: 14px 0 6px; font-size: 17px; }
.rd-dns-verdict.rd-dns-differ b { color: var(--state-minor, #b7791f); } .rd-dns-verdict.rd-dns-fail b { color: var(--state-major, #c53030); }
.rd-dns-groups code { font-size: 13px; overflow-wrap: anywhere; }
.rd-tool-monitor { margin-top: 18px; }
/* trace route: one colour per probe's route (never the outage red), so overlapping routes can be told apart */
/* /tools/speed (owner 14 Nov): the picker, four plain readouts, the busy line, the route as a list */
.rd-speed .rd-speed-pick { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }
.rd-speed .rd-speed-server { margin: 0 0 12px; font-size: .9em; color: var(--muted, inherit); }
.rd-speed .rd-speed-server summary { cursor: pointer; }
.rd-speed .rd-speed-server .rd-speed-change { text-decoration: underline; }
.rd-speed .rd-speed-server ul { margin: 6px 0 0; padding-left: 18px; }
.rd-speed .rd-speed-pick select { width: auto; max-width: 100%; margin: 0; font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; }
.rd-speed .rd-speed-read { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.rd-speed .rd-speed-read div { padding: 12px 14px; border-left: 1px solid var(--line); }
.rd-speed .rd-speed-read div:first-child { border-left: 0; }
.rd-speed .rd-speed-read span { display: block; color: var(--muted); font-size: 13px; }
.rd-speed .rd-speed-read b { font-size: 28px; font-weight: 650; font-variant-numeric: tabular-nums; }
.rd-speed .rd-speed-read small { color: var(--muted); margin-left: 4px; }
.rd-speed .rd-speed-load { margin: 10px 0 4px; color: var(--muted); }
.rd-speed .rd-speed-map { margin: 14px 0 4px; }
/* wide screens: the readouts beside the map, so every server dot is in the first view (owner screenshot 14 Nov) */
.rd-speed .rd-speed-top { display: grid; gap: 16px; }
@media (min-width: 900px) { .rd-speed .rd-speed-top { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
  .rd-speed .rd-speed-top .rd-speed-read { grid-template-columns: 1fr 1fr; } .rd-speed .rd-speed-top .rd-speed-read div:nth-child(3) { border-left: 0; }
  .rd-speed .rd-speed-top .rd-speed-read div:nth-child(n+3) { border-top: 1px solid var(--line); } .rd-speed .rd-speed-top .rd-speed-map { margin: 0; } }
.rd-speed .rd-speed-load b { color: var(--ink); font-variant-numeric: tabular-nums; }
.rd-speed .rd-speed-load .good { color: var(--up); } .rd-speed .rd-speed-load .fair { color: var(--warn); } .rd-speed .rd-speed-load .poor { color: var(--down); }
.rd-speed .rd-speed-status { min-height: 24px; color: var(--muted); margin: 4px 0 16px; } .rd-speed .rd-speed-status.err { color: var(--down); }
.rd-speed .rd-speed-route { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.rd-speed .rd-speed-route li { position: relative; padding: 4px 0 4px 18px; }
.rd-speed .rd-speed-route li.place::before { content: ""; position: absolute; left: -6px; top: 12px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); background: var(--bg, #fff); }
.rd-speed .rd-speed-route li.place span { color: var(--muted); font-variant-numeric: tabular-nums; }
.rd-speed .rd-speed-hops td { font-variant-numeric: tabular-nums; } .rd-speed .rd-speed-hops .ruled-out { color: var(--muted); text-decoration: line-through; }
.rd-speed .rd-speed-route li.leg { color: var(--muted); font-size: 13px; padding: 2px 0 2px 18px; }
@media (max-width: 600px) { .rd-speed .rd-speed-read { grid-template-columns: 1fr 1fr; } .rd-speed .rd-speed-read div:nth-child(3) { border-left: 0; }
  .rd-speed .rd-speed-read div:nth-child(n+3) { border-top: 1px solid var(--line); } .rd-speed .rd-speed-read b { font-size: 22px; } }
/* a dot for each hop on a snapped trace route, in its route's colour (owner 14 Nov) */
.cmap .tr-hop { fill: var(--accent); stroke: rgba(0, 0, 0, .55); stroke-width: .8; }
.cmap .tr-h5 { fill: #9ccc65; } .cmap .tr-h6 { fill: #ff8a65; } .cmap .tr-p5 { stroke: #9ccc65; } .cmap .tr-p6 { stroke: #ff8a65; }
.cmap .tr-h0 { fill: #6db3f2; } .cmap .tr-h1 { fill: #4fc3a1; } .cmap .tr-h2 { fill: #b39ddb; } .cmap .tr-h3 { fill: #e0c27a; } .cmap .tr-h4 { fill: #f08fb5; }
.cmap .tr-p0 { stroke: #6db3f2; } .cmap .tr-p1 { stroke: #4fc3a1; } .cmap .tr-p2 { stroke: #b39ddb; } .cmap .tr-p3 { stroke: #e0c27a; } .cmap .tr-p4 { stroke: #f08fb5; }
.rd-trace-edge { margin: 10px 0; }
/* News as a front page (owner 12 Nov, option B): lead story left, three beside it, the rest as a list */
.rd-banks .nf { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px 28px; padding: 14px 0 6px; border-top: 1px solid var(--line); }
.rd-banks .nf-lead h3 { font-size: 24px; line-height: 1.25; margin: 12px 0 8px; }
.rd-banks .nf-lead h3 a { color: var(--ink); text-decoration: none; }
.rd-banks .nf-lead h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rd-banks .nf-src { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.rd-banks .nf-side, .rd-banks .nf-rest { list-style: none; margin: 0; padding: 0; }
.rd-banks .nf-side li, .rd-banks .nf-rest li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; padding: 9px 0; border-top: 1px solid var(--line); }
.rd-banks .nf-side li:first-child { border-top: 0; padding-top: 0; }
.rd-banks .nf-title { color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.35; }
.rd-banks .nf-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.rd-banks .nf-rest { margin-top: 4px; }
@media (max-width: 760px) {
  .rd-banks .nf { grid-template-columns: minmax(0, 1fr); }
  .rd-banks .nf-lead h3 { font-size: 20px; }
  .rd-banks .nf-side li:first-child { border-top: 1px solid var(--line); padding-top: 9px; }
}
/* the plain sentence under a problem bank's card (owner 12 Nov: the home page cards, with why the bank is listed) */
.rd-banks .rd-overview-note { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 13px; }
.rd-banks .rd-overview-note p { margin: 0; }
.rd-banks .rd-overview-note .bk-heads { margin: 4px 0 0; padding-left: 16px; }

/* route check (owner 15 Nov: "test ISP routes ... map packet loss, not speed") */
.rd-routecheck { margin: 14px 0 26px; }
.rd-routecheck #rcStatus { margin-left: 12px; }
.rd-rc-table { margin-top: 14px; }
.rd-rc-table tr.rc-bad-row td:first-child { border-left: 3px solid var(--down); }
.rd-rc-table tr.rc-warn-row td:first-child { border-left: 3px solid var(--warn); }
.rd-rc-verdict { font-size: 16px; margin: 6px 0 10px; padding-left: 10px; border-left: 3px solid var(--line); }
.rd-rc-verdict.warn { border-left-color: var(--warn); } .rd-rc-verdict.bad { border-left-color: var(--down); }
.rd-rc-flags { margin: 0 0 12px; padding-left: 18px; }
/* many regions on a 375px phone (20 Nov): the six-column tables scroll inside their box, never the page; the long tail sits
   behind a plain "Show all regions" line */
.rd-rc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.rd-rc-table td:first-child { white-space: nowrap; }
.rd-rc-more { margin-top: 6px; }
.rd-rc-more summary { cursor: pointer; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; }
.rd-rc-more .rd-rc-table { margin-top: 0; }
@media (max-width: 640px) {
  .rd-routecheck #rcStatus { display: block; margin: 8px 0 0; }
  .rd-rc-table th, .rd-rc-table td, .rd-speed-hops th, .rd-speed-hops td { font-size: 14px; }
}
.rd-speed-hops td.rc-bad { color: var(--down); }
.rd-speed-map .tr-pbad { stroke: var(--down) !important; } .rd-speed-map .tr-pwarn { stroke: var(--warn) !important; }
.rd-speed-map .tr-hbad { fill: var(--down) !important; } .rd-speed-map .tr-hwarn { fill: var(--warn) !important; }
.rd-speed-h { margin-top: 30px; }

/* route check answer and overview (owner 20 Nov: "thought new route will show cool stuff"): the answer in plain words over the
   table; on the map one line per region whose colour AND dash say its state, matching the legend and the Result column, so
   colour is never the only signal */
.rd-rc-answer { font-size: 18px; line-height: 1.45; max-width: 68ch; margin: 16px 0 6px; padding-left: 12px; border-left: 3px solid var(--line); }
/* the answer stays on the page empty (no hidden attribute) so screen readers hear its first text; empty, it takes no room */
.rd-rc-answer:empty { margin: 0; padding: 0; border: 0; }
.rd-rc-answer.good { border-left-color: var(--up); } .rd-rc-answer.warn { border-left-color: var(--warn); } .rd-rc-answer.bad { border-left-color: var(--down); }
/* non-scaling: the 1200-wide map shrinks to about a third on a phone, which would make the dashes (the sign that is not colour)
   sub-pixel; widths and dashes stay in screen pixels instead */
/* owner 20 Nov ("colour code each route on map, not just green, with colour identification"): the colour says which region
   (one of five, by the order ticked, static/radar-route-verdict.js PALETTE holds the same values) and the line's style says
   how it is doing. Each colour is at least 3:1 against the map's land and sea in its theme. */
.rd-route-tool, .rd-trace-tool { --rc-c0: #2166ac; --rc-c1: #b8460b; --rc-c2: #0d7a5f; --rc-c3: #9c2f86; --rc-c4: #4d4d4d; }
:root[data-theme="dark"] .rd-route-tool, :root[data-theme="dark"] .rd-trace-tool { --rc-c0: #5aa9e6; --rc-c1: #f07c3a; --rc-c2: #2fbf8f; --rc-c3: #e07ab8; --rc-c4: #c9ccd1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rd-route-tool, :root:not([data-theme="light"]) .rd-trace-tool { --rc-c0: #5aa9e6; --rc-c1: #f07c3a; --rc-c2: #2fbf8f; --rc-c3: #e07ab8; --rc-c4: #c9ccd1; } }
.rc-c0 { --rc: var(--rc-c0); } .rc-c1 { --rc: var(--rc-c1); } .rc-c2 { --rc: var(--rc-c2); } .rc-c3 { --rc: var(--rc-c3); } .rc-c4 { --rc: var(--rc-c4); }
.rc-line { fill: none; stroke: var(--rc, var(--muted)); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; pointer-events: stroke; vector-effect: non-scaling-stroke; }
.rc-line.rc-s-fine { stroke-dasharray: none; }
.rc-line.rc-s-slow { stroke-dasharray: 7 4; }
.rc-line.rc-s-loss { stroke-width: 3; }
.rc-line.rc-s-none { stroke-dasharray: 1.5 4; }
/* measured, but its routers could not be placed: drawn straight, long and short dashes so it is never read as a mapped cable path */
.rc-line.rc-s-straight { stroke-dasharray: 10 3 2 3; }
.rc-line.rc-key { stroke: var(--muted); }  /* the legend samples: the style alone, in no region's colour */
.rc-loss-at { fill: var(--surface); stroke: var(--rc, var(--muted)); stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.rc-lines .rc-line.rc-picked, .rc-lines .rc-line.rc-hl { stroke-width: 4; }
/* a server's dot and the hop dots of the open route take their region's colour */
.dotmap .wm-city.rc-pin { --c: var(--rc); }
.rd-speed-map .tr-hop.rc-dot { fill: var(--rc) !important; stroke: var(--surface); }
/* the swatch next to a region's name in the table and the legend: a short line sample in its colour */
.rc-sw { display: inline-block; width: 16px; height: 4px; margin: 0 8px 2px 0; vertical-align: middle; background: var(--rc, var(--muted)); border-radius: 1px; }
.rc-lines.rc-dim .rc-line:not(.rc-hl), .rc-lines.rc-dim .rc-loss-at:not(.rc-hl) { opacity: .2; }
.rd-rc-table tr.rc-hl td { background: var(--surface-2); }
.rc-lines.rc-has-pick:not(.rc-dim) .rc-line:not(.rc-picked), .rc-lines.rc-has-pick:not(.rc-dim) .rc-loss-at:not(.rc-picked) { opacity: .35; }
/* after a check each city name is a plain underlined button (owner 20 Nov: "for cable click on city name") that opens its
   route and its cables; the open one is bold */
.rc-city { font: inherit; color: inherit; background: none; border: 0; padding: 6px 0; margin: 0; cursor: pointer; text-align: left;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rc-city:hover { text-decoration-thickness: 2px; }
.rc-city:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rc-city[aria-pressed="true"] { font-weight: 700; text-decoration-thickness: 2px; }
.rd-rc-hint { margin: 14px 0 0; }
.rd-rc-hint + .rd-rc-scroll .rd-rc-table { margin-top: 6px; }
.rd-rc-cables { margin: 0 0 6px; padding-left: 18px; }
.rd-rc-cables li { padding: 2px 0; }
.rd-rc-legend { list-style: none; margin: 8px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.rd-rc-legend li { display: flex; align-items: center; gap: 6px; }
.rd-rc-legend svg { width: 28px; height: 8px; flex: none; overflow: visible; }
.rd-rc-key { list-style: none; margin: 8px 0 2px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.rd-rc-key:empty { display: none; }
.rd-rc-key li { display: flex; align-items: center; }
/* trace route (owner 20 Nov: "proper colour mapping with locations"): each measuring point's line and hop dots in its place's
   colour (the five above, templates/isitdown_ping.html names them); the dash still says how sure the line is (dotted through
   placed routers, long and short dashes a likely route along cables). Screen-pixel widths so the dashes survive a phone. */
.cmap .tr-path.tr-c { stroke: var(--rc); stroke-width: 2.2; opacity: 1; vector-effect: non-scaling-stroke; }
.cmap .tr-hop.tr-c { fill: var(--rc); stroke: var(--surface); }
.cmap.tr-dim .tr-c:not(.tr-hl) { opacity: .2; }
.cmap .tr-path.tr-c.tr-hl { stroke-width: 4; }
.rc-line.tr-s-dot { stroke-dasharray: 3 4; stroke-linecap: butt; }  /* the map's dotted trace line, as drawn there */
.tr-probe.tr-hl { background: var(--surface-2); }
.tr-probe h3[tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) { .rd-rc-answer { font-size: 17px; } .rd-rc-legend { flex-direction: column; } }
/* the region picker (owner 20 Nov: "allow user just to choose 5 at a time", then "not clear: click on region button"): one
   labelled group, every region a plain checkbox named by city and country in a grid that folds to two on a phone; a ticked
   box shows its map colour next to the name */
.rd-rc-pick fieldset { border: 0; margin: 0 0 4px; padding: 0; min-width: 0; }
.rd-rc-pick legend { padding: 0; margin-bottom: 6px; font-weight: 600; }
.rd-rc-pick legend { font-size: 17px; }
.rd-rc-regions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14em, 1fr)); gap: 0 18px; }
.rd-rc-regions label { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; }
.rd-rc-regions .rc-sw { margin: 0; flex: none; visibility: hidden; }
.rd-rc-regions .rc-sw.rc-on { visibility: visible; }
.rd-rc-chosen { margin: 4px 0 0; }
.rd-rc-regions input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--accent); }
.rd-rc-pick fieldset:disabled label { cursor: default; color: var(--muted); }
.rd-rc-pickmsg { min-height: 1.3em; margin: 4px 0 10px; }
@media (max-width: 640px) { .rd-rc-regions { grid-template-columns: 1fr 1fr; gap: 0 12px; } .rd-rc-regions label { align-items: flex-start; } .rd-rc-regions input { margin-top: 2px; } .rd-rc-regions .rc-sw { margin-top: 9px; } }
.rd-speed .rd-speed-table-wrap { overflow-x: auto; max-width: 100%; }
.rd-speed .rd-speed-table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.rd-speed .rd-speed-table th, .rd-speed .rd-speed-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.rd-speed .rd-speed-table td:nth-child(n+3), .rd-speed .rd-speed-table th:nth-child(n+3) { text-align: right; }
.rd-speed .rd-speed-opts { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 16px 0 0; }
.rd-speed .rd-speed-opts label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 14px; }
.rd-speed .rd-speed-opts select { width: auto; max-width: 100%; margin: 0; font: inherit; color: var(--ink); padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; }
.rd-speed .rd-speed-busy { margin: 10px 0 4px; color: var(--muted); }
.rd-speed .rd-speed-busy b { color: var(--ink); font-variant-numeric: tabular-nums; }
.rd-speed .rd-speed-card { margin: 18px 0; padding: 4px 16px 8px; border: 1px solid var(--line); }
.rd-speed .rd-speed-card h2, .rd-speed h2.rd-speed-h { font-size: 18px; }
.rd-speed .rd-speed-hist { width: 100%; }
.rd-speed .rd-speed-hist td, .rd-speed .rd-speed-hist th { font-variant-numeric: tabular-nums; text-align: left; }
@media (max-width: 600px) { .rd-speed .rd-speed-hist th, .rd-speed .rd-speed-hist td { font-size: 13px; padding: 6px 4px; } }

.rd-speed .rd-speed-phases td { font-variant-numeric: tabular-nums; }
.rd-speed .rd-speed-phases td:nth-child(n+2), .rd-speed .rd-speed-phases th:nth-child(n+2) { text-align: right; }
.rd-speed .rd-speed-chart { margin: 14px 0 6px; }
.rd-speed .rd-chart-svg { display: block; width: 100%; height: auto; max-width: 640px; }
.rd-speed .rd-band { fill: var(--line); opacity: .35; } .rd-speed .rd-band-b { opacity: .15; }
.rd-speed .rd-grid { stroke: var(--line); stroke-width: 1; }
.rd-speed .rd-chart-line { stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.rd-speed .rd-chart-lost { stroke: var(--down); stroke-width: 1.5; }
.rd-speed .rd-chart-tick, .rd-speed .rd-chart-axis, .rd-speed .rd-chart-lab { fill: var(--muted); font-size: 12px; }
.rd-speed .rd-chart-lab { fill: var(--ink); }
/* speed test (owner 22 Nov): small menu, speedometer, one mode picker, one Start */
.rd-speed .rd-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rd-speed .rd-speed-menu { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 14px; font-size: 14px; }
.rd-speed .rd-speed-menu a { color: var(--muted); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.rd-speed .rd-speed-menu a:hover { color: var(--ink); }
.rd-speed .rd-speed-menu a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
.rd-speed .rd-gauge { max-width: 420px; margin: 18px auto 8px; text-align: center; }
.rd-speed .rd-gauge svg { display: block; width: 100%; height: auto; }
.rd-speed .rd-g-track, .rd-speed .rd-g-fill { fill: none; stroke-width: 14; }
.rd-speed .rd-g-track { stroke: var(--line); }
.rd-speed .rd-g-fill { stroke: var(--accent); }
.rd-speed .rd-g-ticks line { stroke: var(--muted); stroke-width: 1.5; }
.rd-speed .rd-g-ticks text { fill: var(--muted); font-size: 11px; }
.rd-speed .rd-g-needle { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.rd-speed .rd-g-hub { fill: var(--ink); }
.rd-speed .rd-g-phase { fill: var(--muted); font-size: 13px; }
.rd-speed .rd-g-num { fill: var(--ink); font-size: 40px; font-weight: 650; font-variant-numeric: tabular-nums; }
.rd-speed .rd-g-unit { fill: var(--muted); font-size: 13px; }
.rd-speed .rd-g-side { margin: 2px 0 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.rd-speed .rd-modes { display: flex; gap: 0; margin: 18px 0 0; padding: 0; border: 0; min-width: 0; }
.rd-speed .rd-mode { flex: 1 1 0; position: relative; display: block; margin: 0; }
.rd-speed .rd-mode input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rd-speed .rd-mode span { display: block; padding: 11px 12px; text-align: center; border: 1px solid var(--line); margin-left: -1px; color: var(--ink); line-height: 1.3; }
.rd-speed .rd-mode:first-child span { margin-left: 0; border-radius: 6px 0 0 6px; }
.rd-speed .rd-mode:last-child span { border-radius: 0 6px 6px 0; }
.rd-speed .rd-mode:only-child span { border-radius: 6px; }
.rd-speed .rd-mode input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 600; position: relative; z-index: 1; }
.rd-speed .rd-mode input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.rd-speed .rd-mode input:disabled + span { opacity: .6; }
.rd-speed .rd-mode-note { margin: 8px 0 6px; min-height: 2.6em; }
.rd-speed .rd-speed-pick { margin: 12px 0 4px; }
.rd-speed .rd-go { width: 100%; max-width: 420px; font-size: 18px; padding: 13px 20px; justify-content: center; text-align: center; }
.rd-speed .rd-speed-optbox { margin: 10px 0 14px; font-size: .9em; color: var(--muted); }
.rd-speed .rd-speed-optbox summary { cursor: pointer; }
.rd-speed .rd-speed-optbox .rd-speed-opts { margin-top: 10px; }
@media (max-width: 600px) {
  .rd-speed .rd-modes { flex-direction: column; }
  .rd-speed .rd-mode span, .rd-speed .rd-mode:first-child span, .rd-speed .rd-mode:last-child span { margin: -1px 0 0; border-radius: 0; text-align: left; }
  .rd-speed .rd-mode:first-child span { margin-top: 0; border-radius: 6px 6px 0 0; }
  .rd-speed .rd-mode:last-child span { border-radius: 0 0 6px 6px; }
  .rd-speed .rd-mode:only-child span { border-radius: 6px; }
  .rd-speed .rd-go { max-width: none; }
}
