/* ==========================================================================
   BRAND PAGE — logo stages, download rows, colour swatches
   Sits on top of site.css + docs.css; only /brand loads it.
   ========================================================================== */

.brand-cta {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  background: var(--z-ink);
  color: var(--z-bg);
  font-weight: 800;
  font-size: 0.95rem;
  border: 3px solid var(--z-ink);
  box-shadow: 4px 4px 0 0 var(--z-red);
}

.brand-cta:hover,
.brand-cta:focus-visible {
  background: var(--z-red);
  border-color: var(--z-red);
  box-shadow: 4px 4px 0 0 var(--z-ink);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.brand-item {
  margin: 0;
  border: 4px solid var(--z-ink);
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

/* The stage is the swatch the artwork is judged against, so each variant sits
   on the background it is actually meant for. */
.brand-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  min-height: 190px;
}

.brand-stage img { max-width: 100%; height: auto; }
.brand-stage--light { background: #FAFAF9; }
.brand-stage--dark { background: #16213E; }
.brand-stage--plain {
  background:
    linear-gradient(45deg, #ECECEA 25%, transparent 25%, transparent 75%, #ECECEA 75%) 0 0 / 20px 20px,
    linear-gradient(45deg, #ECECEA 25%, transparent 25%, transparent 75%, #ECECEA 75%) 10px 10px / 20px 20px,
    #FFFFFF;
}

.brand-item figcaption {
  border-top: 4px solid var(--z-ink);
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.brand-item figcaption strong { font-size: 1rem; font-weight: 800; }

.brand-note {
  font-size: 0.8rem;
  color: rgba(26, 26, 46, 0.7);
}

.brand-dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.brand-dl a {
  font: 700 0.72rem var(--z-font-mono);
  letter-spacing: 0.04em;
  padding: 0.35rem 0.6rem;
  border: 2px solid var(--z-ink);
  background: var(--z-bg);
  color: var(--z-ink);
}

.brand-dl a:hover,
.brand-dl a:focus-visible {
  background: var(--z-ink);
  color: var(--z-bg);
}

.brand-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.brand-swatch {
  border: 4px solid var(--z-ink);
  background: #ffffff;
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.brand-swatch strong { font-weight: 800; }
.brand-swatch code { font: 700 0.8rem var(--z-font-mono); }

.brand-chip {
  display: block;
  height: 68px;
  margin: -1rem -1.25rem 0.85rem;
  border-bottom: 4px solid var(--z-ink);
}

.brand-chip--bordered { box-shadow: inset 0 0 0 1px rgba(26, 26, 46, 0.15); }

@media (max-width: 480px) {
  .brand-stage { padding: 1.75rem 1rem; min-height: 150px; }
}
