/* The face's page: the ui's baseline and components, and the few marks
   a map needs. Every value is a token of the ui. */

.crumbs {
  gap: var(--nv-space-2);
  padding-block: var(--nv-space-4);
}

.crumbs button[aria-current] {
  color: var(--nv-color-fg);
}

.door-head {
  padding-block-end: var(--nv-space-4);
  border-block-end: 1px solid var(--nv-color-border);
}

.door-body > section {
  padding-block: var(--nv-space-5);
}

.state {
  display: inline-flex;
  align-items: center;
  padding-inline: var(--nv-space-2);
  font-size: var(--nv-text-xs);
  font-weight: 600;
  border-radius: var(--nv-radius-full);
  background: var(--nv-color-bg-sunken);
  color: var(--nv-color-fg-muted);
}

.state[data-tone='success'] {
  background: var(--nv-color-success-subtle);
  color: var(--nv-color-success);
}

.state[data-tone='warning'] {
  background: var(--nv-color-warning-subtle);
  color: var(--nv-color-warning);
}

.state[data-tone='danger'] {
  background: var(--nv-color-danger-subtle);
  color: var(--nv-color-danger);
}

.state[data-tone='info'] {
  background: var(--nv-color-info-subtle);
  color: var(--nv-color-info);
}

.tree {
  display: grid;
  gap: var(--nv-space-4);
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
}

.node-head {
  display: flex;
  gap: var(--nv-space-2);
  align-items: center;
  justify-content: space-between;
}

.group {
  display: grid;
  gap: var(--nv-space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.group li {
  display: flex;
  gap: var(--nv-space-2);
  align-items: center;
  justify-content: space-between;
  font-size: var(--nv-text-sm);
}

.why {
  color: var(--nv-color-fg-muted);
  font-size: var(--nv-text-xs);
}

pre.json {
  overflow: auto;
  margin: 0;
  padding: var(--nv-space-3);
  font-family: var(--nv-font-mono);
  font-size: var(--nv-text-xs);
  background: var(--nv-color-bg-sunken);
  border-radius: var(--nv-radius-md);
}

details.ask > summary {
  cursor: pointer;
  font-weight: 600;
}

.answer:empty {
  display: none;
}
