/* Internet by country (templates/radar_internet_countries.html, static/radar-ioda-map.js). No red: red is for attack alerts only. */
.rd-im {
  --im-u2: #2f86bf; --im-u1: #7fb4d8; --im-n: #6db5a8; --im-x: #8b94a0;
  --im-s1: #ecd24f; --im-s2: #eda51e; --im-s3: #d96a12; --im-s4: #b23a85; --im-s5: #6a2bb0;
  --im-line: var(--line); --im-fault: #ff3b30;
}
:root[data-theme="dark"] .rd-im { --im-u2: #3ea6e4; --im-u1: #3c7ba5; --im-n: #2f7f74; --im-s1: #f0e08a; --im-s2: #f5b83d; --im-s3: #ee7f2d; --im-s4: #cf559f; --im-s5: #a06bf2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rd-im { --im-u2: #3ea6e4; --im-u1: #3c7ba5; --im-n: #2f7f74; --im-s1: #f0e08a; --im-s2: #f5b83d; --im-s3: #ee7f2d; --im-s4: #cf559f; --im-s5: #a06bf2; } }
.mk-section.rd-im { max-width: 1560px; width: auto; padding: 14px 18px 30px; }
.rd-im [hidden] { display: none !important; }
.rd-im h1 { margin: 0 0 4px; }
.rd-im .lede { margin: 0 0 10px; max-width: 78ch; color: var(--muted); }
.rd-im-state { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.rd-im-late { margin: 0 0 10px; padding: 6px 12px; border-left: 4px solid var(--im-s3); }
.rd-im-choice { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 6px 0 10px; font-size: 16px; }
.rd-im-choice label { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; cursor: pointer; }
.rd-im-choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.rd-im-choice input:focus-visible, .rd-im-time input:focus-visible, .rd-im-time button:focus-visible, .rd-im-list a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rd-im-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 16px; align-items: start; }
.rd-im-grid:has(.rd-im-map[hidden]) { grid-template-columns: minmax(0, 560px); }
.rd-im-map { position: relative; border: 1px solid var(--line); background: var(--surface); }
.rd-im-zoom { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.rd-im-zoom button { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; font: inherit; font-size: 20px; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.rd-im-zoom button:last-child { border-bottom: 0; font-size: 13px; }
.rd-im-zoom button:disabled { color: var(--muted); opacity: .55; cursor: default; }
.rd-im-zoom button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rd-im-map canvas { display: block; width: 100%; aspect-ratio: 2 / 1; cursor: default; touch-action: pan-x pan-y; }
.rd-im-time { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); }
.rd-im-time button { min-width: 88px; min-height: 40px; padding: 6px 14px; font: inherit; font-weight: 600; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.rd-im-time input { flex: 1; min-width: 80px; accent-color: var(--accent); }
.rd-im-time b { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.rd-im-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 10px 12px; list-style: none; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.rd-im-legend i { display: inline-block; width: 18px; height: 12px; margin-right: 6px; vertical-align: -1px; }
.rd-im-legend .k-u2 { background: var(--im-u2); } .rd-im-legend .k-u1 { background: var(--im-u1); } .rd-im-legend .k-n { background: var(--im-n); }
.rd-im-legend .k-s1 { background: var(--im-s1); } .rd-im-legend .k-s2 { background: var(--im-s2); } .rd-im-legend .k-s3 { background: var(--im-s3); }
.rd-im-legend .k-s4 { background: var(--im-s4); } .rd-im-legend .k-s5 { background: var(--im-s5); } .rd-im-legend .k-x { width: 10px; height: 10px; margin: 0 8px 0 4px; border: 1px solid var(--im-x); border-radius: 50%; }
.rd-im-legend .k-o { width: 10px; height: 10px; margin: 0 8px 0 4px; border: 1px solid var(--ink); border-radius: 50%; vertical-align: -1px; }
.rd-im-side { border: 1px solid var(--line); background: var(--surface); }
.rd-im-side h2 { margin: 0; padding: 12px 14px; font-size: 16px; border-bottom: 1px solid var(--line); }
.rd-im-list { margin: 0; padding: 0; list-style: none; }
.rd-im-list li { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.rd-im-list li:last-child { border-bottom: 0; }
.rd-im-list li:hover { background: var(--surface-2); }
.rd-im-list a { display: block; flex: 1; min-width: 0; color: var(--ink); text-decoration: none; }
.rd-im-list a span { display: block; font-weight: 600; }
.rd-im-list a small { display: block; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.rd-im-list b { min-width: 74px; font-variant-numeric: tabular-nums; text-align: right; }
.rd-im-list svg { display: block; flex: none; width: 96px; height: 34px; }
.rd-im-list .rd-im-empty { display: block; color: var(--muted); }
.rd-im-fault { margin: 0 0 10px; padding: 6px 12px; border-left: 4px solid var(--im-fault); }
.rd-im-legend .k-f { height: 3px; background: var(--im-fault); vertical-align: 4px; }
.rd-im-note { margin: 14px 0 0; max-width: 100ch; color: var(--text); }
@media (max-width: 620px) {
  .rd-im-zoom { position: static; flex-direction: row; border-width: 1px 0 0; border-radius: 0; }
  .rd-im-zoom button { flex: 1; border-bottom: 0; border-right: 1px solid var(--line); }
  .rd-im-zoom button:last-child { border-right: 0; }
}
.rd-im-how { margin: 14px 0 0; }
.rd-im-how summary { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); font-weight: 600; cursor: pointer; list-style: none; }
.rd-im-how summary::-webkit-details-marker { display: none; }
.rd-im-how summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rd-im-notes { max-width: 100ch; margin: 16px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.rd-im-foot { margin: 14px 0 0; }
.rd-im-tip { position: fixed; z-index: 5; width: 262px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; pointer-events: none; }
.rd-im-tip b { display: block; font-size: 16px; }
.rd-im-tip div { color: var(--muted); }
.rd-im-tip svg { display: block; width: 100%; height: 54px; margin: 6px 0 2px; }
.rd-im-tip .rd-im-hint { margin-top: 4px; font-size: 13px; }
.rd-im svg .ga { fill: none; stroke: var(--im-s3); stroke-width: 2; }
.rd-im svg .gb { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.rd-im svg .gu { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; opacity: .7; }
.rd-im svg .gt { stroke: var(--muted); stroke-width: 1; opacity: .5; }
@media (max-width: 900px) { .rd-im-grid { grid-template-columns: 1fr; } .mk-section.rd-im { padding: 12px 12px 26px; } }
.rd-im-time input[type="range"] { padding: 0; border: 0; background: none; min-height: 0; }
body:has(.rd-im) nav.rd-crumb { max-width: 1560px; padding-left: 18px; padding-right: 18px; }
.rd-maptabs { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.rd-maptabs a { display: inline-flex; align-items: center; min-height: 42px; font-size: 16px; color: var(--text); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.rd-maptabs a:hover { color: var(--ink); text-decoration: underline; }
.rd-maptabs a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--accent); }
