/* BetterLife SG Family Trusts v39.3 — visual explanation and handoff polish */

/* Result: explain the insurance-to-standby comparison as a causal flow. */
.standby-explainer-v393 {
  margin-top: 0;
  padding: 16px;
  color: var(--v38-forest-900);
  background: linear-gradient(135deg, rgba(234, 215, 175, .3), rgba(255, 253, 248, .92));
  border: 1px solid rgba(21, 58, 48, .14);
  border-top: 0;
}

.standby-explainer-v393 > header {
  display: grid;
  gap: 3px;
}

.standby-explainer-v393 > header span {
  color: var(--v38-copper);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.standby-explainer-v393 > header strong {
  color: var(--v38-forest-900);
  font: 600 19px/1.15 var(--v38-serif);
}

.standby-flow-v393 {
  margin-top: 13px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1.12fr) 26px minmax(0, 1.08fr);
  align-items: stretch;
}

.standby-flow-v393 > div {
  min-width: 0;
  min-height: 76px;
  padding: 12px;
  display: grid;
  align-content: center;
  gap: 4px;
  background: rgba(255, 253, 248, .82);
  border: 1px solid rgba(21, 58, 48, .14);
}

.standby-flow-v393 small,
.standby-flow-v393 strong {
  display: block;
}

.standby-flow-v393 small {
  color: var(--v38-copper);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.standby-flow-v393 strong {
  color: var(--v38-forest-900);
  font-size: 13px;
  line-height: 1.36;
}

.flow-arrow-v393 {
  display: grid;
  place-items: center;
  color: var(--v38-gold);
}

.flow-arrow-v393 svg {
  width: 18px;
  height: 18px;
}

.why-detail-v393 {
  margin-top: 8px;
}

.why-detail-v393 summary,
.clarification-detail-v393 summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--v38-forest-800);
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 780;
}

.why-detail-v393 summary::-webkit-details-marker,
.clarification-detail-v393 summary::-webkit-details-marker {
  display: none;
}

.why-detail-v393 summary svg,
.clarification-detail-v393 summary svg {
  width: 17px;
  height: 17px;
  transition: transform 160ms ease;
}

.why-detail-v393[open] summary svg,
.clarification-detail-v393[open] summary svg {
  transform: rotate(180deg);
}

.why-detail-v393 p {
  margin: 0 0 6px;
  color: #50645b;
  font-size: 14px;
  line-height: 1.52;
}

.coordination-clarification-v392.clarification-detail-v393 {
  padding-top: 4px;
  padding-bottom: 8px;
}

.clarification-detail-v393 > p {
  margin: 0 0 6px;
}

/* Scenario: meaning-specific role and sequence diagrams. */
.role-map-v393 {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--v38-line);
  background: rgba(255, 253, 248, .75);
}

.role-node-v393 {
  position: relative;
  min-width: 0;
  min-height: 104px;
  padding: 13px 12px;
  display: grid;
  align-content: start;
  gap: 4px;
}

.role-node-v393 + .role-node-v393 {
  border-left: 1px solid var(--v38-line);
}

.role-node-v393:not(:last-child)::after {
  content: "";
  width: 8px;
  height: 8px;
  position: absolute;
  z-index: 2;
  top: 27px;
  right: -5px;
  background: var(--v38-gold);
  border: 2px solid var(--v38-paper);
  border-radius: 50%;
}

.role-node-v393 i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--v38-forest-800);
  border-radius: 50%;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.role-node-v393 strong {
  margin-top: 4px;
  color: var(--v38-forest-900);
  font: 600 17px/1.08 var(--v38-serif);
}

.role-node-v393 small {
  color: var(--v38-muted);
  font-size: 12px;
  line-height: 1.38;
}

.role-text-v393 {
  grid-column: 2;
  padding: 8px 11px;
  color: #51655c !important;
  background: rgba(234, 215, 175, .18);
  border-left: 2px solid var(--v38-gold);
  font-size: 12px !important;
}

.mechanism-timeline-v393 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 !important;
  border: 1px solid var(--v38-line);
  background: rgba(255, 253, 248, .76);
}

.scenario-panel .mechanism-timeline-v393 li {
  position: relative;
  min-height: 88px;
  padding: 13px 12px !important;
  display: grid;
  align-content: start;
  gap: 7px;
  background: transparent;
  font-size: 13px;
}

.scenario-panel .mechanism-timeline-v393 li + li {
  border-left: 1px solid var(--v38-line);
}

.scenario-panel .mechanism-timeline-v393 li::before {
  display: none;
}

.mechanism-timeline-v393 li:not(:last-child)::after {
  content: "";
  width: 14px;
  height: 1px;
  position: absolute;
  z-index: 2;
  top: 28px;
  right: -7px;
  background: var(--v38-gold);
}

.mechanism-timeline-v393 i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--v38-forest-900);
  background: var(--v38-gold-pale);
  border-radius: 50%;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.mechanism-timeline-v393 strong {
  color: var(--v38-forest-900);
  font: 600 16px/1.12 var(--v38-serif);
}

/* Brief: show the three-conversation map before the printable detail. */
.brief-overview-v393 {
  max-width: 560px;
  margin-top: 16px;
  padding: 15px 16px;
  color: #fff;
  background: var(--v38-forest-900);
}

