@charset "UTF-8";
/* --- Atom One Dark (highlight.js) --- */
pre code.hljs {
  display: block;
  overflow-x: auto;
  padding: 1em;
}

code.hljs {
  padding: 3px 5px;
}

.hljs {
  color: #abb2bf;
  background: #282c34;
  font-size: 0.875rem;
  line-height: 1.5;
}

pre code.hljs {
  font-size: 0.875rem;
}

.hljs-comment,
.hljs-quote {
  color: #5c6370;
  font-style: italic;
}

.hljs-doctag,
.hljs-keyword,
.hljs-formula {
  color: #c678dd;
}

.hljs-section,
.hljs-name,
.hljs-selector-tag,
.hljs-deletion,
.hljs-subst {
  color: #e06c75;
}

.hljs-literal {
  color: #56b6c2;
}

.hljs-string,
.hljs-regexp,
.hljs-addition,
.hljs-attribute,
.hljs-meta .hljs-string {
  color: #98c379;
}

.hljs-attr,
.hljs-variable,
.hljs-template-variable,
.hljs-type,
.hljs-selector-class,
.hljs-selector-attr,
.hljs-selector-pseudo,
.hljs-number {
  color: #d19a66;
}

.hljs-symbol,
.hljs-bullet,
.hljs-link,
.hljs-meta,
.hljs-selector-id,
.hljs-title {
  color: #61aeee;
}

.hljs-built_in,
.hljs-title.class_,
.hljs-class .hljs-title {
  color: #e6c07b;
}

.hljs-emphasis {
  font-style: italic;
}

.hljs-strong {
  font-weight: bold;
}

.hljs-link {
  text-decoration: underline;
}

/* --- highlight.js-line-numbers plugin --- */
.hljs-ln-numbers {
  user-select: none;
  text-align: center;
  color: #888;
  border-right: 1px solid #555;
  vertical-align: top;
  padding-right: 0.75em;
}

table.hljs-ln tr td.hljs-ln-numbers {
  padding-right: 0.5em;
  text-align: right;
}

table.hljs-ln tr td.hljs-ln-code {
  padding-left: 0.5em;
}

/* --- Code cards (fenced blocks + mermaid) --- */
.code-card {
  margin: 1.25rem 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  background: #282c34;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.code-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-card__lang {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #abb2bf;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.code-card__tabs {
  display: flex;
  gap: 0.25rem;
}

.code-card__tab {
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  color: #abb2bf;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.code-card__tab:hover {
  color: #e06c75;
  background: rgba(255, 255, 255, 0.06);
}

.code-card__tab--active {
  color: #61aeee;
  background: rgba(255, 255, 255, 0.1);
}

.code-card__body {
  padding: 0;
  overflow-x: auto;
}

.code-card__body pre {
  margin: 0;
  border-radius: 0;
  background: #282c34;
}

.code-card__body pre:not(.mermaid) {
  padding: 1em;
}

.code-card__panel {
  display: block;
}

.code-card__panel[hidden] {
  display: none !important;
}

.code-card--mermaid .code-card__body pre.mermaid {
  background: #fff;
  padding: 1rem;
  min-height: 4rem;
}

.code-card--mermaid .code-card__panel[data-tab=source] pre {
  padding: 1em;
}

pre:not(.mermaid):not(.code-card__body pre) {
  background: #282c34;
  padding: 1em;
  border-radius: 6px;
  overflow-x: auto;
}

/* --- Markdown doc page (tabs + rendered body) --- */
.markdown-doc {
  margin-top: 0.5rem;
  font-size: 1rem;
}

.markdown-doc-tab-content {
  padding-top: 0;
}

.markdown-doc-pane {
  min-height: 2rem;
}

