/* Blog content styling — warm stone palette */

/* Rich text content container */
.rich-text-content {
  font-family: 'Satoshi', ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

/* Override Rhino editor styles for viewing */
.rich-text-content .trix-content {
  border: none;
  padding: 0;
  min-height: auto;
  background: transparent;
}

/* Basic text styling */
.rich-text-content p {
  margin-bottom: 1.25rem;
  color: oklch(0.35 0.02 75);
}

/* Headings */
.rich-text-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: oklch(0.25 0.02 75);
}

.rich-text-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: oklch(0.25 0.02 75);
}

/* Blockquotes */
.rich-text-content blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background-color: oklch(0.96 0.01 75 / 0.8);
  border-left: 3px solid oklch(0.55 0.10 65);
  font-style: italic;
  color: oklch(0.45 0.02 75);
}

/* Code blocks */
.rich-text-content pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  padding: 1rem;
  margin: 1.25rem 0;
  background-color: oklch(0.96 0.01 75 / 0.8);
  border-radius: 0.375rem;
  border-left: 3px solid oklch(0.55 0.10 65);
  overflow-x: auto;
  font-size: 0.875rem;
  color: oklch(0.30 0.02 75);
}

.rich-text-content :not(pre) code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  padding: 0.2rem 0.4rem;
  background-color: oklch(0.96 0.01 75 / 0.8);
  border: 1px solid oklch(0.84 0.03 75);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: oklch(0.30 0.02 75);
}

/* Lists */
.rich-text-content ul {
  list-style-type: disc;
  margin: 1.25rem 0;
  padding-left: 1.5rem;
  color: oklch(0.35 0.02 75);
}

.rich-text-content ol {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
  color: oklch(0.35 0.02 75);
}

.rich-text-content li {
  margin-bottom: 0.5rem;
}

/* Images */
.rich-text-content img {
  max-width: 100%;
  height: auto;
  border: 2px solid oklch(0.84 0.03 75);
  border-radius: 0.375rem;
  margin: 1.5rem 0;
}

/* Attachment styling */
.rich-text-content .attachment {
  margin: 1.25rem 0;
}

.rich-text-content .attachment--file {
  border: 1px solid oklch(0.84 0.03 75);
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  background-color: oklch(0.96 0.01 75 / 0.8);
  transition: background-color 0.2s;
}

.rich-text-content .attachment--file:hover {
  background-color: oklch(0.91 0.02 75 / 0.9);
}

/* Gallery */
.rich-text-content .attachment-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.rich-text-content .attachment-gallery .attachment {
  padding: 0;
  margin: 0;
}

/* Captions */
.rich-text-content figcaption {
  font-size: 0.875rem;
  color: oklch(0.55 0.02 75);
  text-align: center;
  padding-top: 0.5rem;
}

/* Links */
.rich-text-content a {
  color: oklch(0.55 0.10 65);
  text-decoration: none;
  border-bottom: 1px solid oklch(0.55 0.10 65 / 0.4);
  transition: border-color 0.2s;
}

.rich-text-content a:hover {
  border-bottom: 2px solid oklch(0.55 0.10 65);
}

/* Horizontal rule */
.rich-text-content hr {
  border: 0;
  height: 1px;
  background-color: oklch(0.84 0.03 75);
  margin: 2rem 0;
}

/* Tables */
.rich-text-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}

.rich-text-content th {
  background-color: oklch(0.91 0.02 75 / 0.8);
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid oklch(0.55 0.10 65);
  color: oklch(0.25 0.02 75);
}

.rich-text-content td {
  padding: 0.75rem;
  border-bottom: 1px solid oklch(0.84 0.03 75);
  color: oklch(0.35 0.02 75);
}

.rich-text-content table tr:hover {
  background-color: oklch(0.96 0.01 75 / 0.5);
}
