trix-editor {
  min-height: 24rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 1rem;
  background: #fff;
  color: #1f2937;
  line-height: 1.7;
}

trix-editor:focus {
  border-color: #4a2f27;
  box-shadow: 0 0 0 3px rgb(74 47 39 / 0.15);
  outline: none;
}

trix-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: 0.5rem;
  background: #fff;
}

.trix-content {
  overflow-wrap: break-word;
}

.trix-content img {
  max-width: 100%;
  height: auto;
}

.trix-content .attachment {
  display: block;
  max-width: 100%;
  margin: 2rem auto;
  text-align: center;
}

.trix-content .attachment__caption {
  margin-top: 0.75rem;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
}

.journal-body {
  color: #3f3f3b;
  font-size: 1.075rem;
  line-height: 1.85;
}

.journal-body > * + * {
  margin-top: 1.5rem;
}

.journal-body h2 {
  margin-top: 3.5rem;
  color: #1b1a17;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
}

.journal-body h3,
.journal-body h4 {
  margin-top: 2.75rem;
  color: #1b1a17;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.3;
}

.journal-body a {
  color: #b82f2f;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.journal-body blockquote {
  margin: 2.5rem 0;
  border-left: 3px solid #ff4040;
  padding: 0.5rem 0 0.5rem 1.5rem;
  color: #4a2f27;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.5;
}

.journal-body ul,
.journal-body ol {
  padding-left: 1.5rem;
}

.journal-body ul {
  list-style: disc;
}

.journal-body ol {
  list-style: decimal;
}

.journal-body li + li {
  margin-top: 0.5rem;
}

.journal-body pre {
  overflow-x: auto;
  border-radius: 0.5rem;
  background: #f6f1eb;
  padding: 1rem;
  font-size: 0.9rem;
}

.journal-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.journal-body figure {
  margin: 2.5rem 0;
}

.journal-body figcaption {
  margin-top: 0.75rem;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}

.journal-body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.journal-body th,
.journal-body td {
  border: 1px solid #d6d3d1;
  padding: 0.6rem 0.75rem;
  text-align: left;
}

.journal-body th {
  background: #f6f1eb;
  color: #1b1a17;
}

.markdown-toolbar-button {
  border-radius: 0.375rem;
  padding: 0.35rem 0.55rem;
  color: #4b5563;
  font-size: 0.8rem;
  line-height: 1.2;
}

.markdown-toolbar-button:hover {
  background: #e5e7eb;
  color: #111827;
}

.product-description {
  color: #374151;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.product-description > * + * {
  margin-top: 1rem;
}

.product-description h2 {
  margin-top: 1.75rem;
  color: #111827;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
}

.product-description h3,
.product-description h4 {
  margin-top: 1.5rem;
  color: #111827;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.product-description a {
  color: #b82f2f;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.product-description blockquote {
  border-left: 3px solid #ff4040;
  padding: 0.25rem 0 0.25rem 1rem;
  color: #4a2f27;
}

.product-description ul,
.product-description ol {
  padding-left: 1.5rem;
}

.product-description ul {
  list-style: disc;
}

.product-description ol {
  list-style: decimal;
}

.product-description li + li {
  margin-top: 0.35rem;
}

.product-description pre {
  overflow-x: auto;
  border-radius: 0.5rem;
  background: #f6f1eb;
  padding: 1rem;
  font-size: 0.9rem;
}

.product-description code {
  border-radius: 0.25rem;
  background: #f6f1eb;
  padding: 0.1em 0.3em;
  font-size: 0.9em;
}

.product-description pre code {
  background: transparent;
  padding: 0;
}

.product-description table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.product-description th,
.product-description td {
  border: 1px solid #d6d3d1;
  padding: 0.5rem 0.7rem;
  text-align: left;
}

.product-description th {
  background: #f6f1eb;
  color: #111827;
}