.markdown-source-panel {
  margin: 0;
  padding: 1rem;
  overflow: auto;
  background: #24292f;
  color: #f6f8fa;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.45;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
}
.markdown-source-panel code.hljs {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.markdown-raw-panel {
  white-space: pre-wrap;
  word-break: break-word;
}

.markdown-doc .markdown-body {
  max-width: none;
  line-height: 1.65;
  color: #212529;
  font-size: 1rem;
}
.markdown-doc .markdown-body > :first-child {
  margin-top: 0;
}
.markdown-doc .markdown-body > :last-child {
  margin-bottom: 0;
}
.markdown-doc .markdown-body h1,
.markdown-doc .markdown-body h2,
.markdown-doc .markdown-body h3,
.markdown-doc .markdown-body h4,
.markdown-doc .markdown-body h5,
.markdown-doc .markdown-body h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
  line-height: 1.25;
}
.markdown-doc .markdown-body h1 {
  font-size: 2rem;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #dee2e6;
}
.markdown-doc .markdown-body h2 {
  font-size: 1.5rem;
  padding-bottom: 0.25em;
  border-bottom: 1px solid rgb(233.6068965517, 236.2, 238.7931034483);
}
.markdown-doc .markdown-body h3 {
  font-size: 1.25rem;
}
.markdown-doc .markdown-body h4 {
  font-size: 1.1rem;
}
.markdown-doc .markdown-body p,
.markdown-doc .markdown-body ul,
.markdown-doc .markdown-body ol,
.markdown-doc .markdown-body dl,
.markdown-doc .markdown-body blockquote,
.markdown-doc .markdown-body pre,
.markdown-doc .markdown-body table,
.markdown-doc .markdown-body .code-card {
  margin-top: 0;
  margin-bottom: 1rem;
}
.markdown-doc .markdown-body ul,
.markdown-doc .markdown-body ol {
  padding-left: 1.5em;
}
.markdown-doc .markdown-body li + li {
  margin-top: 0.25em;
}
.markdown-doc .markdown-body blockquote {
  padding: 0.5rem 1rem;
  border-left: 4px solid #dee2e6;
  color: #6c757d;
  background: #24292f;
  border-radius: 0 6px 6px 0;
}
.markdown-doc .markdown-body hr {
  border: 0;
  border-top: 1px solid #dee2e6;
  margin: 1.5rem 0;
}
.markdown-doc .markdown-body a {
  color: #0d6efd;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.markdown-doc .markdown-body a:hover {
  color: rgb(1.8459016393, 91.3721311475, 223.3540983607);
}
.markdown-doc .markdown-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.markdown-doc .markdown-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.markdown-doc .markdown-body th,
.markdown-doc .markdown-body td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #dee2e6;
  text-align: left;
}
.markdown-doc .markdown-body th {
  background: #24292f;
  color: #f6f8fa;
  font-weight: 600;
}
.markdown-doc .markdown-body {
  /* Inline code only — not blocks inside .code-card */
}
.markdown-doc .markdown-body :not(pre) > code {
  padding: 0.15em 0.35em;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  background: #eef1f4;
  color: #24292f;
  border: 1px solid #d8dee4;
  word-break: break-word;
}

/* --- Folder index (uses markdown.css) --- */
.folder-index .folder-index__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.folder-index .folder-index__theme-toggle {
  background: #e8e8e8;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}
.folder-index .folder-index__theme-toggle:hover {
  background: #ddd;
}
.folder-index .folder-index__title {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: #333;
}
.folder-index .folder-index__breadcrumb {
  margin-bottom: 1rem;
  color: #666;
  font-size: 0.95rem;
}
.folder-index .folder-index__breadcrumb a {
  color: #0066cc;
  text-decoration: none;
}
.folder-index .folder-index__breadcrumb a:hover {
  text-decoration: underline;
}
.folder-index .folder-index__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.folder-index .folder-index__table th,
.folder-index .folder-index__table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}
.folder-index .folder-index__table th {
  background: #f5f5f5;
  font-weight: 600;
  color: #555;
}
.folder-index .folder-index__table tbody tr:nth-child(even) {
  background: #fafafa;
}
.folder-index .folder-index__table a {
  color: #0066cc;
  text-decoration: none;
}
.folder-index .folder-index__table a:hover {
  text-decoration: underline;
}
.folder-index.dark-mode {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 1.25rem;
  border-radius: 8px;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 1rem;
}
.folder-index.dark-mode .folder-index__theme-toggle {
  background: #313244;
  border-color: #45475a;
  color: #cdd6f4;
}
.folder-index.dark-mode .folder-index__theme-toggle:hover {
  background: #45475a;
}
.folder-index.dark-mode .folder-index__title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #89b4fa;
  font-weight: 600;
}
.folder-index.dark-mode .folder-index__breadcrumb {
  background: #2e2e3e;
  margin-bottom: 1rem;
  color: #a6adc8;
  font-size: 0.85rem;
}
.folder-index.dark-mode .folder-index__breadcrumb a {
  color: #89b4fa;
  text-decoration: none;
}
.folder-index.dark-mode .folder-index__breadcrumb a:hover {
  color: #b4befe;
  text-decoration: underline;
}
.folder-index.dark-mode .folder-index__table th,
.folder-index.dark-mode .folder-index__table td {
  padding: 0.35rem 0.75rem;
  border-bottom: 1px solid #313244;
}
.folder-index.dark-mode .folder-index__table th {
  background: #2e2e3e;
  border-bottom: 3px solid #a6e3a1;
  color: #6c7086;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.folder-index.dark-mode .folder-index__table tbody tr:hover {
  background: #313244;
}
.folder-index.dark-mode .folder-index__table tbody tr:nth-child(even) {
  background: #2e2e3e;
}
.folder-index.dark-mode .folder-index__table a {
  color: #a6e3a1;
  text-decoration: none;
}
.folder-index.dark-mode .folder-index__table a:hover {
  color: #94e2d5;
  text-decoration: underline;
}
.folder-index.dark-mode .folder-index__table td:last-child {
  color: #6c7086;
  font-size: 0.875rem;
}

.default-crud-styles table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ddd;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
}
.default-crud-styles table th,
.default-crud-styles table td {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
}
.default-crud-styles table th {
  background-color: #f8f9fa;
  font-weight: bold;
}
.default-crud-styles table tr:hover {
  background-color: #f0f0f0;
}