/* Radar's world map (templates/radar_world.html). Radar's own colours; the map itself is dark in both themes. */
.mk-section.rd-wm { max-width: none; width: auto; padding: 14px 18px 30px; }
.rd-wm [hidden] { display: none !important; }
.rd-wm-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 6px 32px; margin-bottom: 12px; }
.rd-wm-top h1 { margin: 0; }
.rd-wm-top p { margin: 0; max-width: 72ch; color: var(--muted); font-size: 16px; }
.rd-wm-note { border-left: 4px solid #f0933b; padding: 8px 14px; margin: 0 0 12px; font-size: 16px; }
.rd-wm-note details { display: inline; margin: 0; padding: 0; border: 0; }
.rd-wm-note summary { display: inline; margin: 0; cursor: pointer; text-decoration: underline; }
.rd-wm-grid { display: grid; grid-template-columns: 310px minmax(0, 1fr); border: 1px solid var(--line); }
.rd-wm-side { height: min(78vh, 820px); min-height: 520px; overflow: auto; margin: 0; padding: 12px 0; background: var(--surface); border-right: 1px solid var(--line); }
.rd-wm-sets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 14px 6px; }
.rd-wm .rd-wm-side button { height: auto; min-height: 40px; padding: 6px 10px; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: 15px; font-weight: 400; cursor: pointer; }
.rd-wm .rd-wm-sets button[aria-pressed="true"] { background: var(--surface-2); border-color: var(--muted); font-weight: 600; }
.rd-wm button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rd-wm-side > label { display: grid; gap: 4px; padding: 6px 14px; font-size: 15px; color: var(--muted); }
.rd-wm-side > label input, .rd-wm-side > label select { width: 100%; min-height: 42px; margin: 0; font: inherit; font-size: 16px; }
.rd-wm-side h2 { margin: 14px 16px 2px; font-size: 15px; font-weight: 600; color: var(--muted); }
.rd-wm-row { display: flex; align-items: center; gap: 8px; padding: 0 14px; }
.rd-wm-row:hover { background: var(--surface-2); }
.rd-wm-row label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; min-height: 42px; font-size: 16px; cursor: pointer; }
.rd-wm-row input { width: 18px; height: 18px; margin: 0; flex: none; }
.rd-wm-row i { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.rd-wm-badge { flex: none; display: block; }
.rd-wm-row em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.rd-wm .rd-wm-side .rd-wm-row button { min-height: 34px; padding: 2px 6px; border: 0; font-size: 14px; color: var(--muted); text-decoration: underline; }
.rd-wm #rd-wm-clear { margin: 12px 14px 0; }
.rd-wm-box { position: relative; min-width: 0; background: #0c1116; }
#rd-wm-map { height: min(78vh, 820px); min-height: 520px; color: #eef2f5; }
.rd-wm-base { position: absolute; z-index: 2; left: 12px; top: 12px; display: flex; flex-wrap: wrap; max-width: calc(100% - 70px); }
.rd-wm #rd-wm-said { flex: 0 1 100%; max-width: 46ch; margin: 6px 0 0; padding: 7px 10px; background: #10171d; color: #eef2f5; font-size: 15px; line-height: 1.35; }
.rd-wm .rd-wm-base button {: 40px; padding: 0 14px; background: #10171d; color: #eef2f5; border: 1px solid #3b4752; border-radius: 0; font: inherit; font-size: 15px; font-weight: 400; cursor: pointer; }
.rd-wm .rd-wm-base button[aria-pressed="true"] { background: #2b3a46; font-weight: 600; }
.rd-wm .maplibregl-ctrl button { padding: 0; background-color: transparent; border-radius: 0; height: 29px; min-height: 0; }
.rd-wm .maplibregl-ctrl-group { background: #fff; }
.rd-wm .maplibregl-popup-content { max-height: 360px; overflow: auto; padding: 14px 16px; color: #15191d; font: 15px/1.4 var(--body); border-radius: 4px; }
.rd-wm .maplibregl-popup-close-button { width: 32px; height: 32px; padding: 0; background: transparent; border: 0; color: #15191d; font-size: 20px; }
.rd-wm-pop > div + div { margin-top: 10px; padding-top: 10px; border-top: 1px solid #d5dade; }
.rd-wm-pop strong, .rd-wm-list strong { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; }
.rd-wm-pop strong i, .rd-wm-list strong i { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.rd-wm-pop b, .rd-wm-pop span, .rd-wm-pop small, .rd-wm-pop em, .rd-wm-list b, .rd-wm-list span, .rd-wm-list small, .rd-wm-list em { display: block; overflow-wrap: anywhere; }
.rd-wm-pop b, .rd-wm-list b { font-size: 17px; line-height: 1.3; }
.rd-wm-pop .flag, .rd-wm-list .flag { margin-right: 6px; }
.rd-wm-pop small { color: #4d565e; font-size: 14px; }
.rd-wm-pop em { font-style: normal; font-weight: 600; color: #9a5b00; }
.rd-wm-pop p { margin: 6px 0 0; white-space: pre-line; }
.rd-wm-pic { display: block; width: 100%; height: auto; margin: 8px 0 4px; background: #e6eaed; }
.rd-wm-src { font-size: 13px; color: #5c656d; margin-top: 4px; }
.rd-wm-list .rd-wm-src, .rd-wm-list .rd-wm-src a { color: var(--muted); }
.rd-wm-pop .rd-wm-src a { color: #5c656d; }
.rd-wm-pop a { color: #15191d; }
.rd-wm-key { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.rd-wm-key a { color: var(--ink); }
.rd-wm-h { margin: 22px 0 10px; font-size: 22px; }
.rd-wm-tools { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 20px; margin-bottom: 12px; }
.rd-wm-pick { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 420px; }
.rd-wm .rd-wm-pick button { display: inline-flex; align-items: center; gap: 8px; height: auto; min-height: 40px; padding: 6px 13px; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: 16px; font-weight: 400; cursor: pointer; }
.rd-wm .rd-wm-pick button[aria-pressed="true"] { background: var(--surface-2); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.rd-wm-pick i { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.rd-wm-pick em { font-style: normal; font-weight: 400; color: var(--muted); }
.rd-wm-tools label { display: grid; gap: 4px; font-size: 15px; color: var(--muted); }
.rd-wm-tools select { min-height: 42px; margin: 0; font: inherit; font-size: 16px; }
.rd-wm-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 12px; align-items: start; }
.rd-wm-list li { margin: 0; padding: 12px 14px; border: 1px solid var(--line); background: var(--surface-2); font-size: 16px; min-width: 0; }
.rd-wm-list strong, .rd-wm-list small { color: var(--muted); }
.rd-wm-list small { font-size: 15px; }
.rd-wm-list em { font-style: normal; font-weight: 600; font-size: 15px; color: #b86e00; }
:root[data-theme="dark"] .rd-wm-list em { color: #e8ab4a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rd-wm-list em { color: #e8ab4a; } }
.rd-wm-when { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.rd-wm .rd-wm-when button { height: auto; min-height: 42px; padding: 6px 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-wm .rd-wm-when button[aria-pressed="true"] { background: var(--surface-2); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.rd-wm-when i { font-style: normal; font-weight: 400; color: var(--muted); }
.rd-wm-list details { margin: 8px 0 0; padding: 0; border: 0; }
.rd-wm-list summary { margin: 0; cursor: pointer; font-size: 15px; text-decoration: underline; }
.rd-wm-list details p { margin: 6px 0; white-space: pre-line; overflow-wrap: anywhere; }
.rd-wm .rd-wm-more { display: block; min-height: 44px; margin: 14px 0 0; padding: 8px 18px; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.rd-wm .rd-wm-more[hidden] { display: none; }
.rd-wm-about { margin: 24px 0 0; padding: 0; border: 0; }
.rd-wm-about > summary { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 4px 18px; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; }
.rd-wm-about > summary::-webkit-details-marker { display: none; }
.rd-wm-about > summary:focus-visible, .rd-wm .rd-wm-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rd-wm-about > .rd-wm-key { margin-top: 14px; }
.rd-wm-own { margin-top: 26px; padding-top: 14px; border-top: 2px solid var(--line); }
.rd-wm-own h3, .rd-wm-covers h2 { margin: 0 0 6px; font-size: 20px; }
.rd-wm-covers { margin: 30px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 16px; }
.rd-wm-covers details { margin: 0; padding: 0; border: 0; }
.rd-wm-covers summary { margin: 0; padding: 10px 0; cursor: pointer; }
.rd-wm-covers p { margin: 0 0 8px; max-width: 110ch; }
.rd-wm-ccs { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.rd-wm-foot { margin: 30px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.rd-wm-foot h2 { margin: 0 0 8px; font-size: 18px; color: var(--ink); }
.rd-wm-foot ul { margin: 0 0 10px; padding: 0; list-style: none; }
.rd-wm-foot li { margin: 0 0 5px; max-width: 120ch; overflow-wrap: anywhere; }
.rd-wm-foot a { color: var(--ink); }
@media (max-width: 900px) {
  .rd-wm-grid { grid-template-columns: minmax(0, 1fr); }
  .rd-wm-box { order: -1; }
  .rd-wm-side { height: auto; min-height: 0; border-right: 0; border-top: 1px solid var(--line); }
  #rd-wm-map { height: 62vh; min-height: 0; }
  .rd-wm .rd-wm-base button { padding: 0 10px; }
}
