/* Graphic coverage map — elevated visual quality */

.attack-map-section {
  padding-bottom: 100px;
}

.attack-map {
  position: relative;
  margin-top: 10px;
  border: 1px solid rgba(246, 243, 237, 0.12);
  border-radius: calc(var(--r-lg) + 6px);
  background:
    radial-gradient(1000px 360px at 50% -8%, rgba(200, 90, 50, 0.18), transparent 55%),
    radial-gradient(480px 280px at 0% 80%, rgba(246, 243, 237, 0.04), transparent 55%),
    radial-gradient(420px 240px at 100% 60%, rgba(200, 90, 50, 0.06), transparent 50%),
    #12110f;
  overflow: hidden;
  isolation: isolate;
}

.attack-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(246, 243, 237, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 243, 237, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 10%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.attack-map-mount {
  position: relative;
  z-index: 1;
  padding: 26px 26px 0;
}

.cov {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Observers ── */

.cov-obs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cov-obs-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 18px 18px;
  border-radius: 20px;
  border: 1px solid rgba(246, 243, 237, 0.12);
  background:
    linear-gradient(180deg, rgba(246, 243, 237, 0.04), transparent 55%),
    rgba(16, 15, 13, 0.9);
  color: #f6f3ed;
  text-align: left;
  backdrop-filter: blur(8px);
  transition:
    border-color 0.22s var(--ease),
    background 0.22s var(--ease),
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.cov-obs-btn:hover,
.cov-obs-btn:focus-visible {
  outline: none;
  border-color: rgba(246, 243, 237, 0.3);
  transform: translateY(-2px);
}

.cov-obs-btn.is-active {
  border-color: rgba(246, 243, 237, 0.34);
  background:
    linear-gradient(180deg, rgba(246, 243, 237, 0.07), transparent 55%),
    rgba(22, 20, 18, 0.95);
}

.cov-obs-btn.is-strig {
  border-color: rgba(224, 106, 62, 0.32);
}

.cov-obs-btn.is-strig.is-active {
  border-color: rgba(224, 106, 62, 0.85);
  background:
    linear-gradient(145deg, rgba(200, 90, 50, 0.3), rgba(16, 15, 13, 0.78));
  box-shadow:
    0 0 0 1px rgba(200, 90, 50, 0.18),
    0 18px 40px rgba(200, 90, 50, 0.14);
}

.cov-obs-orb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f6f3ed, #cfc6b6);
  box-shadow: 0 0 0 5px rgba(246, 243, 237, 0.08);
  flex-shrink: 0;
}

.cov-obs-btn.is-strig .cov-obs-orb {
  background: radial-gradient(circle at 35% 30%, #f0a07a, var(--orange));
  box-shadow:
    0 0 0 5px rgba(200, 90, 50, 0.2),
    0 0 20px rgba(200, 90, 50, 0.5);
}

.cov-obs-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.cov-obs-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.cov-obs-blurb {
  font-size: 0.84rem;
  color: #e4dccf;
  line-height: 1.3;
}

.cov-obs-btn.is-strig .cov-obs-blurb {
  color: #f0a07a;
  font-weight: 550;
}

.cov-marks {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.cov-mark {
  width: 24px;
  height: 6px;
  border-radius: 999px;
  background: rgba(246, 243, 237, 0.07);
  border: 1px solid rgba(246, 243, 237, 0.1);
}

.cov-mark.is-on {
  background: linear-gradient(90deg, rgba(246, 243, 237, 0.45), rgba(246, 243, 237, 0.7));
  border-color: transparent;
}

.cov-obs-btn.is-strig .cov-mark.is-on {
  background: linear-gradient(90deg, #c85a32, #e06a3e);
  box-shadow: 0 0 12px rgba(200, 90, 50, 0.4);
}

/* ── Coverage links ── */

.cov-links {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr);
  align-items: end;
  min-height: 40px;
  margin: 0 0 2px;
}

.cov-link-rail {
  position: absolute;
  left: 16%;
  right: 16%;
  top: 11px;
  height: 2px;
  border-radius: 999px;
  background: rgba(246, 243, 237, 0.1);
  transition: left 0.28s var(--ease), right 0.28s var(--ease), background 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.cov-link-rail.is-strig {
  left: 7%;
  right: 7%;
  background: linear-gradient(90deg, rgba(224, 106, 62, 0.25), #e06a3e, rgba(224, 106, 62, 0.25));
  box-shadow: 0 0 18px rgba(200, 90, 50, 0.3);
}

.cov-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 40px;
  opacity: 0.2;
  transition: opacity 0.25s var(--ease);
}

.cov-link:nth-child(1) { grid-column: 1; }
.cov-link:nth-child(2) { grid-column: 3; }
.cov-link:nth-child(3) { grid-column: 5; }

.cov-link.is-on { opacity: 1; }

.cov-link-stem {
  width: 2px;
  flex: 1;
  min-height: 18px;
  border-radius: 999px;
  background: rgba(246, 243, 237, 0.18);
  transition: background 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.cov-link.is-on .cov-link-stem {
  background: rgba(246, 243, 237, 0.55);
}

.cov-link.is-strig .cov-link-stem,
.cov-link.is-hot .cov-link-stem {
  background: linear-gradient(180deg, rgba(224, 106, 62, 0.35), #e06a3e);
  box-shadow: 0 0 12px rgba(200, 90, 50, 0.4);
}

.cov-link-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #12110f;
  border: 2px solid rgba(246, 243, 237, 0.25);
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.cov-link.is-on .cov-link-dot {
  border-color: #e4dccf;
  background: radial-gradient(circle at 35% 30%, #f6f3ed, #d8cfc0);
}

.cov-link.is-strig .cov-link-dot,
.cov-link.is-hot .cov-link-dot {
  border-color: #e06a3e;
  background: radial-gradient(circle at 35% 30%, #f0a07a, #c85a32);
  box-shadow: 0 0 0 5px rgba(200, 90, 50, 0.16);
}

/* ── Stages ── */

.cov-flow { position: relative; }

.cov-stages {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: 400px;
}

.cov-bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  opacity: 0.28;
  transition: opacity 0.28s var(--ease);
}

.cov-bridge.is-lit { opacity: 1; }

.cov-bridge-line {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(246, 243, 237, 0.28), transparent);
}

.cov-bridge.is-lit .cov-bridge-line {
  background: linear-gradient(90deg, rgba(200, 90, 50, 0.15), #e06a3e, rgba(200, 90, 50, 0.15));
  box-shadow: 0 0 14px rgba(200, 90, 50, 0.28);
}

.cov-bridge-node {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(246, 243, 237, 0.25);
  position: relative;
  z-index: 1;
}

.cov-bridge.is-lit .cov-bridge-node {
  background: #e06a3e;
  box-shadow: 0 0 0 4px rgba(200, 90, 50, 0.18);
}

.cov-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 16px 20px;
  border-radius: 26px;
  border: 1px solid rgba(246, 243, 237, 0.11);
  background:
    linear-gradient(180deg, rgba(246, 243, 237, 0.045), transparent 40%),
    rgba(16, 15, 13, 0.82);
  overflow: hidden;
  transition:
    opacity 0.28s var(--ease),
    border-color 0.28s var(--ease),
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    background 0.28s var(--ease);
}

.cov-stage-aura {
  position: absolute;
  inset: -20% -10% auto;
  height: 55%;
  background: radial-gradient(ellipse at 50% 0%, rgba(246, 243, 237, 0.06), transparent 70%);
  pointer-events: none;
}

.cov-stage.is-hot .cov-stage-aura {
  background: radial-gradient(ellipse at 50% 0%, rgba(200, 90, 50, 0.28), transparent 70%);
}

.cov-stage.is-hot {
  border-color: rgba(224, 106, 62, 0.45);
  background:
    radial-gradient(220px 150px at 50% 8%, rgba(200, 90, 50, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(200, 90, 50, 0.12), rgba(16, 15, 13, 0.78));
}

.attack-map.is-strig-view .cov-stage.is-covered:not(.is-hot) {
  border-color: rgba(224, 106, 62, 0.28);
  box-shadow: inset 0 0 0 1px rgba(200, 90, 50, 0.05);
  background:
    radial-gradient(200px 130px at 50% 6%, rgba(200, 90, 50, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(200, 90, 50, 0.07), rgba(16, 15, 13, 0.82));
}

.cov-stage.is-missed {
  opacity: 0.24;
  transform: scale(0.985);
  filter: grayscale(0.4);
}

.cov-stage.is-covered { opacity: 1; }

.cov-stage.is-covered.is-hot {
  box-shadow:
    0 0 0 1px rgba(200, 90, 50, 0.16),
    0 24px 50px rgba(200, 90, 50, 0.14);
}

.cov-glyph {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #f6f3ed;
  background:
    radial-gradient(circle at 35% 30%, rgba(246, 243, 237, 0.1), transparent 55%),
    rgba(246, 243, 237, 0.03);
  border: 1px solid rgba(246, 243, 237, 0.16);
  box-shadow: inset 0 1px 0 rgba(246, 243, 237, 0.08);
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.cov-glyph svg {
  width: 52px;
  height: 52px;
}

.cov-stage.is-hot .cov-glyph,
.attack-map.is-strig-view .cov-stage.is-covered .cov-glyph {
  color: #f0a07a;
  background:
    radial-gradient(circle at 35% 30%, rgba(240, 160, 122, 0.22), transparent 55%),
    rgba(200, 90, 50, 0.1);
  border-color: rgba(224, 106, 62, 0.45);
}

.cov-stage.is-hot .cov-glyph {
  box-shadow:
    inset 0 1px 0 rgba(240, 160, 122, 0.2),
    0 0 40px rgba(200, 90, 50, 0.2);
}

.cov-stage-head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.cov-stage-label {
  margin: 0;
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #f6f3ed;
  text-wrap: balance;
}

.cov-stage.is-hot .cov-stage-label {
  color: #f0a07a;
}

.cov-stage-sub {
  margin: 0;
  max-width: 28ch;
  font-size: 0.86rem;
  line-height: 1.35;
  color: #c9bfae;
  text-wrap: pretty;
}

.cov-stage.is-hot .cov-stage-sub {
  color: #e8b89a;
}

.cov-stage.is-missed .cov-stage-sub {
  opacity: 0.55;
}

.cov-stage-badge {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d8cfc0;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.attack-map.is-strig-view .cov-stage.is-covered .cov-stage-badge {
  opacity: 1;
  transform: none;
}

.cov-stage-badge.is-exclusive { color: #f0a07a; }
.cov-stage:not(.is-hot) .cov-stage-badge.is-exclusive { display: none; }
.cov-stage.is-hot .cov-stage-badge:not(.is-exclusive) { display: none; }

/* findings */
.cov-constellation {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: 4px;
  border-top: 1px solid rgba(246, 243, 237, 0.1);
}

.cov-node {
  display: block;
  width: 100%;
  padding: 12px 4px 12px 14px;
  border: none;
  border-bottom: 1px solid rgba(246, 243, 237, 0.07);
  background: transparent;
  color: #f6f3ed;
  text-align: left;
  position: relative;
  transition:
    color 0.16s var(--ease),
    background 0.16s var(--ease),
    padding-left 0.16s var(--ease),
    opacity 0.2s var(--ease);
}

.cov-node::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  bottom: 15px;
  width: 2px;
  border-radius: 999px;
  background: rgba(246, 243, 237, 0.16);
  transition: background 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.cov-stage.is-hot .cov-node::before,
.attack-map.is-strig-view .cov-stage.is-covered .cov-node::before {
  background: rgba(224, 106, 62, 0.55);
}

.cov-node:hover,
.cov-node:focus-visible,
.cov-node.is-active {
  outline: none;
  background: linear-gradient(90deg, rgba(200, 90, 50, 0.12), transparent 80%);
  padding-left: 18px;
  color: #fff;
}

.cov-node:hover::before,
.cov-node:focus-visible::before,
.cov-node.is-active::before {
  background: #e06a3e;
  box-shadow: 0 0 14px rgba(200, 90, 50, 0.4);
}

.cov-node.is-missed { opacity: 0.28; }

.cov-node-label {
  display: block;
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
  text-wrap: pretty;
}

/* detail */
.cov-detail {
  position: relative;
  margin: 6px -26px 0;
  min-height: 156px;
  padding: 22px 28px 24px;
  border-top: 1px solid rgba(246, 243, 237, 0.1);
  background:
    linear-gradient(180deg, rgba(246, 243, 237, 0.02), transparent),
    rgba(10, 9, 8, 0.72);
}

.cov-detail.has-fact {
  background:
    linear-gradient(90deg, rgba(200, 90, 50, 0.16), rgba(10, 9, 8, 0.72) 48%),
    rgba(10, 9, 8, 0.72);
}

.cov-detail-idle {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  color: #e4dccf;
  font-size: 0.95rem;
}

.cov-detail-idle p {
  margin: 0;
  line-height: 1.45;
  white-space: nowrap;
}
.cov-detail-idle strong { color: #f0a07a; font-weight: 650; }

.cov-detail-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f0a07a, #c85a32);
  box-shadow: 0 0 0 0 rgba(200, 90, 50, 0.45);
  animation: cov-pulse 1.8s var(--ease) infinite;
}

@keyframes cov-pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 90, 50, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(200, 90, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 90, 50, 0); }
}

.cov-detail-main {
  max-width: 68ch;
  padding-right: 88px;
}

/* Finding name — primary title */
.cov-detail-fact {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #f6f3ed;
}

/* One-line gloss under the finding */
.cov-detail-hint {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #c9bfae;
}

/* Incident example — secondary heading, not larger than the finding */
.cov-detail-attack {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #f6f3ed;
}

.cov-detail-attack::before {
  content: "What went wrong";
  display: block;
  margin-bottom: 5px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a89f90;
}

.cov-detail-text {
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #d8cfc0;
}

.cov-detail-stake {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(246, 243, 237, 0.1);
  font-size: 0.9rem;
  line-height: 1.45;
  color: #f0a07a;
}

.cov-detail-stake::before {
  content: "How Strig addresses this";
  display: block;
  margin-bottom: 5px;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a89f90;
}

.cov-detail-tag {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d2c8b6;
}

@media (prefers-reduced-motion: reduce) {
  .cov-detail-pulse { animation: none; }
  .attack-map * { transition: none !important; }
}

@media (max-width: 960px) {
  .cov-stages,
  .cov-links {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
  }

  .cov-detail-idle p { white-space: normal; }

  .cov-links { display: none; }

  .cov-bridge { height: 28px; }

  .cov-bridge-line {
    left: 50%;
    right: auto;
    top: 4px;
    bottom: 4px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, transparent, rgba(246, 243, 237, 0.28), transparent);
  }

  .cov-bridge.is-lit .cov-bridge-line {
    background: linear-gradient(180deg, rgba(200, 90, 50, 0.15), #e06a3e, rgba(200, 90, 50, 0.15));
  }

  .cov-detail-main { padding-right: 0; }

  .cov-detail-tag {
    position: static;
    display: inline-block;
    margin-top: 10px;
  }
}

@media (max-width: 720px) {
  .attack-map-section { padding-bottom: 72px; }
  .attack-map-mount { padding-inline: 14px; }

  .cov-detail {
    margin-inline: -14px;
    padding-inline: 16px;
  }

  .cov-obs { grid-template-columns: 1fr; }
  .cov-obs-btn { min-height: 0; }
}
