.brandbook-page {
  --bb-blue: #2457ff;
  --bb-lime: #c9ff42;
  --bb-ink: #11151f;
  --bb-paper: #f2f5fc;
  --bb-line: #dfe5f0;
  --bb-muted: #566171;
}
.brandbook-page .brandbook {
  max-width: 1536px;
  margin: 0 auto;
  padding: calc(var(--app-header-height) + 48px) var(--app-header-gutter) 0;
  font-family: "Golos Text", Arial, sans-serif;
}
.brandbook :is(h1, h2, h3, p, fieldset, dl, dd) {
  margin: 0;
}
.brandbook :is(button, select, a) {
  -webkit-tap-highlight-color: transparent;
}
.brandbook :is(button, select) {
  font: inherit;
}
.brandbook a {
  text-decoration: none;
}
.brandbook :focus-visible {
  outline: 3px solid #2457ff;
  outline-offset: 5px;
}
.brandbook [hidden] {
  display: none !important;
}
.bb-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 10px 0 52px;
}
.bb-eyebrow,
.bb-index,
.bb-art-top,
.bb-stage-meta,
.bb-file-note,
.bb-version,
.bb-stage-bottom,
.bb-space-scale,
.bb-motion-label,
.bb-download-size,
.bb-release > span {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.bb-eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  line-height: 1.6;
  text-transform: uppercase;
}
.bb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bb-blue);
  flex: none;
}
.bb-version {
  margin-left: auto;
  color: var(--bb-muted);
  font-size: 10px;
}
.bb-hero h1 {
  margin-top: 30px;
  font-size: clamp(38px, 4.45vw, 66px);
  line-height: 1.06;
  font-weight: 650;
  letter-spacing: -0.045em;
}
.bb-hero h1 em {
  font-style: normal;
  color: var(--bb-blue);
}
.bb-hero-copy > p {
  max-width: 520px;
  margin-top: 26px;
  color: var(--bb-muted);
  font-size: 17px;
  line-height: 1.65;
}
.bb-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.bb-button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  min-height: 48px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 550;
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease;
}
.bb-button-primary {
  background: var(--bb-blue);
  color: white !important;
}
.bb-button-primary:hover {
  background: #163ed5;
}
.bb-button-secondary {
  background: white;
  color: var(--bb-ink);
  border-color: #d2dbea;
}
.bb-button-secondary:hover {
  background: var(--bb-paper);
  border-color: #a7baf0;
}
.bb-button > span,
.bb-text-link > span {
  font-size: 19px;
  line-height: 1;
}
.bb-text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 550;
}
.bb-text-link:hover {
  color: var(--bb-blue);
}
.bb-file-note {
  display: block;
  margin-top: 16px;
  color: var(--bb-muted);
  font-size: 10px;
  line-height: 1.6;
}
.bb-hero-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 430px;
  padding: 28px 32px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  background: var(--bb-blue);
  color: white;
}
.bb-hero-art::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.1;
  content: "";
  background-image:
    linear-gradient(0deg, transparent calc(100% - 1px), #fff 1px),
    linear-gradient(90deg, transparent calc(100% - 1px), #fff 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(150deg, transparent, black);
}
.bb-art-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.bb-hero-art > img {
  align-self: center;
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 32px 0;
}
.bb-art-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  font-size: 16px;
  line-height: 1.5;
}
.bb-art-bottom > i {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 12px;
  background: var(--bb-lime);
  color: var(--bb-ink);
  font-size: 32px;
  font-style: normal;
}
.bb-nav {
  position: sticky;
  top: var(--app-header-height);
  z-index: 30;
  display: flex;
  gap: 8px;
  padding: 12px 0;
  border-block: 1px solid var(--bb-line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  overflow-x: auto;
  scrollbar-width: thin;
}
.bb-nav > a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 12px 17px;
  border-radius: 10px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 550;
  transition: background 0.18s ease;
}
.bb-nav > a:hover,
.bb-nav > a[aria-current] {
  background: var(--bb-paper);
  color: var(--bb-blue);
}
.bb-nav > a:last-child {
  margin-left: auto;
  background: var(--bb-ink);
  color: white;
}
.brandbook-page .brandbook .bb-section {
  padding: 88px 0 0;
  scroll-margin-top: calc(var(--app-header-height) + 72px);
}
.bb-section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 60px;
  margin-bottom: 36px;
}
.bb-index {
  display: block;
  color: var(--bb-blue);
  font-size: 11px;
  letter-spacing: 0.05em;
  line-height: 1.6;
}
.bb-section h2 {
  margin-top: 20px;
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.bb-section-head > p {
  max-width: 500px;
  color: var(--bb-muted);
  font-size: 16px;
  line-height: 1.7;
  padding-bottom: 2px;
}
.bb-configurator {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 1fr);
  border: 1px solid var(--bb-line);
  border-radius: 24px;
  overflow: hidden;
}
.bb-logo-stage {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 450px;
  padding: 28px 32px;
  background: var(--bb-paper);
  transition: background 0.18s ease;
}
.bb-logo-stage[data-background="blue"] {
  background: var(--bb-blue);
  color: white;
}
.bb-logo-stage[data-background="dark"] {
  background: var(--bb-ink);
  color: white;
}
.bb-stage-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-size: 10px;
  line-height: 1.5;
}
.bb-stage-meta > span:last-child {
  opacity: 0.6;
  white-space: nowrap;
}
.bb-logo-stage > img {
  width: 100%;
  max-width: 536px;
  height: 220px;
  align-self: center;
  margin: 32px 0;
  object-fit: contain;
  opacity: 1 !important;
  transition: none !important;
}
.bb-logo-stage[data-layout="wordmark"] > img {
  max-width: 380px;
}
.bb-logo-stage[data-layout="stacked"] > img {
  max-width: 290px;
  height: 242px;
}
.bb-logo-stage[data-layout="symbol"] > img {
  width: 152px;
  height: 152px;
}
.bb-stage-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  font-size: 10px;
  line-height: 1.5;
}
.bb-backgrounds {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
}
.bb-backgrounds legend {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.bb-backgrounds label {
  position: relative;
  display: grid;
  width: 40px;
  height: 44px;
  place-items: center;
  cursor: pointer;
}
.bb-backgrounds input,
.bb-options input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.bb-backgrounds label > span {
  display: block;
  width: 24px;
  height: 24px;
  border: 1px solid #9ea9c3;
  border-radius: 50%;
}
.bb-backgrounds input:checked + span {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.bb-backgrounds input:focus-visible + span {
  outline: 3px solid currentColor;
  outline-offset: 5px;
}
.bb-bg-light {
  background: white;
}
.bb-bg-blue {
  background: #2457ff;
}
.bb-bg-dark {
  background: #11151f;
}
.bb-logo-tools {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bb-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0;
  border: 0;
}
.bb-options legend,
.bb-select-label {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 550;
}
.bb-options label {
  position: relative;
  cursor: pointer;
}
.bb-options label > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--bb-line);
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.4;
}
.bb-options small {
  font-size: 10px;
  color: var(--bb-muted);
}
.bb-options input:checked + span {
  background: #edf2ff;
  border-color: var(--bb-blue);
  color: var(--bb-blue);
  box-shadow: inset 0 0 0 1px var(--bb-blue);
}
.bb-options input:focus-visible + span {
  outline: 3px solid var(--bb-blue);
  outline-offset: 3px;
}
.bb-select-label {
  display: block;
  margin-top: 22px;
}
.bb-logo-tools select {
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  padding: 12px 30px 12px 12px;
  border: 1px solid #c7d1e2;
  border-radius: 12px;
  background: white;
  font-size: 13px;
  color: var(--bb-ink);
}
.bb-logo-downloads {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.bb-logo-downloads .bb-button {
  gap: 16px;
  padding-inline: 16px;
}
.bb-logo-downloads .bb-button:first-child {
  flex: 1;
}
.bb-tool-note {
  margin-top: 14px !important;
  color: var(--bb-muted);
  font-size: 11px;
  line-height: 1.65;
}
.bb-config-status {
  min-height: 34px;
  margin-top: 12px !important;
  color: #284793;
  font-size: 11px;
  line-height: 1.55;
}
.bb-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 28px;
}
.bb-principles article {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--bb-line);
}
.bb-principles article > span {
  padding-top: 5px;
  color: var(--bb-blue);
  font:
    11px "JetBrains Mono",
    monospace;
}
.bb-principles h3 {
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -0.02em;
}
.bb-principles p {
  grid-column: 2;
  margin-top: 10px;
  color: var(--bb-muted);
  font-size: 14px;
  line-height: 1.6;
}
.bb-rules-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}
.bb-clearspace,
.bb-minimum {
  padding: 32px;
  border-radius: 24px;
  background: var(--bb-paper);
}
.bb-clearspace-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 238px;
  margin-bottom: 18px;
  padding: 42px;
  background-image:
    linear-gradient(#dfe5f055 1px, transparent 1px),
    linear-gradient(90deg, #dfe5f055 1px, transparent 1px);
  background-size: 24px 24px;
}
.bb-clearspace-art img {
  width: min(100%, 326px);
  height: auto;
  outline: 1px dashed var(--bb-blue);
  outline-offset: 12px;
}
.bb-measure {
  position: absolute;
  color: var(--bb-blue);
  font:
    14px "JetBrains Mono",
    monospace;
}
.bb-measure-top {
  top: 10px;
  left: 50%;
}
.bb-measure-left {
  top: 50%;
  left: 12px;
}
.bb-rules-grid h3,
.bb-system-grid h3 {
  font-size: 23px;
  letter-spacing: -0.04em;
  font-weight: 550;
}
.bb-rules-grid p,
.bb-system-grid p {
  margin-top: 14px;
  color: var(--bb-muted);
  font-size: 14px;
  line-height: 1.65;
}
.bb-minimum {
  background: white;
  border: 1px solid var(--bb-line);
}
.bb-minimum dl {
  margin: 28px 0;
}
.bb-minimum dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--bb-line);
}
.bb-minimum dt {
  font-size: 14px;
}
.bb-minimum dd {
  font:
    13px "JetBrains Mono",
    monospace;
  color: var(--bb-blue);
  white-space: nowrap;
}
.bb-minimum dd span {
  color: var(--bb-muted);
}
.bb-dont-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.bb-dont-grid article > div {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 134px;
  padding: 20px;
  background: var(--bb-paper);
  border-radius: 20px;
  overflow: hidden;
}
.bb-dont-grid img {
  width: 130px;
  height: auto;
}
.bb-wrong-stretch {
  transform: scale(1.4, 0.65) !important;
}
.bb-wrong-rotate {
  transform: rotate(-12deg) !important;
}
.bb-dont-grid .bb-wrong-bg {
  background: var(--bb-ink);
}
.bb-wrong-type {
  font:
    56px Georgia,
    serif;
  color: var(--bb-blue);
}
.bb-dont-grid h3 {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 550;
}
.bb-dont-grid h3 > span {
  color: #a7384e;
}
.bb-dont-grid p {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--bb-muted);
}
.bb-palette {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.bb-swatch {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 24px 18px;
  border-radius: 20px;
}
.bb-swatch-blue {
  background: var(--bb-blue);
  color: white;
}
.bb-swatch-lime {
  background: var(--bb-lime);
}
.bb-swatch-ink {
  background: var(--bb-ink);
  color: white;
}
.bb-swatch-paper {
  background: var(--bb-paper);
}
.bb-swatch-white {
  background: white;
  border: 1px solid var(--bb-line);
}
.bb-swatch h3 {
  font-size: 23px;
  font-weight: 550;
  letter-spacing: -0.035em;
}
.bb-swatch-role {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 8px;
}
.bb-swatch button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  margin: 70px 0 4px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font:
    14px "JetBrains Mono",
    monospace;
  cursor: pointer;
  text-align: left;
}
.bb-swatch button:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.bb-swatch button:focus-visible {
  outline-color: currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}
