/* ============================================================
   Nova Markets — brand mark
   Shared by the landing page, auth pages and the terminal.
   Nothing in this file touches layout outside .nv-brand.
   ============================================================ */

.nv-brand {
  --nv-brand-ink: #ffffff;
  --nv-brand-muted: #8c8c8c;
  --nv-brand-line: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--nv-brand-ink);
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}

.nv-brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #000000;
  border: 1px solid var(--nv-brand-line);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nv-brand-mark svg {
  width: 21px;
  height: 21px;
  display: block;
  color: var(--nv-brand-ink);
}

.nv-brand:hover .nv-brand-mark {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

.nv-brand:hover .nv-brand-mark svg { color: #000000; }

.nv-brand-type {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nv-brand-name {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--nv-brand-ink);
  white-space: nowrap;
}

.nv-brand-sub {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--nv-brand-muted);
  margin-top: 5px;
  white-space: nowrap;
}

.nv-brand-sub i {
  font-style: normal;
  color: var(--nv-brand-ink);
}

/* Narrow icon rail inside the terminal sidebar */
.nv-brand--rail {
  flex-direction: column;
  gap: 9px;
}

.nv-brand--rail .nv-brand-mark {
  width: 46px;
  height: 46px;
}

.nv-brand--rail .nv-brand-mark svg {
  width: 24px;
  height: 24px;
}

.nv-brand--rail .nv-brand-type { align-items: center; }

.nv-brand--rail .nv-brand-name {
  font-size: 8px;
  letter-spacing: 0.3em;
}

.nv-brand--rail .nv-brand-sub { display: none; }

/* Small mark used inside the mobile drawer header */
.nv-brand--drawer .nv-brand-mark {
  width: 34px;
  height: 34px;
}

.nv-brand--drawer .nv-brand-mark svg {
  width: 18px;
  height: 18px;
}

.nv-brand--drawer .nv-brand-name { font-size: 13px; }
.nv-brand--drawer .nv-brand-sub { font-size: 7px; margin-top: 4px; }

@media (max-width: 640px) {
  .nv-brand { gap: 9px; }
  .nv-brand-mark { width: 34px; height: 34px; }
  .nv-brand-mark svg { width: 18px; height: 18px; }
  .nv-brand-name { font-size: 13px; letter-spacing: 0.22em; }
  .nv-brand-sub { font-size: 7px; letter-spacing: 0.26em; margin-top: 4px; }
}
