/* 2vol shared brand layer
   Loaded after each app's base.css. Tokens only; layouts stay with the app.
   Marketing uses the dark/lime page. Product UI stays light by default,
   with the same lime reserved for primary actions and active states. */

:root {
  --brand-lime: #dafa9c;
  --brand-ink: #0f0f0f;
  --brand-forest: #2f5d3a;

  --accent: #2f5d3a;
  --accent-soft: #edf6dc;

  --radius-card: 6px;
  --radius-control: 4px;
  --radius-chip: 3px;

  --font: "Albert Sans", "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

[data-theme="dark"] {
  --brand-lime: #dafa9c;
  --brand-ink: #0f0f0f;

  --ground: #0f0f0f;
  --surface: #161616;
  --surface-2: #1c1c1c;
  --surface-3: #242424;
  --border: #2a2a2a;
  --border-strong: #3a3a3a;
  --rule: #222222;

  --text: #f5f5f5;
  --text-2: #b8b8b8;
  --text-3: #8f8f8f;

  --accent: #dafa9c;
  --accent-soft: #24301a;
  --positive: #7fd3a5;
  --positive-soft: #16271f;
  --negative: #ff8a7a;
  --negative-soft: #2c1a18;
  --warning: #e6c46a;
  --warning-soft: #2a2113;

  --grid: #242424;
}

body {
  font-family: var(--font);
}

/* primary action can use the brand field; dark ink on lime */
.btn.lime {
  background: var(--brand-lime);
  border-color: var(--brand-lime);
  color: var(--brand-ink);
  font-weight: 600;
}
.btn.lime:hover {
  background: #e7ffb8;
  border-color: #e7ffb8;
}

/* the app's own nav carries the brand in its active state */
.topbar .nav a.active {
  background: var(--brand-lime);
  color: var(--brand-ink);
}
.topbar .nav a.active:hover {
  background: var(--brand-lime);
  color: var(--brand-ink);
}
[data-theme="dark"] .topbar .nav a.active {
  background: var(--brand-lime);
  color: var(--brand-ink);
}

/* ---------- global brand bar ---------- */
.v-brandbar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 38px;
  padding: 0 16px;
  background: #0f0f0f;
  color: #ffffff;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.2;
  border-bottom: 1px solid #262626;
  position: relative;
  z-index: 120;
}
.v-brandbar a {
  color: #b8b8b8;
  text-decoration: none;
}
.v-brandbar a:hover {
  color: #ffffff;
  text-decoration: none;
}
.v-brandbar .v-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.v-brandbar .v-mark {
  width: 22px;
  height: 22px;
  border: 1px solid #ffffff;
  display: inline-grid;
  place-items: center;
  font-size: 9px;
  line-height: 1;
}
.v-brandbar .v-switch {
  display: flex;
  align-items: center;
  gap: 3px;
}
.v-brandbar .v-switch a {
  padding: 4px 9px;
  border-radius: 2px;
  font-size: 12px;
  white-space: nowrap;
}
.v-brandbar .v-switch a.active {
  background: var(--brand-lime);
  color: var(--brand-ink);
  font-weight: 600;
}
.v-brandbar .v-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
.v-brandbar .v-right a {
  font-size: 12px;
}

/* once the shell is present, the app's letter logo is redundant */
body.v-has-shell .topbar .logo {
  display: none;
}

@media (max-width: 720px) {
  .v-brandbar {
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 7px 12px;
  }
  .v-brandbar .v-switch {
    order: 3;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .v-brandbar .v-switch::-webkit-scrollbar { display: none; }
  .v-brandbar .v-right {
    margin-left: auto;
    gap: 10px;
  }
  .v-brandbar .v-right a {
    font-size: 12px;
  }
}
