/* ==========================================================================
   Deal Sourcery Wiki — minimal brand overrides
   ==========================================================================
   This wiki is wiki-first, not a marketing site. We keep the default
   mkdocs-material look and only override:

     1. The accent color (change --ds-accent to re-skin)
     2. The per-page copy-markdown toolbar (small icon buttons, not prominent)

   Everything else — hero gradients, host cards, browse grids, footer CTAs —
   is intentionally removed. Use mkdocs-material's native page layout.
   ========================================================================== */

:root {
  /* Single-knob brand color. Change this to re-skin. */
  --ds-accent:      #6B5CFF;  /* Deal Sourcery indigo (first-pass guess) */
  --ds-accent-dark: #4B3EE0;

  /* Override mkdocs-material palette */
  --md-primary-fg-color:         var(--ds-accent);
  --md-primary-fg-color--light:  var(--ds-accent);
  --md-primary-fg-color--dark:   var(--ds-accent-dark);
  --md-accent-fg-color:          var(--ds-accent);
  --md-typeset-a-color:          var(--ds-accent);
}

/* --------------------------------------------------------------------------
   Page markdown toolbar (injected by copy-markdown.js on every content page)
   --------------------------------------------------------------------------
   Tiny icon-only buttons. Subtle. Hover-reveal. No text labels, no
   background wrapper, no prominence. Just there when you want them.
   -------------------------------------------------------------------------- */

.ds-page-toolbar {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  align-items: center;
  margin: 0 0 1rem;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.ds-page-toolbar:hover,
.ds-page-toolbar:focus-within {
  opacity: 1;
}

.ds-page-toolbar button,
.ds-page-toolbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--md-default-fg-color--lightest, rgba(0, 0, 0, 0.12));
  border-radius: 6px;
  color: var(--md-default-fg-color--light, #555);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.ds-page-toolbar button:hover,
.ds-page-toolbar a:hover,
.ds-page-toolbar button:focus-visible,
.ds-page-toolbar a:focus-visible {
  color: var(--ds-accent);
  border-color: var(--ds-accent);
  background: rgba(107, 92, 255, 0.08);
  outline: none;
}

.ds-page-toolbar button.ds-copied {
  color: #16a34a;
  border-color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
}

.ds-page-toolbar svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* Toast notification used when clipboard copy succeeds. Unchanged except
   for moving it out of the way on small screens. */

.ds-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  background: #111;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 9999;
}

.ds-toast.ds-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 480px) {
  .ds-toast {
    font-size: 0.8rem;
    padding: 0.5rem 0.9rem;
  }
}
