/* NovelAI Image MCP — Furo theme overrides
 *
 * The brand color palette is set in conf.py via html_theme_options. This
 * file holds structural / typography overrides that are easier to express
 * in CSS than through Furo's CSS-variable hooks.
 */

/* ── Code blocks ──────────────────────────────────────────────────────────── */
/* Tighter line-height for code so parameter tables don't balloon. */
.highlight,
.literal-block-wrapper {
  line-height: 1.4;
}

/* Make copybutton slightly more visible on Furo's default backgrounds. */
.copybutton {
  opacity: 0.5;
  transition: opacity 0.15s ease-in-out;
}
.copybutton:hover,
.copybutton:focus-visible {
  opacity: 1;
}

/* ── Tables ───────────────────────────────────────────────────────────────── */
/* Tighten parameter tables so long type signatures don't wrap mid-token. */
table.docutils {
  table-layout: auto;
}
table.docutils td,
table.docutils th {
  word-break: break-word;
}

/* ── Admonitions ─────────────────────────────────────────────────────────── */
/* Furo renders MyST admonitions well by default; tweak the side stripe width
 * for stronger visual hierarchy. */
.admonition {
  border-left-width: 4px;
}

/* ── Mermaid diagrams ─────────────────────────────────────────────────────── */
.mermaid {
  text-align: center;
}

/* ── Brand link in the sidebar ─────────────────────────────────────────────── */
.sidebar-brand-text {
  font-weight: 600;
}

/* ── Language switcher ─────────────────────────────────────────────────────── */
/* Rendered by ``_templates/sidebar/language-switcher.html`` inside the
 * sidebar scroll wrapper. Kept compact so it doesn't crowd the nav tree. */
.sidebar-language-switcher {
  margin-top: 1rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-sidebar-border, rgba(0, 0, 0, 0.1));
  border-radius: 6px;
}

.sidebar-language-switcher-label {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-foreground-muted, #6b7280);
}

.sidebar-language-switcher-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.sidebar-language-switcher-links a {
  color: var(--color-link, #7c3aed);
  text-decoration: none;
  font-size: 0.85rem;
}

.sidebar-language-switcher-links a:hover,
.sidebar-language-switcher-links a:focus-visible {
  color: var(--color-link--hover, #6d28d9);
  text-decoration: underline;
}

/* Active language — non-interactive marker, no underline. */
.language-switcher-active {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-foreground-primary, currentColor);
  text-decoration: none;
  cursor: default;
}

/* ── Print styles ──────────────────────────────────────────────────────────── */
@media print {
  .toc-tree,
  .related-pages,
  .copybutton,
  .footer-icons,
  .edit-this-page {
    display: none !important;
  }
  .article-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}
