/* Prism Forest Theme - Dark theme matching the forest color palette */
code[class*="language-"],
pre[class*="language-"] {
  color: #e2e8f0; /* forest-100 equivalent */
  background: none;
  text-shadow: none;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-spacing: normal;
  word-break: break-word;
  word-wrap: break-word;
  tab-size: 4;
  hyphens: none;
}

pre[class*="language-"]::-moz-selection,
pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection,
code[class*="language-"] ::-moz-selection {
  text-shadow: none;
  background: rgba(34, 87, 63, 0.5); /* forest-700 with opacity */
}

pre[class*="language-"]::selection,
pre[class*="language-"] ::selection,
code[class*="language-"]::selection,
code[class*="language-"] ::selection {
  text-shadow: none;
  background: rgba(34, 87, 63, 0.5); /* forest-700 with opacity */
}

/* Code blocks */
pre[class*="language-"] {
  padding: 1.5rem;
  margin: 0;
  overflow: auto;
  background: #14403a; /* forest-900 equivalent */
  border-radius: 0;
}

/* Inline code */
:not(pre) > code[class*="language-"] {
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  background: #14403a; /* forest-900 equivalent */
  white-space: normal;
}

/* Tokens */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #6b7280; /* Muted gray */
  font-style: italic;
}

.token.punctuation {
  color: #9ca3af; /* Light gray */
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
  color: #fbbf24; /* honey-400 equivalent */
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: #10b981; /* sage-500 equivalent */
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  color: #f59e0b; /* amber-500 equivalent */
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: #8b5cf6; /* Light purple for keywords */
}

.token.function,
.token.class-name {
  color: #06b6d4; /* Light cyan for functions */
}

.token.regex,
.token.important,
.token.variable {
  color: #ec4899; /* Pink for variables */
}

.token.important,
.token.bold {
  font-weight: bold;
}

.token.italic {
  font-style: italic;
}

.token.entity {
  cursor: help;
}

/* HTML/ERB specific */
.token.attr-name {
  color: #10b981; /* sage-500 for HTML attributes */
}

.token.attr-value .token.punctuation.attr-equals,
.token.attr-value .token.punctuation:first-child,
.token.attr-value .token.punctuation:last-child {
  color: #9ca3af; /* Gray for quotes and equals */
}

/* JavaScript specific */
.language-javascript .token.keyword {
  color: #8b5cf6; /* Purple for JS keywords */
}

.language-javascript .token.string {
  color: #10b981; /* Green for strings */
}

.language-javascript .token.function {
  color: #06b6d4; /* Cyan for functions */
}

.language-javascript .token.class-name {
  color: #f59e0b; /* Amber for class names */
}