/* OpsPilot docs — small, deliberate overrides on top of mkdocs-material. */

:root {
  --opspilot-readonly: #23d18b;
  --opspilot-low: #e5c07b;
  --opspilot-high: #e06c75;
}

/* Risk-tier badges. Usage in Markdown:
   <span class="tier tier-readonly">Read-only</span> */
.tier {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  border-radius: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid currentcolor;
}
.tier-readonly { color: var(--opspilot-readonly); }
.tier-low      { color: var(--opspilot-low); }
.tier-high     { color: var(--opspilot-high); }

/* Screenshots: keep them readable but visually separated from body text. */
.md-typeset img {
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

/* Figure captions rendered as the italic line directly under an image. */
.md-typeset img + em,
.md-typeset figure figcaption {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--md-default-fg-color--light);
}

/* Wide reference tables scroll instead of overflowing the page. */
.md-typeset__table { width: 100%; }
.md-typeset table:not([class]) { font-size: 0.76rem; }
