/* Compact homepage attack map — scoped; does not change the full live-attacks widget. */

.cso-attack-map {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  color: #e8eef8;
  font: 13px/1.4 Tahoma, "Segoe UI", sans-serif;
}
.cso-attack-map *,
.cso-attack-map *::before,
.cso-attack-map *::after { box-sizing: border-box; }

.cso-attack-map__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  min-width: 0;
}
.cso-attack-map__header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}
.cso-attack-map__pulse {
  position: relative;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e23d2f;
  box-shadow: 0 0 0 0 rgba(226, 61, 47, 0.7);
}
.cso-attack-map__pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(226, 61, 47, 0.55);
  animation: cso-amap-pulse 1.5s ease-out infinite;
}
@keyframes cso-amap-pulse {
  0% { box-shadow: 0 0 0 0 rgba(226, 61, 47, 0.55); transform: scale(1); }
  70% { box-shadow: 0 0 0 8px rgba(226, 61, 47, 0); transform: scale(1); }
  100% { box-shadow: 0 0 0 0 rgba(226, 61, 47, 0); transform: scale(1); }
}
.cso-attack-map__caption {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.35;
  color: #c5d0e0;
}
.cso-attack-map__top { font-weight: 700; color: #fff; }

.cso-attack-map__canvas {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1000 / 520;
  background: #0b1524;
  border: 1px solid #1b3350;
  border-radius: 4px;
  overflow: hidden;
  min-width: 0;
}
.cso-attack-map__canvas svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
}
.cso-attack-map .land {
  fill: #1b3350;
  stroke: #3b6a8a;
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}
.cso-attack-map__link {
  display: inline-block;
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: underline;
}

@media (max-width: 899px) {
  .cso-attack-map { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .cso-attack-map__pulse::after { animation: none; }
}

/* Desktop: line up Book a call / CVE hit / Downtime Live as an equal-height
   row when the viewport is wide enough for ~350px columns. Below 1100px the
   existing homepage column (max-width: 760px) is left alone. !important is
   used only to beat the homepage's later-in-document style tag. */
@media (min-width: 1100px) {
  body.desk-home div.cso-panels {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    max-width: 1180px !important;
    align-items: stretch;
  }
  body.desk-home div.cso-panels > #topics,
  body.desk-home div.cso-panels > #one-to-ones,
  body.desk-home div.cso-panels > #get-in-touch {
    grid-column: 1 / -1;
  }
  body.desk-home div.cso-panels > #downtime-live,
  body.desk-home div.cso-panels > #cve-hit,
  body.desk-home div.cso-panels > #book-session {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
  }
  body.desk-home div.cso-panels > #downtime-live > .cso-xpbody,
  body.desk-home div.cso-panels > #cve-hit > .cso-xpbody,
  body.desk-home div.cso-panels > #book-session > .cso-xpbody {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  body.desk-home #cve-hit .cso-attack-map { flex: 1 1 auto; min-width: 0; }
}