.brief-overview-v393 > p {
  margin: 0 0 10px;
  color: var(--v38-gold-pale);
  font-size: 12px;
  font-weight: 830;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.brief-overview-v393 ol {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}

.brief-overview-v393 li {
  min-width: 0;
  padding: 2px 12px;
  display: grid;
  gap: 4px;
}

.brief-overview-v393 li:first-child {
  padding-left: 0;
}

.brief-overview-v393 li + li {
  border-left: 1px solid rgba(255, 255, 255, .18);
}

.brief-overview-v393 li span {
  color: var(--v38-gold-pale);
  font-size: 12px;
  font-weight: 850;
}

.brief-overview-v393 li strong {
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
}

.brief-actions-v393 {
  align-items: start;
}

.whatsapp-action-v393 {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.brief-actions .whatsapp-action-v393 a {
  width: 100%;
}

.whatsapp-action-v393 small {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  color: #53675e;
  font-size: 12px;
  line-height: 1.4;
}

.whatsapp-action-v393 small svg {
  width: 16px;
  height: 16px;
  color: var(--v38-forest-700);
}

/* Sources: group the reference library by the decision it supports. */
.source-drawer-v393 {
  gap: 18px;
  border-top: 0;
}

.source-drawer-v393 .privacy-notice {
  margin-bottom: 0;
}

.source-group-v393 {
  min-width: 0;
}

.source-group-v393 > header {
  padding: 0 0 9px;
  border-bottom: 2px solid var(--v38-gold);
}

.source-group-v393 h3 {
  margin: 0;
  color: var(--v38-forest-900);
  font: 600 24px/1.05 var(--v38-serif);
}

.source-group-v393 header p {
  margin: 4px 0 0;
  color: var(--v38-muted);
  font-size: 12px;
  line-height: 1.45;
}

.source-group-v393 > div {
  display: grid;
}

.source-group-v393 a {
  min-height: 72px;
}

/* A quiet destructive action, visibly separate from the primary journey action. */
.footer-result,
.footer-scenario,
.footer-brief {
  grid-template-columns: max-content max-content 1fr auto;
  gap: 18px;
}

.app-footer > button.restart-control-v393 {
  min-width: 0;
  min-height: 44px;
  justify-self: end;
  padding: 0 8px;
  color: var(--v38-copper);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(166, 77, 46, .35);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .footer-result,
  .footer-scenario,
  .footer-brief {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .footer-result > div:nth-child(2),
  .footer-scenario > div:nth-child(2),
  .footer-brief > div:nth-child(2) {
    display: none;
  }
}

@media (max-width: 820px) {
  .standby-flow-v393 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .standby-flow-v393 > div {
    min-height: 62px;
  }

  .flow-arrow-v393 {
    height: 24px;
    transform: rotate(90deg);
  }

  .role-map-v393,
  .mechanism-timeline-v393 {
    grid-template-columns: 1fr;
  }

  .role-node-v393,
  .scenario-panel .mechanism-timeline-v393 li {
    min-height: 74px;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    align-content: center;
    gap: 3px 10px;
  }

  .role-node-v393 + .role-node-v393,
  .scenario-panel .mechanism-timeline-v393 li + li {
    border-top: 1px solid var(--v38-line);
    border-left: 0;
  }

  .role-node-v393:not(:last-child)::after,
  .mechanism-timeline-v393 li:not(:last-child)::after {
    width: 1px;
    height: 14px;
    top: auto;
    right: auto;
    bottom: -7px;
    left: 26px;
  }

  .role-node-v393 i,
  .mechanism-timeline-v393 i {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .role-node-v393 strong,
  .role-node-v393 small,
  .mechanism-timeline-v393 strong {
    grid-column: 2;
  }

  .role-text-v393 {
    grid-column: 1;
  }

  .brief-overview-v393 {
    margin: 0 0 12px;
  }

  .brief-intro .brief-overview-v393 {
    display: block;
  }

  .brief-overview-v393 ol {
    grid-template-columns: 1fr;
  }

  .brief-overview-v393 li {
    min-height: 42px;
    padding: 7px 0;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
  }

  .brief-overview-v393 li + li {
    border-top: 1px solid rgba(255, 255, 255, .16);
    border-left: 0;
  }

  .footer-result,
  .footer-scenario,
  .footer-brief {
    grid-template-columns: auto 1fr;
    gap: 8px;
  }

  .footer-result > div:first-child,
  .footer-scenario > div:first-child,
  .footer-brief > div:first-child {
    display: none;
  }

  .app-footer > button.restart-control-v393 {
    justify-self: start;
    padding-inline: 0;
    font-size: 12px;
  }
}

@media (max-width: 520px) {
  .scenario-panel {
    grid-template-columns: 1fr;
  }

  .scenario-panel > span,
  .scenario-panel > p,
  .scenario-panel > div,
  .scenario-panel > ol {
    grid-column: 1;
  }

  .brief-actions-v393 {
    grid-template-columns: 1fr;
  }

  .footer-result > button:last-child,
  .footer-scenario > button:last-child,
  .footer-brief > button:last-child {
    min-width: 0;
  }
}

@media print {
  .brief-overview-v393 {
    display: none !important;
  }

  .whatsapp-action-v393 small {
    color: #40544b;
  }
}
