/**
 * Zuto brand system.
 *
 * The lockup artwork is the supplied transparent PNG for each vertical.
 * This stylesheet sizes and places that artwork; it does not redraw the
 * cube, wordmark, divider or endorsement.
 *
 * Consumed by <zuto-brand> (js/marketplace-core/zuto-brand-element.js).
 */

:root {
  /* Neon family taken from the supplied lockups. */
  --zuto-primary: #22d3ee;
  --zuto-primary-strong: #06b6d4;
  --zuto-primary-soft: #67e8f9;
  --zuto-secondary: #d946ef;
  --zuto-accent: #fb923c;
  --zuto-gradient: linear-gradient(120deg, #22d3ee 0%, #a855f7 48%, #fb923c 100%);
  --zuto-wordmark-gradient: linear-gradient(
    100deg,
    #22d3ee 0%,
    #a855f7 48%,
    #fb923c 100%
  );
  --zuto-wordmark-gradient-light: linear-gradient(
    100deg,
    #0891b2 0%,
    #7e22ce 48%,
    #c2410c 100%
  );

  --zuto-background: #0a1024;
  --zuto-surface: #10182d;
  --zuto-text: #f8fafc;
  --zuto-text-strong: #ffffff;
  --zuto-muted: #94a3b8;
  --zuto-border: rgba(148, 163, 184, 0.16);

  --zuto-primary-on-light: #0e7490;
  --zuto-text-on-light: #0f172a;
  --zuto-muted-on-light: #64748b;

  --zuto-hover: #67e8f9;
  --zuto-active: #06b6d4;
  --zuto-focus-ring: #22d3ee;
  --zuto-disabled: rgba(148, 163, 184, 0.4);
  --zuto-success: #22c55e;
  --zuto-warning: #f59e0b;
  --zuto-error: #ef4444;

  --zuto-logo-radius: 16px;
  --zuto-logo-gap: 0.65em;
  --zuto-logo-min-size: 24px;
  --zuto-wordmark-tracking: 0.02em;
  --zuto-wordmark-weight: 700;
  --zuto-descriptor-scale: 0.52;
  --zuto-endorsement-scale: 0.32;
  --zuto-wordmark-font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

zuto-brand {
  display: inline-block;
  max-width: 100%;
}

zuto-brand:not([data-zuto-brand-ready]) {
  min-height: 40px;
}

zuto-brand[align="center"] {
  display: block;
  text-align: center;
}

zuto-brand[align="center"] .zuto-brand {
  display: inline-flex;
}

.zuto-brand {
  --zuto-brand-size: 72px;
  display: inline-flex;
  align-items: center;
  gap: var(--zuto-logo-gap);
  text-decoration: none;
  color: inherit;
  line-height: 1.15;
  max-width: 100%;
}

a.zuto-brand:hover .zuto-brand__lockup,
a.zuto-brand:focus-visible .zuto-brand__lockup {
  opacity: 0.94;
}

a.zuto-brand:focus-visible {
  outline: 2px solid var(--zuto-focus-ring);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Supplied lockup — keep the transparent canvas, never add a fill. */
.zuto-brand__lockup {
  display: block;
  height: var(--zuto-brand-size);
  width: auto;
  max-width: min(280px, 100%);
  object-fit: contain;
  background: transparent;
}

.zuto-brand__symbol {
  flex: 0 0 auto;
  display: block;
  width: var(--zuto-brand-size);
  height: var(--zuto-brand-size);
  min-width: var(--zuto-logo-min-size);
  object-fit: contain;
  background: transparent;
}

.zuto-brand__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Light surfaces: the supplied lockup is white-on-transparent, so sit it
   on a dark plate rather than recolouring the artwork. */
.zuto-brand[data-theme="light"] {
  background: var(--zuto-background);
  border-radius: 18px;
  padding: 10px 14px;
}

.zuto-brand[data-size="xs"] { --zuto-brand-size: 40px; }
.zuto-brand[data-size="sm"] { --zuto-brand-size: 52px; }
.zuto-brand[data-size="md"] { --zuto-brand-size: 72px; }
.zuto-brand[data-size="lg"] { --zuto-brand-size: 112px; }
.zuto-brand[data-size="xl"] { --zuto-brand-size: 148px; }

.zuto-brand[data-variant="symbol"] {
  --zuto-brand-size: 40px;
}

.zuto-brand[data-orientation="stacked"] {
  flex-direction: column;
  align-items: flex-start;
}

.zuto-brand[data-orientation="stacked"][data-align="center"] {
  align-items: center;
  text-align: center;
}

@media (max-width: 480px) {
  .zuto-brand[data-collapse="auto"] {
    --zuto-brand-size: 56px;
  }
}

/* Let the nav row grow around the supplied lockup instead of clipping it. */
.nav-container:has(zuto-brand),
.navbar .nav-container:has(zuto-brand) {
  min-height: 88px;
}

.zuto-brand-relationship {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--zuto-muted);
  letter-spacing: 0.01em;
}

.zuto-brand-relationship a {
  color: var(--zuto-primary-soft);
  text-decoration: none;
}

.zuto-brand-relationship a:hover,
.zuto-brand-relationship a:focus-visible {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .zuto-brand,
  .zuto-brand * {
    transition: none !important;
  }
}
