/* =========================================================
   KS병원 게시판 에디터 스타일
   · .tox-*  : TinyMCE 6 컨테이너 보정
   · .ed-*   : CDN 차단 시 사용하는 내장 경량 에디터(폴백)
   프론트(rem=10px)와 관리자(16px) 양쪽에서 동일하게 보이도록 px 단위 사용.
   ========================================================= */

/* ── TinyMCE 컨테이너 ── */
.tox.tox-tinymce {
  border: 1px solid #e3e6ec !important;
  border-radius: 6px !important;
}

.tox .tox-editor-header {
  box-shadow: none !important;
  border-bottom: 1px solid #e3e6ec !important;
}

.tox .tox-statusbar {
  border-top: 1px solid #e3e6ec !important;
}

.ed {
  border: 1px solid #e3e6ec;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.ed__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  padding: 7px;
  border-bottom: 1px solid #e3e6ec;
  background: #fafbfd;
}

.ed__btn {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #5b6472;
  font-size: 13px;
  font-family: inherit;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: 0.15s;
}

.ed__btn:hover {
  background: #fff;
  border-color: #e3e6ec;
  color: #1a73c1;
}

.ed__sep {
  width: 1px;
  height: 18px;
  margin: 0 4px;
  background: #e3e6ec;
}

.ed__area {
  min-height: 320px;
  max-height: 70vh;
  padding: 16px;
  font-size: 15px;
  line-height: 1.8;
  color: #2c3444;
  overflow-y: auto;
}

.ed__area:focus {
  outline: none;
}

.ed__area:empty::before {
  content: attr(data-placeholder);
  color: #aab2c0;
}

.ed__area img {
  max-width: 100%;
  height: auto;
}

.ed__area h3 {
  margin: 18px 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #1b2130;
}

.ed__area p {
  margin: 0 0 12px;
}

.ed__area blockquote {
  margin: 0 0 12px;
  padding: 8px 16px;
  border-left: 3px solid #1a73c1;
  background: #f7fafd;
}

.ed__area ul,
.ed__area ol {
  margin: 0 0 12px;
  padding-left: 22px;
  list-style: revert;
}

.ed__area a {
  color: #1a73c1;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .ed__area {
    min-height: 240px;
  }
}
