:root {
  --wp-border-color: #dcdcde;
  --wp-bg-light: #f0f0f1;
  --wp-primary: #2271b1;
  --wp-primary-hover: #135e96;
  --wp-error: #d63638;
}

/* ==========================================================================
   1. Standalone & Bootstrap-compatible Media Modal (Light & Dark Mode)
   ========================================================================== */
.media-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: opacity 0.2s ease;
}

.media-modal.show,
.media-modal.is-open {
  display: flex !important;
}

.media-modal .modal-dialog {
  width: 100%;
  max-width: 1140px;
  height: 88vh;
  max-height: 820px;
  margin: auto;
  position: relative;
  display: flex;
}

.media-modal .modal-content {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.media-modal .modal-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Modal Menu (Tabs) */
.media-menu {
  background: #f8fafc;
  border-bottom: 1px solid var(--wp-border-color);
  padding: 0 16px;
  height: 50px;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.media-menu-item {
  font-size: 13.5px;
  color: #475569;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.media-menu-item.active {
  border-bottom-color: var(--wp-primary);
  color: var(--wp-primary);
  background: #ffffff;
}

.media-menu-item:hover {
  color: var(--wp-primary);
}

.media-modal .btn-close {
  margin-left: auto;
  background: transparent;
  border: none;
  font-size: 20px;
  color: #64748b;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.media-modal .btn-close:hover {
  color: #ef4444;
  background: #fee2e2;
}

/* Main Content Area */
.media-frame-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  background: #ffffff;
  position: relative;
  transition: background-color 0.2s ease;
}

/* Upload Pane */
.upload-pane {
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 2px dashed #94a3b8;
  border-radius: 12px;
  margin: 20px;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  box-sizing: border-box;
  text-align: center;
  transition: all 0.2s ease;
}

.upload-pane.active {
  display: flex;
}

.upload-pane .upload-box-icon {
  font-size: 48px;
  color: #94a3b8;
  margin-bottom: 14px;
}

.upload-pane p {
  font-size: 14px;
  color: #334155;
  margin: 0 0 12px;
}

.upload-pane .btn-select-files {
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
  transition: background 0.15s, transform 0.1s;
}

.upload-pane .btn-select-files:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* Library Pane */
.library-pane {
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
}

.library-pane.active {
  display: flex;
}

.media-toolbar {
  padding: 10px 16px;
  border-bottom: 1px solid var(--wp-border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  gap: 12px;
  flex-wrap: wrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Breadcrumb */
.breadcrumb-wp {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb-wp li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.breadcrumb-wp a {
  text-decoration: none;
  color: var(--wp-primary);
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
}

.breadcrumb-wp a:hover {
  background: #e2e8f0;
}

/* Action Buttons */
.media-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 7px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  height: 34px;
}

.media-btn:hover:not(:disabled) {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.media-btn.btn-danger-action {
  color: #dc2626;
  border-color: #fecaca;
  background: #fff;
}

.media-btn.btn-danger-action:hover:not(:disabled) {
  background: #fee2e2;
  border-color: #ef4444;
}

.media-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.media-search-input {
  padding: 6px 12px;
  font-size: 12.5px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  outline: none;
  width: 210px;
  height: 34px;
  box-sizing: border-box;
  background: #ffffff;
  color: #0f172a;
  transition: all 0.15s ease;
}

.media-search-input:focus {
  border-color: var(--wp-primary);
  box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

/* Scrollable Grid */
.media-grid-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f8fafc;
  transition: background-color 0.2s ease;
}

.attachment-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}

.attachment {
  position: relative;
  background: #ffffff;
  cursor: pointer;
  border: 2px solid #e2e8f0;
  border-radius: 9px;
  overflow: hidden;
  transition: all 0.15s ease;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
}

.attachment:hover {
  border-color: #94a3b8;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.08);
}

.attachment .thumbnail {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
}

.attachment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment .filename {
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.95);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 11px;
  color: #1e293b;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top: 1px solid #f1f5f9;
  font-weight: 500;
}

/* Selected State */
.attachment.selected {
  border-color: var(--wp-primary) !important;
  box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.4);
}

.attachment .check {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  background: var(--wp-primary);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 22px;
  font-size: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.attachment.selected .check {
  display: block;
}

.type-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  font-size: 40px;
  color: #64748b;
  padding-bottom: 18px;
}

.folder-badge {
  font-size: 10.5px;
  font-weight: 600;
  color: #475569;
  margin-top: 4px;
}

/* Modal Footer */
.media-frame-toolbar {
  border-top: 1px solid var(--wp-border-color);
  padding: 10px 16px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.media-button-insert {
  background: var(--wp-primary);
  color: #fff;
  border: 1px solid var(--wp-primary);
  font-weight: 600;
  padding: 7px 18px;
  font-size: 13px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s;
}

.media-button-insert:hover:not(:disabled) {
  background: var(--wp-primary-hover);
}

.media-button-insert:disabled {
  background: #cbd5e1;
  border-color: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
}


/* ==========================================================================
   2. CKEditor 5 Base (Light Mode)
   ========================================================================== */
.ck.ck-editor {
  width: 100% !important;
}

.ck-editor__editable_inline {
  min-height: 480px;
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.75;
  color: #1e293b;
  background: #ffffff !important;
  padding: 1.5rem !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ck.ck-toolbar {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  padding: 6px !important;
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ck.ck-toolbar .ck-button {
  font-size: 12.5px;
  border-radius: 6px;
}

.ck.ck-editor__main > .ck-editor__editable {
  border-color: #e2e8f0 !important;
  border-bottom-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
}

/* Custom buttons */
.ck-button-add-media {
  background: #eff6ff !important;
  color: #2563eb !important;
  border: 1px solid #bfdbfe !important;
  font-weight: 600 !important;
}

.ck-button-add-media:hover {
  background: #dbeafe !important;
}

.ck-button-theme-toggle {
  margin-left: auto !important;
  border: 1px solid #cbd5e1 !important;
  background: #f1f5f9 !important;
  color: #334155 !important;
  font-weight: 600 !important;
}

.ck-button-theme-toggle:hover {
  background: #e2e8f0 !important;
}


/* ==========================================================================
   3. DARK / NIGHT MODE STYLING (Auto with html.dark OR .editor-dark-mode)
   ========================================================================== */

/* CKEditor 5 in Dark Mode */
html.dark .ck.ck-toolbar,
.editor-dark-mode .ck.ck-toolbar {
  background: #1e293b !important;
  border-color: #334155 !important;
}

html.dark .ck.ck-toolbar .ck-button,
.editor-dark-mode .ck.ck-toolbar .ck-button {
  color: #e2e8f0 !important;
}

html.dark .ck.ck-toolbar .ck-button .ck-icon,
.editor-dark-mode .ck.ck-toolbar .ck-button .ck-icon {
  color: #cbd5e1 !important;
}

html.dark .ck.ck-toolbar .ck-button:hover,
.editor-dark-mode .ck.ck-toolbar .ck-button:hover {
  background: #334155 !important;
  color: #ffffff !important;
}

html.dark .ck.ck-toolbar .ck-button.ck-on,
.editor-dark-mode .ck.ck-toolbar .ck-button.ck-on {
  background: #3b82f6 !important;
  color: #ffffff !important;
}

html.dark .ck.ck-toolbar-separator,
.editor-dark-mode .ck.ck-toolbar-separator {
  background: #334155 !important;
}

html.dark .ck-editor__editable_inline,
.editor-dark-mode .ck-editor__editable_inline {
  background: #0f172a !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}

html.dark .ck.ck-editor__main > .ck-editor__editable,
.editor-dark-mode .ck.ck-editor__main > .ck-editor__editable {
  border-color: #334155 !important;
  background: #0f172a !important;
}

html.dark .ck.ck-editor__main > .ck-editor__editable.ck-focused,
.editor-dark-mode .ck.ck-editor__main > .ck-editor__editable.ck-focused {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25) !important;
}

/* Headings & elements inside dark editor */
html.dark .ck-editor__editable_inline h1,
html.dark .ck-editor__editable_inline h2,
html.dark .ck-editor__editable_inline h3,
html.dark .ck-editor__editable_inline h4,
.editor-dark-mode .ck-editor__editable_inline h1,
.editor-dark-mode .ck-editor__editable_inline h2,
.editor-dark-mode .ck-editor__editable_inline h3,
.editor-dark-mode .ck-editor__editable_inline h4 {
  color: #ffffff !important;
}

html.dark .ck-editor__editable_inline blockquote,
.editor-dark-mode .ck-editor__editable_inline blockquote {
  border-left-color: #3b82f6 !important;
  background: #1e293b !important;
  color: #cbd5e1 !important;
}

html.dark .ck-editor__editable_inline code,
.editor-dark-mode .ck-editor__editable_inline code {
  background: #1e293b !important;
  color: #f43f5e !important;
}

html.dark .ck-editor__editable_inline table,
.editor-dark-mode .ck-editor__editable_inline table {
  border-color: #334155 !important;
}

html.dark .ck-editor__editable_inline th,
html.dark .ck-editor__editable_inline td,
.editor-dark-mode .ck-editor__editable_inline th,
.editor-dark-mode .ck-editor__editable_inline td {
  border-color: #334155 !important;
}

/* Dropdown Panels & Lists in Dark Mode */
html.dark .ck.ck-dropdown__panel,
.editor-dark-mode .ck.ck-dropdown__panel {
  background: #1e293b !important;
  border-color: #334155 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
}

html.dark .ck.ck-list,
.editor-dark-mode .ck.ck-list {
  background: #1e293b !important;
}

html.dark .ck.ck-list__item .ck-button,
.editor-dark-mode .ck.ck-list__item .ck-button {
  color: #e2e8f0 !important;
  background: #1e293b !important;
}

html.dark .ck.ck-list__item .ck-button:hover,
.editor-dark-mode .ck.ck-list__item .ck-button:hover {
  background: #334155 !important;
  color: #ffffff !important;
}

html.dark .ck.ck-list__item .ck-button.ck-on,
.editor-dark-mode .ck.ck-list__item .ck-button.ck-on {
  background: #2563eb !important;
  color: #ffffff !important;
}

/* Balloons & Popups in Dark Mode */
html.dark .ck.ck-balloon-panel,
.editor-dark-mode .ck.ck-balloon-panel {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
}

html.dark .ck.ck-balloon-panel[class*="arrow_n"]:after,
.editor-dark-mode .ck.ck-balloon-panel[class*="arrow_n"]:after {
  border-bottom-color: #1e293b !important;
}
html.dark .ck.ck-balloon-panel[class*="arrow_s"]:after,
.editor-dark-mode .ck.ck-balloon-panel[class*="arrow_s"]:after {
  border-top-color: #1e293b !important;
}

/* Source Editing Area in Dark Mode */
html.dark .ck.ck-source-editing-area textarea,
.editor-dark-mode .ck.ck-source-editing-area textarea {
  background: #0f172a !important;
  color: #38bdf8 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  padding: 1.25rem !important;
}

/* Dark Mode Toolbar Button Overrides */
html.dark .ck-button-add-media,
.editor-dark-mode .ck-button-add-media {
  background: #172554 !important;
  color: #60a5fa !important;
  border: 1px solid #1e40af !important;
}

html.dark .ck-button-add-media:hover,
.editor-dark-mode .ck-button-add-media:hover {
  background: #1e3a8a !important;
  color: #93c5fd !important;
}

html.dark .ck-button-theme-toggle,
.editor-dark-mode .ck-button-theme-toggle {
  background: #334155 !important;
  color: #f8fafc !important;
  border-color: #475569 !important;
}

html.dark .ck-button-theme-toggle:hover,
.editor-dark-mode .ck-button-theme-toggle:hover {
  background: #475569 !important;
}


/* ==========================================================================
   4. MEDIA MODAL IN DARK MODE
   ========================================================================== */
html.dark .media-modal .modal-content {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

html.dark .media-menu {
  background: #1e293b !important;
  border-color: #334155 !important;
}

html.dark .media-menu-item {
  color: #94a3b8 !important;
}

html.dark .media-menu-item.active {
  background: #0f172a !important;
  color: #38bdf8 !important;
  border-bottom-color: #38bdf8 !important;
}

html.dark .media-menu-item:hover {
  color: #e2e8f0 !important;
}

html.dark .media-frame-content {
  background: #0f172a !important;
}

html.dark .upload-pane {
  background: #1e293b !important;
  border-color: #475569 !important;
}

html.dark .upload-pane .upload-box-icon {
  color: #64748b !important;
}

html.dark .upload-pane p {
  color: #e2e8f0 !important;
}

html.dark .media-toolbar {
  background: #1e293b !important;
  border-color: #334155 !important;
}

html.dark .breadcrumb-wp a {
  color: #38bdf8 !important;
}

html.dark .breadcrumb-wp a:hover {
  background: #334155 !important;
}

html.dark .media-grid-container {
  background: #0f172a !important;
}

html.dark .attachment {
  background: #1e293b !important;
  border-color: #334155 !important;
}

html.dark .attachment:hover {
  border-color: #64748b !important;
}

html.dark .attachment .thumbnail {
  background: #1e293b !important;
}

html.dark .attachment .filename {
  background: rgba(15, 23, 42, 0.94) !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}

html.dark .folder-badge {
  color: #94a3b8 !important;
}

html.dark .media-frame-toolbar {
  background: #1e293b !important;
  border-color: #334155 !important;
}

html.dark .media-btn {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

html.dark .media-btn:hover:not(:disabled) {
  background: #334155 !important;
  border-color: #64748b !important;
}

html.dark .media-btn.btn-danger-action {
  background: #1e293b !important;
  border-color: #7f1d1d !important;
  color: #f87171 !important;
}

html.dark .media-btn.btn-danger-action:hover:not(:disabled) {
  background: #7f1d1d !important;
  color: #ffffff !important;
}

html.dark .media-search-input {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

html.dark .media-search-input:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2) !important;
}

html.dark .media-modal .btn-close {
  color: #94a3b8 !important;
}

html.dark .media-modal .btn-close:hover {
  background: #334155 !important;
  color: #f87171 !important;
}

html.dark .media-button-insert {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

html.dark .media-button-insert:hover:not(:disabled) {
  background: #1d4ed8 !important;
}

html.dark .media-button-insert:disabled {
  background: #334155 !important;
  border-color: #334155 !important;
  color: #64748b !important;
}

/* ==========================================================================
   5. LISTS & TYPOGRAPHY FIX FOR CKEDITOR (.ck-content / .ck-editor__editable)
   Fixes Tailwind CSS Preflight list-style: none reset
   ========================================================================== */

/* Unordered Lists (ul) */
.ck-content ul,
.ck-editor__editable ul {
  display: block !important;
  list-style-type: disc !important;
  list-style-position: outside !important;
  margin-top: 0.6rem !important;
  margin-bottom: 1.15rem !important;
  padding-left: 1.75rem !important;
  margin-left: 0 !important;
}

/* Ordered Lists (ol) */
.ck-content ol,
.ck-editor__editable ol {
  display: block !important;
  list-style-type: decimal !important;
  list-style-position: outside !important;
  margin-top: 0.6rem !important;
  margin-bottom: 1.15rem !important;
  padding-left: 1.85rem !important;
  margin-left: 0 !important;
}

/* Nested Lists */
.ck-content ul ul,
.ck-editor__editable ul ul {
  list-style-type: circle !important;
  margin-top: 0.35rem !important;
  margin-bottom: 0.35rem !important;
  padding-left: 1.5rem !important;
}

.ck-content ul ul ul,
.ck-editor__editable ul ul ul {
  list-style-type: square !important;
}

.ck-content ol ol,
.ck-editor__editable ol ol {
  list-style-type: lower-alpha !important;
  margin-top: 0.35rem !important;
  margin-bottom: 0.35rem !important;
  padding-left: 1.5rem !important;
}

.ck-content ol ol ol,
.ck-editor__editable ol ol ol {
  list-style-type: lower-roman !important;
}

/* List Items (li) */
.ck-content li,
.ck-editor__editable li {
  display: list-item !important;
  font-size: 14.5px !important;
  line-height: 1.75 !important;
  margin-top: 0.35rem !important;
  margin-bottom: 0.65rem !important;
  padding-left: 0.35rem !important;
}

/* Bullet marker color */
.ck-content li::marker,
.ck-editor__editable li::marker {
  color: #f97316 !important; /* Orange accent */
  font-size: 1.1em !important;
}

html.dark .ck-content li::marker,
.editor-dark-mode .ck-content li::marker,
html.dark .ck-editor__editable li::marker,
.editor-dark-mode .ck-editor__editable li::marker {
  color: #fb923c !important; /* Bright orange for dark mode */
}

/* Ensure paragraph inside li maintains proper inline flow */
.ck-content li > p,
.ck-editor__editable li > p {
  margin-top: 0 !important;
  margin-bottom: 0.35rem !important;
  display: inline;
}

/* Checklists / Todo list */
.ck-content .todo-list,
.ck-editor__editable .todo-list {
  list-style: none !important;
  padding-left: 0.5rem !important;
}

.ck-content .todo-list li,
.ck-editor__editable .todo-list li {
  position: relative !important;
  padding-left: 1.75rem !important;
  margin-bottom: 0.45rem !important;
}

.ck-content .todo-list li input[type="checkbox"],
.ck-editor__editable .todo-list li input[type="checkbox"] {
  position: absolute !important;
  left: 0 !important;
  top: 0.35rem !important;
}

/* Headings inside CKEditor */
.ck-content h1, .ck-editor__editable h1 {
  font-size: 1.85rem !important;
  font-weight: 700 !important;
  margin-top: 1.6rem !important;
  margin-bottom: 0.75rem !important;
  line-height: 1.35 !important;
}

.ck-content h2, .ck-editor__editable h2 {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin-top: 1.45rem !important;
  margin-bottom: 0.65rem !important;
  line-height: 1.4 !important;
}

.ck-content h3, .ck-editor__editable h3 {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  margin-top: 1.25rem !important;
  margin-bottom: 0.55rem !important;
  line-height: 1.45 !important;
}

.ck-content h4, .ck-editor__editable h4 {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  margin-top: 1.1rem !important;
  margin-bottom: 0.45rem !important;
}

/* Paragraphs & Horizontal lines */
.ck-content p, .ck-editor__editable p {
  margin-top: 0 !important;
  margin-bottom: 0.95rem !important;
  line-height: 1.75 !important;
}

.ck-content hr, .ck-editor__editable hr {
  margin: 1.75rem 0 !important;
  border: 0 !important;
  border-top: 1px solid #e2e8f0 !important;
}

html.dark .ck-content hr,
.editor-dark-mode .ck-content hr {
  border-top-color: #334155 !important;
}

.ck-content strong, .ck-editor__editable strong {
  font-weight: 700 !important;
}

.ck-content blockquote, .ck-editor__editable blockquote {
  margin: 1.25rem 0 !important;
  padding: 0.75rem 1.25rem !important;
  border-left: 4px solid #f97316 !important;
  background: #f8fafc !important;
  border-radius: 0 8px 8px 0 !important;
  font-style: italic !important;
}

html.dark .ck-content blockquote,
.editor-dark-mode .ck-content blockquote {
  background: #1e293b !important;
  border-left-color: #f97316 !important;
  color: #cbd5e1 !important;
}

/* ==========================================================================
   CKEditor List Styles (ul, ol, li) - Counteracting Tailwind CSS Reset
   ========================================================================== */
.ck-content ul,
.ck-editor__editable ul {
  display: block !important;
  list-style-type: disc !important;
  list-style-position: outside !important;
  margin-top: 0.75rem !important;
  margin-bottom: 1.25rem !important;
  padding-left: 2rem !important;
  margin-left: 0 !important;
}

.ck-content ol,
.ck-editor__editable ol {
  display: block !important;
  list-style-type: decimal !important;
  list-style-position: outside !important;
  margin-top: 0.75rem !important;
  margin-bottom: 1.25rem !important;
  padding-left: 2rem !important;
  margin-left: 0 !important;
}

.ck-content ul ul,
.ck-editor__editable ul ul {
  list-style-type: circle !important;
  margin-top: 0.35rem !important;
  margin-bottom: 0.35rem !important;
  padding-left: 1.5rem !important;
}

.ck-content ul ul ul,
.ck-editor__editable ul ul ul {
  list-style-type: square !important;
}

.ck-content ol ol,
.ck-editor__editable ol ol {
  list-style-type: lower-alpha !important;
  margin-top: 0.35rem !important;
  margin-bottom: 0.35rem !important;
  padding-left: 1.5rem !important;
}

.ck-content li,
.ck-editor__editable li {
  display: list-item !important;
  font-size: 14.5px !important;
  line-height: 1.8 !important;
  margin-top: 0.35rem !important;
  margin-bottom: 0.65rem !important;
  padding-left: 0.35rem !important;
}

.ck-content li::marker,
.ck-editor__editable li::marker {
  color: #f97316 !important;
  font-size: 1.15em !important;
}

html.dark .ck-content li::marker,
.editor-dark-mode .ck-content li::marker,
html.dark .ck-editor__editable li::marker,
.editor-dark-mode .ck-editor__editable li::marker {
  color: #fb923c !important;
}

.ck-content li > p:first-child,
.ck-editor__editable li > p:first-child {
  display: inline !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.ck-content li > p:not(:first-child),
.ck-editor__editable li > p:not(:first-child) {
  margin-top: 0.35rem !important;
  margin-bottom: 0.35rem !important;
}



