/* Light mode: a soft warm paper instead of pure white, and a deeper parchment behind the tree
   viewer (tree.js reads --pov-tree-bg), so bright node art doesn't glare. Dark mode keeps the
   theme's own colours. */
[data-md-color-scheme="default"] {
  --md-default-bg-color: #f3efe6;
  --md-code-bg-color: #ebe5d8;
  --pov-tree-bg: #e4dccb;
}

/* Game keywords: hover shows the mod's own wiki definition. */
.pov-kw {
  border-bottom: 1px dotted currentColor;
  cursor: help;
}

/* Unfinished content shipped in the game files. */
.pov-badge {
  display: inline-block;
  padding: 0 0.4em;
  border-radius: 0.2em;
  font-size: 0.75em;
  font-weight: 600;
  background: var(--md-accent-fg-color--transparent);
  border: 1px solid var(--md-accent-fg-color);
  cursor: help;
}

/* A node's in-game tooltip on its own page. */
.pov-tooltip {
  padding: 0.6em 1em;
  margin: 1em 0;
  border-left: 0.2rem solid var(--md-accent-fg-color);
  background: var(--md-code-bg-color);
}

/* Option names whose description shows on hover, as in game. */
.pov-desc {
  border-bottom: 1px dashed currentColor;
  cursor: help;
}

/* ---- Passive tree viewer ---- */
.pov-tree-bar {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.pov-tree-search {
  flex: 1;
  min-width: 0;
  padding: 0.4em 0.6em;
  border: 1px solid var(--md-default-fg-color--lighter);
  border-radius: 0.2rem;
  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
  font: inherit;
}
.pov-tree-count {
  font-size: 0.75rem;
  color: var(--md-default-fg-color--light);
  white-space: nowrap;
}
.pov-tree-reset {
  font-size: 0.7rem !important;
  padding: 0.3em 0.8em !important;
}
.pov-tree-wrap {
  position: relative;
  height: 75vh;
  min-height: 420px;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.2rem;
  overflow: hidden;
  touch-action: none;
}
.pov-tree-wrap canvas {
  display: block;
  cursor: grab;
}
.pov-tree-hint {
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: var(--md-default-fg-color--light);
}
.pov-tree-tip {
  position: absolute;
  max-width: min(26rem, 90%);
  padding: 0.6em 0.8em;
  border: 1px solid var(--md-default-fg-color--lighter);
  border-radius: 0.2rem;
  background: var(--md-default-bg-color);
  box-shadow: var(--md-shadow-z2);
  font-size: 0.7rem;
  line-height: 1.45;
  pointer-events: none;
  z-index: 2;
}
.pov-tt-title {
  font-weight: 700;
  font-size: 0.8rem;
}
.pov-tt-meta {
  color: var(--md-default-fg-color--light);
  margin-bottom: 0.3em;
}
.pov-tt-extra {
  font-style: italic;
  color: var(--md-default-fg-color--light);
}
.pov-tt-head {
  margin-top: 0.4em;
  font-weight: 600;
}
.pov-tt-opt {
  padding-left: 0.6em;
}

/* ---- Node art: icons in the game's frames ---- */
.md-typeset .pov-art {
  display: block;
  max-width: none;
  margin: 0 auto;
}
.md-typeset td:has(> .pov-art) {
  width: 3.4rem;
  padding: 0.4em 0.3em !important;
  vertical-align: middle;
}
.pov-art-lg {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.8rem;
}
.pov-art-lg .pov-art {
  display: inline;
}
