.tiptap-shell {
  border: 1.5px solid rgba(20, 24, 20, 0.12);
  border-radius: 0.75rem;
  background: #fff;
  overflow: hidden;
}

.tiptap-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid rgba(20, 24, 20, 0.08);
  background: #f7f7f5;
}

.tiptap-toolbar__group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding-right: 0.45rem;
  margin-right: 0.15rem;
  border-right: 1px solid rgba(20, 24, 20, 0.08);
}

.tiptap-toolbar__group:last-child {
  border-right: 0;
  padding-right: 0;
  margin-right: 0;
}

.tiptap-toolbar button,
.tiptap-btn {
  border: 1px solid rgba(20, 24, 20, 0.1);
  background: #fff;
  border-radius: 0.45rem;
  padding: 0.32rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1a221c;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.tiptap-toolbar button:hover,
.tiptap-btn:hover {
  border-color: #f15a24;
  color: #f15a24;
}

.tiptap-toolbar button.is-active,
.tiptap-btn.is-active {
  background: #fff0e8;
  border-color: #f15a24;
  color: #c44514;
}

.tiptap-mount {
  min-height: var(--tiptap-min-h, 280px);
}

.tiptap-content {
  min-height: var(--tiptap-min-h, 280px);
  padding: 0.95rem 1rem 1.15rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #1a221c;
}

.tiptap-content:focus {
  outline: none;
}

.tiptap-content p { margin: 0 0 0.85rem; }
.tiptap-content h2,
.tiptap-content h3,
.tiptap-content h4 {
  font-family: Fraunces, Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 700;
  margin: 1.2rem 0 0.6rem;
  line-height: 1.25;
}
.tiptap-content h2 { font-size: 1.45rem; }
.tiptap-content h3 { font-size: 1.2rem; }
.tiptap-content h4 { font-size: 1.05rem; }
.tiptap-content ul,
.tiptap-content ol { margin: 0 0 0.85rem 1.25rem; }
.tiptap-content li { margin: 0.2rem 0; }
.tiptap-content blockquote {
  border-left: 3px solid #f15a24;
  padding-left: 0.9rem;
  color: #5a655d;
  margin: 0 0 0.85rem;
}
.tiptap-content a { color: #f15a24; text-decoration: underline; }
.tiptap-content hr {
  border: 0;
  border-top: 1px solid rgba(20, 24, 20, 0.12);
  margin: 1.1rem 0;
}
.tiptap-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: #f3f1ec;
  padding: 0.1rem 0.35rem;
  border-radius: 0.3rem;
}
.tiptap-content pre,
.tiptap-content .tiptap-codeblock {
  background: #1a221c;
  color: #f4f2ed;
  border-radius: 0.65rem;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  margin: 0 0 0.95rem;
}
.tiptap-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
.tiptap-content img,
.tiptap-content .tiptap-image {
  max-width: 100%;
  height: auto;
  border-radius: 0.65rem;
  margin: 0.75rem 0;
}
.tiptap-content mark {
  background: #ffe8a3;
  border-radius: 0.2rem;
  padding: 0.05rem 0.15rem;
}
.tiptap-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
  overflow: hidden;
  border-radius: 0.5rem;
}
.tiptap-content th,
.tiptap-content td {
  border: 1px solid rgba(20, 24, 20, 0.12);
  padding: 0.45rem 0.6rem;
  vertical-align: top;
  text-align: left;
}
.tiptap-content th {
  background: #f3f1ec;
  font-weight: 700;
}
.tiptap-content p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  float: left;
  color: #9aa39d;
  pointer-events: none;
  height: 0;
}

.tiptap-source[hidden] {
  display: none !important;
}

.prose-blog h2,
.prose-blog h3,
.prose-blog h4 {
  font-family: Fraunces, Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 700;
  color: #141814;
  margin: 1.5rem 0 0.75rem;
}
.prose-blog p { margin: 0 0 1rem; line-height: 1.7; color: #4a554c; }
.prose-blog ul,
.prose-blog ol { margin: 0 0 1rem 1.25rem; color: #4a554c; }
.prose-blog a { color: #f15a24; font-weight: 600; }
.prose-blog img { border-radius: 0.75rem; margin: 1rem 0; max-width: 100%; height: auto; }
.prose-blog blockquote {
  border-left: 3px solid #f15a24;
  padding-left: 0.9rem;
  color: #5a655d;
  margin: 0 0 1rem;
}
.prose-blog table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
}
.prose-blog th,
.prose-blog td {
  border: 1px solid rgba(20, 24, 20, 0.12);
  padding: 0.45rem 0.6rem;
}
.prose-blog th { background: #f3f1ec; }
.prose-blog pre {
  background: #1a221c;
  color: #f4f2ed;
  border-radius: 0.65rem;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  margin: 0 0 1rem;
}
.prose-blog code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
}
.prose-blog mark {
  background: #ffe8a3;
  border-radius: 0.2rem;
  padding: 0.05rem 0.15rem;
}
