/* Cyber Map (/cyber-map): a map dashboard in the site's two themes.
   The page keeps the base of sf-cyber-alerts.css (resets, type, the area
   chart, buttons, the reveal motion) and re-points its --cy-* tokens to the
   palette below, so the shared pieces follow it. Everything else is here:
   tokens, shell, controls, the map, the country panel (a side panel on wide
   screens, a card on tablets, a bottom sheet on phones) and the data cards.

   Colours are tokens, never literals in a rule: the light set on .sf-cymap,
   the dark set under [data-bs-theme="dark"] (the site's own theme switch;
   never prefers-color-scheme, which the site does not follow). The ransomware
   ramp is one hue in five steps, light to dark on the light map and dark to
   bright on the dark one (checked: monotone lightness, steps at least 0.06
   apart in OKLCH L, the faint end at least 2:1 against the sea). */

.sf-cyber.sf-cymap {
  --cm-bg: #f7f9fb;
  --cm-surface: #ffffff;
  --cm-surface-2: #f0f4f7;
  --cm-line: #dce5eb;
  --cm-line-2: #e9eef2;
  --cm-line-strong: #c3d0d9;
  --cm-text: #172733;
  --cm-text-2: #566878;
  --cm-accent: #147d90;
  --cm-accent-text: #0f6e7f;
  --cm-accent-soft: rgba(20, 125, 144, .1);
  --cm-on-accent: #ffffff;
  --cm-on-strong: #ffffff;
  --cm-option-text: #172733;
  --cm-option-bg: #ffffff;
  --cm-sheet-shadow: 0 -14px 40px -12px rgba(23, 39, 51, .35);
  --cm-backdrop: rgba(23, 39, 51, .45);
  --cm-rw: #c94836;
  --cm-rw-soft: rgba(201, 72, 54, .12);
  --cm-out: #6d4ac7;
  --cm-ai: #b3197e;
  --cm-out-soft: rgba(109, 74, 199, .14);
  --cm-out-strong: #6d4ac7;
  --cm-ok: #1f8a5b;
  --cm-warn: #9a6412;
  --cm-track: #e9eef2;
  --cm-shadow: 0 1px 2px rgba(23, 39, 51, .05), 0 8px 24px -16px rgba(23, 39, 51, .18);
  --cm-shadow-lg: 0 16px 40px -18px rgba(23, 39, 51, .35);
  /* Map */
  --cm-sea: #f4f7f9;
  --cm-land: #dbe3e9;
  --cm-border: #ffffff;
  --cm-grat: rgba(23, 39, 51, .07);
  --cm-rim: rgba(23, 39, 51, .16);
  --cm-b1: #e99c8b;
  --cm-b2: #de7861;
  --cm-b3: #cb533c;
  --cm-b4: #a93725;
  --cm-b5: #782114;
  --cm-select: #0e7c8f;
  --cm-select-halo: #ffffff;
  --cm-tip-bg: #172733;
  --cm-tip-text: #f4f7f9;
  --cm-tip-line: #172733;
  /* The shared pieces of sf-cyber-alerts.css take the same palette. */
  --cy-bg: var(--cm-bg);
  --cy-card: var(--cm-surface);
  --cy-line: var(--cm-line);
  --cy-line-2: var(--cm-line-2);
  --cy-text: var(--cm-text);
  --cy-text-2: var(--cm-text-2);
  --cy-muted: var(--cm-text-2);
  --cy-hover: var(--cm-surface-2);
  --cy-series: var(--cm-rw);
  --cy-series-soft: var(--cm-rw-soft);
  --cy-shadow: var(--cm-shadow);
  --cy-shadow-lg: var(--cm-shadow-lg);
  --cm-top: calc(56px + 1.25rem);
  position: relative;
  max-width: 1640px;
  padding: var(--cm-top) clamp(1rem, 2.2vw, 2rem) 3rem;
  color: var(--cm-text);
  /* The public layout sets body text to weight 200 and strong to 400. */
  font-weight: 400;
}
.sf-cymap strong, .sf-cymap b { font-weight: 600; }
[data-bs-theme="dark"] .sf-cyber.sf-cymap {
  --cm-bg: #080d12;
  --cm-surface: #101820;
  --cm-surface-2: #14212a;
  --cm-line: #263743;
  --cm-line-2: #1b2933;
  --cm-line-strong: #36505f;
  --cm-text: #eaf2f6;
  --cm-text-2: #91a5b4;
  --cm-accent: #39d5d0;
  --cm-accent-text: #39d5d0;
  --cm-accent-soft: rgba(57, 213, 208, .12);
  --cm-on-accent: #06262b;
  --cm-sheet-shadow: 0 -14px 40px -12px rgba(0, 0, 0, .6);
  --cm-backdrop: rgba(0, 0, 0, .65);
  --cm-rw: #e65b42;
  --cm-rw-soft: rgba(230, 91, 66, .16);
  --cm-out: #8460ea;
  --cm-ai: #ec5fb4;
  --cm-out-soft: rgba(132, 96, 234, .2);
  --cm-out-strong: #6d4ac7;
  --cm-ok: #36c98a;
  --cm-warn: #e0a83e;
  --cm-track: #1b2933;
  --cm-shadow: 0 0 0 rgba(0, 0, 0, 0);
  --cm-shadow-lg: 0 18px 44px -18px rgba(0, 0, 0, .7);
  --cm-sea: #0b1218;
  --cm-land: #1f2d38;
  --cm-border: #0b1218;
  --cm-grat: rgba(145, 165, 180, .09);
  --cm-rim: rgba(145, 165, 180, .22);
  --cm-b1: #7c352a;
  --cm-b2: #a04030;
  --cm-b3: #c94e39;
  --cm-b4: #ec6a50;
  --cm-b5: #ff9c84;
  --cm-select: #39d5d0;
  --cm-select-halo: #06262b;
  --cm-tip-bg: #14212a;
  --cm-tip-text: #eaf2f6;
  --cm-tip-line: #36505f;
  /* dark-theme.css colours text links and its focus ring with these tokens. */
  --accent-text: #39d5d0;
  --accent: #39d5d0;
}

/* The page background, edge to edge behind the layout's container. */
.sf-cymap::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--cm-bg);
  pointer-events: none;
}
/* The public layout caps its container at 1320px and pads it; a dashboard
   uses the width. Browsers without :has() keep the container, nothing breaks. */
.page-layout .main-content:has(> .sf-cymap) {
  max-width: none;
  padding: 0;
}

.sf-cymap .cm-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.cm-ico { display: inline-block; flex: none; width: 1em; height: 1em; vertical-align: -.125em; }
.sf-cymap :where(button, a, select, summary, [tabindex]):focus-visible { outline: 2px solid var(--cm-accent); outline-offset: 2px; }
.sf-cymap :where(button) { font: inherit; color: inherit; }
/* dark-theme.css forces its own ring (offset and radius) on every focused
   control and its own colour on every heading: the page restates the few that
   must differ. */
.sf-cymap .cm-stage:focus-visible, .sf-cymap .cm-zoom__btn:focus-visible { outline: 2px solid var(--cm-accent) !important; outline-offset: -2px !important; border-radius: 0; }
/* The panel takes the focus when a country is chosen from a list: the ring
   says where the keyboard is now. */
.sf-cymap .cm-panel:focus-visible { outline: 2px solid var(--cm-accent) !important; outline-offset: -2px !important; border-radius: var(--cm-panel-radius); }
.sf-cymap .cm-iconbtn:focus-visible { border-radius: 10px; }
.sf-cymap .cm-list__out:focus-visible { border-radius: 8px; }
.sf-cymap .cm-title, .sf-cymap .cm-card__title, .sf-cymap .cm-panel__name, .sf-cymap .cy-h3 { color: var(--cm-text) !important; }
/* Text links. dark-theme.css recolours every text link with a selector no
   page rule can outrank, so the colour is set here once (anchors styled as
   buttons keep their own) and each context only names its --cm-link. */
.sf-cymap a:not([class*="btn"]) { color: var(--cm-link, var(--cm-accent-text)) !important; text-underline-offset: 3px; }

/* ── Breadcrumb ───────────────────────────────────────────────────────── */
.cm-crumbs { display: flex; align-items: center; gap: .35rem; margin-bottom: .75rem; font-size: .8rem; color: var(--cm-text-2); }
.cm-crumbs a { --cm-link: var(--cm-text-2); text-decoration: none; }
.cm-crumbs a:hover { --cm-link: var(--cm-text); text-decoration: underline; }
.cm-crumbs [aria-current] { color: var(--cm-text); }
.cm-crumbs .cm-ico { font-size: .85em; opacity: .7; }

