/* Solo enterprise brand layer.
   Loaded when the consumer's hugo config sets:
     [params.themeExtras]
       brand = "enterprise"
   Applies to solo-io/docs and (eventually) kagent-enterprise. */

/* ── Brand colors ────────────────────────────────────────────────────── */
/* Solo primary blue: #158bc2 → hsl(197, 80%, 42%).
   Sets both Hextra's tailwind primary HSL (compile-time) and the
   docs-theme-extras runtime CSS vars used by component rules. */
:root {
  --primary-hue: 197deg;
  --primary-saturation: 80%;
  --primary-lightness: 42%;
  --theme-primary:       #158bc2;
  --theme-primary-hover: #106a94;
  --theme-primary-tint:  rgba(21, 139, 194, 0.1);
  /* Link/accent TEXT color — deliberately separate from --theme-primary.
     WCAG sets different floors for the two jobs this palette does: 4.5:1 for
     normal-size text (1.4.3) but only 3:1 for icons, borders, and other
     non-text UI (1.4.11). --theme-primary satisfies the 3:1 job at #158bc2 and
     stays as-is; it cannot satisfy the text job at ANY background, because its
     relative luminance (0.2252) caps it at 3.82:1 even against pure white.
     #0274a0 is the smallest perceptual step from #158bc2 (CIEDE2000 dE 9.08)
     that clears 4.5:1 on every light surface link text can land on — the
     darkest being the .alert-default callout fill #eaeefb, where it scores
     4.52:1. See tests/contrast.spec.ts, which re-derives this from the build
     rather than trusting these comments. */
  --theme-link:          #0274a0;
  --theme-link-hover:    #106a94;
}
.dark {
  --theme-primary:       #60b5e0;
  --theme-primary-tint:  rgba(96, 181, 224, 0.1);
  /* Dark-mode link text. #158bc2 was previously used unchanged in dark mode
     (the old `.content a` rule had no `.dark` variant), which passed on the
     page fill but failed inside the translucent alert tints — 4.08:1 on
     .alert-warning. #2f93c7 is a dE 2.94 step from it, near-imperceptible
     side by side, and clears 4.54:1 on the worst dark surface. Hover reuses
     the existing dark accent, which has ample headroom at 6.81:1. */
  --theme-link:          #2f93c7;
  --theme-link-hover:    #60b5e0;
}

/* ── Typography ──────────────────────────────────────────────────────── */
/* Solo enterprise body font stack. The OSS brand may override this with a
   different stack; consumer-specific custom.css can override either. */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Ubuntu, sans-serif;
}

/* Heading color matching old docs-theme-lotus enterprise theme */
.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
  color: #253e58;
}
.dark .content h1, .dark .content h2, .dark .content h3,
.dark .content h4, .dark .content h5, .dark .content h6 {
  color: #fff;
}

/* ── Links ───────────────────────────────────────────────────────────── */
/* Content link color now comes from the shared `.content a` rule in
   docs-theme-extras.css, which reads --theme-link / --theme-link-hover defined
   above. Keeping the paint in the component layer is what gives dark mode a
   link color at all: the rule this replaced hardcoded #158bc2 with no `.dark`
   variant, so enterprise links were the one component that never flipped with
   the theme. Brand-specific link VALUES still live here, in the token. */

/* Docs-page column top spacing (sidebar / TOC / content alignment) is now
   centralized in docs-theme-extras.css for both brands — see the #content,
   .solo-toc-inner, and .sidebar-nav-wrapper rules there. This used to be an
   enterprise-only override because OSS sites once shipped their own docs
   templates; they now use the same centralized templates, so the alignment
   belongs in the shared layer. */
