/* layerInfo.css — styles for the ⓘ buttons and the layer help popover */

.node-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.info-btn {
  flex: none;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1.5px solid #2f6fdb;
  border-radius: 50%;
  background: #fff;
  color: #2f6fdb;
  font: italic 700 11px/15px Georgia, "Times New Roman", serif;
  text-align: center;
  cursor: pointer;
}
.info-btn:hover,
.info-btn:focus-visible {
  background: #2f6fdb;
  color: #fff;
  outline: none;
}

/* Toolbar version: sits just after each layer button */
.info-btn-toolbar {
  vertical-align: middle;
  margin: 0 10px 0 -2px;
  width: 16px;
  height: 16px;
  font-size: 10px;
  line-height: 13px;
  border-color: #9bb8ee;
  background: transparent;
  color: #cfe0ff;
}
.info-btn-toolbar:hover,
.info-btn-toolbar:focus-visible {
  background: #2f6fdb;
  border-color: #2f6fdb;
  color: #fff;
}

/* The ghost card shown while placing a block should not show a live button */
#ghost .info-btn {
  visibility: hidden;
}

#layer-info {
  position: fixed;
  z-index: 1000;
  width: 340px;
  max-height: min(70vh, 560px);
  overflow-y: auto;
  padding: 14px 16px 12px;
  background: #fff;
  color: #1f2430;
  border: 1px solid #d5d9e0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(20, 30, 50, 0.18);
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
#layer-info[hidden] {
  display: none;
}
#layer-info .info-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
#layer-info .info-title {
  font-weight: 700;
  font-size: 16px;
}
#layer-info .info-close {
  border: 0;
  background: none;
  font-size: 20px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
}
#layer-info .info-what {
  margin: 0 0 8px;
}
#layer-info h4 {
  margin: 10px 0 3px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2f6fdb;
}
#layer-info ul {
  margin: 0;
  padding-left: 18px;
}
#layer-info li + li {
  margin-top: 2px;
}
#layer-info p {
  margin: 0;
}
#layer-info .info-shape {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  background: #f4f6fa;
  padding: 4px 6px;
  border-radius: 4px;
}
#layer-info details {
  margin-top: 10px;
  border-top: 1px solid #e5e7eb;
  padding-top: 8px;
}
#layer-info summary {
  cursor: pointer;
  font-weight: 600;
}
#layer-info dl {
  margin: 6px 0 0;
}
#layer-info dt {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 6px;
}
#layer-info dd {
  margin: 0;
  color: #4b5563;
}

/* Hover hints on argument names inside a card */
.arg-name[title] {
  cursor: help;
  text-decoration: underline dotted #9ca3af;
  text-underline-offset: 2px;
}
