/* Relationship simulator additions */

.compose-screen .intro-copy .eyebrow {
  color: #bd3b3b;
}

.compose-screen .intro-copy h1 {
  max-width: 760px;
}

.decision-form textarea:focus,
.confirm-form input:focus,
.confirm-form textarea:focus {
  border-color: #bd3b3b;
  box-shadow: 0 0 0 3px rgba(189, 59, 59, 0.12);
}

.mirror-moment {
  margin: 24px 0 18px;
  padding: 24px;
  border: 1px solid #252b28;
  border-left: 6px solid #efc34a;
  border-radius: 6px;
  background: #10221a;
  color: #fff;
  box-shadow: 8px 8px 0 #d9e3dc;
}

.mirror-moment > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.mirror-moment > div span,
.mirror-moment > div b {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.mirror-moment > div span {
  padding: 6px 9px;
  border: 1px solid #efc34a;
  color: #efc34a;
}

.mirror-moment > div b {
  color: #a9bab1;
}

.mirror-moment h3 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(22px, 3.5vw, 34px);
  line-height: 1.32;
  letter-spacing: 0;
  word-break: keep-all;
}

.mirror-moment p {
  margin: 14px 0 0;
  color: #c8d4cd;
  font-size: 15px;
  line-height: 1.7;
}

.decisive-question {
  margin: 26px 0;
  padding: 22px;
  border: 2px solid #202421;
  border-radius: 6px;
  background: #fffdf6;
}

.decisive-question .eyebrow {
  color: #bd3b3b;
}

.decisive-question h3 {
  margin: 8px 0 18px;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: 0;
}

.decisive-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.decisive-options button {
  position: relative;
  min-height: 70px;
  padding: 14px 16px 14px 46px;
  border: 1px solid #aeb8b2;
  border-radius: 5px;
  background: #fff;
  color: #222522;
  text-align: left;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  cursor: pointer;
}

.decisive-options button span {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 18px;
  height: 18px;
  border: 2px solid #819088;
  border-radius: 50%;
  transform: translateY(-50%);
}

.decisive-options button:hover {
  border-color: #35795b;
  background: #f1f8f4;
}

.decisive-options button.is-selected {
  border-color: #205c43;
  background: #dcefe4;
  box-shadow: inset 0 0 0 1px #205c43;
}

.decisive-options button.is-selected span {
  border: 5px solid #205c43;
  background: #fff;
}

.decisive-question small {
  display: block;
  margin-top: 11px;
  color: #737c77;
  font-size: 12px;
}

.trust-engine {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid #1e2923;
  border-radius: 7px;
  background: #f7faf8;
  box-shadow: 7px 7px 0 #d8e2dc;
}

.trust-engine-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 38px;
  align-items: end;
  padding: 26px;
  border-bottom: 1px solid #b9c7bf;
  background: #10221a;
  color: #fff;
}

.trust-engine-head .eyebrow {
  color: #efc34a;
}

.trust-engine-head h2 {
  margin: 5px 0 0;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

.trust-engine-head > p {
  margin: 0;
  color: #c2d0c8;
  font-size: 14px;
  line-height: 1.7;
}

.engine-pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 20px 26px;
  border-bottom: 1px solid #cad4ce;
  background: #edf3ef;
}

.engine-pipeline span {
  min-width: 0;
  font-size: 12px;
  color: #57635c;
}

.engine-pipeline span b {
  display: block;
  margin-bottom: 4px;
  color: #205c43;
  font-size: 10px;
}

.engine-pipeline i {
  color: #7e8a83;
  font-style: normal;
}

.engine-source-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 1px;
  border-bottom: 1px solid #c9d3cd;
  background: #c9d3cd;
}

.engine-source-grid > section {
  padding: 24px 26px;
  background: #fff;
}

.engine-source-grid > section > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.engine-source-grid span,
.engine-section-title span,
.causal-route > span,
.engine-conclusion > span,
.flip-conditions > span {
  color: #35795b;
  font-size: 10px;
  font-weight: 900;
}

.engine-source-grid b {
  font-size: 16px;
}

.engine-source-grid ul,
.flip-conditions ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.engine-source-grid li,
.flip-conditions li {
  position: relative;
  padding-left: 16px;
  color: #3f4742;
  font-size: 13px;
  line-height: 1.6;
}

.observed-facts li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 7px;
  height: 7px;
  background: #35795b;
}

