/* ============================================================
   NeroView — brand system page (brand.html only)
   Prefix: bb- (brand book). Reuses global tokens + primitives
   from styles.css; nothing here overrides homepage styles.
   ============================================================ */

.bb-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* Header */
.bb-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.bb-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--container-px);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.bb-header__tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--fg-dim);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.bb-header__back {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  white-space: nowrap;
}
.bb-header__back:hover { color: var(--fg); }

/* Hero */
.bb-hero { padding: 88px 0 72px; }
.bb-hero h1 {
  font-weight: 900;
  font-stretch: 115%;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.98;
  font-size: clamp(40px, 7vw, 84px);
  margin: 18px 0 24px;
}
.bb-hero p {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 62ch;
  line-height: 1.6;
  margin: 0 0 28px;
}

/* Exhibit sections */
.bb-section {
  border-top: 1px solid var(--border);
  padding: 72px 0;
}
.bb-exhibit-n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  white-space: nowrap;
}
.bb-section h2 {
  font-weight: 900;
  font-stretch: 115%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(26px, 3.6vw, 40px);
  margin: 10px 0 12px;
}
.bb-lede {
  font-size: 16px;
  color: var(--fg-muted);
  max-width: 60ch;
  line-height: 1.6;
  margin: 0 0 40px;
}
.bb-lede strong { color: var(--fg); }

/* Grids */
.bb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bb-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) {
  .bb-grid2, .bb-grid3 { grid-template-columns: 1fr; }
}

/* Mark stage */
.bb-stage {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 40px;
}
.bb-stage--ink { /* token flip comes from .section--ink */ }
.bb-stage__caption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
  margin-top: 10px;
  white-space: nowrap;
}
.bb-sizes {
  display: flex;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.bb-sizes > div { text-align: center; }

/* Do / don't */
.bb-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bb-rules li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
  display: flex;
  gap: 10px;
}
.bb-rules li strong { color: var(--fg); }
.bb-rules__mark { font-family: var(--mono); font-size: 12px; flex-shrink: 0; margin-top: 2px; }
.bb-rules__mark--no { color: var(--alert); }
.bb-rules__mark--yes { color: var(--accent); }

/* Color swatches */
.bb-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .bb-swatches { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .bb-swatches { grid-template-columns: 1fr; } }
.bb-swatch {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  cursor: pointer;
  text-align: left;
  padding: 0;
  display: block;
  width: 100%;
  font: inherit;
  color: inherit;
}
.bb-swatch:hover { border-color: var(--border-strong); }
.bb-swatch__chip { height: 72px; border-bottom: 1px solid var(--border); }
.bb-swatch__meta { padding: 12px 14px; }
.bb-swatch__name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.bb-swatch__var, .bb-swatch__hex {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  white-space: nowrap;
  display: block;
}
.bb-swatch__hex { margin-top: 2px; }
.bb-swatch.is-copied .bb-swatch__hex { color: var(--accent); }

/* Type specimens */
.bb-spec {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 32px;
  margin-bottom: 16px;
}
.bb-spec__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--fg-dim);
  margin-bottom: 18px;
  white-space: nowrap;
}
.bb-spec__display {
  font-weight: 900;
  font-stretch: 115%;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.98;
  font-size: clamp(34px, 5vw, 56px);
}
.bb-spec__body { font-size: 17px; line-height: 1.6; max-width: 58ch; }
.bb-spec__mono {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--fg-muted);
}
.bb-spec__mono b { color: var(--fg); font-weight: 500; }

/* Voice table */
.bb-voice { border: 1px solid var(--border); background: var(--bg-elev); }
.bb-voice__row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.5;
  align-items: baseline;
}
.bb-voice__row:first-child { border-top: 0; }
.bb-voice__verdict { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; white-space: nowrap; }
.bb-voice__verdict--yes { color: var(--accent); }
.bb-voice__verdict--no { color: var(--alert); text-decoration: line-through; }
.bb-voice__row--no span:last-child { color: var(--fg-dim); }

/* Vocabulary columns */
.bb-vocab { font-size: 14px; line-height: 1.7; color: var(--fg-muted); }
.bb-vocab h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--fg-dim);
  margin: 0 0 10px;
  white-space: nowrap;
}
.bb-vocab em { font-style: normal; color: var(--fg); }

/* Assets */
.bb-assets { border: 1px solid var(--border); background: var(--bg-elev); }
.bb-asset {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}
.bb-asset:first-child { border-top: 0; }
.bb-asset__preview {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.bb-asset__preview--ink { background: #13151A; }
.bb-asset__name { font-size: 14px; font-weight: 600; }
.bb-asset__file {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.bb-asset__dl {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 6px 12px;
  white-space: nowrap;
}
.bb-asset__dl:hover { border-color: var(--border-strong); }

/* Footer */
.bb-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
}

@media (max-width: 640px) {
  .bb-hero { padding: 56px 0 48px; }
  .bb-section { padding: 52px 0; }
  .bb-spec { padding: 22px; }
}
