/* Reusable Brand Kit identity presentation. Kept separate from the editor so
   this visual document can later be reused by print and standalone HTML export. */
.bb-identity-result {
  margin: 0 0 26px;
  overflow: hidden;
  border: 1px solid #e1d1eb;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(61, 28, 91, .08);
}

.bb-identity-result[hidden] { display: none; }

.bb-identity-result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, .72fr);
  gap: 28px;
  padding: 31px;
  color: #fff;
  background: linear-gradient(135deg, var(--bb-brand-colour-1, #32144f), var(--bb-brand-colour-2, #702da1) 58%, var(--bb-brand-colour-3, #c25d8f));
}

.bb-identity-result-overline {
  display: block;
  margin-bottom: 9px;
  color: rgba(255,255,255,.7);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.bb-identity-result-name {
  display: block;
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.bb-identity-result-name.bb-name-style-editorial-serif { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 600; }
.bb-identity-result-name.bb-name-style-display-caps { font-size: clamp(25px, 3.2vw, 38px); font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.bb-identity-result-name.bb-name-style-elegant-script { font-family: 'Brush Script MT', 'Segoe Script', cursive; font-size: clamp(39px, 5.3vw, 59px); font-weight: 500; }

.bb-identity-result-tagline {
  display: block;
  max-width: 600px;
  margin-top: 9px;
  color: rgba(255,255,255,.86);
  font-size: 16px;
  font-style: italic;
  line-height: 1.45;
}

.bb-identity-result-hero p {
  max-width: 670px;
  margin: 20px 0 0;
  color: rgba(255,255,255,.86);
  font-size: 14px;
  line-height: 1.65;
}

.bb-identity-result-logo {
  display: grid;
  min-height: 195px;
  place-items: center;
  overflow: hidden;
  padding: 17px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px;
  background: rgba(255,255,255,.96);
}

.bb-identity-result-logo img { display: block; width: 100%; height: 100%; max-height: 220px; object-fit: contain; }
.bb-identity-result-logo > i { color: #8b58a4; }

.bb-identity-result-content { padding: 27px 30px 30px; }

.bb-identity-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.bb-identity-result-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid #eadff1;
  border-radius: 14px;
  background: #fff;
}

.bb-identity-result-card--wide { grid-column: 1 / -1; }

.bb-identity-result-card > span,
.bb-identity-result-meta > span {
  display: block;
  margin-bottom: 8px;
  color: #8a5ab1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.bb-identity-result-card h3 { margin: 0; color: #321a4d; font-size: 16px; }
.bb-identity-result-card p { margin: 0; color: #624879; font-size: 13px; line-height: 1.6; }
.bb-identity-result-card p + p { margin-top: 10px; }

.bb-identity-result-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 17px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #faf6fd;
}

.bb-identity-result-meta strong { display: block; color: #42245e; font-size: 12px; line-height: 1.45; }

.bb-identity-result-palette { display: flex; flex-wrap: wrap; gap: 7px; }
.bb-identity-result-palette i { width: 30px; height: 30px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(46,24,68,.16); }

.bb-identity-result-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.bb-identity-result-tags i { padding: 6px 9px; border: 1px solid #e3d4ee; border-radius: 999px; color: #6e3995; background: #fbf7ff; font-size: 11px; font-style: normal; font-weight: 700; }

.bb-identity-result-list { margin: 0; padding-left: 18px; color: #624879; font-size: 12px; line-height: 1.65; }
.bb-identity-result-list + .bb-identity-result-list { margin-top: 12px; }
.bb-identity-result-list strong { color: #482765; }

.bb-identity-result-copy-sample { margin-top: 12px !important; padding: 12px; border-radius: 10px; color: #553470 !important; background: #faf6fd; font-style: italic; }

.bb-identity-result-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.bb-identity-result-actions .bb-secondary-button > span { display: grid; gap: 1px; text-align: left; }
.bb-identity-result-actions .bb-secondary-button small { color: #8a6aa3; font-size: 8px; font-weight: 700; line-height: 1.1; }

@media (max-width: 760px) {
  .bb-identity-result-hero,
  .bb-identity-result-grid { grid-template-columns: 1fr; }
  .bb-identity-result-card--wide { grid-column: auto; }
  .bb-identity-result-meta { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .bb-identity-result-hero { padding: 24px; }
  .bb-identity-result-content { padding: 20px; }
  .bb-identity-result-actions { flex-direction: column; }
  .bb-identity-result-actions button { width: 100%; }
}


.bb-configuration {
  margin-bottom: 26px;
}

.bb-configuration-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 18px;
  border: 1px solid #e5d7ef;
  border-radius: 14px;
  color: #41235d;
  background: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.bb-configuration-toggle > span {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
}

.bb-configuration-toggle > span > svg {
  grid-row: 1 / span 2;
  width: 19px;
  color: #8537c2;
}

.bb-configuration-toggle strong { font-size: 13px; }
.bb-configuration-toggle small { color: #80639b; font-size: 11px; }
.bb-configuration-toggle > svg { width: 18px; color: #80539d; transition: transform .18s ease; }
.bb-configuration.is-open .bb-configuration-toggle > svg { transform: rotate(180deg); }
.bb-configuration .bb-sections { margin-top: 22px; }


.bb-identity-result-card {
  position: relative;
}

.bb-identity-edit-button {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  padding: 0;
  border: 1px solid #dfcdec;
  border-radius: 8px;
  color: #783e9f;
  background: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity .16s ease, transform .16s ease, border-color .16s ease;
}

.bb-identity-result-card:hover .bb-identity-edit-button,
.bb-identity-edit-button:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.bb-identity-edit-button:hover {
  border-color: #bd7ddd;
  background: #fbf6ff;
}

.bb-identity-edit-button svg {
  width: 14px;
  height: 14px;
}

.bb-identity-edit-modal textarea {
  min-height: 150px;
}

.bb-identity-edit-modal .bb-field-status:empty {
  display: none;
}
