/* Template-only docs styles (UI gallery canvases). Not shared with SandustryTypes. */

.markdown-section .smt-mermaid {
  margin: 1.25rem 0;
  overflow-x: auto;
  text-align: center;
}
.markdown-section .smt-mermaid svg {
  max-width: 100%;
  height: auto;
}

/* Shell blocks: terminal-style gbc CLI colors (see assets/prism-gbc-cli.js). */
.markdown-section pre[data-lang="bash"] code .token.smt-cli,
.markdown-section pre.language-bash code .token.smt-cli {
  color: #b392f0;
}
.markdown-section pre[data-lang="bash"] code .token.smt-cmd,
.markdown-section pre.language-bash code .token.smt-cmd {
  color: #eeffff;
}
.markdown-section pre[data-lang="bash"] code .token.smt-path,
.markdown-section pre.language-bash code .token.smt-path {
  color: #89ddff;
}
.markdown-section pre[data-lang="bash"] code .token.smt-flag,
.markdown-section pre.language-bash code .token.smt-flag {
  color: #ffcb6b;
}

/* Live UI previews (Docsify embeds) */
iframe.ui-canvas {
  display: block;
  width: 100%;
  min-height: 10rem;
  border: 1px solid color-mix(in srgb, var(--theme-color) 35%, var(--border-color, #334155));
  border-radius: 4px;
  background: #1a2332;
  margin: 0 0 1.5rem;
  overflow: hidden;
  color-scheme: dark;
}

.ui-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.ui-gallery-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--border-color, #334155);
  border-radius: 8px;
  background: var(--color-mono-2, #0f172a);
}

.ui-gallery-card a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--theme-color);
  text-decoration: none;
}

.ui-gallery-card a:hover {
  color: var(--color-text);
}

.ui-gallery-card iframe.ui-canvas {
  margin: 0;
  min-height: 9rem;
}
