/* The cyber page (templates/radar_cyber.html). Radar's own colours, light and dark; the map is dark in both. The graphs' three
   colours passed the colour-blindness check on both backgrounds (30 Nov): dark #3987e5 #d95926 #199e70, light #2a78d6 #eb6834 #1baf7a. */
.mk-section.rd-cy { max-width: 1400px; width: auto; --b: #2a78d6; --r: #eb6834; --h: #1baf7a; }
:root[data-theme="dark"] .rd-cy { --b: #3987e5; --r: #d95926; --h: #199e70; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rd-cy { --b: #3987e5; --r: #d95926; --h: #199e70; } }
.rd-cy [hidden] { display: none !important; }
.rd-cy p, .rd-cy li, .rd-cy td { font-size: 16px; }
.rd-cy-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 16px; }  /* owner 2 Dec: the meter under the title */
@media (min-width: 900px) {
  .rd-cy-meter { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 4px 28px; align-items: start; }
  .rd-cy .rd-cy-meter > p:first-child, .rd-cy-meter > ol { grid-column: 1; }
  .rd-cy .rd-cy-meter > .rd-cy-rising { grid-column: 2; grid-row: 1; margin-top: 0; }
  .rd-cy-meter > small { grid-column: 2; grid-row: 2 / span 2; }
}
.rd-cy-top h1 { margin: 0 0 6px; }
.rd-cy-top p { margin: 0; color: var(--muted); }
.rd-cy-meter { border: 1px solid var(--line); background: var(--surface); padding: 13px 16px; }
.rd-cy .rd-cy-meter p { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; font-size: 15px; }
.rd-cy-meter strong { font-size: 22px; color: var(--ink); }
.rd-cy-meter ol { list-style: none; margin: 10px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
.rd-cy .rd-cy-meter li { margin: 0; font-size: 13px; line-height: 1.25; color: var(--muted); border-top: 10px solid var(--line); padding-top: 4px; }
.rd-cy .rd-cy-meter li.on { border-top-color: var(--accent); color: var(--ink); font-weight: 600; }
.rd-cy-meter small { display: block; font-size: 14px; color: var(--muted); }
.rd-cy-note { border-left: 4px solid #f0933b; padding: 8px 14px; margin: 0 0 14px; }
.rd-cy-box { border: 1px solid var(--line); background: var(--surface); padding: 14px 16px 4px; margin-bottom: 14px; }
.rd-cy-box h2 { margin: 0 0 6px; font-size: 19px; }
.rd-cy-list { list-style: none; margin: 0 0 14px; padding: 0; border-top: 1px solid var(--line); }
.rd-cy-list li { margin: 0; display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(0, 320px); gap: 2px 18px; padding: 11px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.rd-cy-box .rd-cy-list li:last-child { border-bottom: 0; }
.rd-cy-list span { color: var(--muted); }
.rd-cy-list i { font-style: normal; font-weight: 400; color: var(--muted); }
.rd-cy-switch { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border: 1px solid var(--line); margin-bottom: 16px; }
.rd-cy .rd-cy-switch button { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 14px; height: auto; min-height: 58px; padding: 10px 20px; background: transparent; color: var(--muted); border: 0; border-bottom: 4px solid transparent; border-radius: 0; font: inherit; font-size: 18px; text-align: left; white-space: normal; cursor: pointer; }
.rd-cy .rd-cy-switch button + button { border-left: 1px solid var(--line); }
.rd-cy .rd-cy-switch button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); border-bottom-color: var(--accent); }
.rd-cy.is-on .rd-cy-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rd-cy-part { position: relative; }
.rd-cy-part > h2 { margin: 6px 0 8px; }
.rd-cy-part h3 { margin: 22px 0 8px; font-size: 18px; }
.rd-cy-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.rd-cy.is-on .rd-cy-cols { grid-template-columns: minmax(0, 1fr); }
.rd-cy-side { border: 1px solid var(--line); background: var(--surface); padding: 8px 0 12px; align-self: start; }
.rd-cy .rd-cy-side h3 { margin: 12px 16px 4px; font-size: 15px; font-weight: 600; color: var(--muted); }
.rd-cy .rd-cy-side button { display: flex; justify-content: space-between; gap: 10px; width: 100%; height: auto; min-height: 40px; padding: 7px 16px 7px 13px; background: transparent; color: var(--ink); border: 0; border-left: 3px solid transparent; border-radius: 0; font: inherit; font-size: 16px; font-weight: 400; line-height: 1.3; text-align: left; white-space: normal; cursor: pointer; }
.rd-cy .rd-cy-side button:hover { background: var(--surface-2); }
.rd-cy .rd-cy-side button[aria-pressed="true"] { background: var(--surface-2); border-left-color: var(--accent); font-weight: 600; }
.rd-cy-side i { font-style: normal; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.rd-cy button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rd-cy-main { min-width: 0; }
.rd-cy-map { position: relative; height: min(52vh, 500px); border: 1px solid var(--line); background: #0c1116; overflow: hidden; }
.rd-cy-map svg { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.rd-cy-map .land path { fill: #222b33; stroke: #3b4752; stroke-width: .7; vector-effect: non-scaling-stroke; }
.rd-cy-map .land path.has { fill: #3987e5; cursor: pointer; }
.rd-cy-map .land path.selected { stroke: #fff; stroke-width: 1.8; }
.rd-cy-map circle { fill: #1b5fb4; stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; cursor: pointer; }
.rd-cy-map text { fill: #fff; font-weight: 700; text-anchor: middle; pointer-events: none; }
.rd-cy-zoom { position: absolute; right: 12px; top: 12px; display: grid; gap: 6px; }
.rd-cy .rd-cy-zoom button { width: 42px; height: 40px; padding: 0; display: flex; align-items: center; justify-content: center; background: #151d24; color: #eef2f5; border: 1px solid #3b4752; border-radius: 4px; font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.rd-cy-graphs { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; margin: 16px 0; }
.rd-cy-graphs figure { margin: 0; border: 1px solid var(--line); background: var(--surface); padding: 14px 16px; min-width: 0; }
.rd-cy-graphs figcaption { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.rd-cy-key { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 16px; }
.rd-cy .rd-cy-key li { margin: 0; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.rd-cy-key i { width: 11px; height: 11px; border-radius: 2px; }
.rd-cy .b { fill: var(--b); } .rd-cy .r { fill: var(--r); } .rd-cy .h { fill: var(--h); }
.rd-cy-key .b { background: var(--b); } .rd-cy-key .r { background: var(--r); } .rd-cy-key .h { background: var(--h); }
.rd-cy-graphs svg { display: block; width: 100%; height: 190px; }
.rd-cy-graphs svg text { fill: var(--muted); font-size: 13px; }
.rd-cy-graphs .grid { stroke: var(--line); }
.rd-cy-graphs details { margin: 8px 0 0; padding: 0; border: 0; font-size: 14px; }
.rd-cy-graphs summary { cursor: pointer; }
.rd-cy-graphs details { overflow-x: auto; }
.rd-cy-bars > div { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 4px 0; font-size: 15px; }
.rd-cy-bars span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-cy-bars span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.rd-cy-bars i { display: block; height: 14px; background: var(--b); border-radius: 0 4px 4px 0; }
.rd-cy-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 16px; padding: 6px 0 12px; }
.rd-cy-bar strong { flex: 1 1 100%; font-size: 20px; }
.rd-cy-bar label { flex: 1 1 150px; min-width: 0; }
.rd-cy-bar input, .rd-cy-bar select { width: 100%; }
.rd-cy-bar label { display: grid; gap: 4px; font-size: 15px; color: var(--muted); }
.rd-cy-bar input, .rd-cy-bar select { min-height: 42px; margin: 0; font: inherit; font-size: 16px; }
.rd-cy .rd-cy-bar button { min-height: 42px; padding: 0 14px; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: 16px; font-weight: 400; cursor: pointer; }
.rd-cy-months { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.rd-cy-months a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); text-decoration: none; }
.rd-cy-months a[aria-current] { background: var(--surface-2); border-color: var(--ink); font-weight: 600; }
.rd-cy-months i { font-style: normal; font-weight: 400; color: var(--muted); }
.rd-cy-hl b { font-weight: 500; }
.rd-cy-span { display: flex; gap: 8px; margin: 0 0 8px; }
.rd-cy .rd-cy-span button { height: auto; min-height: 38px; padding: 4px 14px; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: 15px; font-weight: 400; cursor: pointer; }
.rd-cy .rd-cy-span button[aria-pressed="true"] { background: var(--surface-2); border-color: var(--ink); font-weight: 600; }
.rd-cy-weak { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.rd-cy-span[hidden] { display: none; }
.rd-cy-t { overflow-x: auto; }
.rd-cy table { width: 100%; border-collapse: collapse; }
.rd-cy th { text-align: left; font-weight: 600; color: var(--muted); font-size: 15px; border-bottom: 1px solid var(--line); padding: 9px 10px; white-space: nowrap; }
.rd-cy td { border-bottom: 1px solid var(--line); padding: 10px; vertical-align: top; }
.rd-cy td.d { white-space: nowrap; }
.rd-cy td.o { min-width: 150px; }
.rd-cy td.o b, .rd-cy td.o span { display: block; }
.rd-cy td.o span { color: var(--muted); font-size: 15px; }
.rd-cy td.w { min-width: 260px; width: 38%; }
.rd-cy td small { color: var(--muted); font-size: 15px; }
.rd-cy td.n { min-width: 180px; }
.rd-cy td.n small { display: block; white-space: normal; }
.rd-cy th.n, .rd-cy td.n { text-align: left; font-variant-numeric: tabular-nums; }
.rd-cy .st { display: inline-block; }
.rd-cy .st::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: transparent; border: 2px solid var(--muted); }
.rd-cy .st.confirmed::before { background: var(--accent); border-color: var(--accent); }
.rd-cy .st.reported::before { border-color: var(--accent); }
.rd-cy .st.claim { font-weight: 600; color: #b86e00; }
.rd-cy .st.claim::before { border-style: dashed; border-color: #b86e00; }
:root[data-theme="dark"] .rd-cy .st.claim { color: #e8ab4a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rd-cy .st.claim { color: #e8ab4a; } }
.rd-cy-tip { position: fixed; z-index: 50; pointer-events: none; max-width: 300px; padding: 9px 12px; background: #fff; color: #15191d; border: 1px solid #c9ced3; border-radius: 4px; font-size: 15px; line-height: 1.35; }
.rd-cy .rd-cy-credit { margin: 12px 0 0; font-size: 15px; }
.rd-cy-credit a { margin-right: 14px; color: var(--ink); }
.rd-cy-foot { margin: 28px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.rd-cy-foot a { color: var(--ink); }
/* the easy list, with the script: a row is one line and opens for the rest */
.rd-cy.is-on .rd-cy-t thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.rd-cy.is-on .rd-cy-t table, .rd-cy.is-on .rd-cy-t tbody { display: block; }
.rd-cy.is-on .rd-cy-t tr { display: grid; grid-template-columns: 112px minmax(0, 250px) minmax(0, 1fr) minmax(0, 230px) 118px 34px; gap: 0 18px; align-items: start; padding: 11px 6px; border-bottom: 1px solid var(--line); cursor: pointer; }
.rd-cy.is-on .rd-cy-t tr:hover { background: var(--surface); }
.rd-cy.is-on .rd-cy-t td { display: block; min-width: 0; width: auto; border: 0; padding: 0; overflow-wrap: anywhere; }
.rd-cy.is-on .rd-cy-t td.o b { font-size: 17px; }
.rd-cy.is-on .rd-cy-t tr:not(.open) td.w { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rd-cy.is-on .rd-cy-t tr:not(.open) :is(td.n small, td.o span + span, td.w small) { display: none; }
.rd-cy.is-on .rd-cy-t td.s { grid-column: 3 / -2; grid-row: 2; padding-top: 8px; }
.rd-cy.is-on .rd-cy-t tr:not(.open) td.s { display: none; }
.rd-cy.is-on .rd-cy-t td.s br { display: none; }
.rd-cy.is-on .rd-cy-t td.s a { margin-right: 16px; }
.rd-cy .rd-cy-t td.x button { width: 34px; height: 32px; min-height: 0; padding: 0; background: transparent; border: 0; color: var(--muted); cursor: pointer; }
.rd-cy td.x button::before { content: ""; display: block; width: 9px; height: 9px; margin: 0 auto; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.rd-cy tr.open td.x button::before { transform: rotate(225deg); margin-top: 8px; }
.rd-cy.is-on .rd-cy-t tr.m { display: block; padding: 22px 6px 8px; cursor: default; background: none; }
.rd-cy.is-on .rd-cy-t tr.m td { font-size: 20px; font-weight: 600; }
.rd-cy tr.m b { font-weight: 400; color: var(--muted); margin-left: 8px; }
.rd-cy.is-on #rd-cy-map { margin-top: 26px; }
@media (max-width: 1100px) { .rd-cy-graphs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .rd-cy-graphs figure:first-child { grid-column: 1 / -1; } }
@media (max-width: 900px) {
  .rd-cy-top, .rd-cy.is-on .rd-cy-cols, .rd-cy-graphs, .rd-cy-switch { grid-template-columns: minmax(0, 1fr); }
  .rd-cy .rd-cy-switch button + button { border-left: 0; border-top: 1px solid var(--line); }
  .rd-cy-list li { grid-template-columns: minmax(0, 1fr); }
  .rd-cy-map { height: 46vh; }
  .rd-cy-bar strong { flex: 1 1 100%; }
  .rd-cy-bar label { flex: 1 1 150px; }
  .rd-cy-bar input, .rd-cy-bar select { width: 100%; }
}
@media (max-width: 700px) {   /* one card per organisation */
  .rd-cy-t thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rd-cy-t table, .rd-cy-t tbody, .rd-cy-t tr, .rd-cy-t td { display: block; width: auto; }
  .rd-cy-t tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .rd-cy .rd-cy-t td, .rd-cy .rd-cy-t td.w { border: 0; padding: 2px 0; text-align: left; width: auto; min-width: 0; }
  .rd-cy-t td:empty { display: none; }
  .rd-cy.is-on .rd-cy-t tr { grid-template-columns: minmax(0, 1fr) 34px; gap: 2px 10px; }
  .rd-cy.is-on .rd-cy-t td { grid-column: 1; grid-row: auto; }
  .rd-cy.is-on .rd-cy-t td.x { grid-column: 2; grid-row: 1; }
  .rd-cy.is-on .rd-cy-t td.s { grid-column: 1; grid-row: auto; padding-top: 4px; }
  .rd-cy.is-on .rd-cy-t td.s a { display: block; }
  .rd-cy td.n small { margin: 0; max-width: none; }
}
.rd-cy-rising { margin: 6px 0; font-weight: 600; }
.rd-cy-map-top { margin: 0 0 16px; }
