/**
 * @file
 * Frontend styles for CKEditor Factbox.
 * 
 * Matches the design system of node teaser cards.
 */

.ckeditor-factbox {
  background: #fff;
  border-radius: 12px;
  margin: 2rem 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ckeditor-factbox:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.ckeditor-factbox .factbox-title {
  padding: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #222;
  margin: 0;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.ckeditor-factbox .factbox-content {
  padding: 1.5rem;
  background-color: #fff;
}

.ckeditor-factbox .factbox-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 1rem;
}

.ckeditor-factbox .factbox-content > *:first-child {
  margin-top: 0;
}

.ckeditor-factbox .factbox-content > *:last-child {
  margin-bottom: 0;
}