/* ── Shell ────────────────────────────────────────────────────────────── */
.cm-shell {
  position: relative;
  background: var(--cm-surface);
  border: 1px solid var(--cm-line);
  border-radius: 16px;
  box-shadow: var(--cm-shadow);
  scroll-margin-top: 64px;
}
/* A hairline of the accent along the top edge. */
.cm-shell::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cm-accent), transparent);
  opacity: .55;
  pointer-events: none;
}

/* The title keeps its width (it never wraps); the status takes what is left
   and wraps inside it, however long it gets while a source does not answer. */
.cm-head { display: grid; grid-template-columns: auto minmax(min-content, 1fr) minmax(0, max-content) auto; grid-template-areas: 'icon copy meta theme'; align-items: center; gap: .75rem 1rem; padding: 1rem 1.25rem; }
.cm-head__icon { grid-area: icon; }
.cm-head__copy { grid-area: copy; min-width: 0; }
.cm-head__meta { grid-area: meta; }
.cm-head > .cm-theme { grid-area: theme; }
.cm-head__icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--cm-line); border-radius: 12px; background: var(--cm-accent-soft); color: var(--cm-accent-text); font-size: 1.35rem; }
.sf-cymap .cm-title { font-size: clamp(1.3rem, 2.1vw, 1.65rem); font-weight: 650; letter-spacing: -.025em; line-height: 1.15; color: var(--cm-text); white-space: nowrap; overflow-wrap: normal; }
.cm-subtitle { margin-top: .15rem; font-size: .9rem; color: var(--cm-text-2); }
.cm-head__meta { display: flex; align-items: center; justify-content: flex-end; gap: .5rem .9rem; min-width: 0; }
.cm-head__tools { position: relative; display: flex; flex: none; align-items: center; gap: .4rem; }
.cm-status { display: inline-flex; flex: 0 1 auto; align-items: center; gap: .5rem; min-width: 0; font-size: .82rem; line-height: 1.35; color: var(--cm-text-2); }
.cm-status__text { min-width: 0; }
.cm-status time { color: var(--cm-text); font-weight: 500; white-space: nowrap; }
.cm-status__ago { white-space: nowrap; }
.cm-status__warn { color: var(--cm-warn); }
/* A status that carries a warning needs the room: the subtitle steps aside. */
.cm-head:has(.cm-status__warn) .cm-subtitle { display: none; }
.cm-status__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cm-text-2); }
.cm-status[data-state="ok"] .cm-status__dot { background: var(--cm-ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cm-ok) 22%, transparent); }
.cm-status[data-state="warn"] .cm-status__dot { background: var(--cm-warn); }
.cm-status[data-state="warn"] { color: var(--cm-warn); }
/* The answer of "look for newer data": a note under the button, over the
   controls, so nothing moves. Empty, it stays rendered for screen readers. */
.cm-status__note { position: absolute; top: calc(100% + 6px); right: 0; z-index: 6; padding: .4rem .7rem; border: 1px solid var(--cm-tip-line); border-radius: 10px; background: var(--cm-tip-bg); color: var(--cm-tip-text); font-size: .78rem; white-space: nowrap; box-shadow: var(--cm-shadow-lg); }
.cm-status__note:empty { width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip: rect(0, 0, 0, 0); box-shadow: none; }

.cm-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--cm-line);
  border-radius: 10px;
  background: var(--cm-surface);
  color: var(--cm-text-2);
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.cm-iconbtn:hover { color: var(--cm-text); border-color: var(--cm-line-strong); background: var(--cm-surface-2); text-decoration: none; }
.cm-iconbtn[disabled] { opacity: .45; cursor: default; }
.cm-iconbtn--text { padding: 0 .7rem; }
.cm-iconbtn--text span { font-size: .82rem; font-weight: 500; }
.cm-iconbtn.is-busy .cm-ico { animation: cm-spin .9s linear infinite; }
.cm-iconbtn.is-done { color: var(--cm-ok); border-color: var(--cm-ok); }
@keyframes cm-spin { to { transform: rotate(360deg); } }

/* The site's theme switch (auto by the clock, light, dark), bound by
   /assets/js/theme-toggle.js through [data-theme-option]. */
.cm-theme { display: inline-flex; padding: 2px; border: 1px solid var(--cm-line); border-radius: 10px; background: var(--cm-surface-2); }
.cm-theme label { position: relative; display: block; margin: 0; cursor: pointer; }
.cm-theme input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cm-theme span { display: grid; place-items: center; width: 32px; height: 30px; border-radius: 8px; color: var(--cm-text-2); font-size: .95rem; transition: background-color .15s ease, color .15s ease; }
.cm-theme input:checked + span { background: var(--cm-surface); color: var(--cm-text); box-shadow: 0 0 0 1px var(--cm-line-strong); }
.cm-theme input:focus-visible + span { outline: 2px solid var(--cm-accent); outline-offset: 2px; }

/* ── Controls: regions, layers, country ───────────────────────────────── */
.cm-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .7rem 1.25rem; border-top: 1px solid var(--cm-line); }
/* The padding (taken back by the margin) leaves room for the focus ring of a
   chip, which the scrolling strip would otherwise cut. */
