/* Money explained to the pupil (owner 12.11.2026). Display only.
   bs-symmetria: figures big, one size, each ending on its cell's right edge;
   the pound sits on its figure. bs-vahan-tekstia: no small text. */

/* 1. The pupil's own firm above the Live Chart:
      Cash + Stock + Investments − Loans − VAT due = Net position */
.motor-net-row { margin: 0 0 18px; }
.motor-net-row[hidden] { display: none; }
.motor-net-row__inner {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 6px;
  padding: 14px 22px 16px; background: #fff; border: 1px solid var(--border, #d9dfe3); border-radius: 14px;
}
.motor-net-row__part { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; }
.motor-net-row__label { font-size: 17px; font-weight: 600; color: #4c5b66; line-height: 1.2; white-space: nowrap; }
.motor-net-row__value {
  font-size: 28px; font-weight: 800; color: var(--mtr-ink, #0f1720); line-height: 1.15;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.motor-net-row__value.is-negative { color: #c62828; }
.motor-net-row__op { font-size: 28px; font-weight: 700; color: #4c5b66; line-height: 1.15; flex: none; }
.motor-net-row__part.is-total .motor-net-row__label,
.motor-net-row__part.is-total .motor-net-row__value { color: #006d75; }
@media (max-width: 1340px) {
  .motor-net-row__value, .motor-net-row__op { font-size: 26px; }
}

/* 4. The Done tab says what the deal earned: "Sold · +£400" / "Bought · +£2,100". */
.motor-script-tab.is-done .motor-script-tab__state { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.motor-script-tab.is-done.is-loss .motor-script-tab__state { color: #c62828; }

/* 3. The final questions' result on the Questions page: the same big line as Do now. */
.motor-questions-complete__money { display: block; margin: 8px 0 6px; font-size: 30px; font-weight: 800; color: var(--mtr-ink, #0f1720); line-height: 1.2; }

/* 2. Why the pupil's firm ended where it did, joined under "Your firm: 2nd of 6":
      Started · Deals · [Topic tasks] · [Rent &] Decisions · Final questions · Net position */
.motor-final-yours:has(+ .motor-final-why) { border-radius: 10px 10px 0 0; padding-bottom: 5px; }
.motor-final-why {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
  margin: 0; padding: 2px 22px 9px; border-radius: 0 0 10px 10px; background: #e7f6f6; color: #17242d;
}
@media (min-width: 561px) {
  /* joined to the place line above it: the podium grid's own gap is taken back */
  .motor-final-rows--podium .motor-final-why { order: 4; grid-column: 1 / -1; margin-top: -10px; }
  /* More than six firms: the podium a little lower again, so the line, every firm and the buttons stay on a classroom laptop's screen. */
  .motor-final-rows--podium.motor-final-rows--many:has(.motor-final-why) .motor-final-row--rank-1 .motor-final-rank { height: 54px; }
  .motor-final-rows--podium.motor-final-rows--many:has(.motor-final-why) .motor-final-row--rank-2 .motor-final-rank { height: 42px; }
  .motor-final-rows--podium.motor-final-rows--many:has(.motor-final-why) .motor-final-row--rank-3 .motor-final-rank { height: 32px; }
  /* the low plinths carry the place's number only (the word under it was cut) */
  .motor-final-rows--podium.motor-final-rows--many:has(.motor-final-why) .motor-final-rank small { display: none; }
}
.motor-final-why__step { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; }
.motor-final-why__label { font-size: 15px; font-weight: 600; color: #4c5b66; line-height: 1.2; white-space: nowrap; }
.motor-final-why__value { font-size: 21px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.motor-final-why__step.is-minus .motor-final-why__value { color: #c62828; }
.motor-final-why__step.is-total .motor-final-why__label,
.motor-final-why__step.is-total .motor-final-why__value { color: #007b85; }
/* The list of every firm still follows without a second heading. */
.session-ended-modal--motor .motor-final-why + .motor-final-all { margin-top: 6px; padding-top: 0; border-top: 0; }
.session-ended-modal--motor .motor-final-why + .motor-final-all .motor-final-all__head { display: none; }
