/* NABU case study — Figma 128:19817 · exact 1440 canvas (scaled via case-scale.js) */

/* scroll-behavior left auto — case-snap.js owns Jump to Solution motion */

.nabu-page #solution,
.nabu-page #problem,
.nabu-page #users,
.nabu-page #design-system,
.nabu-page #considerations,
.nabu-page #reflections {
  scroll-margin-top: 24px;
}

/* Solution · Frame 85 · 56px between feature rows */
.nabu-page #solution.bc-section--stack {
  gap: 56px;
}

/* ---------- Design system · Frame 70 (updated tiles) ---------- */

.nabu-ds {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  width: 100%;
  margin: 0;
}

.nabu-ds__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
}

/* Left · 341 · Mid · 637 · Right · 286 · gaps 16 */
.nabu-ds__col--left {
  width: 341px;
  gap: 17.827px;
}

.nabu-ds__col--mid {
  width: 637px;
  gap: 16px;
}

.nabu-ds__tile {
  display: block;
  height: auto;
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.nabu-ds__tile--colours,
.nabu-ds__tile--type {
  width: 341px;
}

.nabu-ds__tile--forms,
.nabu-ds__tile--buttons {
  width: 637px;
}

.nabu-ds__tile--icons {
  width: 286px;
}

/* ---------- Hero · Frame 41 / 179:34 · 1156×484 clip ---------- */

.nabu-hero {
  /* Figma Frame 41 · media at (70, 80) inside 1296×628 */
  padding: 80px 70px 64px;
}

.nabu-hero__slot {
  position: relative;
  width: min(1156px, 100%);
  aspect-ratio: 1156 / 484;
  height: auto;
  overflow: hidden;
  margin: 0 auto;
}

.nabu-hero__media {
  position: absolute;
  left: 0;
  top: calc(-31 / 484 * 100%);
  width: 100%;
  height: calc(546 / 484 * 100%);
  overflow: hidden;
}

.nabu-hero__media img {
  position: absolute;
  left: 0;
  top: -55.92%;
  width: 100%;
  height: 211.72%;
  max-width: none;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* ---------- Persona · Leila Mwangi · 337×337 ---------- */

.nabu-persona {
  grid-template-columns: 337px minmax(0, 1fr);
  gap: 48px;
}

.nabu-persona .bc-persona__photo {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
}

/* ---------- Solution features · Figma 128:19971 · 538×350 · gap 48 ---------- */

.nabu-feature {
  display: grid;
  grid-template-columns: 538px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin: 0;
  width: 100%;
}

.nabu-feature--flip {
  grid-template-columns: minmax(0, 1fr) 538px;
}

.nabu-feature--stack {
  grid-template-columns: 538px minmax(0, 1fr);
  align-items: center;
  width: 100%;
}

.nabu-feature__stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 538px;
  flex-shrink: 0;
}

.nabu-feature__media-wrap {
  position: relative;
  width: 538px;
  height: 350px;
  overflow: hidden;
  background: transparent;
  flex-shrink: 0;
}

.nabu-feature__media,
.nabu-feature__video {
  display: block;
  width: 538px;
  height: 350px;
  object-fit: cover;
  object-position: center center;
  background: transparent;
}

.nabu-feature__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.nabu-feature__copy h3 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: #14243b;
}

.nabu-feature__copy p {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  color: #14243b;
}

.nabu-feature__copy .bc-bullets {
  margin-top: 8px;
  font-size: 18px;
}

/* Considerations · Figma 128:19940 · 48px number pills */
.nabu-page .bc-numbered li {
  grid-template-columns: 48px minmax(0, 1fr);
  font-size: 18px;
}

.nabu-page .bc-numbered li::before {
  width: 48px;
  height: 48px;
  border-radius: 20px;
}

/* No viewport breakpoints — layout locked to 1440 + case-scale.js (same as other case pages). */