.cm-regions { display: flex; flex: 1 1 auto; gap: .4rem; min-width: 0; margin: -4px; padding: 4px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.cm-regions::-webkit-scrollbar { display: none; }
.cm-chip {
  flex: none;
  min-height: 36px;
  padding: 0 .85rem;
  border: 1px solid var(--cm-line);
  border-radius: 999px;
  background: transparent;
  color: var(--cm-text-2);
  font-size: .84rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.sf-cymap .cm-chip { color: var(--cm-text-2); }
.sf-cymap .cm-chip:hover { color: var(--cm-text); border-color: var(--cm-line-strong); }
.sf-cymap .cm-chip:focus-visible { border-radius: 999px; }
.sf-cymap .cm-chip[aria-pressed="true"] { color: var(--cm-text); border-color: var(--cm-accent); background: var(--cm-accent-soft); box-shadow: inset 0 0 0 1px var(--cm-accent); }
.cm-controls__side { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-left: auto; }
.cm-layers { display: flex; gap: 1rem; }
.cm-layer { position: relative; display: inline-flex; align-items: center; gap: .45rem; min-height: 36px; margin: 0; font-size: .85rem; color: var(--cm-text); cursor: pointer; }
.cm-layer input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cm-layer__box { position: relative; flex: none; width: 18px; height: 18px; border: 1.5px solid var(--cm-text-2); border-radius: 5px; background: var(--cm-surface); transition: background-color .15s ease, border-color .15s ease; }
.cm-layer__box::after { content: ''; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 9px; border: solid var(--cm-on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; }
.cm-layer input:checked ~ .cm-layer__box { background: var(--cm-accent); border-color: var(--cm-accent); }
.cm-layer input:checked ~ .cm-layer__box::after { opacity: 1; }
.cm-layer input:focus-visible ~ .cm-layer__box { outline: 2px solid var(--cm-accent); outline-offset: 2px; }
.cm-layer__key { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--cm-rw); }
.cm-layer--out .cm-layer__key { border-radius: 50%; background: var(--cm-out); }
.cm-layer--ai .cm-layer__key { width: 9px; height: 9px; border-radius: 2px; background: var(--cm-ai); transform: rotate(45deg); }
.cm-find { position: relative; display: inline-flex; align-items: center; margin: 0; }
.cm-find__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.cm-find .cm-ico { position: absolute; left: .7rem; color: var(--cm-text-2); font-size: .95rem; pointer-events: none; }
.cm-find select {
  -webkit-appearance: none;
  appearance: none;
  height: 36px;
  max-width: 13.5rem;
  padding: 0 2rem 0 2.2rem;
  border: 1px solid var(--cm-line);
  border-radius: 10px;
  background-color: var(--cm-surface);
  background-image: linear-gradient(45deg, transparent 50%, var(--cm-text-2) 50%), linear-gradient(135deg, var(--cm-text-2) 50%, transparent 50%);
  background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  color: var(--cm-text);
  font: inherit;
  font-size: .85rem;
  text-overflow: ellipsis;
  cursor: pointer;
}
.cm-find select option { color: var(--cm-option-text); background: var(--cm-option-bg); }

/* ── Map and panel ────────────────────────────────────────────────────── */
.cm-body {
  --cm-stage-h: clamp(380px, 38vw, min(76vh, 780px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 30%, 400px);
  border-top: 1px solid var(--cm-line);
}
.cm-mapwrap { position: relative; min-width: 0; background: var(--cm-sea); border-radius: 0 0 0 15px; overflow: hidden; }
.cm-stage { position: relative; height: var(--cm-stage-h); }
.cm-stage:focus { outline: none; }
.cm-stage__msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 1.5rem; text-align: center; font-size: .9rem; color: var(--cm-text-2); }
.cm-svg { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.cm-svg.is-panning { cursor: grabbing; }
.cm-sphere { fill: var(--cm-sea); stroke: var(--cm-rim); stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
.cm-graticule { fill: none; stroke: var(--cm-grat); stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
.cm-c { fill: var(--cm-land); stroke: var(--cm-border); stroke-width: .7; stroke-linejoin: round; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .25s ease; }
.cm-b1 { fill: var(--cm-b1); }
.cm-b2 { fill: var(--cm-b2); }
.cm-b3 { fill: var(--cm-b3); }
.cm-b4 { fill: var(--cm-b4); }
.cm-b5 { fill: var(--cm-b5); }
@media (hover: hover) {
  .cm-land .cm-c:hover { stroke: var(--cm-select); stroke-width: 1.4; }
}
.hide-ransomware .cm-land .cm-c { fill: var(--cm-land); }
.hide-ransomware .cm-small { display: none; }
/* The selected country: a line of the accent over a halo, so it reads on any fill. */
.cm-selring { pointer-events: none; fill: none; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cm-selring--halo { stroke: var(--cm-select-halo); stroke-width: 5; }
.cm-selring--line { stroke: var(--cm-select); stroke-width: 2.2; }
/* Markers keep their size on screen: --cm-u is map units per pixel. */
.cm-scale { transform: scale(var(--cm-u, 1)); }
.cm-hit { fill: transparent; pointer-events: all; }
.cm-o, .cm-s { cursor: pointer; }
.cm-o__dot { fill: var(--cm-out); stroke: var(--cm-sea); stroke-width: 1.5; }
.cm-o__pulse { fill: var(--cm-out); opacity: 0; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.cm-s__dot { stroke: var(--cm-sea); stroke-width: 1.5; }
.cm-o.is-selected .cm-o__dot, .cm-s.is-selected .cm-s__dot { stroke: var(--cm-select); stroke-width: 2.5; }
.hide-outages .cm-outages { display: none; }
/* The AI layer: a diamond beside the country's centroid. */
.cm-ai__mark { fill: var(--cm-ai); stroke: var(--cm-sea); stroke-width: 1.5; }
.cm-ai.is-selected .cm-ai__mark { stroke: var(--cm-select); stroke-width: 2.5; }
.hide-ai .cm-aimarks { display: none; }
.hide-ai .cm-legend__group--ai .cm-legend__row { opacity: .45; }
@media (prefers-reduced-motion: no-preference) {
  .cm-o__pulse { animation: cm-pulse 2.8s ease-out infinite; }
  .has-map .cm-svg { animation: cm-in .5s ease both; }
}
@keyframes cm-pulse { 0% { transform: scale(.7); opacity: .45; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes cm-in { from { opacity: 0; } to { opacity: 1; } }

/* ── Motion ───────────────────────────────────────────────────────────
   Every effect shows what the snapshot already holds or answers the
   reader's own action: nothing moves across the map as if activity were
   arriving. Without motion the map is drawn at once, the same. */

.cm-hot { pointer-events: none; }
.cm-hot__glow { fill: none; stroke: var(--cm-b5); stroke-width: 7; stroke-opacity: 0; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hide-ransomware .cm-hot { display: none; }
.cm-ping { pointer-events: none; }
.cm-ping__ring { fill: none; stroke: var(--cm-select); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0; transform-box: fill-box; transform-origin: center; }
.cm-scan { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.cm-scan::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100%;
  width: 100%;
  opacity: 0;
  background: linear-gradient(90deg, transparent calc(100% - 180px), color-mix(in srgb, var(--cm-accent) 20%, transparent) calc(100% - 3px), var(--cm-accent) calc(100% - 2px), transparent);
}
/* Corner marks of the map frame (on the stage, clear of the legend). */
.cm-stage::after {
  --cm-k: color-mix(in srgb, var(--cm-accent) 60%, transparent);
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(var(--cm-k), var(--cm-k)) left top / 16px 2px no-repeat,
    linear-gradient(var(--cm-k), var(--cm-k)) left top / 2px 16px no-repeat,
    linear-gradient(var(--cm-k), var(--cm-k)) right top / 16px 2px no-repeat,
    linear-gradient(var(--cm-k), var(--cm-k)) right top / 2px 16px no-repeat,
    linear-gradient(var(--cm-k), var(--cm-k)) left bottom / 16px 2px no-repeat,
    linear-gradient(var(--cm-k), var(--cm-k)) left bottom / 2px 16px no-repeat,
    linear-gradient(var(--cm-k), var(--cm-k)) right bottom / 16px 2px no-repeat,
    linear-gradient(var(--cm-k), var(--cm-k)) right bottom / 2px 16px no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  /* The opening scan: each country takes its colour as the line reaches it. */
  .cm-svg.is-booting .cm-land .cm-c { fill: var(--cm-land); transition: none; }
  .cm-svg.is-booting .cm-outages, .cm-svg.is-booting .cm-hot, .cm-svg.is-booting .cm-small { opacity: 0; }
  .cm-svg.is-igniting .cm-land .cm-c { transition: fill .6s ease var(--cm-d, 0ms); }
  .cm-svg.is-igniting .cm-land .cm-c:not(.cm-b0) { animation: cm-flash .9s ease-out var(--cm-d, 0ms); }
  .cm-svg.is-igniting .cm-o { animation: cm-in .3s ease var(--cm-d, 0ms) both; }
  .cm-svg.is-igniting .cm-o__dot { transform-box: fill-box; transform-origin: center; animation: cm-pop .55s cubic-bezier(.2, 1.6, .4, 1) var(--cm-d, 0ms) both; }
  .cm-svg.is-igniting .cm-small, .cm-svg.is-igniting .cm-hot { animation: cm-in .6s ease 1.2s both; }
  .cm-scan.is-running::before { animation: cm-scan 1.5s linear both; }
  /* The top step of the legend breathes. */
  .cm-hot__glow { animation: cm-glow 3.4s ease-in-out infinite; }
  /* A new choice draws its outline and sends one ping. */
  .cm-selrings.is-fresh .cm-selring--line { stroke-dasharray: 1; animation: cm-draw .8s cubic-bezier(.3, .7, .3, 1) both; }
  .cm-selrings.is-fresh .cm-selring--halo { animation: cm-in .5s ease both; }
  .cm-ping__ring { animation: cm-ping 1.2s cubic-bezier(.2, .7, .3, 1) both; }
  .cm-ping__ring--late { animation-delay: .28s; }
}
/* States (outages by state): shown only when the map is zoomed in. */
.cm-states, .cm-state-marks { display: none; }
.cm-svg.show-states .cm-states { display: inline; }
.cm-svg.show-states .cm-state-marks { display: inline; }
.cm-svg.show-states .cm-o.has-states { display: none; }
.hide-outages .cm-state-marks, .cm-svg.is-replay .cm-state-marks { display: none !important; }
.cm-st { fill: none; stroke: var(--cm-sea); stroke-opacity: .55; stroke-width: .7; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.cm-legend__note { color: var(--cm-text-2); font-size: .74rem; }
.cm-rows--states li { display: grid; grid-template-columns: minmax(0, 1fr) auto 2.5rem; align-items: center; gap: .5rem; }
.cm-rows--states strong { text-align: right; }
.cm-tip__row--muted { opacity: .75; font-size: .72rem; }
/* Detailed shapes keep their edges exact when zoomed in. */
.cm-land .cm-c { shape-rendering: geometricPrecision; }
/* Countries with victims published on the last two days of the data. */
.cm-recent { pointer-events: none; }
.cm-recent__ring { fill: none; stroke: var(--cm-rw); stroke-width: 1.8; vector-effect: non-scaling-stroke; opacity: .85; transform-box: fill-box; transform-origin: center; }
.hide-ransomware .cm-recent { display: none; }
.cm-ringkey { flex: none; display: inline-block; width: 12px; height: 12px; border: 2px solid var(--cm-rw); border-radius: 50%; }
/* The replay of the last week. */
.cm-play { position: absolute; top: .75rem; right: .75rem; z-index: 2; display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: .35rem .8rem; border: 1px solid var(--cm-line); border-radius: 999px; background: var(--cm-surface); color: var(--cm-text); font-size: .8rem; font-weight: 600; box-shadow: var(--cm-shadow); cursor: pointer; }
.cm-play .cm-ico { color: var(--cm-rw); }
.cm-play[aria-pressed="true"] { border-color: var(--cm-rw); }
.cm-play[hidden] { display: none; }
.sf-cymap .cm-play:focus-visible { outline: 2px solid var(--cm-accent) !important; outline-offset: 2px !important; }
.cm-replay { position: absolute; top: 3.4rem; right: .75rem; z-index: 2; display: grid; gap: .2rem; max-width: min(320px, calc(100% - 1.5rem)); padding: .6rem .8rem; border: 1px solid var(--cm-tip-line); border-radius: 12px; background: var(--cm-tip-bg); color: var(--cm-tip-text); font-size: .8rem; line-height: 1.35; box-shadow: var(--cm-shadow-lg); pointer-events: none; }
.cm-replay[hidden] { display: none; }
.cm-replay p { margin: 0; }
.cm-replay__day { display: flex; align-items: center; gap: .45rem; font-weight: 700; }
.cm-replay__tag { padding: .05rem .4rem; border-radius: 999px; background: var(--cm-rw); color: #fff; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }
.cm-replay__top { opacity: .8; }
.cm-replay__bar { display: flex; gap: 3px; margin: .3rem 0 0; padding: 0; list-style: none; }
.cm-replay__bar li { flex: 1; height: 3px; border-radius: 2px; background: currentColor; opacity: .2; }
.cm-replay__bar li.is-past { opacity: .55; }
.cm-replay__bar li.is-now { background: var(--cm-rw); opacity: 1; }
.cm-svg.is-replay .cm-land .cm-c { fill: var(--cm-land); transition: fill .3s ease; }
.cm-svg.is-replay .cm-land .cm-c.is-day { fill: var(--cm-rw); }
.cm-svg.is-replay .cm-s__dot { fill: var(--cm-land); }
.cm-svg.is-replay .cm-s.is-day .cm-s__dot { fill: var(--cm-rw); }
.cm-svg.is-replay .cm-hot, .cm-svg.is-replay .cm-recent, .cm-svg.is-replay .cm-outages { display: none; }
.cm-bursts { pointer-events: none; }
.cm-burst__dot { fill: #fff; stroke: var(--cm-rw); stroke-width: 2; vector-effect: non-scaling-stroke; }
.cm-burst__ring { fill: none; stroke: var(--cm-rw); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .cm-recent__ring { opacity: 0; animation: cm-recent 2.6s ease-out infinite; }
  .cm-burst__ring { animation: cm-burst 1.3s cubic-bezier(.2, .7, .3, 1) both; }
  .cm-burst__dot { transform-box: fill-box; transform-origin: center; animation: cm-pop .45s cubic-bezier(.2, 1.6, .4, 1) both; }
}
@keyframes cm-recent { 0% { transform: scale(.5); opacity: .9; } 70% { opacity: .15; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes cm-burst { 0% { transform: scale(.2); opacity: .95; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes cm-scan {
  0% { transform: translateX(0); opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}
@keyframes cm-flash {
  0% { stroke: var(--cm-accent); stroke-width: 1.8; }
  100% { stroke: var(--cm-border); stroke-width: .7; }
}
@keyframes cm-pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes cm-glow { 0%, 100% { stroke-opacity: 0; } 50% { stroke-opacity: .42; } }
@keyframes cm-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes cm-ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(4.5); opacity: 0; } }

.cm-zoom { position: absolute; top: .75rem; left: .75rem; z-index: 2; display: grid; gap: 0; border: 1px solid var(--cm-line); border-radius: 10px; background: var(--cm-surface); box-shadow: var(--cm-shadow); overflow: hidden; }
.cm-zoom__btn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-bottom: 1px solid var(--cm-line); background: none; color: var(--cm-text-2); font-size: 1rem; cursor: pointer; }
.cm-zoom__btn:last-child { border-bottom: 0; }
.sf-cymap .cm-zoom__btn { color: var(--cm-text-2); }
.sf-cymap .cm-zoom__btn:hover { color: var(--cm-text); background: var(--cm-surface-2); }
.cm-zoom__btn[disabled] { opacity: .4; cursor: default; }
/* At a limit the icon dims, not the button: its focus ring keeps its contrast. */
.cm-zoom__btn[aria-disabled="true"] { cursor: default; }
.cm-zoom__btn[aria-disabled="true"] .cm-ico { opacity: .4; }
.no-map .cm-zoom { display: none; }
.no-map .cm-layer { opacity: .5; cursor: default; }
.cm-chip[disabled] { opacity: .5; cursor: default; }

.cm-hint { position: absolute; left: 50%; bottom: .9rem; z-index: 3; transform: translateX(-50%); padding: .4rem .75rem; border: 1px solid var(--cm-tip-line); border-radius: 999px; background: var(--cm-tip-bg); color: var(--cm-tip-text); font-size: .78rem; white-space: nowrap; pointer-events: none; box-shadow: var(--cm-shadow-lg); }
.cm-hint[hidden] { display: none; }
/* The touch hint: over the middle of the map, while one finger scrolls the page. */
.cm-touchhint { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 0; padding: 1rem; background: rgba(6, 12, 18, .62); color: #fff; font-size: .95rem; font-weight: 600; text-align: center; pointer-events: none; }
.cm-touchhint .cm-ico { font-size: 1.3rem; }
.cm-touchhint[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .cm-touchhint { animation: cm-in .2s ease both; }
}
.cm-tip { position: absolute; z-index: 4; display: grid; gap: .25rem; padding: .5rem .65rem; border: 1px solid var(--cm-tip-line); border-radius: 10px; background: var(--cm-tip-bg); color: var(--cm-tip-text); font-size: .78rem; line-height: 1.35; white-space: nowrap; pointer-events: none; box-shadow: var(--cm-shadow-lg); transform: translate(-50%, calc(-100% - 14px)); }
.cm-tip.is-below { transform: translate(-50%, 18px); }
.cm-tip[hidden] { display: none; }
.cm-tip strong { font-size: .86rem; font-weight: 600; }
.cm-tip__row { display: flex; align-items: center; gap: .4rem; }
.cm-tip__key { flex: none; width: 10px; height: 3px; border-radius: 2px; background: var(--cm-rw); }
.cm-tip__key--out { background: var(--cm-out); }

/* Legend: a strip under the map; over its empty corner (the South Pacific)
   once the map is wide enough for it not to cover a continent or a marker. */
.cm-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem 1.4rem;
  padding: .6rem .85rem;
  border-top: 1px solid var(--cm-line);
  background: var(--cm-surface);
  font-size: .74rem;
  color: var(--cm-text-2);
}
.cm-legend__group { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; }
@media (min-width: 1600px) {
  .cm-legend {
    position: absolute;
    left: .75rem;
    bottom: .75rem;
    z-index: 2;
    display: grid;
    gap: .55rem;
    max-width: 14.5rem;
    padding: .65rem .75rem;
    border: 1px solid var(--cm-line);
    border-radius: 12px;
    background: color-mix(in srgb, var(--cm-surface) 90%, transparent);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  .cm-legend__group { display: grid; gap: .3rem; }
}
.cm-legend__title { font-size: .72rem; font-weight: 600; color: var(--cm-text); }
.cm-legend__steps { display: flex; flex-wrap: wrap; gap: .25rem .6rem; }
.sf-cyber .cm-legend__steps > li { display: inline-flex; align-items: center; gap: .3rem; font-variant-numeric: tabular-nums; }
.cm-legend__row { display: flex; align-items: center; gap: .4rem; }
.cm-swatch { flex: none; display: inline-block; width: 14px; height: 10px; border-radius: 3px; background: var(--cm-land); }
.cm-swatch.cm-b0 { background: var(--cm-land); border: 1px solid var(--cm-line-strong); }
.cm-swatch.cm-b1 { background: var(--cm-b1); }
.cm-swatch.cm-b2 { background: var(--cm-b2); }
.cm-swatch.cm-b3 { background: var(--cm-b3); }
.cm-swatch.cm-b4 { background: var(--cm-b4); }
.cm-swatch.cm-b5 { background: var(--cm-b5); }
.cm-swatch--sel { background: var(--cm-land); box-shadow: 0 0 0 2px var(--cm-select); }
.cm-legend__marks { gap: .3rem; }
.cm-legend__marks .cm-mark:not(:first-child) { margin-left: .45rem; }
.cm-mark { flex: none; display: inline-block; border-radius: 50%; background: var(--cm-out); }
.cm-mark--1 { width: 8px; height: 8px; }
.cm-mark--2 { width: 11px; height: 11px; }
.cm-mark--3 { width: 14px; height: 14px; }
.hide-ransomware .cm-legend__group--rw .cm-legend__steps,
.hide-ransomware .cm-legend__group--rw .cm-legend__row,
.hide-outages .cm-legend__group--out .cm-legend__row { opacity: .45; }

/* Country panel */
.sf-cymap:not(.is-js) .cm-panel { display: none; }
.sf-cymap:not(.is-js) .cm-body { grid-template-columns: minmax(0, 1fr); }
.cm-panel { --cm-panel-radius: 0 0 15px 0; display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--cm-line); border-radius: var(--cm-panel-radius); background: var(--cm-surface); }
/* Beside the map the panel takes the map's height and scrolls inside: its
   content is out of flow, so a long country never stretches the row. */
@media (min-width: 1024px) {
  .cm-panel { position: relative; }
  /* The fade at the bottom says there is more to scroll to. */
  .cm-panel__body { position: absolute; inset: 0; padding-bottom: 2.4rem; -webkit-mask-image: linear-gradient(#000 calc(100% - 2rem), transparent); mask-image: linear-gradient(#000 calc(100% - 2rem), transparent); }
}
.cm-panel:focus:not(:focus-visible) { outline: none; }
.cm-panel__grip { display: none; }
.cm-panel__body { display: grid; align-content: start; gap: .9rem; min-height: 0; padding: 1.1rem 1.15rem 1.2rem; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--cm-line-strong) transparent; }
.cm-label { font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .68rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--cm-text-2); }
.cm-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.cm-panel__id { min-width: 0; }
.sf-cymap .cm-panel__name { display: flex; align-items: center; gap: .5rem; margin-top: .3rem; font-size: 1.4rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.15; color: var(--cm-text); }
.cm-flag { font-size: 1.25em; line-height: 1; }
.cm-panel__globe { display: grid; place-items: center; color: var(--cm-accent-text); }
.cm-panel__rank { margin-top: .3rem; font-size: .8rem; color: var(--cm-text-2); }
.cm-panel__tools { display: flex; flex: none; gap: .35rem; }
.cm-panel__toggle { display: none; }
.cm-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.cm-tile { position: relative; display: grid; align-content: start; gap: .15rem; padding: .65rem .75rem .7rem; border: 1px solid var(--cm-line); border-radius: 12px; background: var(--cm-surface-2); overflow: hidden; }
.cm-tile__cap { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 500; color: var(--cm-text-2); }
.cm-tile__cap .cm-ico { font-size: .95rem; color: var(--cm-rw); }
.cm-tile--out .cm-tile__cap .cm-ico { color: var(--cm-out); }
.cm-tile__v { font-size: 1.65rem; font-weight: 650; letter-spacing: -.03em; line-height: 1.1; color: var(--cm-text); }
.cm-tile__l { font-size: .74rem; color: var(--cm-text-2); }
.cm-spark { position: absolute; right: .65rem; top: 1.55rem; width: 44%; height: 26px; overflow: visible; }
.cm-spark__area { fill: var(--cm-rw); opacity: .12; }
.cm-spark__line { fill: none; stroke: var(--cm-rw); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.cm-panel__more { display: grid; gap: .9rem; }
.cm-sec__title { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .68rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; }
.sf-cymap .cm-sec__title { color: var(--cm-text-2) !important; letter-spacing: .09em; }
.cm-sec__title span { font-family: 'Geist', 'Inter', system-ui, sans-serif; font-size: .72rem; letter-spacing: 0; text-transform: none; color: var(--cm-text-2); }
.sf-cyber .cm-rows > li { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding: .38rem 0; border-bottom: 1px solid var(--cm-line-2); font-size: .86rem; }
.sf-cyber .cm-rows > li:last-child { border-bottom: 0; }
.cm-rows strong { font-variant-numeric: tabular-nums; font-weight: 600; }
.cm-panel__out { font-size: .84rem; color: var(--cm-text); }
.cm-note { padding: .6rem .7rem; border: 1px solid var(--cm-line-2); border-radius: 10px; background: var(--cm-surface-2); font-size: .76rem; color: var(--cm-text-2); }
.cm-panel__src { font-size: .76rem; color: var(--cm-text-2); }
.sf-cymap .cm-link { display: inline-flex; align-items: center; gap: .35rem; padding: 0; border: 0; background: none; font-size: .84rem; font-weight: 500; color: var(--cm-accent-text); cursor: pointer; text-decoration: none; }
.sf-cymap .cm-link:hover { text-decoration: underline; }
.cm-level { display: inline-block; padding: .14rem .5rem; border-radius: 999px; font-size: .7rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.cm-level--3 { background: var(--cm-out-strong); color: var(--cm-on-strong); }
.cm-level--2 { background: var(--cm-out-soft); color: var(--cm-text); box-shadow: inset 0 0 0 1px var(--cm-out); }
.cm-level--1 { box-shadow: inset 0 0 0 1px var(--cm-line-strong); color: var(--cm-text-2); }

/* ── Figures ──────────────────────────────────────────────────────────── */
.cm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .75rem; margin-top: 1rem; }
.cm-kpi { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .1rem .75rem; padding: .85rem 1rem; border: 1px solid var(--cm-line); border-radius: 14px; background: var(--cm-surface); box-shadow: var(--cm-shadow); }
.cm-kpi__icon { grid-row: 1 / span 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; font-size: 1.15rem; }
.cm-kpi__icon--rw { background: var(--cm-rw-soft); color: var(--cm-rw); }
.cm-kpi__icon--out { background: var(--cm-out-soft); color: var(--cm-out); }
.cm-kpi__l { font-size: .76rem; color: var(--cm-text-2); }
.cm-kpi__v { font-size: 1.6rem; font-weight: 650; letter-spacing: -.03em; line-height: 1.1; color: var(--cm-text); }
.cm-kpi__s { font-size: .76rem; color: var(--cm-text-2); }

/* ── Cards ────────────────────────────────────────────────────────────── */
.cm-zone, .cm-charts { display: grid; gap: .9rem; margin-top: .9rem; align-items: start; }
.cm-card { min-width: 0; padding: 1rem 1.1rem 1.1rem; border: 1px solid var(--cm-line); border-radius: 14px; background: var(--cm-surface); box-shadow: var(--cm-shadow); scroll-margin-top: 72px; }
.cm-card__head { margin-bottom: .75rem; }
.sf-cymap .cm-card__title { display: flex; align-items: center; gap: .5rem; font-size: 1rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; color: var(--cm-text); }
.cm-card__title .cm-ico { color: var(--cm-accent-text); font-size: 1.05em; }
.cm-card__sub { margin-top: .2rem; font-size: .8rem; color: var(--cm-text-2); }
.cm-card__note { margin-top: .75rem; font-size: .76rem; color: var(--cm-text-2); }
/* Links inside running text are told apart by more than their colour. */
.cm-card__note a, .cm-panel__src a, .cm-panel__out a, .cm-method__body a { text-decoration: underline; }

.cm-country { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.sf-cymap .cm-country { color: var(--cm-text); }
.cm-country:hover { text-decoration: underline; text-underline-offset: 3px; }
.cm-country.is-selected { font-weight: 600; }

.sf-cyber .cm-rank > li { display: grid; grid-template-columns: 1.6rem minmax(6.5rem, 42%) minmax(0, 1fr) 2.8rem; align-items: center; gap: .6rem; padding: .4rem .5rem; border-radius: 9px; font-size: .88rem; }
.sf-cyber .cm-rank--plain > li { grid-template-columns: minmax(6.5rem, 52%) minmax(0, 1fr) 2.8rem; }
.cm-rank__n { display: grid; place-items: center; height: 1.5rem; border: 1px solid var(--cm-line); border-radius: 6px; font-size: .72rem; font-variant-numeric: tabular-nums; color: var(--cm-text-2); }
.cm-rank__name, .cm-rank .cm-country { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-rank__v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.cm-bar { display: block; height: 8px; border-radius: 4px; background: var(--cm-track); overflow: hidden; }
.cm-bar__fill { display: block; width: var(--w); height: 100%; border-radius: 0 4px 4px 0; background: var(--cm-rw); }
[data-row].is-selected { background: var(--cm-accent-soft); box-shadow: inset 2px 0 0 var(--cm-accent); }

.sf-cyber .cm-feed > li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: .6rem; padding: .55rem .35rem; border-bottom: 1px solid var(--cm-line-2); border-radius: 6px; font-size: .86rem; }
.sf-cyber .cm-feed > li:last-child { border-bottom: 0; }
.sf-cyber .cm-feed > li[hidden] { display: none; }
.cm-feed__dot { align-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--cm-rw); }
.cm-feed__text { min-width: 0; }
.cm-feed__time { font-size: .76rem; color: var(--cm-text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cm-chiplabel { display: inline-block; margin-right: .25rem; padding: .08rem .38rem; border: 1px solid var(--cm-rw); border-radius: 5px; font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cm-text); vertical-align: .08em; }
.cm-feed .cm-country { text-decoration: underline; text-decoration-color: var(--cm-line-strong); text-underline-offset: 3px; }
/* The whole list, once asked for, scrolls inside the card. */
.is-expanded > .cm-feed { max-height: 24rem; padding-right: .35rem; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--cm-line-strong) transparent; }

.cm-sources { display: grid; gap: .8rem; }
.sf-cyber .cm-sources > li { display: grid; gap: .2rem; padding-bottom: .8rem; border-bottom: 1px solid var(--cm-line-2); font-size: .84rem; color: var(--cm-text-2); }
.cm-sources a { --cm-link: var(--cm-text); text-decoration: none; }
.cm-sources a:hover { text-decoration: underline; }
.cm-sources a .cm-ico { font-size: .85em; color: var(--cm-text-2); }
.cm-sources__when { display: flex; align-items: center; gap: .35rem; font-size: .76rem; }
.cm-sources__when.is-warn { color: var(--cm-warn); }
.cm-method { margin-top: .8rem; }
.cm-method > summary, .cm-data > summary { display: flex; align-items: center; gap: .5rem; list-style: none; font-size: .88rem; font-weight: 600; color: var(--cm-text); cursor: pointer; }
.cm-method > summary::-webkit-details-marker, .cm-data > summary::-webkit-details-marker { display: none; }
.cm-method > summary span, .cm-data > summary span { flex: 1 1 auto; }
.cm-method__chev { color: var(--cm-text-2); transition: transform .2s ease; }
.cm-method[open] .cm-method__chev, .cm-data[open] > summary .cm-method__chev { transform: rotate(180deg); }
.cm-method__body { display: grid; gap: .6rem; margin-top: .6rem; font-size: .84rem; color: var(--cm-text-2); }

.cm-tablewrap { overflow-x: auto; }
.cm-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
/* The layout restyles every table cell on phones (padding, 12px type, a fixed
   height): the cells restate theirs. */
.sf-cymap .cm-table th, .sf-cymap .cm-table td { height: auto; padding: .5rem .5rem; border-bottom: 1px solid var(--cm-line-2); text-align: left; font-size: .86rem; font-weight: 400; color: var(--cm-text); vertical-align: middle; }
.sf-cymap .cm-table thead th { font-size: .74rem; font-weight: 500; color: var(--cm-text-2); white-space: nowrap; }
.sf-cymap .cm-table th:first-child, .sf-cymap .cm-table td:first-child { padding-left: .35rem; }
.sf-cymap .cm-table th.is-num, .sf-cymap .cm-table td.is-num { text-align: right; font-variant-numeric: tabular-nums; }
/* A country name breaks between words, never inside one (the base style
   breaks anywhere, which leaves a narrow column one letter wide). */
.sf-cymap .cm-table th[scope="row"] { min-width: 8.5rem; overflow-wrap: normal; word-break: normal; }
.sf-cymap .cm-table .cm-country { overflow-wrap: normal; word-break: normal; }
.sf-cymap .cm-table tr.is-home th, .sf-cymap .cm-table tr.is-home td { font-weight: 600; }
.cm-table tr[hidden] { display: none; }
.cm-table--full thead th { position: sticky; top: 0; background: var(--cm-surface); }
.sf-cyber .cm-list > li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: .65rem; padding: .48rem .35rem; border-bottom: 1px solid var(--cm-line-2); border-radius: 6px; font-size: .86rem; }
.sf-cyber .cm-list > li:last-child { border-bottom: 0; }
.cm-list__n { font-size: .78rem; color: var(--cm-text-2); white-space: nowrap; }
.cm-list__out { --cm-link: var(--cm-text-2); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; }
.cm-list__out:hover { --cm-link: var(--cm-text); background: var(--cm-surface-2); }

.cm-data { margin-top: .9rem; border: 1px solid var(--cm-line); border-radius: 14px; background: var(--cm-surface); box-shadow: var(--cm-shadow); }
.cm-data > summary { padding: .9rem 1.1rem; }
.cm-data > summary > .cm-ico:first-child { color: var(--cm-accent-text); }
.cm-data .cm-tablewrap { max-height: 28rem; margin: 0 1.1rem 1.1rem; border-top: 1px solid var(--cm-line-2); overflow: auto; }
.cm-data__empty, .cm-data__note { margin: 0 1.1rem 1.1rem; }

/* Shared pieces, tuned to this page. */
.sf-cymap .cy-area__grid { stroke-dasharray: none; }
/* The shared draw-in dashes the line by its length in user units, which a
   stretched chart with non-scaling strokes does not have: the line would stop
   short of the last days. The chart is revealed from the left instead. */
.sf-cymap.is-js .cy-area__line { stroke-dasharray: none; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .sf-cymap.is-js .cy-area__plot svg { clip-path: inset(0 100% 0 0); transition: clip-path 1.3s cubic-bezier(.2, .8, .2, 1); }
  .sf-cymap.is-js .is-in .cy-area__plot svg { clip-path: inset(0 0 0 0); }
}
.sf-cymap .cy-area__plot { height: 150px; }
.sf-cymap .cy-btn:hover { border-color: var(--cm-line-strong); }
.sf-cymap .cy-help { margin-top: 1.25rem; border-radius: 14px; }
.sf-cymap .cy-empty { color: var(--cm-text-2); }

/* ── Wide screens: three columns of cards ─────────────────────────────── */
@media (min-width: 1100px) {
  .cm-zone { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); }
  .cm-charts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cm-card--wide { grid-column: span 2; }
}
@media (min-width: 768px) and (max-width: 1099.98px) {
  .cm-zone, .cm-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cm-card--wide, .cm-card--sources { grid-column: 1 / -1; }
}
@media (min-width: 600px) and (max-width: 1099.98px) {
  .cm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Below a wide desktop the header keeps to one line: the subtitle steps aside. */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .cm-subtitle { display: none; }
}

/* ── Tablet in portrait: the map takes the width, the panel goes under ── */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .cm-body { --cm-stage-h: clamp(260px, 54vw, min(560px, calc(100vh - 120px))); grid-template-columns: minmax(0, 1fr); }
  .cm-mapwrap { border-radius: 0; }
  .cm-panel { --cm-panel-radius: 0 0 15px 15px; border-left: 0; border-top: 1px solid var(--cm-line); }
  /* The figures across the top, the rest flowing in two balanced columns. */
  .cm-panel__body { overflow: visible; }
  .cm-panel__more { display: block; columns: 2; column-gap: 1.75rem; }
  .cm-panel__more > * { break-inside: avoid; margin-bottom: .9rem; }
  .cm-panel__more > :last-child { margin-bottom: 0; }
  .cm-head { grid-template-columns: auto minmax(min-content, 1fr) auto; grid-template-areas: 'icon copy theme' 'meta meta meta'; }
  .cm-head__meta { justify-content: space-between; }
  /* A long name wraps instead of being cut: a touch screen has no tooltip. */
  .cm-rank__name { white-space: normal; }
}

/* ── Phones: compact header, tall map, the panel as a bottom sheet ────── */
@media (max-width: 767.98px) {
  .sf-cyber.sf-cymap { --cm-top: calc(45px + .75rem); padding-left: .75rem; padding-right: .75rem; padding-bottom: 2.5rem; }
  .sf-cymap.has-sheet { padding-bottom: 16rem; }
  .cm-crumbs { display: none; }
  .cm-shell { border-radius: 14px; }
  .cm-head { grid-template-columns: auto minmax(min-content, 1fr) auto; grid-template-areas: 'icon copy theme' 'meta meta meta'; gap: .5rem .7rem; padding: .75rem .85rem; }
  .cm-head__icon { width: 38px; height: 38px; font-size: 1.15rem; border-radius: 10px; }
  .cm-subtitle { display: none; }
  .cm-head__meta { justify-content: space-between; gap: .5rem; }
  .cm-head__copy-link { display: none; }
  /* A phone with a share sheet keeps the button: it shares the page. */
  .can-share .cm-head__copy-link { display: inline-flex; }
  .cm-status { font-size: .78rem; }
  .cm-status__note { max-width: calc(100vw - 2.5rem); white-space: normal; }
  .cm-iconbtn--text { padding: 0; }
  .cm-iconbtn--text span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .cm-controls { padding: .6rem .85rem; gap: .5rem; }
  .cm-regions { flex-basis: 100%; margin: -4px -.85rem; padding: 4px .85rem; }
  .cm-controls__side { flex: 1 1 100%; margin-left: 0; justify-content: space-between; flex-wrap: nowrap; gap: .5rem; }
  .cm-layers { gap: .9rem; }
  .cm-layer { white-space: nowrap; }
  /* The country select folds into a search button: the native picker opens on tap. */
  .cm-find { flex: none; width: 46px; height: 46px; border: 1px solid var(--cm-line); border-radius: 10px; background: var(--cm-surface); justify-content: center; }
  .cm-find .cm-ico { position: static; font-size: 1.05rem; }
  .cm-find select { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; padding: 0; border: 0; opacity: 0; }
  .cm-zoom { top: auto; left: auto; right: .6rem; bottom: .6rem; }
  .cm-body { --cm-stage-h: clamp(300px, 54vh, 500px); grid-template-columns: minmax(0, 1fr); }
  .cm-mapwrap { border-radius: 0 0 13px 13px; }
  .cm-legend { gap: .4rem 1.1rem; }
  .cm-legend__group--sel { display: none; }
  .cm-hint { display: none; }

  .cm-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    max-height: 64vh;
    --cm-panel-radius: 18px 18px 0 0;
    border: 1px solid var(--cm-line);
    border-bottom: 0;
    background: var(--cm-surface);
    box-shadow: var(--cm-sheet-shadow);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateY(105%);
    visibility: hidden;
    transition: transform .32s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .32s;
  }
  .cm-panel[data-state="peek"], .cm-panel[data-state="open"] { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
  .cm-panel.is-dragging { transition: none; }
  .cm-panel.is-away[data-state] { transform: translateY(105%); visibility: hidden; transition: transform .32s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .32s; }
  /* The grip looks 28px tall and takes touches over 44px (it reaches above the sheet). */
  .cm-panel__grip { position: relative; display: grid; place-items: center; flex: none; width: 100%; height: 28px; padding: 0; border: 0; background: none; cursor: grab; touch-action: none; }
  .cm-panel__grip::after { content: ''; position: absolute; inset: -14px 0 -2px; }
  .cm-panel__grip span { width: 40px; height: 4px; border-radius: 2px; background: var(--cm-line-strong); }
  .cm-panel__body { gap: .75rem; padding: 0 .95rem 1rem; overscroll-behavior: contain; }
  /* The heading of the sheet drags it, like the grip. */
  .cm-panel__head { touch-action: none; -webkit-user-select: none; user-select: none; }
  /* The peek layout also holds while a sheet that was in peek slides out. */
  .cm-panel[data-state="peek"] .cm-panel__body, .cm-panel[data-state="closed"][data-from="peek"] .cm-panel__body { overflow: hidden; }
  .cm-panel[data-state="peek"] .cm-panel__more, .cm-panel[data-state="closed"][data-from="peek"] .cm-panel__more { display: none; }
  .cm-panel__toggle { display: inline-flex; }
  .cm-panel[data-state="open"] .cm-panel__toggle .cm-ico { transform: rotate(180deg); }
  .sf-cymap .cm-panel__name { font-size: 1.2rem; }
  .cm-panel__rank { font-size: .76rem; }
  .cm-tile { padding: .6rem .65rem .65rem; }
  .cm-tile__v { font-size: 1.45rem; }

  .cm-kpis { grid-template-columns: 1fr 1fr; gap: .55rem; margin-top: .75rem; }
  .cm-kpi { grid-template-columns: minmax(0, 1fr); padding: .7rem .75rem; gap: .1rem; }
  .cm-kpi__icon { grid-row: auto; width: 30px; height: 30px; font-size: .95rem; margin-bottom: .25rem; }
  .cm-kpi__v { font-size: 1.4rem; }
  .cm-zone, .cm-charts { gap: .7rem; margin-top: .7rem; }
  .cm-card { padding: .9rem .9rem 1rem; }
  .sf-cyber .cm-rank > li { grid-template-columns: 1.5rem minmax(0, 1fr) 2.6rem; grid-template-areas: 'n name v' 'n bar bar'; gap: .25rem .55rem; padding: .45rem .35rem; }
  .sf-cyber .cm-rank--plain > li { grid-template-columns: minmax(0, 1fr) 2.6rem; grid-template-areas: 'name v' 'bar bar'; }
  .cm-rank__n { grid-area: n; }
  .cm-rank .cm-country, .cm-rank__name { grid-area: name; }
  .cm-rank .cm-bar { grid-area: bar; }
  .cm-rank__v { grid-area: v; }
  .sf-cyber .cm-feed > li { grid-template-columns: auto minmax(0, 1fr); }
  .cm-feed__time { grid-column: 2; }
  .cm-data > summary { padding: .85rem .9rem; }
  .cm-data .cm-tablewrap, .cm-data__empty, .cm-data__note { margin: 0 .9rem .9rem; }
  /* The table fits a phone: short headers, tight cells. */
  .cm-th-long { display: none; }
  .sf-cymap .cm-table--full th, .sf-cymap .cm-table--full td { padding: .5rem .2rem; }
  .sf-cymap .cm-table th[scope="row"] { min-width: 6rem; }
}
/* A wide phone (on its side): the header and the controls take one row each. */
@media (min-width: 560px) and (max-width: 767.98px) {
  .cm-head { grid-template-columns: auto minmax(min-content, 1fr) minmax(0, max-content) auto; grid-template-areas: 'icon copy meta theme'; }
  .cm-regions { flex: 1 1 0; margin: -4px; padding: 4px; }
  .cm-controls__side { flex: none; }
}
/* The region strip is one scrolling row under a finger. A mouse wheel does
   not scroll it, so with a mouse the chips wrap onto rows. */
@media (min-width: 768px) {
  .cm-regions { flex-wrap: wrap; }
}
@media (min-width: 768px) and (pointer: coarse) {
  .cm-regions { flex-wrap: nowrap; }
}
@media (max-width: 767.98px) and (pointer: fine) {
  .cm-regions { flex-wrap: wrap; }
}
/* On a phone the two layer switches may stack (a large text size). */
@media (max-width: 767.98px) {
  .cm-layers { flex-wrap: wrap; row-gap: 0; }
}
/* Phones up to 383px wide: the layers and the country search share a row
   only if it is tightened. */
@media (max-width: 383.98px) {
  .cm-controls__side { gap: .35rem; }
  .cm-layers { column-gap: .45rem; }
  .cm-layer { gap: .3rem; font-size: .8rem; }
}
/* The narrowest phones: the title and the theme switch need the row (the icon
   steps aside) and the country search takes a row of its own. */
@media (max-width: 359.98px) {
  .cm-head__icon { display: none; }
  .cm-head { grid-template-columns: minmax(min-content, 1fr) auto; grid-template-areas: 'copy theme' 'meta meta'; }
  .cm-controls__side { flex-wrap: wrap; }
  /* With the share button, the status wraps under the three buttons. */
  .can-share .cm-head__meta { flex-wrap: wrap; }
}
/* A short, wide screen (a large phone on its side): one row for the header,
   and on a touch screen one for the controls (the region strip scrolls under
   a finger, not under a mouse wheel), so the map starts on the first screen. */
@media (min-width: 768px) and (max-height: 480px) {
  .cm-crumbs, .cm-subtitle { display: none; }
  .cm-head { grid-template-columns: auto minmax(min-content, 1fr) minmax(0, max-content) auto; grid-template-areas: 'icon copy meta theme'; }
}
@media (min-width: 768px) and (max-height: 480px) and (pointer: coarse) {
  .cm-regions { flex: 1 1 0; }
  .cm-controls__side { flex: none; }
}
/* A large text size (the browser's font setting): an em query sees it. On a
   wide window the status takes a row of its own instead of one word a line;
   on a phone the title may wrap and the icon steps aside. */
@media (min-width: 1024px) and (max-width: 60em) {
  .cm-head { grid-template-columns: auto minmax(min-content, 1fr) auto; grid-template-areas: 'icon copy theme' 'meta meta meta'; }
  .cm-head__meta { justify-content: space-between; }
  .cm-subtitle { display: none; }
}
@media (min-width: 1280px) and (max-width: 79.9em) {
  .cm-subtitle { display: none; }
}
@media (max-width: 22.4em) {
  .cm-controls__side { flex: 1 1 100%; flex-wrap: wrap; }
}
/* A wide phone layout under a mouse (a narrow desktop window): the chips and
   the other controls take the width, on rows of their own. */
@media (min-width: 560px) and (max-width: 767.98px) and (pointer: fine) {
  .cm-regions, .cm-controls__side { flex: 1 1 100%; }
}
@media (max-width: 19.9em) {
  .cm-head__icon { display: none; }
  .cm-head { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'copy theme' 'meta meta'; }
  .sf-cymap .cm-title { white-space: normal; }
}
/* A phone on its side: the map keeps to the screen and the sheet peeks with its heading only. */
@media (max-width: 767.98px) and (max-height: 480px) {
  .cm-body { --cm-stage-h: clamp(200px, 72vh, 500px); }
  .cm-panel { max-height: 50vh; }
  .cm-panel[data-state="peek"] .cm-tiles, .cm-panel[data-state="closed"][data-from="peek"] .cm-tiles { display: none; }
  .cm-panel__rank { display: none; }
}
@supports (height: 1svh) {
  @media (max-width: 767.98px) {
    .cm-body { --cm-stage-h: clamp(300px, 54svh, 500px); }
    .cm-panel { max-height: 64svh; }
  }
  @media (max-width: 767.98px) and (max-height: 480px) {
    .cm-body { --cm-stage-h: clamp(200px, 72svh, 500px); }
    .cm-panel { max-height: 50svh; }
  }
  @media (min-width: 768px) and (max-width: 1023.98px) {
    .cm-body { --cm-stage-h: clamp(260px, 54vw, min(560px, calc(100svh - 120px))); }
  }
}

/* Touch screens: every control at least 44px. */
@media (pointer: coarse) {
  .cm-chip, .cm-layer { min-height: 44px; }
  .cm-iconbtn { min-width: 44px; height: 44px; }
  .cm-zoom__btn { width: 44px; height: 44px; }
  .cm-find select { height: 44px; }
  .cm-theme span { width: 44px; height: 44px; }
  .cm-list__out { width: 44px; height: 44px; }
  .cm-country { display: inline-flex; align-items: center; gap: .3rem; min-width: 44px; min-height: 44px; }
  /* Inside a sentence the name stays inline: its padding takes the touch. */
  .cm-feed .cm-country { display: inline; min-width: 0; min-height: 0; margin: -.8rem 0; padding: .8rem 0; }
  .sf-cymap .cm-link, .cm-method > summary, .cm-data > summary { min-height: 44px; }
  .cm-sources li > p:first-child a { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; }
  .sf-cymap .cy-btn { min-height: 44px; }
}

@media print {
  .cm-controls, .cm-zoom, .cm-head__tools, .cm-theme, .cm-panel__tools, .cm-panel__grip { display: none; }
  /* Cards that were never scrolled into view print too. */
  .sf-cymap .cy-reveal { opacity: 1 !important; transform: none !important; }
}

/* Ransomware group names open the group's profile. */
.cm-groupbtn { display: inline-flex; align-items: center; gap: .2rem; min-width: 0; max-width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.sf-cymap .cm-groupbtn { color: var(--cm-text); text-decoration: underline; text-decoration-color: var(--cm-line-strong); text-underline-offset: 3px; }
.sf-cymap .cm-groupbtn:hover { text-decoration-color: currentColor; }
.cm-groupbtn:focus-visible { outline: 2px solid var(--cm-accent); outline-offset: 2px; border-radius: 3px; }
.cm-groupbtn__ico { flex: none; width: .85rem; height: .85rem; color: var(--cm-text-2); }
.sf-cyber .cm-rows--groups > li { align-items: center; }
.cm-rank__name.cm-groupbtn { display: block; }

/* The profile dialog: centred on wide screens, a full-height sheet on phones. */
.cm-group { width: min(640px, calc(100vw - 2rem)); max-height: min(86vh, 860px); padding: 0; border: 1px solid var(--cm-line); border-radius: 16px; background: var(--cm-surface); color: var(--cm-text); box-shadow: var(--cm-shadow-lg); overflow: hidden; }
.cm-group[open] { display: flex; flex-direction: column; }
.cm-group::backdrop { background: var(--cm-backdrop); }
.cm-group__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem .8rem; border-bottom: 1px solid var(--cm-line); }
.cm-group__name { margin: .15rem 0 0; font-size: 1.35rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.cm-group__body { flex: 1 1 auto; min-height: 0; padding: .9rem 1.1rem 1.2rem; overflow-y: auto; overscroll-behavior: contain; font-size: .9rem; line-height: 1.5; }
.cm-group__meta, .cm-group__figures { margin: 0 0 .4rem; font-size: .8rem; color: var(--cm-text-2); }
.cm-group__figures { color: var(--cm-text); font-weight: 500; }
.cm-group__sec { margin-top: 1.1rem; }
.cm-group__sec h3 { margin: 0 0 .4rem; font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .7rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--cm-text-2); }
.cm-group__hint { margin: -.15rem 0 .55rem; font-size: .78rem; color: var(--cm-text-2); }
.cm-group__text { margin: 0; }
.cm-group [lang="en"] { font-style: italic; }
.cm-group [lang="en"]::after { content: ' (en inglés)'; font-style: normal; font-size: .75em; color: var(--cm-text-2); }
.cm-group__entry { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.cm-group__entry > li { padding: .7rem .8rem; border: 1px solid var(--cm-line); border-radius: 12px; background: var(--cm-surface-2); }
.cm-group__how { margin: 0; }
.cm-group__how a { margin-left: .25rem; font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; color: var(--cm-text-2); }
.cm-group__detail { margin: .3rem 0 0; font-size: .82rem; color: var(--cm-text-2); }
.cm-group__advice { display: flex; gap: .45rem; margin: .5rem 0 0; font-size: .84rem; }
.cm-group__advice .cm-ico { flex: none; width: 1rem; height: 1rem; margin-top: .15rem; color: var(--cm-ok); }
.cm-group__tactics { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.cm-group__tactics a { display: inline-block; padding: .25rem .6rem; border: 1px solid var(--cm-line); border-radius: 999px; font-size: .8rem; color: var(--cm-text); text-decoration: none; }
.cm-group__tactics a:hover { border-color: var(--cm-accent); }
.cm-group__tactics span { color: var(--cm-text-2); }
.cm-group__tools { display: grid; grid-template-columns: minmax(8rem, 34%) 1fr; gap: .35rem .9rem; margin: 0; font-size: .84rem; }
.cm-group__tools dt { color: var(--cm-text-2); }
.cm-group__tools dd { margin: 0; overflow-wrap: anywhere; }
.cm-group__cves { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: 0; padding: 0; list-style: none; font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; }
.cm-group__cves span { margin-left: .35rem; color: var(--cm-text-2); }
.cm-group__empty { margin: .4rem 0; color: var(--cm-text-2); }
.cm-group__src { margin: 1.2rem 0 0; padding-top: .8rem; border-top: 1px solid var(--cm-line); font-size: .76rem; color: var(--cm-text-2); }
.cm-group a { color: var(--cm-accent-text); }
.cm-group__src a, .cm-group__how a, .cm-group__cves a { text-decoration: underline; }
@media (max-width: 767.98px) {
  .cm-group { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .cm-group__head { padding-top: max(1rem, env(safe-area-inset-top)); }
  .cm-group__body { padding-bottom: max(1.2rem, env(safe-area-inset-bottom)); }
  .cm-group__tools { grid-template-columns: 1fr; gap: .1rem; }
  .cm-group__tools dd { margin-bottom: .45rem; }
}

/* ── Campañas con IA: the legend key, the card list and the campaign card ── */
.cm-aikey { display: inline-block; flex: none; width: 9px; height: 9px; margin: 0 .5rem 0 .15rem; border-radius: 2px; background: var(--cm-ai); transform: rotate(45deg); vertical-align: middle; }
.cm-tip__key--ai { width: 8px; height: 8px; border-radius: 2px; background: var(--cm-ai); transform: rotate(45deg); }
.cm-ai-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.cm-ai-item { display: flex; flex-direction: column; gap: .35rem; width: 100%; height: 100%; padding: .85rem .95rem; border: 1px solid var(--cm-line); border-radius: 12px; background: var(--cm-surface-2); color: var(--cm-text); text-align: left; font: inherit; cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.cm-ai-item:hover { border-color: var(--cm-ai); transform: translateY(-1px); }
.cm-ai-item:focus-visible { outline: 2px solid var(--cm-accent); outline-offset: 2px; }
.cm-ai-item__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; font-size: .74rem; color: var(--cm-text-2); }
.cm-ai-item__tool { padding: .1rem .5rem; border: 1px solid var(--cm-ai); border-radius: 999px; color: var(--cm-ai); font-size: .72rem; }
.cm-ai-item__title { font-size: .95rem; font-weight: 600; line-height: 1.3; }
.cm-ai-item__where { font-size: .8rem; color: var(--cm-text-2); }
.cm-ai-item__impact { font-size: .82rem; line-height: 1.45; }
.cm-rows--ai li { align-items: flex-start; }
.cm-rows__aside { flex: none; font-size: .75rem; color: var(--cm-text-2); }
.cm-aibtn { text-align: left; white-space: normal; }
.cm-campaign__list { margin: 0; padding-left: 1.1rem; }
.cm-campaign__list li + li { margin-top: .3rem; }
.cm-chip { display: inline-block; padding: .25rem .6rem; border: 1px solid var(--cm-line); border-radius: 999px; font-size: .8rem; color: var(--cm-text); }
.cm-group__tactics + .cm-group__text, .cm-group__text + .cm-group__tactics { margin-top: .5rem; }
