/* Result screen: shared shell sizing + What-if change comparison styles. */

.result-shell {
  width: min(1280px, calc(100% - 40px));
}

.result-topline {
  margin-bottom: 14px;
}

.outcome-switch {
  display: grid;
  grid-template-columns: 1fr 30px 1fr;
  align-items: stretch;
  margin: 14px 0;
}

.outcome-switch article {
  padding: 16px;
  border: 1px solid #c8d1cb;
  border-radius: 5px;
  background: #f3f5f3;
}

.outcome-switch article.is-changed {
  border: 2px solid #205c43;
  background: #dcefe4;
}

.outcome-switch > b {
  display: grid;
  place-items: center;
  color: #bd3b3b;
  font-size: 18px;
}

.outcome-switch span {
  display: block;
  margin-bottom: 7px;
  color: #66716a;
  font-size: 9px;
  font-weight: 900;
}

.outcome-switch strong {
  display: block;
  font-size: 15px;
  line-height: 1.5;
}

.what-if-verdict span {
  display: block;
  margin-bottom: 5px;
  color: #bd3b3b;
  font-size: 9px;
  font-weight: 900;
}

.change-direction {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0 8px;
}

.change-direction span {
  color: #66716a;
  font-size: 10px;
  font-weight: 900;
}

.change-direction strong {
  padding: 5px 9px;
  border-radius: 999px;
  background: #ecefed;
  color: #4d5751;
  font-size: 12px;
}

.what-if-result.is-closer .change-direction strong {
  background: #dcefe4;
  color: #17613f;
}

.what-if-result.is-farther .change-direction strong {
  background: #fae1da;
  color: #a34235;
}

.next-signal {
  margin: 14px 0;
  padding: 14px 16px;
  border-left: 4px solid #d2a91f;
  background: #fff9df;
}

.next-signal span {
  display: block;
  margin-bottom: 5px;
  color: #7d6200;
  font-size: 10px;
  font-weight: 900;
}

.next-signal p {
  margin: 0;
  color: #303833;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 750;
}

@media (max-width: 560px) {
  .result-shell {
    width: min(100% - 20px, 1280px);
    padding-top: 26px;
  }

  .result-topline .result-concern {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .outcome-switch {
    grid-template-columns: 1fr;
  }

  .outcome-switch > b {
    height: 28px;
    transform: rotate(90deg);
  }
}
