/* ===================================================
   "One document, many frameworks" map.
   Shared by the homepage CMS section and the CMS product page hero.
   Wires and pulses are drawn by /cms-map.js.
   =================================================== */

.cms-map {
  position: relative;
  display: grid;
  grid-template-columns: minmax(172px, 214px) minmax(56px, 1fr) minmax(188px, 228px);
  align-items: center;
  padding: 28px 0;
  text-align: left;
}
.cms-map::before {
  content: '';
  position: absolute;
  left: -10%;
  top: 50%;
  width: 70%;
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(45, 200, 130, 0.07), transparent);
  pointer-events: none;
}
.cms-map__wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.cms-doc {
  grid-column: 1;
  position: relative;
  z-index: 1;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)), #0B0B11;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.cms-doc__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cms-doc__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--accent-primary);
  background: rgba(45, 200, 130, 0.09);
  border: 1px solid rgba(45, 200, 130, 0.22);
}
.cms-doc__icon svg { width: 18px; height: 18px; }
.cms-doc__tag {
  font-size: 11.5px;
  color: var(--text-tertiary);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cms-doc__title { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--text-primary); }
.cms-doc__meta { display: block; margin-top: 5px; font-size: 12px; color: var(--text-tertiary); }
.cms-doc__rows {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.cms-doc__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--text-tertiary); }
.cms-doc__val { display: inline-flex; align-items: center; gap: 7px; color: var(--text-secondary); white-space: nowrap; }
.cms-doc__dots { display: inline-flex; }
.cms-doc__dots b {
  width: 8px;
  height: 8px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--fw);
  box-shadow: 0 0 0 2px #0D0D13;
}
.cms-doc__due { width: 7px; height: 7px; border-radius: 50%; background: #FFB020; box-shadow: 0 0 8px rgba(255, 176, 32, 0.5); }

.cms-fws {
  grid-column: 3;
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cms-fw {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 11px 12px 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005)), #0A0A0F;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}
.cms-fw.is-flash {
  border-color: color-mix(in srgb, var(--fw) 45%, transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--fw) 14%, transparent);
  transition-duration: 0.15s;
}
.cms-fw__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fw); box-shadow: 0 0 10px color-mix(in srgb, var(--fw) 55%, transparent); }
.cms-fw span { min-width: 0; }
.cms-fw strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-primary); line-height: 1.25; }
.cms-fw small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cms-fw__ok {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: var(--text-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.4s ease, background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.cms-fw__ok svg { width: 11px; height: 11px; opacity: 0.35; transition: opacity 0.4s ease; }
.cms-fw.is-ok .cms-fw__ok {
  color: #050508;
  background: var(--accent-primary);
  border-color: transparent;
  box-shadow: 0 0 12px rgba(45, 200, 130, 0.35);
}
.cms-fw.is-ok .cms-fw__ok svg { opacity: 1; }


/* one-line summary under the map (product page) */
.cms-map__sum {
  width: fit-content;
  margin: 6px auto 0;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  color: var(--text-secondary);
}
.cms-map__sum b { color: var(--text-primary); font-weight: 600; }
.cms-map__sum i { font-style: normal; color: var(--accent-primary); margin: 0 4px; }

@media (max-width: 520px) {
  .cms-map { grid-template-columns: 1fr; row-gap: 26px; padding: 8px 0; }
  .cms-fws { grid-column: 1; padding-left: 40px; }
}
