/*
 * Finnest brand palette (mirrors packages/ui --color-finnest-* tokens). Served as a static
 * stylesheet from the site head; the doubled :root selector outranks the default theme's
 * :root tokens regardless of stylesheet order.
 */
:root:root {
  --vp-c-brand-1: #5b32e6;
  --vp-c-brand-2: #4322c3;
  --vp-c-brand-3: #5b32e6;
  --vp-c-brand-soft: rgb(91 50 230 / 14%);
  --vp-home-hero-name-color: transparent;
  --vp-home-hero-name-background: linear-gradient(120deg, #5b32e6 30%, #33cccc);
  --vp-home-hero-image-background-image: linear-gradient(-45deg, #7653ff 50%, #33cccc 50%);
  --vp-home-hero-image-filter: blur(56px);
}

:root.dark {
  --vp-c-brand-1: #a18bff;
  --vp-c-brand-2: #8b70ff;
  --vp-c-brand-3: #5b32e6;
  --vp-c-brand-soft: rgb(118 83 255 / 18%);
}

/* Architecture diagrams are inline SVG that follow the active theme colors. */
.finnest-diagram {
  margin: 24px 0;
  overflow-x: auto;
}

.finnest-diagram svg {
  display: block;
  min-width: 640px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  color: var(--vp-c-text-1);
  font-family: var(--vp-font-family-base);
}

.finnest-diagram .box {
  fill: var(--vp-c-bg-soft);
  stroke: var(--vp-c-divider);
  stroke-width: 1.5;
}

.finnest-diagram .box-accent {
  fill: var(--vp-c-brand-soft);
  stroke: var(--vp-c-brand-1);
  stroke-width: 1.5;
}

.finnest-diagram .zone {
  fill: none;
  stroke: var(--vp-c-brand-1);
  stroke-dasharray: 6 5;
  stroke-width: 1.25;
}

.finnest-diagram .edge {
  fill: none;
  stroke: var(--vp-c-text-2);
  stroke-width: 1.4;
}

.finnest-diagram .title {
  fill: var(--vp-c-text-1);
  font-size: 14px;
  font-weight: 600;
}

.finnest-diagram .label {
  fill: var(--vp-c-text-2);
  font-size: 12px;
}

.finnest-diagram .zone-label {
  fill: var(--vp-c-brand-1);
  font-size: 12px;
  font-weight: 600;
}

/* Home hero: show the brand mark at a readable size over the gradient glow. */
.VPHero .VPImage.image-src {
  width: 120px;
  height: auto;
}

@media (min-width: 960px) {
  .VPHero .VPImage.image-src {
    width: 240px;
  }
}

/* Home feature icons: white Phosphor duotone icons on a brand-gradient tile. */
.VPFeature .icon {
  color: #fff;
  background: linear-gradient(135deg, #5b32e6, #33cccc);
  box-shadow: 0 6px 18px rgb(91 50 230 / 35%);
}

.finnest-diagram .lifeline {
  fill: none;
  stroke: var(--vp-c-divider);
  stroke-dasharray: 4 5;
  stroke-width: 1.2;
}

/* CLI demo recordings (public/media/cli). */
.vp-doc video.cli-demo {
  display: block;
  width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgb(20 17 33 / 25%);
  background: #141121;
}
