/* copied from google */

/* 1. Global Monospace Base Style */
pre, code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
}

/* 2. Standalone Code Block Container */
pre {
  background-color: #f6f8fa; /* Soft off-white / light gray */
  color: #24292e;            /* Dark slate for high contrast */
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 6px;
  border: 1px solid #e1e4e8;

  /* Critical for formatting and scrollbars */
  overflow-x: auto;          /* Adds horizontal scroll if lines are too long */
  white-space: pre;          /* Preserves spaces and line breaks natively */
}

/* Ensure code inside pre strips default inline background styles */
pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  color: inherit;
}

/* 3. Inline Code (e.g., inside a paragraph) */
p > code, li > code {
  background-color: #afb8c133;
  color: #cf222e;
  padding: 0.2em 0.4em;
  border-radius: 6px;
}