.bb-swatch small {
  font:
    9px "JetBrains Mono",
    monospace;
  opacity: 0.85;
  line-height: 1.5;
}
.bb-inline-status {
  min-height: 42px;
  margin-top: 18px !important;
  font-size: 12px;
  line-height: 1.6;
  color: var(--bb-muted);
}
.bb-contrast {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
}
.bb-contrast > span {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
  padding: 18px;
  border-radius: 12px;
  font-size: 12px;
}
.bb-contrast b {
  font:
    12px "JetBrains Mono",
    monospace;
  white-space: nowrap;
}
.bb-contrast-white {
  background: var(--bb-blue);
  color: white;
}
.bb-contrast-lime {
  background: var(--bb-lime);
}
.bb-contrast > p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--bb-muted);
}
.bb-type-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 24px;
}
.bb-type-main,
.bb-type-mono {
  padding: 32px;
  border-radius: 24px;
  background: var(--bb-paper);
}
.bb-type-heading {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.bb-type-heading h3 {
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -0.03em;
}
.bb-type-heading > span {
  font:
    9px "JetBrains Mono",
    monospace;
  white-space: nowrap;
  opacity: 0.7;
}
.bb-type-statement {
  margin-top: 50px !important;
  font-size: clamp(27px, 3vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.05em;
  font-weight: 650;
}
.bb-alphabet {
  max-width: 640px;
  margin-top: 34px !important;
  font-size: 22px;
  line-height: 1.8;
  letter-spacing: -0.02em;
}
.bb-type-weights {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  margin-top: 28px;
  border-top: 1px solid var(--bb-line);
  font-size: 11px;
}
.bb-type-weights strong {
  font-weight: 600;
}
.bb-type-weights b {
  font-weight: 700;
}
.bb-type-mono {
  background: var(--bb-ink);
  color: white;
  display: flex;
  flex-direction: column;
}
.bb-type-mono .bb-type-heading {
  flex-wrap: wrap;
  gap: 12px;
}
.bb-mono-specimen {
  margin: 64px 0 28px !important;
  font:
    clamp(16px, 1.8vw, 26px) / 1.8 "JetBrains Mono",
    monospace;
  white-space: nowrap;
}
.bb-mono-specimen em {
  font-style: normal;
  color: var(--bb-lime);
}
.bb-type-mono > p:not(.bb-mono-specimen) {
  max-width: 340px;
  color: #bcc5d7;
  font-size: 14px;
  line-height: 1.7;
}
.bb-mono-glyphs {
  display: block;
  margin-top: auto;
  padding-top: 32px;
  color: #c9ff42;
  font:
    19px/1.8 "JetBrains Mono",
    monospace;
}
.bb-font-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-top: 24px;
}
.bb-font-footer > p {
  color: var(--bb-muted);
  font-size: 11px;
  line-height: 1.9;
}
.bb-font-footer p a {
  color: var(--bb-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bb-font-footer > .bb-button {
  flex: none;
}
.bb-system-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}
.bb-system-grid > article {
  padding: 32px;
  border: 1px solid var(--bb-line);
  border-radius: 24px;
}
.bb-radii {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 36px 0 28px;
}
.bb-radii > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.bb-radii i {
  display: block;
  width: 64px;
  height: 64px;
  background: var(--bb-blue);
  border-radius: var(--sample-radius);
}
.bb-radii b {
  font:
    18px "JetBrains Mono",
    monospace;
}
.bb-radii span {
  color: var(--bb-muted);
  font-size: 10px;
}
.bb-space-scale {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.bb-space-scale > span {
  display: grid;
  min-width: 34px;
  min-height: 34px;
  place-items: center;
  padding: 8px;
  background: var(--bb-paper);
  border-radius: 8px;
  color: var(--bb-muted);
  font-size: 10px;
}
.bb-system-grid .bb-motion-card {
  background: var(--bb-ink);
  color: white;
  border-color: var(--bb-ink);
}
.bb-motion-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.bb-motion-head button {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #535d72;
  border-radius: 12px;
  color: white;
  background: transparent;
  cursor: pointer;
  font-size: 24px;
}
.bb-motion-head button:hover {
  background: #2b3344;
}
.bb-motion-head button:focus-visible {
  outline-color: var(--bb-lime);
}
.bb-motion-demo {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  height: 174px;
  margin: 8px 0 12px;
}
.bb-motion-demo i {
  display: block;
  width: 60px;
  height: 84px;
  border-radius: 16px;
  background: white;
}
.bb-motion-demo i:first-child {
  opacity: 0.25;
}
.bb-motion-demo i:nth-child(2) {
  opacity: 0.5;
}
.bb-motion-demo i:nth-child(3) {
  opacity: 0.75;
}
.bb-motion-demo i:last-child {
  background: var(--bb-lime);
}
.bb-motion-demo.is-playing i {
  animation: bb-enter 0.42s both;
}
.bb-motion-demo.is-playing i:nth-child(2) {
  animation-delay: 80ms;
}
.bb-motion-demo.is-playing i:nth-child(3) {
  animation-delay: 160ms;
}
.bb-motion-demo.is-playing i:last-child {
  animation-delay: 240ms;
}
@keyframes bb-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.bb-motion-label {
  color: var(--bb-lime);
  font-size: 10px;
}
.bb-system-grid .bb-motion-card p {
  color: #bcc5d7;
}
.bb-voice {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.85fr;
  gap: 32px;
  align-items: center;
  margin-top: 24px;
  padding: 28px 32px;
  border-radius: 24px;
  background: var(--bb-paper);
}
.bb-voice > .bb-index {
  grid-column: 1/-1;
  margin-bottom: -8px;
}
.bb-voice h3 {
  font-size: 28px;
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.bb-voice > p {
  font-size: 14px;
  line-height: 2;
}
.bb-voice > span:last-child {
  font-size: 12px;
  line-height: 1.9;
  color: var(--bb-muted);
}
.bb-templates {
  display: grid;
  grid-template-columns: 0.75fr 1.3fr;
  align-items: start;
  gap: 32px;
}
.bb-templates article > div {
  padding: 28px;
  background: var(--bb-paper);
  border-radius: 24px;
}
.bb-template-social img {
  max-width: 320px;
  margin: auto;
  border-radius: 14px;
}
.bb-templates img {
  width: 100%;
  height: auto;
}
.bb-template-slide img {
  border-radius: 12px;
  box-shadow: 0 4px 24px #11151f0c;
}
.bb-templates article > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
  padding: 22px 0;
  border-bottom: 1px solid var(--bb-line);
}
.bb-templates a > span {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bb-templates strong {
  font-size: 18px;
  font-weight: 550;
}
.bb-templates small {
  font:
    10px "JetBrains Mono",
    monospace;
  color: var(--bb-muted);
}
.bb-templates i {
  display: grid;
  width: 44px;
  height: 44px;
  border: 1px solid var(--bb-line);
  border-radius: 12px;
  place-items: center;
  font-size: 24px;
  font-style: normal;
}
.bb-templates a:hover i {
  background: var(--bb-blue);
  color: white;
  border-color: var(--bb-blue);
}
.bb-template-slide > p {
  max-width: 520px;
  margin-top: 24px;
  color: var(--bb-muted);
  font-size: 14px;
  line-height: 1.7;
}
.bb-download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bb-download-card {
  display: flex;
  flex-direction: column;
  min-height: 252px;
  padding: 28px;
  border: 1px solid var(--bb-line);
  border-radius: 24px;
  background: white;
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}
.bb-download-card:hover {
  border-color: var(--bb-blue);
  background: var(--bb-paper);
}
.bb-download-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.bb-download-format {
  font:
    11px "JetBrains Mono",
    monospace;
  color: var(--bb-blue);
}
.bb-download-arrow {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  background: var(--bb-paper);
  font-size: 22px;
}
.bb-download-card h3 {
  margin-top: 20px;
  font-size: 22px;
  font-weight: 550;
  letter-spacing: -0.045em;
}
.bb-download-card p {
  margin: 12px 0 24px;
  color: var(--bb-muted);
  font-size: 13px;
  line-height: 1.6;
}
.bb-download-size {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  font-size: 10px;
}
.bb-download-size > span {
  color: var(--bb-muted);
}
.bb-download-card.is-featured {
  background: var(--bb-blue);
  color: white;
  border-color: var(--bb-blue);
}
.bb-download-card.is-featured:hover {
  background: #163ed5;
}
.bb-download-card.is-featured
  :is(p, .bb-download-format, .bb-download-size > span) {
  color: #e1e8ff;
}
.bb-download-card.is-featured .bb-download-arrow {
  background: var(--bb-lime);
  color: var(--bb-ink);
}
.bb-release {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 32px;
  padding: 28px 0 80px;
}
.bb-release > span {
  font-size: 10px;
  line-height: 1.8;
  color: var(--bb-muted);
}
.bb-release > p {
  max-width: 560px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--bb-muted);
}
.bb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 1180px) {
  .bb-hero {
    gap: 32px;
  }
  .bb-hero-art {
    min-height: 400px;
    padding: 24px;
  }
  .bb-eyebrow {
    flex-wrap: wrap;
  }
  .bb-version {
    margin-left: 0;
  }
  .bb-section-head {
    gap: 36px;
  }
  .bb-configurator {
    grid-template-columns: minmax(0, 1.3fr) minmax(290px, 1fr);
  }
  .bb-logo-tools {
    padding: 24px;
  }
  .bb-logo-stage {
    padding: 24px;
  }
  .bb-swatch {
    padding: 20px 14px;
  }
  .bb-swatch h3 {
    font-size: 20px;
  }
  .bb-swatch button {
    font-size: 12px;
    gap: 6px;
  }
  .bb-contrast {
    grid-template-columns: 1fr 1fr;
  }
  .bb-contrast > p {
    grid-column: 1/-1;
  }
  .bb-type-grid {
    grid-template-columns: 1.3fr 1fr;
  }
  .bb-type-main,
  .bb-type-mono {
    padding: 24px;
  }
  .bb-type-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
  .bb-type-statement {
    font-size: 32px;
  }
  .bb-alphabet {
    font-size: 19px;
  }
  .bb-system-grid > article {
    padding: 24px;
  }
  .bb-radii {
    gap: 10px;
  }
  .bb-radii i {
    width: 56px;
    height: 56px;
  }
  .bb-motion-demo {
    gap: 12px;
  }
  .bb-voice {
    gap: 24px;
  }
  .bb-voice > p {
    font-size: 12px;
  }
  .bb-download-card {
    padding: 24px;
  }
  .bb-download-card h3 {
    font-size: 20px;
  }
}
@media (max-width: 880px) {
  .brandbook-page .brandbook {
    padding-top: calc(var(--app-header-height) + 32px);
  }
  .bb-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .bb-hero h1 {
    font-size: clamp(38px, 7vw, 62px);
  }
  .bb-version {
    margin-left: auto;
  }
  .bb-hero-copy > p {
    max-width: 620px;
  }
  .bb-hero-art {
    min-height: 360px;
  }
  .bb-hero-art > img {
    max-width: 420px;
    margin: 16px auto;
  }
  .bb-nav {
    gap: 0;
  }
  .bb-nav > a {
    padding-inline: 13px;
    font-size: 12px;
  }
  .brandbook-page .brandbook .bb-section {
    padding-top: 64px;
  }
  .bb-section-head {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 28px;
  }
  .bb-section-head > p {
    max-width: 630px;
  }
  .bb-configurator {
    grid-template-columns: 1fr;
  }
  .bb-logo-stage {
    min-height: 368px;
  }
  .bb-logo-stage > img {
    height: 200px;
  }
  .bb-logo-tools {
    border-top: 1px solid var(--bb-line);
  }
  .bb-options {
    grid-template-columns: repeat(4, 1fr);
  }
  .bb-logo-downloads {
    max-width: 420px;
  }
  .bb-logo-tools select {
    max-width: 420px;
  }
  .bb-config-status {
    min-height: 0;
  }
  .bb-rules-grid {
    gap: 16px;
    grid-template-columns: 1fr 1fr;
  }
  .bb-clearspace,
  .bb-minimum {
    padding: 24px;
  }
  .bb-clearspace-art {
    min-height: 220px;
    padding: 30px;
  }
  .bb-minimum dl > div {
    flex-direction: column;
    align-items: start;
    gap: 8px;
    padding: 13px 0;
  }
  .bb-minimum dl {
    margin: 18px 0;
  }
  .bb-dont-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .bb-palette {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .bb-swatch {
    min-height: 225px;
    padding: 22px;
  }
  .bb-swatch button {
    font-size: 15px;
    margin-top: 42px;
  }
  .bb-type-grid,
  .bb-system-grid {
    grid-template-columns: 1fr;
  }
  .bb-type-main,
  .bb-type-mono,
  .bb-system-grid > article {
    padding: 32px;
  }
  .bb-type-statement {
    font-size: 40px;
  }
  .bb-mono-specimen {
    margin: 36px 0 22px !important;
    font-size: 24px;
  }
  .bb-mono-glyphs {
    padding-top: 28px;
  }
  .bb-font-footer {
    align-items: start;
  }
  .bb-font-footer > p {
    max-width: 430px;
  }
  .bb-radii {
    margin: 32px 0;
  }
  .bb-radii i {
    width: 72px;
    height: 72px;
  }
  .bb-voice {
    grid-template-columns: 1fr 1fr;
  }
  .bb-voice > span:last-child {
    grid-column: 2;
  }
  .bb-voice h3 {
    grid-row: 2/4;
  }
  .bb-templates {
    gap: 24px;
    grid-template-columns: 0.85fr 1.15fr;
  }
  .bb-templates article > div {
    padding: 20px;
  }
  .bb-download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bb-release {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 540px) {
  .brandbook-page .brandbook {
    padding-inline: 20px;
    padding-top: calc(var(--app-header-height) + 26px);
  }
  .bb-hero {
    padding-bottom: 32px;
    gap: 28px;
  }
  .bb-eyebrow {
    font-size: 9px;
    gap: 7px;
  }
  .bb-version {
    font-size: 9px;
  }
  .bb-hero h1 {
    margin-top: 24px;
    font-size: clamp(32px, 8.5vw, 45px);
    letter-spacing: -0.06em;
  }
  .bb-hero-copy > p {
    font-size: 15px;
    margin-top: 20px;
    line-height: 1.65;
  }
  .bb-actions {
    margin-top: 24px;
    gap: 12px;
  }
  .bb-actions > .bb-button {
    width: 100%;
  }
  .bb-actions > .bb-text-link {
    padding-inline: 2px;
  }
  .bb-file-note {
    margin-top: 8px;
    font-size: 9px;
  }
  .bb-hero-art {
    min-height: 300px;
    padding: 22px;
  }
  .bb-art-top {
    font-size: 8px;
    gap: 20px;
  }
  .bb-art-top > span:first-child {
    max-width: 170px;
  }
  .bb-art-bottom {
    font-size: 13px;
  }
  .bb-art-bottom > i {
    width: 44px;
    height: 44px;
    font-size: 26px;
  }
  .bb-nav {
    margin-inline: -20px;
    padding-inline: 12px;
    scrollbar-width: none;
  }
  .bb-nav > a {
    min-height: 42px;
    padding: 11px 12px;
  }
  .brandbook-page .brandbook .bb-section {
    padding-top: 52px;
  }
  .bb-section h2 {
    font-size: 35px;
    margin-top: 16px;
  }
  .bb-index {
    font-size: 10px;
  }
  .bb-section-head {
    gap: 20px;
    margin-bottom: 24px;
  }
  .bb-section-head > p {
    font-size: 14px;
    line-height: 1.7;
  }
  .bb-logo-stage {
    min-height: 300px;
    padding: 20px;
  }
  .bb-logo-stage > img {
    height: 154px;
    margin: 28px 0;
  }
  .bb-logo-stage[data-layout="stacked"] > img {
    max-width: 200px;
    height: 180px;
  }
  .bb-logo-stage[data-layout="symbol"] > img {
    width: 112px;
    height: 112px;
  }
  .bb-stage-meta {
    font-size: 8px;
    gap: 8px;
  }
  .bb-stage-meta > span:first-child {
    max-width: 150px;
  }
  .bb-stage-meta > span:last-child {
    font-size: 7px;
  }
  .bb-stage-bottom {
    flex-wrap: wrap;
    gap: 4px;
    font-size: 9px;
  }
  .bb-backgrounds label {
    width: 34px;
  }
  .bb-logo-tools {
    padding: 20px;
  }
  .bb-options {
    grid-template-columns: 1fr 1fr;
  }
  .bb-logo-downloads .bb-button {
    font-size: 12px;
    gap: 10px;
    padding: 13px;
  }
  .bb-principles {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
  }
  .bb-principles article {
    column-gap: 12px;
    padding-top: 16px;
  }
  .bb-principles p {
    margin-top: 6px;
    font-size: 13px;
  }
  .bb-principles h3 {
    font-size: 20px;
  }
  .bb-rules-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .bb-clearspace,
  .bb-minimum {
    padding: 24px;
  }
  .bb-clearspace-art {
    min-height: 206px;
    margin-bottom: 20px;
  }
  .bb-minimum dl > div {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 19px 0;
  }
  .bb-minimum dt {
    font-size: 12px;
  }
  .bb-minimum dd {
    font-size: 11px;
  }
  .bb-minimum dl {
    margin: 20px 0;
  }
  .bb-dont-grid {
    gap: 20px 14px;
  }
  .bb-dont-grid article > div {
    height: 104px;
    padding: 15px;
    border-radius: 16px;
  }
  .bb-dont-grid img {
    width: 94px;
  }
  .bb-dont-grid h3 {
    font-size: 11px;
    gap: 5px;
    margin-top: 13px;
  }
  .bb-dont-grid p {
    font-size: 11px;
  }
  .bb-wrong-type {
    font-size: 44px;
  }
  .bb-palette {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .bb-swatch {
    min-height: 210px;
    padding: 18px;
    border-radius: 20px;
  }
  .bb-swatch:last-child {
    grid-column: 1/-1;
    min-height: 136px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: center;
  }
  .bb-swatch:last-child .bb-swatch-role {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
  }
  .bb-swatch:last-child button {
    margin: 0;
  }
  .bb-swatch:last-child small {
    grid-column: 2;
  }
  .bb-swatch button {
    font-size: 12px;
    margin-top: 42px;
  }
  .bb-swatch small {
    font-size: 8px;
  }
  .bb-swatch h3 {
    font-size: 21px;
  }
  .bb-contrast {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .bb-inline-status {
    font-size: 11px;
  }
  .bb-contrast > span {
    min-height: 56px;
  }
  .bb-type-main,
  .bb-type-mono,
  .bb-system-grid > article {
    padding: 24px;
  }
  .bb-type-statement {
    font-size: clamp(25px, 7.2vw, 36px);
    margin-top: 32px !important;
  }
  .bb-alphabet {
    font-size: 18px;
    margin-top: 26px !important;
  }
  .bb-type-heading h3 {
    font-size: 19px;
  }
  .bb-type-heading > span {
    font-size: 8px;
  }
  .bb-type-weights {
    gap: 12px;
    font-size: 10px;
  }
  .bb-mono-specimen {
    font-size: 20px;
  }
  .bb-mono-glyphs {
    font-size: 18px;
  }
  .bb-font-footer {
    flex-direction: column;
    gap: 20px;
  }
  .bb-font-footer .bb-button {
    width: 100%;
  }
  .bb-rules-grid h3,
  .bb-system-grid h3 {
    font-size: 22px;
  }
  .bb-radii {
    gap: 8px;
    margin: 30px 0;
  }
  .bb-radii i {
    width: 46px;
    height: 52px;
  }
  .bb-radii span {
    font-size: 9px;
  }
  .bb-radii b {
    font-size: 16px;
  }
  .bb-motion-demo {
    gap: 12px;
    height: 158px;
  }
  .bb-motion-demo i {
    width: 44px;
    height: 76px;
    border-radius: 12px;
  }
  .bb-motion-head h3 {
    max-width: 200px;
  }
  .bb-voice {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  .bb-voice > .bb-index {
    margin: 0;
  }
  .bb-voice h3 {
    grid-row: auto;
    font-size: 28px;
  }
  .bb-voice > span:last-child {
    grid-column: auto;
  }
  .bb-voice > p {
    font-size: 14px;
  }
  .bb-templates {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .bb-templates article > div {
    padding: 24px;
  }
  .bb-templates article > a {
    min-height: 86px;
    padding: 18px 0;
  }
  .bb-template-slide > p {
    font-size: 12px;
    margin-top: 18px;
  }
  .bb-download-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .bb-download-card {
    min-height: 226px;
    padding: 24px;
  }
  .bb-download-card h3 {
    font-size: 23px;
  }
  .bb-download-card p {
    font-size: 14px;
  }
  .bb-release {
    padding-bottom: 52px;
  }
  .bb-release > span {
    font-size: 9px;
  }
  .bb-release > p {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .brandbook * {
    scroll-behavior: auto;
    animation: none !important;
    transition: none !important;
  }
}
/* A fixed preview slot keeps every logo composition stable while switching. */
.bb-logo-stage > img,
.bb-logo-stage[data-layout="stacked"] > img,
.bb-logo-stage[data-layout="symbol"] > img {
  height: 242px;
}
@media (max-width: 540px) {
  .bb-logo-stage {
    min-height: 350px;
  }
  .bb-logo-stage > img,
  .bb-logo-stage[data-layout="stacked"] > img,
  .bb-logo-stage[data-layout="symbol"] > img {
    height: 180px;
    margin-block: 20px;
  }
}

/* Physical applications: a reserved image frame prevents layout shifts. */
.bb-mockup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.bb-mockup-card {
  min-width: 0;
  border: 1px solid var(--bb-line);
  border-radius: 24px;
  background: #fff;
}
.bb-mockup-image {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 23px 23px 0 0;
  background: var(--bb-paper);
}
.bb-mockup-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.bb-mockup-expand {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #fff9;
  border-radius: 12px;
  color: var(--bb-ink);
  background: #fffffff2;
  box-shadow: 0 3px 14px #11151f0a;
  font-size: 12px;
  font-weight: 550;
}
.bb-mockup-expand > span {
  font-size: 20px;
}
.bb-mockup-image:hover img {
  transform: scale(1.025);
}
.bb-mockup-copy {
  padding: 28px;
}
.bb-mockup-copy > .bb-index {
  font-size: 10px;
}
.bb-mockup-copy h3 {
  margin-top: 14px;
  font-size: clamp(23px, 2.1vw, 30px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.bb-mockup-copy > p {
  max-width: 520px;
  min-height: 4.8em;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--bb-muted);
}
.bb-mockup-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--bb-line);
}
.bb-mockup-meta > span {
  max-width: 200px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--bb-muted);
}
.bb-mockup-meta > a {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bb-paper);
  color: var(--bb-blue);
  font-size: 13px;
  font-weight: 550;
}
.bb-mockup-meta small {
  font:
    10px "JetBrains Mono",
    monospace;
  color: var(--bb-muted);
}
.bb-mockup-meta a:hover {
  background: #e5ecff;
}
.bb-mockup-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-top: 32px;
}
.bb-mockup-footer p {
  max-width: 550px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--bb-muted);
}
.bb-mockup-footer .bb-button {
  flex: none;
}
.bb-mockup-footer .bb-mockup-zip-size {
  font:
    10px "JetBrains Mono",
    monospace;
  color: #e1e8ff;
}
.bb-download-card.is-featured {
  grid-column: 1 / -1;
  min-height: 224px;
}
html.bb-viewer-open {
  overflow: hidden;
}
.bb-mockup-dialog {
  width: min(1100px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  margin: auto;
  border: 1px solid var(--bb-line);
  border-radius: 24px;
  background: white;
  color: var(--bb-ink);
  box-shadow: 0 24px 96px #11151f38;
  overflow: hidden;
  font-family: "Golos Text", Arial, sans-serif;
}
.bb-mockup-dialog[open] {
  display: flex;
  flex-direction: column;
}
.bb-mockup-dialog::backdrop {
  background: #11151fc2;
  backdrop-filter: blur(6px);
}
.bb-mockup-dialog [hidden] {
  display: none !important;
}
.bb-mockup-dialog :is(h2, p) {
  margin: 0;
}
.bb-mockup-dialog :focus-visible {
  outline: 3px solid var(--bb-blue);
  outline-offset: 4px;
}
.bb-mockup-dialog :is(button, a) {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.bb-mockup-dialog-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--bb-line);
}
.bb-mockup-dialog-head > div {
  min-width: 0;
}
.bb-mockup-dialog-head .bb-index {
  font-size: 10px;
}
.bb-mockup-dialog-head h2 {
  margin-top: 10px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.bb-mockup-close,
.bb-mockup-paging button {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--bb-line);
  border-radius: 12px;
  background: var(--bb-paper);
  color: var(--bb-ink);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}
.bb-mockup-dialog-body {
  min-height: 0;
  padding: 24px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.bb-mockup-view {
  position: relative;
  width: min(100%, calc((100dvh - 312px) * 1.5));
  min-width: min(100%, 360px);
  aspect-ratio: 3 / 2;
  margin: auto;
  overflow: hidden;
  border-radius: 20px;
  background: var(--bb-paper);
}
.bb-mockup-view > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.bb-mockup-view[data-mockup-state="ready"] > img {
  animation: bb-mockup-appear 0.3s ease both;
}
.bb-mockup-feedback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: var(--bb-muted);
}
.bb-mockup-view[data-mockup-state="ready"] .bb-mockup-feedback {
  display: none;
}
.bb-mockup-view[data-mockup-state="loading"] .bb-mockup-feedback::before {
  content: "";
  width: 24px;
  height: 24px;
  border: 2px solid #d4def9;
  border-top-color: var(--bb-blue);
  border-radius: 50%;
  animation: bb-mockup-spin 0.8s linear infinite;
}
.bb-mockup-dialog-body > p {
  max-width: 800px;
  margin: 20px auto 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--bb-muted);
}
.bb-mockup-dialog-footer {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 28px;
  border-top: 1px solid var(--bb-line);
}
.bb-mockup-paging {
  display: flex;
  gap: 12px;
}
.bb-mockup-paging button:hover,
.bb-mockup-close:hover {
  border-color: var(--bb-blue);
  color: var(--bb-blue);
}
@keyframes bb-mockup-appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes bb-mockup-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 880px) {
  .bb-mockup-grid {
    gap: 20px;
  }
  .bb-mockup-copy {
    padding: 24px;
  }
  .bb-mockup-meta {
    flex-wrap: wrap;
    gap: 16px;
  }
  .bb-mockup-meta > span {
    max-width: none;
  }
}
@media (max-width: 720px) {
  .bb-mockup-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .bb-mockup-copy > p {
    min-height: 0;
  }
  .bb-mockup-copy h3 {
    font-size: 27px;
  }
  .bb-mockup-meta {
    flex-wrap: nowrap;
  }
  .bb-mockup-meta > span {
    max-width: 200px;
  }
  .bb-mockup-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .bb-mockup-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 24px;
  }
  .bb-mockup-dialog-head {
    padding: 24px;
    gap: 16px;
  }
  .bb-mockup-dialog-head h2 {
    font-size: 23px;
  }
  .bb-mockup-dialog-body {
    padding: 20px;
  }
  .bb-mockup-view {
    width: 100%;
    min-width: 0;
    border-radius: 16px;
  }
  .bb-mockup-dialog-footer {
    padding: 20px;
    gap: 16px;
  }
}
@media (max-width: 380px) {
  .bb-mockup-copy {
    padding: 20px;
  }
  .bb-mockup-copy h3 {
    font-size: 25px;
  }
  .bb-mockup-expand {
    right: 16px;
    bottom: 16px;
  }
  .bb-mockup-meta {
    flex-wrap: wrap;
  }
  .bb-mockup-dialog-head {
    padding: 20px;
  }
  .bb-mockup-dialog-head h2 {
    font-size: 21px;
  }
  .bb-mockup-dialog-footer {
    gap: 12px;
    flex-wrap: wrap;
  }
  .bb-mockup-dialog-footer .bb-button {
    font-size: 13px;
    padding-inline: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bb-mockup-image img {
    transition: none;
  }
  .bb-mockup-image:hover img {
    transform: none;
  }
  .bb-mockup-view[data-mockup-state="ready"] > img,
  .bb-mockup-view[data-mockup-state="loading"] .bb-mockup-feedback::before {
    animation: none;
  }
}
