/* OKTOGEN overlay for self-hosted Excalidraw.
   Apply by adding `<link rel="stylesheet" href="/oktogen.css">` to the served
   index.html (and mounting this file into the webroot). Overrides the documented
   Excalidraw CSS-variable palette + sets Space Grotesk/Inter on the UI.
   Ref: docs.excalidraw.com/docs/@excalidraw/excalidraw/customizing-styles */

@font-face {
  font-family: 'Space Grotesk';
  src: local('Space Grotesk');
  font-display: swap;
}

.excalidraw {
  /* Aurora violet as the primary action color */
  --color-primary: #670DE5;
  --color-primary-darker: #560BC0;
  --color-primary-darkest: #46099E;
  --color-primary-light: #A49CF2;
  --color-primary-hover: #7A26E8;
}

/* UI chrome (toolbar, panels, menus) → Inter/Space Grotesk */
.excalidraw,
.excalidraw .Stack,
.excalidraw button,
.excalidraw .dropdown-menu,
.excalidraw .App-menu {
  font-family: 'Inter', system-ui, sans-serif;
}

/* Brand accent on the active tool + selection */
.excalidraw .ToolIcon__icon.active,
.excalidraw .ToolIcon--selected .ToolIcon__icon {
  background: #670DE5 !important;
  color: #F2F1F5 !important;
}

/* =====================================================================
   WHITE-LABEL — remove ALL Excalidraw branding, inject OKTOGEN.
   Verify against live DOM. Requires /oktogen-mark.svg in the webroot.
   ===================================================================== */

/* Hide the EXCALIDRAW wordmark/logo on the empty-canvas welcome screen */
.excalidraw .welcome-screen-decor .virgil,
.excalidraw .welcome-screen-menu-item__text .ExcalidrawLogo,
.excalidraw .ExcalidrawLogo,
.excalidraw [class*="welcome-screen"] svg.ExcalidrawLogo {
  display: none !important;
}

/* The OKTOGEN lockup is injected by oktogen-whitelabel.js (single source).
   Do NOT also inject via CSS ::after — that produced a duplicate wordmark. */

/* Strip vendor CTAs that point at excalidraw.com / Excalidraw+ / sign-up */
.excalidraw a[href*="excalidraw.com"],
.excalidraw a[href*="plus.excalidraw"],
.excalidraw button[aria-label*="Excalidraw+"],
.excalidraw [class*="ExcalidrawPlus"],
.excalidraw .welcome-screen-menu-item[href*="excalidraw"],
.excalidraw .dropdown-menu-item[href*="excalidraw"] {
  display: none !important;
}

/* ---- infra-expert white-label hardening (live-DOM verified 2026-06) ---- */
/* Hide the top-right Excalidraw+ button and any vendor link, belt+suspenders */
.excalidraw a[href*="excalidraw.com"],
.excalidraw a[href*="plus.excalidraw"],
.excalidraw [class*="ExcalidrawPlus"] { display: none !important; }
/* The injected OKTOGEN lockup container */
.oktogen-lockup { display: inline-flex !important; }
