/**
 * Inline formatting for description text rendered via
 * window.asterrvnFormatDescriptionHtml (assets/js/format-description.js).
 *
 * Selectors are scoped to descendants of .modal-description-terminal__body
 * (and any future case-text blocks) so the toolbar's data-format buttons
 * in the admin overlay stay independent.
 */

/* ---------- Bold / italic — inherit from base text. ---------- */
.modal-description-terminal__body strong {
  font-weight: 700;
  color: inherit;
}
.modal-description-terminal__body em {
  font-style: italic;
}

/* ---------- Strike. ---------- */
.modal-description-terminal__body .desc-strike {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  opacity: 0.85;
}

/* ---------- Code. ---------- */
.modal-description-terminal__body .desc-code {
  font-family: var(--pixel-en, monospace);
  font-size: 0.95em;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #d8d8d8;
}

/* ---------- Spoiler. ---------- */
.modal-description-terminal__body .desc-spoiler {
  display: inline;
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 1px;
  padding: 0 2px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
  transition: background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}
.modal-description-terminal__body .desc-spoiler::selection {
  background: transparent;
}
.modal-description-terminal__body .desc-spoiler:focus-visible {
  outline: 1px solid rgba(184, 220, 255, 0.6);
  outline-offset: 1px;
}
.modal-description-terminal__body .desc-spoiler.is-revealed {
  background: transparent;
  color: inherit;
  cursor: default;
  user-select: text;
  -webkit-user-select: text;
}
