/* Built by your team: the four apps as small, still app windows, each with a
   drawn mock of what it shows (Dan, 2026-11-21: "better imagery for what each
   is, styled well to the colors used ... leave them static"). Gold-edged navy
   windows, as before; nothing animates in. Layout across widths is in
   bd-layout rules at the end. Tokens and color-mix only. */

.bd-team .bd-app {
  opacity: 1 !important; transform: none !important; transition: none !important;
  display: flex; flex-direction: column; gap: 0.6em;
  padding: 0.7em 0.85em 0.85em; border-radius: 12px;
  background: color-mix(in srgb, var(--paper) 74%, white 8%);
  border: 1.5px solid color-mix(in srgb, var(--kind-reference) 62%, transparent);
  box-shadow: 0 0 1.6em color-mix(in srgb, var(--kind-reference) 18%, transparent), 0 14px 30px -18px black;
  font: 600 var(--text-sm)/1.25 var(--display); color: var(--ink);
}
.bd-app-name { margin: 0; }
.bd-app-name small { display: block; margin-top: 0.2em; font: 400 var(--text-xs)/1.3 var(--body); color: var(--ink-3); }
.bd-ui {
  display: grid; gap: 5px; padding: 8px; border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 86%, black);
  border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
  font: 500 10.5px/1.2 var(--body); color: var(--ink-2); letter-spacing: 0;
}
.bd-ui i, .bd-ui em, .bd-ui b { font-style: normal; }

/* order tracker: rows with a status chip */
.o-row { display: grid; grid-template-columns: auto 1fr auto; gap: 7px; align-items: center; padding: 3px 4px; border-radius: 5px; background: color-mix(in srgb, var(--ink) 4%, transparent); }
.o-row b { font: 600 10px/1 var(--data, var(--body)); color: var(--lamp, var(--kind-reference)); }
.o-row i { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; color: var(--ink-2); }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.st-new { --c: var(--kind-session); } .st-pack { --c: var(--kind-reference); } .st-ship { --c: var(--pen); } .st-done { --c: var(--kind-plan); }

/* production planner: the week with flavour runs as blocks */
.p-days, .p-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
.p-days i { text-align: center; font-size: 9px; color: var(--ink-3); }
.p-grid { row-gap: 4px; }
.p-blk { padding: 4px 5px; border-radius: 4px; font: 600 9.5px/1.1 var(--body); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: color-mix(in srgb, var(--c) 38%, transparent); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); }
.p-a { --c: var(--kind-reference); } .p-b { --c: var(--kind-plan); } .p-c { --c: var(--kind-decision); } .p-d { --c: var(--kind-session); }

/* client portal: one order and where it stands */
.c-order { font-weight: 600; color: var(--ink); font-size: 11px; }
.c-order i { font-weight: 400; color: var(--ink-3); margin-left: 4px; }
.c-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; margin-top: 4px; }
.c-steps::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 5px; height: 2px; background: color-mix(in srgb, var(--ink) 16%, transparent); }
.c-steps::after { content: ""; position: absolute; left: 12.5%; width: 50%; top: 5px; height: 2px; background: var(--kind-plan); }
.c-step { position: relative; z-index: 1; display: grid; justify-items: center; gap: 5px; font-size: 9px; color: var(--ink-3); }
.c-step b { width: 12px; height: 12px; border-radius: 50%; background: color-mix(in srgb, var(--paper) 80%, black); border: 2px solid color-mix(in srgb, var(--ink) 25%, transparent); box-sizing: border-box; }
.c-step.is-done b { background: var(--kind-plan); border-color: var(--kind-plan); }
.c-step.is-now b { border-color: var(--lamp, var(--kind-reference)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lamp, var(--kind-reference)) 30%, transparent); }
.c-step.is-done, .c-step.is-now { color: var(--ink-2); }

/* weekly forecast: what sells, and the one thing to order */
.f-bars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; align-items: end; height: 54px; }
.f-bars i { display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 3px; height: 100%; font-size: 8.5px; color: var(--ink-3); }
.f-bars b { align-self: end; width: 100%; height: var(--v); border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, var(--lamp, var(--kind-reference)), color-mix(in srgb, var(--lamp, var(--kind-reference)) 55%, var(--pen))); }
.f-note { margin-top: 2px; font-weight: 600; color: var(--ink); font-size: 10.5px; }
.f-note::before { content: "\2192  "; color: var(--lamp, var(--kind-reference)); }

