/* Oxton Journals — editor de texto com barra de formatação completa.
   Usa as variáveis do sistema; dentro do painel no padrão OJS elas já valem as cores do OJS. */
.oxj-editor {
  border: 1px solid var(--oxj-border-strong, #696969);
  border-radius: var(--oxj-radius-sm, 4px);
  background: #fff;
}
.oxj-editor:focus-within { border-color: var(--oxj-primary, #006798); }
.oxj-editor__bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
  padding: 4px 6px; border-bottom: 1px solid var(--oxj-border, #bbb);
}
.oxj-editor__sep { width: 1px; height: 20px; margin: 0 6px; background: var(--oxj-border, #bbb); }
.oxj-editor__sep:first-child { display: none; }
.oxj-editor__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 6px;
  border: 1px solid transparent; border-radius: 4px; background: transparent;
  color: var(--oxj-text, #222); font-family: inherit; font-size: 14px; line-height: 1; cursor: pointer;
}
.oxj-editor__btn:hover, .oxj-editor__btn:focus {
  background: var(--oxj-primary-soft, #d5e9f2); color: var(--oxj-primary, #006798);
}
.oxj-editor__btn.is-on {
  background: var(--oxj-primary, #006798); border-color: var(--oxj-primary, #006798); color: #fff;
}
.oxj-editor__body {
  min-height: 160px; padding: 12px 14px; outline: 0;
  font-size: 14px; line-height: 1.6; color: var(--oxj-text, #222);
}
.oxj-editor__body:focus { outline: 0; }
.oxj-editor__body > :first-child { margin-top: 0; }
.oxj-editor__body > :last-child { margin-bottom: 0; }
.oxj-editor__body p { margin: 0 0 10px; }
.oxj-editor__body h2 { margin: 16px 0 8px; font-size: 18px; font-weight: 700; }
.oxj-editor__body h3 { margin: 14px 0 6px; font-size: 15px; font-weight: 700; }
.oxj-editor__body ul, .oxj-editor__body ol { margin: 0 0 10px; padding-inline-start: 22px; }
.oxj-editor__body blockquote {
  margin: 0 0 10px; padding: 6px 14px;
  border-inline-start: 3px solid var(--oxj-border, #bbb); color: var(--oxj-muted, #777);
}
.oxj-editor__body a { color: var(--oxj-primary, #006798); }
.oxj-editor__source[hidden] { display: none; }
.oxj-editor__source {
  display: block; width: 100%; min-height: 200px; padding: 12px 14px;
  border: 0; border-top: 1px solid var(--oxj-border, #bbb); border-radius: 0;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; line-height: 1.6;
  resize: vertical;
}
.oxj-editor__source:focus { outline: 0; }
