/* Formatador de JSON — tool-specific styling (tree view). */

.json-tree { white-space: normal; line-height: 1.7; }
.json-tree ul { list-style: none; margin: 0; padding-left: 1.1rem; }
.json-tree > ul { padding-left: 0; }
.json-tree li { position: relative; }

.json-tree details > summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: baseline; gap: 0.3rem;
}
.json-tree details > summary::-webkit-details-marker { display: none; }
.json-tree details > summary::before {
  content: "▸"; color: var(--ink-2); font-size: 0.8em; display: inline-block;
  width: 1em; transition: transform var(--ease);
}
.json-tree details[open] > summary::before { transform: rotate(90deg); }

.json-key { color: var(--accent-hi); }
.json-colon { color: var(--ink-2); margin: 0 0.15rem 0 0; }
.json-count { color: var(--ink-2); font-size: 0.85em; margin-left: 0.3rem; }
.json-bracket { color: var(--ink-1); }

.jv-string { color: var(--amber); }
.jv-number { color: var(--teal); }
.jv-boolean { color: var(--accent-hi); font-weight: 600; }
.jv-null { color: var(--ink-2); font-style: italic; }

:root[data-theme="light"] .jv-string { color: #b45309; }
:root[data-theme="light"] .jv-number { color: #0f766e; }

/* Error position marker shown in the status area */
.err-pos { color: var(--ink-2); font-weight: 600; }
