/* Exhibit combiner — public map + legend. Quark2 header stays on. */

.exhibit-page {
  color: var(--q2-text, #e8e8e8);
  font-family: inherit;
  padding-bottom: 2rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.exhibit-lead,
.exhibit-lead p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0 0 1.15rem;
  color: var(--q2-text-muted, #bdbdbd);
  max-width: 42rem;
}

.exhibit-shell {
  display: block;
}

.exhibit-map-wrap {
  position: relative;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  touch-action: none;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.exhibit-map-wrap svg {
  display: block;
  width: 100%;
  height: clamp(420px, 68vh, 820px);
  cursor: grab;
}

.exhibit-map-wrap svg.dragging {
  cursor: grabbing;
}

.exhibit-map-status {
  margin: 0;
  padding: 2rem 1rem;
  color: #bdbdbd;
}

.exhibit-node,
.exhibit-node-hit {
  cursor: pointer;
}

.exhibit-node:focus {
  outline: none;
}

.exhibit-node-label {
  fill: #e6edf3;
  font-family: inherit;
  font-weight: 400;
  pointer-events: none;
}

.exhibit-icon-well {
  fill: #111418;
  stroke: #2c2c2c;
  stroke-width: 0.85;
}

.exhibit-name-bar {
  stroke: #3a3f45;
  stroke-width: 1.15;
  stroke-linecap: round;
}

.exhibit-pill {
  fill: #111111;
}

.exhibit-status {
  fill: #8b949e;
}

.exhibit-handle {
  fill: #1c1c1c;
  stroke: #8b949e;
  stroke-width: 1.2;
}

.exhibit-node-host .exhibit-node-label {
  fill: #ececec;
}

.exhibit-node-svc {
  fill: #c9d1d9;
  font-family: inherit;
  font-weight: 400;
  pointer-events: none;
}

.exhibit-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1.15rem 2rem;
  margin-top: 1rem;
  padding: 0.15rem 0.1rem 0;
  color: var(--q2-text, #d8d8d8);
  font-size: 0.95rem;
  line-height: 1.45;
}

.legend-group {
  flex: 0 0 auto;
}

.exhibit-legend .legend-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8f8f8f;
  margin: 0 0 0.35rem;
}

.exhibit-legend ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.exhibit-legend li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.22rem 0;
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex: 0 0 12px;
  box-sizing: border-box;
}

.swatch.fill-physical { background: #242424; }
.swatch.fill-virtual { background: #4b4b4b; }
.swatch.edge { background: #242424; border: 2px solid #ff1744; }
.swatch.core { background: #242424; border: 2px solid #9e9d24; }
.swatch.mobile { background: #242424; border: 2px solid #651fff; }
.swatch.automata { background: #242424; border: 2px solid #ff6d00; }
.swatch.media { background: #242424; border: 2px solid #c2185b; }
.swatch.auth { background: #4b4b4b; border: 2px solid #f9a825; }
.swatch.dns { background: #4b4b4b; border: 2px solid #660033; }
.swatch.https { background: #4b4b4b; border: 2px solid #2e7d32; }
.swatch.tunnels { background: #4b4b4b; border: 2px solid #1565c0; }
.swatch.rdp { background: #4b4b4b; border: 2px solid #ff8a65; }
.swatch.docs { background: #4b4b4b; border: 2px solid #7b1fa2; }
.swatch.cli { background: #4b4b4b; border: 2px solid #ff4081; }
.swatch.automata-job { background: #4b4b4b; border: 2px solid #ff6d00; }
.swatch.uncat { background: #4b4b4b; border: 2px solid #607d8b; }

.legend-service-cols {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 1.35rem;
}

.legend-service-cols ul {
  flex: 0 0 auto;
}
.swatch.line {
  height: 0;
  border-radius: 0;
  border-top: 3px solid #0000a0;
  width: 16px;
}
.swatch.line.wifi { border-top-style: dashed; border-top-color: #5c6bc0; }
.swatch.line.iot { border-top-style: dashed; border-top-color: #ff6d00; }

.exhibit-modal[hidden] { display: none; }

.exhibit-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.exhibit-modal-card {
  background: #1c1c1c;
  color: #f0f0f0;
  max-width: 420px;
  width: 100%;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1.15rem 1.25rem 1.25rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.exhibit-modal-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}

.exhibit-modal-card .job {
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.exhibit-modal-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.exhibit-modal-card button {
  margin-top: 1rem;
  border: 0;
  background: #f5f5f5;
  color: #111;
  padding: 0.5rem 0.95rem;
  border-radius: 4px;
  cursor: pointer;
  min-height: 2.25rem;
}

.exhibit-hint {
  font-size: 0.95rem;
  line-height: 1.45;
  color: #8a8a8a;
  margin: 0.65rem 0 0;
}

@media (max-width: 640px) {
  .exhibit-page {
    padding-bottom: 1.5rem;
  }

  .exhibit-lead,
  .exhibit-lead p {
    font-size: 1.05rem;
    margin-bottom: 0.95rem;
  }

  .exhibit-map-wrap svg {
    height: clamp(320px, 62dvh, 520px);
  }

  .exhibit-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.1rem;
    font-size: 0.92rem;
    margin-top: 0.9rem;
  }

  .legend-group.legend-services {
    grid-column: 1 / -1;
  }

  .legend-service-cols {
    gap: 1.1rem;
  }

  .exhibit-hint {
    font-size: 0.9rem;
  }
}
