.fed-db h2 {
  margin-bottom: 6px;
  font-size: 18px;
}
.fed-db details {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  margin-bottom: 6px;
  overflow: hidden;
}
.fed-db summary {
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  background: var(--clr-bg);
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  user-select: none;
}
.fed-db summary::-webkit-details-marker {
  display: none;
}
.fed-db summary::before {
  content: '\25B6';
  font-size: 10px;
  color: var(--clr-text-dim);
  transition: transform 0.15s;
}
.fed-db details[open] > summary::before {
  transform: rotate(90deg);
}
.fed-db summary:hover {
  background: var(--clr-border);
}
.fed-db .db-count {
  margin-left: auto;
  font-weight: 400;
  font-size: 12px;
  color: var(--clr-text-dim);
}
.fed-db .tree {
  padding: 0;
  margin: 0;
}
.fed-db .tree-item {
  border-top: 1px solid var(--clr-border);
}
.fed-db .tree-item summary {
  padding: 6px 14px 6px 28px;
  font-weight: 500;
  font-size: 13px;
  background: var(--clr-surface);
  transition: background var(--transition);
}
.fed-db .tree-item summary::before {
  content: '\25B8';
  font-size: 9px;
}
.fed-db .tree-item[open] > summary::before {
  transform: rotate(90deg);
}
.fed-db .tree-fields {
  padding: 4px 14px 8px 42px;
  font-size: 12px;
  font-family: var(--font-mono);
  line-height: 1.8;
  color: var(--clr-text);
}
.fed-db .tf-key {
  color: var(--clr-text-dim);
}
.fed-db .tf-str {
  color: #22863a;
}
.fed-db .tf-num {
  color: #005cc5;
}
.fed-db .intro {
  margin: 0 0 16px;
  color: var(--clr-text-dim);
  font-size: 14px;
  line-height: 1.6;
}
.fed-db .db-deck-icon {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1;
  color: var(--clr-accent);
}
/* The icon has taken over pushing to the right edge, so the id must not
   also claim the free space — two auto margins would split it and leave a
   gap between the pair. */
.fed-db .db-deck-icon + .db-count {
  margin-left: 0;
}
.fed-db .tree-item.db-focus > summary {
  background: rgba(78, 108, 242, 0.18);
  color: var(--clr-accent);
}
