/* application.css — unlayered: Tailwind/Trix @layer 규칙보다 항상 우선 */

/* Trix wrapper: 폼과 동일한 border/radius 스타일 */
.trix-editor-wrapper {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
}
.trix-editor-wrapper:focus-within {
  box-shadow: 0 0 0 2px #c7d2fe;
  border-color: #a5b4fc;
}

/* Toolbar: 폼 배경과 어울리는 연한 회색 */
trix-toolbar {
  background: #f9fafb !important;
  border-bottom: 1px solid #e5e7eb !important;
  padding: 0.375rem 0.5rem !important;
}
trix-toolbar .trix-button-group {
  border-color: #e5e7eb !important;
  border-radius: 0.25rem !important;
  margin-bottom: 0 !important;
}
trix-toolbar .trix-button {
  border-color: transparent !important;
  border-radius: 0.25rem !important;
}
trix-toolbar .trix-button:hover:not(:disabled) {
  background: #e5e7eb !important;
}
trix-toolbar .trix-button.trix-active {
  background: #e0e7ff !important;
  color: #4f46e5 !important;
}

/* Editor 본문: 자체 border 제거 (wrapper가 담당) */
trix-editor {
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
  padding: 0.75rem 1rem !important;
  min-height: 280px !important;
  display: block !important;
  font-size: 0.875rem !important;
  line-height: 1.6 !important;
}

/* 콘텐츠 렌더링 */
.trix-content ul { list-style-type: disc; padding-left: 1.5rem; }
.trix-content ol { list-style-type: decimal; padding-left: 1.5rem; }
.trix-content strong { font-weight: 600; }
.trix-content em { font-style: italic; }
.trix-content h1 { font-size: 1.25rem; font-weight: 700; margin: 0.75rem 0 0.25rem; }
.trix-content blockquote { border-left: 3px solid #e5e7eb; padding-left: 1rem; color: #6b7280; margin: 0.5rem 0; }
.trix-content pre { background: #f9fafb; padding: 0.75rem 1rem; border-radius: 0.375rem; overflow-x: auto; font-size: 0.8125rem; }
.trix-content a { color: #4f46e5; text-decoration: underline; }