/* ── layout across widths (from a layout review, 2026-11-21): phones lead with
   the painting and swipe the apps; tablets stack the two halves with the apps
   two by two above the team; laptops and wider put two apps on each side of
   the team; wide screens let this one stage run wider so nothing sits empty ── */
.bd-stage { align-items: center; }
.bd-left { display: grid; justify-items: center; }
.bd-shelf { align-items: center; gap: clamp(14px, 1.6vw, 24px); opacity: 1; }
.bd-team { position: static; padding: 0; margin: 0; display: grid; gap: 14px 18px; align-items: center; }
.bd-apps { display: contents; }
.bd-team .bd-app { position: static; width: auto; min-width: 0; min-height: 0; }
.bd-team > img.bd-team-art { position: static; width: 100%; height: auto; justify-self: center; left: auto; bottom: auto; }
.bd-systems { grid-area: sys; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin-top: 4px; }
.bd-team .bd-sys { position: static; white-space: nowrap; bottom: auto; font-size: 13px; color: var(--ink-2); padding: 0.55em 0.8em; }
.bd-team .bd-cap { position: static; grid-area: cap; margin-top: 0.4em; }

@media (max-width: 760px) {
  .bd-stage { grid-template-columns: 1fr; gap: 36px; }
  .bd-shelf img { width: 52%; }
  .bd-receipt { width: min(100%, 340px); margin: -14px auto 0; position: relative; }
  .bd-team { grid-template-columns: 1fr; grid-template-areas: "art" "apps" "sys" "cap"; }
  .bd-team > img.bd-team-art { grid-area: art; width: min(100%, 420px); }
  .bd-apps {
    grid-area: apps; display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 300px); gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: calc(-1 * var(--site-pad)); padding: 4px var(--site-pad) 10px; scroll-padding-inline: var(--site-pad);
  }
  .bd-apps::-webkit-scrollbar { display: none; }
  .bd-apps > .bd-app { scroll-snap-align: start; }
}
@media (min-width: 761px) and (max-width: 1499.98px) {
  .bd-stage { grid-template-columns: 1fr; gap: clamp(36px, 4vw, 56px); }
  .bd-shelf { justify-content: center; }
  .bd-shelf img { width: clamp(190px, 20vw, 250px); }
  .bd-receipt { width: clamp(300px, 32vw, 380px); }
}
@media (min-width: 761px) and (max-width: 1099.98px) {
  .bd-team { max-width: 760px; margin-inline: auto; grid-template-columns: 1fr 1fr;
    grid-template-areas: "a1 a2" "a3 a4" "art art" "sys sys" "cap cap"; }
  .bd-team > img.bd-team-art { width: min(100%, 560px); margin-top: -2%; }
}
@media (min-width: 1100px) {
  .bd-team { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr);
    grid-template-areas: "a1 art a2" "a3 art a4" "sys sys sys" "cap cap cap"; column-gap: 20px; }
}
@media (min-width: 1500px) {
  .bd-stage {
    --bd-w: min(calc(100vw - 2 * var(--site-pad)), max(100%, 1560px));
    width: var(--bd-w); margin-inline: calc((100% - var(--bd-w)) / 2);
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(36px, 3vw, 64px);
  }
  .bd-shelf img { width: 41%; }
  .bd-receipt { width: 55%; }
}
@media (min-width: 2200px) { .bd-team { column-gap: 26px; row-gap: 18px; } }
@media (min-width: 761px) {
  .bd-team .bd-app:nth-child(1) { grid-area: a1; } .bd-team .bd-app:nth-child(2) { grid-area: a2; }
  .bd-team .bd-app:nth-child(3) { grid-area: a3; } .bd-team .bd-app:nth-child(4) { grid-area: a4; }
  .bd-team > img.bd-team-art { grid-area: art; }
}

/* phones: each caption sits right under its own picture (Dan, 2026-11-21):
   Off the shelf under the shelf, before the slip; Built by your team under
   the team, before their apps */
@media (max-width: 760px) {
  .bd-left { display: flex; flex-direction: column; align-items: center; }
  .bd-left > .bd-shelf { display: contents; }
  .bd-left .bd-shelf > img { order: 1; }
  .bd-left > .bd-cap { order: 2; margin: 0.5em 0 1.2em; }
  .bd-left .bd-receipt { order: 3; margin-top: 0; }
  .bd-team { grid-template-areas: "art" "cap" "apps" "sys"; }
  .bd-team .bd-cap { margin: 0.2em 0 0.8em; }
}
