.trix-content {
  line-height: 1.75;
}

.trix-content h1 {
  font-size: 2em;
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.trix-content h2 {
  font-size: 1.5em;
  font-weight: 700;
  margin-top: 1.25em;
  margin-bottom: 0.5em;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.trix-content h3 {
  font-size: 1.25em;
  font-weight: 700;
  margin-top: 1em;
  margin-bottom: 0.5em;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.trix-content p {
  margin-bottom: 1em;
}

.trix-content a {
  color: #000;
  text-decoration: underline;
  transition: all 0.15s ease;
}

.trix-content a:hover {
  background-color: #000;
  color: #fff;
}

.trix-content strong {
  font-weight: 700;
}

.trix-content em {
  font-style: italic;
}

.trix-content s {
  text-decoration: line-through;
}

.trix-content u {
  text-decoration: underline;
}

.trix-content ul,
.trix-content ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}

.trix-content ul {
  list-style-type: disc;
}

.trix-content ol {
  list-style-type: decimal;
}

.trix-content li {
  margin-bottom: 0.25em;
}

.trix-content blockquote {
  border-left: 4px solid #000;
  padding-left: 1em;
  margin: 1.5em 0;
  font-style: italic;
  color: #333;
}

.trix-content pre.ql-syntax,
.trix-content pre {
  background-color: #f4f4f4;
  border: 1px solid #000;
  padding: 1em;
  margin: 1.5em 0;
  overflow-x: auto;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.9em;
  color: #000;
}

.trix-content code {
  background-color: #f4f4f4;
  padding: 0.15em 0.4em;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.9em;
}

.trix-content pre code,
.trix-content pre.ql-syntax code {
  background: none;
  padding: 0;
}

.trix-content img {
  max-width: 100%;
  height: auto;
  border: 1px solid #000;
  margin: 1.5em 0;
}

.trix-content .ql-align-center {
  text-align: center;
}

.trix-content .ql-align-right {
  text-align: right;
}

.trix-content .ql-align-justify {
  text-align: justify;
}

.trix-content .ql-indent-1 {
  padding-left: 2em;
}

.trix-content .ql-indent-2 {
  padding-left: 4em;
}

.trix-content .ql-indent-3 {
  padding-left: 6em;
}

/* =============================================
   AFROPEDIA RICH CONTENT BLOCKS
   ============================================= */

/* Map Embed */
.afro-map-embed {
  margin: 2em 0;
  border: 1px solid #000;
  overflow: hidden;
}

.afro-map-placeholder {
  background: #f0f0f0;
  padding: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 200px;
}

.afro-map-placeholder-icon {
  color: #000;
  opacity: 0.6;
}

.afro-map-placeholder-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.afro-map-placeholder-coords {
  font-size: 0.75em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #666;
}

.ql-map-embed {
  margin: 1em 0;
}

/* Listicle */
.afro-listicle-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5em;
  align-items: start;
  padding: 2em 0;
  border-bottom: 1px solid #000;
}

.afro-listicle-item:first-child {
  padding-top: 0;
}

.afro-listicle-number {
  font-family: 'Oswald', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  min-width: 80px;
}

.afro-listicle-content {
  flex: 1;
}

.afro-listicle-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em 0;
}

.afro-listicle-description {
  font-size: 1em;
  line-height: 1.6;
  margin: 0;
  color: #333;
}

.afro-listicle-image {
  width: 150px;
  height: 150px;
  border: 1px solid #000;
  overflow: hidden;
  flex-shrink: 0;
}

.afro-listicle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ql-listicle {
  margin: 1em 0;
}

/* Callout */
.afro-callout {
  display: flex;
  gap: 1em;
  padding: 1.5em;
  margin: 2em 0;
  border: 1px solid #000;
}

.afro-callout-icon {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  padding-top: 0.1em;
}

.afro-callout-text {
  flex: 1;
  font-size: 1em;
  line-height: 1.6;
}

.afro-callout-info {
  background: #f0f4ff;
  border-left: 4px solid #000;
}

.afro-callout-info .afro-callout-icon {
  color: #000;
}

.afro-callout-tip {
  background: #f0fff4;
  border-left: 4px solid #000;
}

.afro-callout-tip .afro-callout-icon {
  color: #000;
}

.afro-callout-warning {
  background: #fff8f0;
  border-left: 4px solid #000;
}

.afro-callout-warning .afro-callout-icon {
  color: #000;
}

.afro-callout-highlight {
  background: #fffdf0;
  border-left: 4px solid #000;
}

.afro-callout-highlight .afro-callout-icon {
  color: #000;
}

.ql-callout {
  margin: 1em 0;
}

/* Dividers */
.afro-divider-line {
  border: none;
  border-top: 1px solid #000;
  margin: 2em 0;
}

.afro-divider-dots {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin: 2em 0;
}

.afro-divider-dots span {
  width: 6px;
  height: 6px;
  background: #000;
  border-radius: 50%;
  display: block;
}

.afro-divider-ornament {
  text-align: center;
  margin: 2em 0;
  font-size: 1em;
  letter-spacing: 0.5em;
  color: #000;
}

.ql-divider {
  margin: 1em 0;
}

/* Table of Contents */
.afro-toc {
  margin: 2em 0;
  padding: 1.5em 2em;
  border: 1px solid #000;
  background: #fafafa;
}

.afro-toc-header {
  margin-bottom: 1em;
  padding-bottom: 0.75em;
  border-bottom: 1px solid #000;
}

.afro-toc-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.afro-toc-list {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.afro-toc-list a {
  display: block;
  font-size: 0.9em;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  padding: 0.35em 0;
  border-bottom: 1px dotted #ccc;
  transition: all 0.15s ease;
}

.afro-toc-list a:hover {
  background-color: #000;
  color: #fff;
  padding-left: 0.5em;
}

.afro-toc-list .toc-h3 {
  padding-left: 1.5em;
  font-size: 0.85em;
}

.afro-toc-placeholder {
  font-size: 0.85em;
  color: #888;
  font-style: italic;
}

.ql-toc {
  margin: 1em 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .afro-listicle-item {
    grid-template-columns: auto 1fr;
    gap: 1em;
  }

  .afro-listicle-image {
    grid-column: 1 / -1;
    width: 100%;
    height: 200px;
  }

  .afro-listicle-number {
    font-size: 2rem;
    min-width: 50px;
  }

  .afro-callout {
    flex-direction: column;
    gap: 0.75em;
  }
}
