html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

* { scrollbar-width: thin; scrollbar-color: rgba(27, 45, 69, 0.16) transparent; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: rgba(27, 45, 69, 0.14);
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
  transition: background-color 0.2s ease;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(27, 45, 69, 0.34); background-clip: padding-box; }
*::-webkit-scrollbar-corner { background: transparent; }

.admin-scroll { scrollbar-color: rgba(255, 255, 255, 0.18) transparent; }
.admin-scroll::-webkit-scrollbar { width: 4px; }
.admin-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border: 0; }
.admin-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.34); }

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rich-editor .ql-toolbar.ql-snow {
  border: 0;
  border-bottom: 1px solid #e2e5ea;
  background: #f8f9fb;
  font-family: inherit;
}
.rich-editor .ql-container.ql-snow {
  border: 0;
  font-family: inherit;
  font-size: 14px;
}
.rich-editor .ql-editor {
  min-height: inherit;
  color: #1c2534;
  line-height: 1.65;
}
.rich-editor .ql-editor.ql-blank::before {
  color: #5b6372;
  opacity: 0.7;
  font-style: normal;
}
.rich-editor .ql-snow .ql-stroke { stroke: #1b2d45; }
.rich-editor .ql-snow .ql-fill { fill: #1b2d45; }
.rich-editor .ql-snow.ql-toolbar button:hover,
.rich-editor .ql-snow .ql-toolbar button:hover,
.rich-editor .ql-snow.ql-toolbar button.ql-active,
.rich-editor .ql-snow .ql-toolbar button.ql-active {
  color: #1b2d45;
}

.rich-content > *:first-child { margin-top: 0; }
.rich-content > *:last-child { margin-bottom: 0; }
.rich-content p { margin: 0 0 0.85em; }
.rich-content p:last-child { margin-bottom: 0; }
.rich-content ul,
.rich-content ol { margin: 0 0 0.85em; padding-left: 1.25em; }
.rich-content li { margin: 0.2em 0; }
.rich-content h2 { margin: 1.1em 0 0.4em; font-size: 1.25em; font-weight: 800; color: #1b2d45; }
.rich-content h3,
.rich-content h4 { margin: 1em 0 0.35em; font-size: 1.1em; font-weight: 800; color: #1b2d45; }
.rich-content blockquote {
  margin: 0.85em 0;
  padding: 0.35em 0 0.35em 0.9em;
  border-left: 3px solid #cfc9b2;
  color: #5b6372;
}
.rich-content a { color: #1b2d45; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.rich-content strong,
.rich-content b { font-weight: 800; }
