/* Brand system page — boards in the Cohere/Pentagram manner: warm board, white card, mono caption */
.bs-version { font: 500 .72rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); padding: 7px 10px; background: var(--paper-2); border-radius: 999px; }
.bs-back { margin-left: auto; }
@media (max-width: 640px) { .bs-version { display: none; } }

.bs-hero { padding: clamp(56px, 7vw, 120px) 0 clamp(56px, 6vw, 96px); }
.bs-title { font: 800 clamp(3rem, 9vw, 9.5rem)/.95 var(--f-head); letter-spacing: -0.045em; color: var(--ink); }
.bs-title span { color: var(--p-500); font-weight: 400; }
.bs-lede { margin-top: 28px; max-width: 64ch; font-size: clamp(1.05rem, 1.3vw, 1.3rem); line-height: 1.5; color: var(--n-600); }
.bs-lede strong { color: var(--ink); }
.bs-concept { display: grid; gap: var(--gap); margin-top: clamp(40px, 5vw, 72px); }
@media (min-width: 900px) { .bs-concept { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.bs-section { padding: clamp(64px, 7vw, 128px) 0; }
.bs-section--board { background: var(--paper-2); }
.bs-section--board .bs-board { background: var(--paper-3); }
.bs-head { display: grid; gap: 8px 64px; margin-bottom: clamp(32px, 4vw, 56px); }
.bs-head .label { grid-column: 1 / -1; margin-bottom: 4px; }
.bs-note { color: var(--text-2); font-size: 1.02rem; max-width: 52ch; align-self: end; }
@media (min-width: 960px) { .bs-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }

/* Boards */
.bs-grid { display: grid; gap: var(--gap); }
.bs-grid + .bs-grid { margin-top: var(--gap); }
@media (min-width: 900px) {
  .bs-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .bs-span-3 { grid-column: span 3; } .bs-span-4 { grid-column: span 4; } .bs-span-5 { grid-column: span 5; }
  .bs-span-6 { grid-column: span 6; } .bs-span-7 { grid-column: span 7; } .bs-span-2 { grid-column: span 2; }
}
@media (min-width: 600px) and (max-width: 899px) { .bs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bs-board { margin: 0; padding: 10px 10px 0; background: var(--paper-2); border-radius: var(--r-lg); display: flex; flex-direction: column; }
.bs-board figcaption { padding: 12px 6px 12px; font: 500 .7rem/1.3 var(--f-mono); letter-spacing: .06em; color: var(--n-500); text-align: center; }
.bs-card { flex: 1; background: var(--white); border-radius: var(--r-md); padding: clamp(18px, 2vw, 32px); display: grid; align-content: center; gap: 14px; min-height: 200px; }
.bs-card--dark { background: var(--t-900); }
.bs-card--art { padding: clamp(10px, 1.2vw, 18px); aspect-ratio: 3 / 2; min-height: 0; background: var(--paper); }
.bs-card--darkbg { background: var(--t-900); }
.bs-card--sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: clamp(16px, 2vw, 32px); }
.bs-card--sections > div { min-height: 0; }
.bs-stack { justify-items: start; }
.bs-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.bs-tags .tag { margin: 0; }
.bs-form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; background: var(--paper); }
.bs-form .field { min-width: 0; }
@media (max-width: 560px) { .bs-form { grid-template-columns: 1fr; } }

/* Swatches */
.bs-swatches { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .bs-swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 600px) and (max-width: 899px) { .bs-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sw { background: var(--paper-3); border-radius: var(--r-lg); padding: 10px; display: grid; gap: 6px; }
.sw__head { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 6px 4px; }
.sw__name { font: 700 1.05rem/1.2 var(--f-head); color: var(--ink); }
.sw__tag { font: 500 .66rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--p-700); background: var(--p-200); padding: 4px 6px; border-radius: 4px; }
.sw__chip { display: flex; justify-content: space-between; align-items: center; height: 40px; padding: 0 12px; border-radius: 8px; font: 500 .72rem/1 var(--f-mono); border: 0; cursor: pointer; transition: transform .15s var(--ease); }
.sw__chip:hover { transform: translateX(2px); }
.sw__chip--hero { height: 96px; align-items: flex-end; padding-bottom: 12px; }

/* Type */
.bs-type { align-content: end; gap: 6px; }
.bs-type__big { font: 700 clamp(4rem, 7vw, 7.5rem)/1 var(--f-head); color: var(--ink); letter-spacing: -0.03em; }
.bs-type__line { font: 700 clamp(1.4rem, 2vw, 2.2rem)/1.15 var(--f-head); color: var(--t-500); letter-spacing: -0.02em; }
.bs-type--body .bs-type__big { font-family: var(--f-body); font-weight: 500; }
.bs-type--body p:last-child { color: var(--n-600); }
.bs-type--mono .bs-type__big { font-family: var(--f-mono); font-weight: 500; }
.bs-type--mono p:last-child { font: 500 .8rem/1.4 var(--f-mono); letter-spacing: .1em; color: var(--t-500); }

/* Section set */
.bs-sec { aspect-ratio: 1; padding: 18px; background: var(--white); }
.bs-sec > div { width: 100%; height: 100%; }

/* Generator */
.gen { display: grid; gap: var(--gap); }
@media (min-width: 960px) { .gen { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); } }
.gen__controls { display: grid; gap: 16px; align-content: start; padding: clamp(18px, 2vw, 28px); background: var(--paper-2); border-radius: var(--r-lg); }
.gen__controls [hidden] { display: none; }
.gen__seed { display: flex; gap: 8px; }
.gen__seed input { flex: 1; min-width: 0; }
.gen__stage { display: grid; grid-template-rows: 1fr auto; gap: 10px; padding: 10px; background: var(--paper-2); border-radius: var(--r-lg); }
.gen__preview { min-height: 360px; background: var(--white); border-radius: var(--r-md); padding: clamp(14px, 2vw, 32px); display: grid; place-items: center; }
.gen__preview.is-dark { background: var(--t-900); }
.gen__preview svg { width: 100%; height: 100%; max-height: 62vh; }
.gen__code { display: block; padding: 12px 14px; background: var(--t-900); color: var(--g-300); border-radius: var(--r-md); font: 500 .74rem/1.5 var(--f-mono); overflow-x: auto; white-space: nowrap; }

/* Rules */
.bs-rules { display: grid; gap: var(--gap); }
@media (min-width: 800px) { .bs-rules { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bs-rules li { padding: 22px 24px; background: var(--white); border-radius: var(--r-lg); color: var(--n-600); line-height: 1.5; }
.bs-rules b { display: block; margin-bottom: 6px; font: 500 .72rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--g-700); }
.bs-rules li:nth-child(n+4) b { color: var(--p-500); }
.bs-card .filters__group { justify-self: start; max-width: 100%; }
@media (max-width: 520px) { .brand-page .header .logo__word { display: none; } }
.bs-card.kb-iso { display: block; padding: clamp(10px, 1.2vw, 18px); background: var(--paper); }
.bs-part { aspect-ratio: 3 / 2; min-height: 0; background: #fff; }
.bs-part.kb-iso { background: #fff; }
