/* Build 91 post: extras on top of open-canvas.css. Colour, type and spacing come from design.css tokens. */

.b91-props {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-2);
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
}
.b91-props li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--gloss);
  box-shadow: var(--edge);
  color: var(--muted);
  font-size: var(--type-label);
  line-height: 1.4;
}
.b91-props img {
  display: block;
  width: var(--space-5);
  height: var(--space-5);
}

@media (max-width: 900px) {
  .b91-props { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .b91-props { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Overview strip under the hero. */
.b91-overview { margin: var(--space-5) 0 0; }
.b91-overview img { display: block; width: 100%; height: auto; }
.b91-overview figcaption { margin-top: var(--space-2); color: var(--muted); font-size: var(--type-label); line-height: 1.5; }

/* Project timeline: five months on one track. */
.b91-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-2);
  margin: var(--space-5) 0 0;
  padding: var(--space-3) 0 0;
  list-style: none;
}
.b91-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), var(--line));
}
.b91-timeline li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--gloss);
  box-shadow: var(--edge);
}
.b91-timeline li::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--space-3) - 4px);
  left: var(--space-2);
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--text);
}
.b91-timeline time { color: var(--faint); font-size: var(--type-meta); letter-spacing: .12em; text-transform: uppercase; }
.b91-timeline h3 { font-size: var(--type-body); line-height: 1.3; }
.b91-timeline p { margin: 0; color: var(--muted); font-size: var(--type-label); line-height: 1.5; }

/* Small label above a second icon row. */
.b91-sub { margin: var(--space-4) 0 0; color: var(--faint); font-size: var(--type-meta); letter-spacing: .12em; text-transform: uppercase; }
.b91-sub + .b91-props { margin-top: var(--space-2); }

/* Palette sampled from the screens. */
.b91-swatches {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.b91-swatches li { display: flex; flex-direction: column; gap: var(--space-1); color: var(--muted); font-size: var(--type-label); line-height: 1.4; }
.b91-swatches span { display: block; height: var(--space-6); border: 1px solid var(--line-strong); border-radius: var(--radius-card); }
.b91-swatches code { color: var(--faint); font-size: var(--type-meta); letter-spacing: .08em; }

@media (max-width: 900px) {
  .b91-timeline { grid-template-columns: minmax(0, 1fr); padding: 0 0 0 var(--space-3); }
  .b91-timeline::before { top: 0; bottom: 0; right: auto; width: 1px; height: auto; }
  .b91-timeline li::before { top: var(--space-3); left: calc(-1 * var(--space-3) - 4px); }
  .b91-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .screens { grid-template-columns: minmax(0, 1fr); }
}

/* Text that follows a figure needs the same gap as text that follows text. */
.showcase + .two-col,
.screens + .two-col,
.oc-reach + .two-col,
.showcase + .showcase { margin-top: var(--space-5); }
