.study-figure .profit-scale,
.study-figure .profit-row {
  display: grid;
  grid-template-columns: clamp(83px, 14vw, 140px) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.study-figure .profit-scale {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .78rem;
}
.study-figure .profit-scale > span { display: flex; align-items: center; gap: 4px; }
.study-figure .scale-rule { height: 1px; flex: 1; background: var(--line); }
.study-figure .profit-row { margin-bottom: 8px; }
.study-figure .profit-label { display: grid; line-height: 1.3; font-size: .9rem; }
.study-figure .profit-label b { white-space: nowrap; }
.study-figure .profit-label strong {
  font: 800 clamp(1.5rem, 4vw, 2.45rem)/1.1 var(--sans);
  color: var(--teal);
}
.study-figure .profit-label small {
  font: 700 .75rem/1 var(--sans);
  margin-left: 3px;
}
.study-figure .profit-segments { display: grid; height: clamp(42px, 6.5vw, 69px); }
.study-figure .profit-segments span {
  display: grid;
  place-content: center;
  border: 1px solid var(--teal);
  text-align: center;
  font-size: clamp(.9rem, 2vw, 1.2rem);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  background: var(--mint);
}
.study-figure .gross-segments { grid-template-columns: 20fr 30fr; }
.study-figure .operating-segments { grid-template-columns: 8fr 12fr 30fr; }
.study-figure .operating-segments span:first-child { background: var(--yellow); }
.study-figure .profit-segments .excluded {
  border-left: 0;
  border-color: var(--wine);
  color: var(--wine);
  background: repeating-linear-gradient(135deg, var(--pink) 0 7px, #fff0f5 7px 12px);
}
.study-figure .profit-segments small { font-size: clamp(.66rem, 1.3vw, .85rem); }
.study-figure .profit-segments .prior { border: 1px dashed var(--line); border-left: 0; background: transparent; }

.study-figure .join-demonstration { display: grid; grid-template-columns: minmax(0, 1.62fr) 90px minmax(0, 1fr); gap: 11px; align-items: center; }
.study-figure .join-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.study-figure .join-demonstration :is(th, td) { border: 1px solid var(--line); padding: 5px 2px; font-size: .875rem; }
.study-figure .join-demonstration th { background: #edece3; }
.study-figure .join-demonstration .join-unmatched { background: var(--pink); color: var(--wine); }
.study-figure .join-unmatched small { margin-inline-start: 3px; font-size: .8125rem; }
.study-figure .joined-table th { background: var(--mint); }
.study-figure .match-p01 { color: var(--teal); background: var(--mint); font-weight: 800; }
.study-figure .match-p03 { background: #fff0a4; font-weight: 800; }
.study-figure .join-bridge { text-align: center; color: var(--teal); font-size: .8rem; }
.study-figure .join-bridge .flow-arrow { margin-top: 5px; }

.study-figure .tls-address { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 15px; border: 1px solid var(--line); background: var(--white); padding: 5px 10px; }
.study-figure .tls-address code { font-size: 1rem; }
.study-figure .tls-address b { color: var(--teal); border-bottom: 2px solid; }
.study-figure .tls-address span { font-size: .82rem; color: var(--teal); }
.study-figure .tls-phase {
  margin-top: .65rem;
  padding: .45rem clamp(.5rem, 2vw, 1.15rem) .65rem;
  border-top: 2px solid var(--teal);
  background: var(--stock);
}
.study-figure .tls-phase h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.tls-assurance { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:.8rem;margin:1rem 0; }
.tls-assurance section { display:grid;grid-template-rows:auto auto 1fr auto;justify-items:center;padding:.6rem;text-align:center;border-top:4px solid var(--teal);background:var(--white); }
.tls-assurance section:last-child { border-top-color:var(--wine); }
.tls-assurance img { width:4.5rem;height:auto; }
.tls-assurance h3,.tls-assurance p { margin:.1rem 0; }
.tls-assurance strong { margin-top:.5rem;background:var(--mint);padding:.15rem .4rem;border-radius:.25rem; }
.tls-assurance section:last-child strong { background:var(--yellow); }
.study-figure .tls-issuance { background: #fff5cf; border-top-color: #a87219; }
.study-figure .tls-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(.3rem, 1vw, .7rem);
  text-align: center;
}
.tls-party { display: grid; justify-items: center; align-content: start; }
.tls-party img { width: clamp(48px, 7vw, 85px); height: auto; }
.tls-party span, .tls-transfer span { font-size: .9rem; }
.tls-transfer { color: var(--teal); }
.tls-transfer .flow-arrow { display: block; width: 100%; margin: .2rem 0; }
.tls-transfer .back { transform: scaleX(-1); }
.tls-document { display: flex; align-items: center; justify-content: center; gap: .3rem; }
.tls-document img { width: clamp(30px, 4vw, 48px); height: auto; }
.study-figure .tls-check { margin: .45rem 0 0; padding-top: .35rem; border-top: 1px solid var(--line); font-size: .9rem; }
.study-figure .tls-channel { background: #e0f2e8; }
.tls-exchange { display: grid; justify-items: stretch; }
.tls-exchange > b:not(:first-child) { margin-top: .3rem; }
.study-figure .tls-channel p { margin: .35rem 0 0; font-size: .9rem; }

@media (max-width: 660px) {
  .study-figure .join-demonstration { grid-template-columns: 1fr; gap: 7px; }
  .study-figure .join-bridge { display: flex; justify-content: center; align-items: center; gap: 7px; }
  .study-figure .join-bridge .flow-arrow { transform: rotate(90deg); width: 12px; margin: 0; }
  .study-figure .join-demonstration :is(th, td) { padding-block: 3px; }
}