.engine-unknowns {
  background: #fff7e0 !important;
}

.engine-unknowns span {
  color: #a05f19;
}

.engine-unknowns li::before {
  content: "?";
  position: absolute;
  left: 0;
  color: #a05f19;
  font-weight: 900;
}

.pattern-section,
.variable-section {
  padding: 26px;
  border-bottom: 1px solid #c9d3cd;
}

.engine-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.engine-section-title h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pattern-grid article {
  padding: 17px;
  border: 1px solid #bdc9c2;
  border-radius: 5px;
  background: #fff;
}

.pattern-grid article > span {
  color: #bd3b3b;
  font-size: 9px;
  font-weight: 900;
}

.pattern-grid h4,
.variable-grid h4 {
  margin: 6px 0 10px;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0;
}

.pattern-grid p {
  margin: 7px 0 0;
  color: #56615b;
  font-size: 12px;
  line-height: 1.55;
}

.pattern-grid p b {
  display: inline-block;
  min-width: 58px;
  color: #252a27;
}

.variable-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.variable-grid article {
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border-left: 3px solid #efc34a;
  background: #fff;
}

.variable-grid article > span {
  color: #a26f00;
  font-size: 11px;
  font-weight: 900;
}

.variable-grid h4 {
  margin-top: 0;
}

.variable-grid p,
.variable-grid small {
  margin: 0;
  color: #3e4742;
  font-size: 12px;
  line-height: 1.5;
}

.variable-grid small {
  display: block;
  margin-top: 8px;
  color: #77817b;
}

.causal-route {
  padding: 24px 26px;
  border-bottom: 1px solid #c9d3cd;
  background: #eef5f1;
}

.causal-route > div {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.causal-route div span {
  min-width: 0;
  padding: 11px;
  border: 1px solid #adbbb3;
  background: #fff;
  color: #354039;
  font-size: 12px;
  line-height: 1.45;
}

.causal-route div span b {
  display: block;
  margin-bottom: 4px;
  color: #35795b;
  font-size: 9px;
}

.causal-route div i {
  color: #65726b;
  font-style: normal;
}

.engine-conclusion {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: start;
  padding: 22px 26px;
  background: #10221a;
  color: #fff;
}

.engine-conclusion span {
  color: #efc34a;
}

.engine-conclusion p {
  margin: 0;
  color: #edf3ef;
  font-size: 14px;
  line-height: 1.65;
}

.engine-unlock {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 17px 26px;
  border: 0;
  border-top: 1px solid #344b40;
  background: #183528;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.engine-unlock:hover {
  background: #205c43;
}

.flip-conditions {
  padding: 20px 26px;
  background: #fff7e0;
}

.flip-conditions ul {
  margin-top: 10px;
}

.flip-conditions li::before {
  content: "↳";
  position: absolute;
  left: 0;
  color: #a05f19;
}

.engine-fallback {
  padding: 24px;
  border: 1px solid #cad4ce;
  background: #fff;
}

@media (max-width: 760px) {
  .mirror-moment {
    padding: 20px;
    box-shadow: 5px 5px 0 #d9e3dc;
  }

  .decisive-options,
  .trust-engine-head,
  .engine-source-grid,
  .pattern-grid,
  .variable-grid {
    grid-template-columns: 1fr;
  }

  .decisive-options button {
    min-height: 62px;
  }

  .trust-engine {
    box-shadow: 4px 4px 0 #d8e2dc;
  }

  .trust-engine-head {
    gap: 14px;
    padding: 22px 18px;
  }

  .trust-engine-head h2 {
    font-size: 24px;
  }

  .engine-pipeline {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 18px;
  }

  .engine-pipeline span {
    padding: 9px 11px;
    border-left: 3px solid #35795b;
    background: #fff;
  }

  .engine-pipeline > i {
    display: none;
  }

  .engine-source-grid > section,
  .pattern-section,
  .variable-section,
  .causal-route {
    padding: 20px 18px;
  }

  .engine-section-title {
    display: block;
  }

  .engine-section-title h3 {
    margin-top: 5px;
  }

  .causal-route > div {
    grid-template-columns: 1fr;
  }

  .causal-route div i {
    text-align: center;
    transform: rotate(90deg);
  }

  .engine-conclusion {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 20px 18px;
  }

  .engine-unlock {
    padding: 16px 18px;
    text-align: left;
  }
}
