/* TREE UI — Heraldic node style */

.tree-node {
  cursor: pointer;
}

.tree-node:hover rect.node-frame {
  stroke-width: 2.2;
}

.tooltip {
  position: absolute;
  display: none;
  background: #0f0d07;
  border: 1px solid #6a5010;
  border-top: 2px solid #c8a030;
  color: #c8aa80;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.tooltip strong {
  color: #c8a030;
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}

.tree-zoom-btn {
  width: 32px;
  height: 32px;
  background: #0f0d08;
  border: 1px solid #2a2a2a;
  color: #6a5020;
  font-size: 18px;
  line-height: 1;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s;
}

.tree-zoom-btn.primary {
  border-color: #6a5010;
  color: #a08828;
}

.tree-zoom-btn:hover {
  border-color: #c8a030;
  color: #c8a030;
}

#tree-container.tree-shell {
position: relative !important;
}

#tree-container #family-modal.overlay-card {
position: absolute !important;
right: auto !important;
bottom: auto !important;
left: 14px;
top: 14px;
z-index: 9 !important;
max-width: min(360px, calc(100% - 28px));
}

#tree-container #tooltip.tooltip {
display: none;
position: absolute;
z-index: 10;
pointer-events: none;
padding: 8px 10px;
background: rgba(12, 13, 16, 0.96);
border: 1px solid rgba(196, 154, 75, 0.28);
border-radius: 8px;
font-size: 13px;
line-height: 1.35;
color: var(--text);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
