/* The offer, escrow file and final accounting belong to the same team deal. */
.role-teams .team-offer#chapter-4 {
  --spread-bg:#dfcfb6;
  --spread-ink:#302922;
  --spread-copy:#51473a;
  --spread-accent:#6c5037;
  background:linear-gradient(118deg,#eee4d5 0%,var(--spread-bg) 70%,#d5c1a5 100%);
}
.role-teams .team-escrow#chapter-5 {
  --spread-bg:#f1ebe1;
  --spread-ink:#302b25;
  --spread-copy:#595347;
  --spread-accent:#77604b;
}
.role-teams .team-commission#chapter-7 {
  --spread-bg:#e5e7dd;
  --spread-ink:#26352f;
  --spread-copy:#48564e;
  --spread-accent:#52654e;
}
.role-teams .team-beyond#chapter-8 {
  --spread-bg:#1e2923;
  --spread-ink:#f8f3e8;
  --spread-copy:#dadacf;
  --spread-accent:#dcc9ad;
}
.role-teams .team-deal-spread:is(#chapter-4,#chapter-5,#chapter-7,#chapter-8) .journey-inner {
  width:min(88%,1190px);
  display:grid;
  grid-template-columns:minmax(0,.8fr) minmax(0,1.15fr);
  gap:clamp(44px,6vw,100px);
  align-items:center;
  padding-block:clamp(40px,5.3vw,88px);
}
.role-teams .team-deal-spread:is(#chapter-4,#chapter-5,#chapter-7,#chapter-8) .journey-copy {text-align:left;padding:0;max-width:100%;}
.role-teams .team-deal-spread:is(#chapter-4,#chapter-5,#chapter-7,#chapter-8) .journey-copy h2 {
  max-width:15ch;margin-inline:0;font-size:clamp(41px,4.3vw,69px);line-height:1.01;
}
.role-teams .team-deal-spread:is(#chapter-4,#chapter-5,#chapter-7,#chapter-8) .journey-copy h2 em {display:block;}
.role-teams .team-deal-spread:is(#chapter-4,#chapter-5,#chapter-7,#chapter-8) .journey-copy>p:not(.role-label) {margin-inline:0;max-width:40ch;}
.role-teams .team-deal-spread:is(#chapter-4,#chapter-5,#chapter-7,#chapter-8) :is(.role-label,.journey-switch) {justify-content:flex-start;}
.team-deal-spread .journey-switch {gap:0 clamp(13px,1.6vw,22px);}
.team-offer-terms {display:flex;gap:clamp(24px,3.8vw,58px);border-top:1px solid #aa9780;margin:24px 0 0;padding:14px 0 0;}
.team-offer-terms dt,.team-production-summary small {font:450 11px/1.5 Inter,Arial,sans-serif;}
.team-offer-terms dd {margin:3px 0 0;color:var(--spread-ink);font:300 clamp(23px,2.4vw,36px)/1.2 Ivar,Georgia,serif;}
.team-offer .sr-email-stage {width:100%;}
.team-lead-line {display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:14px;row-gap:2px;margin:0;padding:13px 2px 2px;text-align:left;color:var(--spread-ink);}
.team-lead-line>span {grid-row:span 2;align-self:start;display:flex;align-items:center;gap:6px;margin-top:2px;color:var(--spread-accent);font:500 11px/1.5 Inter,Arial,sans-serif;}
.team-lead-line>span::before {content:'';width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:currentColor;}
.team-lead-line strong {font:500 14px/1.4 Inter,Arial,sans-serif;}
.team-lead-line small {color:var(--spread-copy);font:400 12px/1.4 Inter,Arial,sans-serif;}
.role-teams #chapter-5.team-escrow .journey-inner {grid-template-columns:minmax(0,1.15fr) minmax(0,.8fr);}
.team-escrow .journey-product {grid-area:1 / 1;}
.team-escrow .journey-copy {grid-area:1 / 2;}
.team-escrow .sr-agreement-stage {max-width:570px;}
.team-escrow .team-lead-line {border-top:1px solid #d9cdbd;padding:13px 0 15px;}
.team-commission .ledger-stage {max-width:580px;width:100%;margin-inline:auto;}
.team-commission .listing-ledger,.team-calculation {padding:clamp(17px,2.2vw,32px);color:#2f392f;border:1px solid #bcc3b2;border-radius:7px;background:#f9f7ee;box-shadow:0 24px 47px -38px #273a31a3;}
.team-commission .ledger-feature {padding:16px 0;}
.team-commission .ledger-payees li {padding:6px 0;}
.team-commission .ledger-payee-net {font-size:clamp(21px,2vw,27px);}
.team-commission .ledger-net {color:#304539;}
.team-commission .ledger-open {display:inline-flex;align-items:center;gap:8px;min-height:44px;}
.team-commission .role-future {border-color:#a5b2a2;}
.team-commission .role-future summary {color:#364438;}
.team-commission .role-future p {color:#49584d;}
.team-commission .ledger-stage [data-panel="checklist"] .journey-open {background:#e4d6c5;}
.team-commission .ledger-stage [data-panel="checklist"] .journey-open img {max-height:350px;object-fit:contain;background:#e4d6c5;}
.team-commission .ledger-stage [data-panel="checklist"] .journey-frame-foot {background:#f9f7ee;}
.team-calculation {font-variant-numeric:tabular-nums;}
.team-calc-mast,.team-production-mast {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 12px;border-bottom:1px solid #d3d3c4;color:#596552;font:500 10px/1.5 Inter,Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase;}
.team-calc-property {display:flex;align-items:center;gap:10px;margin:14px 0 18px;}
.team-calc-property img {width:46px;height:34px;object-fit:cover;border-radius:3px;}
.team-calc-property strong {font:500 14px/1.3 Inter,Arial,sans-serif;}
.team-calc-title {font:500 12px/1.4 Inter,Arial,sans-serif;color:#52634f;}
.team-calc-amount {display:block;margin:3px 0;font:300 clamp(46px,5.2vw,80px)/1.03 Ivar,Georgia,serif;letter-spacing:-.045em;}
.team-calc-sub,.team-calc-rows {margin:0;font:400 13px/1.5 Inter,Arial,sans-serif;color:#485645;}
.team-allocation-bar {height:5px;border-radius:100px;margin:21px 0 12px;background:#62765f;transform-origin:left center;}
.team-allocation-bar.pool {background:linear-gradient(90deg,#62765f 0 79.6%,#f9f7ee 79.6% 80.4%,#b49d7e 80.4%);}
.team-calc-rows>div {display:flex;align-items:baseline;justify-content:space-between;gap:8px;border-bottom:1px solid #d3d3c4;padding:8px 0;}
.team-calc-rows dd {margin:0;color:#283c32;font:400 clamp(19px,1.9vw,25px)/1.1 Ivar,Georgia,serif;}
.team-beyond .team-production {width:100%;max-width:575px;margin-inline:auto;padding:clamp(15px,2.1vw,30px);border:1px solid #687368;border-radius:8px;background:#29362e;color:#fff8ea;box-shadow:0 25px 55px -36px #0008;}
.team-production-mast {color:#e3dacc;border-color:#5c6a60;}
.team-production .team-final-property {display:block;width:100%;height:clamp(100px,14vw,200px);object-fit:cover;object-position:50% 53%;margin:13px 0 0;border-radius:3px;}
.team-production-summary {text-align:left;padding:17px 0 13px;}
.team-production-summary span,.team-archive-link small {font:400 12px/1.5 Inter,Arial,sans-serif;}
.team-production-summary strong {display:block;margin:2px 0;font:300 clamp(43px,4.7vw,70px)/1 Ivar,Georgia,serif;letter-spacing:-.04em;}
.team-production-summary small {color:#d1d9ca;}
.team-archive-link {display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #607166;padding:14px 0 2px;min-height:44px;text-decoration:none;color:#f2e7d4;}
.team-archive-link strong,.team-archive-link small {display:block;}
.team-archive-link strong {font:500 14px/1.5 Inter,Arial,sans-serif;}
.team-archive-link small {color:#d1d9ca;}
.team-archive-link:hover strong {text-decoration:underline;text-underline-offset:4px;}
.team-beyond .journey-callback {max-width:400px;border-color:#637469;}

@media(max-width:850px) {
  .role-teams .team-deal-spread:is(#chapter-4,#chapter-5,#chapter-7,#chapter-8) .journey-inner {
    width:min(90%,640px);grid-template-columns:minmax(0,1fr);gap:clamp(17px,3.8vw,33px);padding-block:clamp(25px,5vw,44px);
  }
  .team-escrow .journey-product,.team-escrow .journey-copy {grid-area:auto;}
  .role-teams .team-deal-spread:is(#chapter-4,#chapter-5,#chapter-7,#chapter-8) .journey-copy h2 {max-width:24ch;font-size:clamp(33px,6.1vw,51px);}
  .role-teams .team-deal-spread:is(#chapter-4,#chapter-5,#chapter-7,#chapter-8) .journey-copy h2 em {display:inline;}
  .role-teams .team-deal-spread:is(#chapter-4,#chapter-5,#chapter-7,#chapter-8) .journey-copy>p:not(.role-label) {max-width:55ch;}
  .team-offer-terms {margin-top:13px;padding-top:7px;}
  .team-escrow .sr-agreement-stage,.team-commission .ledger-stage,.team-beyond .team-production {max-width:none;}
}
@media(max-width:650px) {
  .role-teams .team-deal-spread:is(#chapter-4,#chapter-5,#chapter-7,#chapter-8) .journey-copy>p:not(.role-label) {font-size:14px;line-height:1.45;margin-top:8px;}
  .team-deal-spread .journey-copy .role-label {font-size:9px;margin-bottom:8px;}
  .team-offer-terms dd {font-size:21px;}
  .team-deal-spread .journey-switch {margin-bottom:7px;gap:0 13px;}
  .team-deal-spread .journey-switch button {font-size:12px;}
  .team-lead-line {padding-top:9px;column-gap:9px;}
  .team-lead-line strong {font-size:12px;}
  .team-lead-line small,.team-lead-line>span {font-size:11px;}
  .team-commission .ledger-stage [data-panel="checklist"] .journey-open img {max-height:270px;}
  .team-commission .role-future {margin-top:6px;}
  .team-commission .ledger-feature {padding:10px 0;}
  .team-commission .ledger-payees li {padding:5px 0;}
  .team-commission .ledger-band {margin-bottom:8px;}
  .team-commission .ledger-reconciled {padding-bottom:2px;}
  .team-commission .journey-copy>.role-file-link {margin-top:0;}
}
@media(prefers-reduced-motion:no-preference) {
  .team-commission [data-selected] :is(.team-allocation-bar,.ledger-band) {animation:team-calculation-reveal .36s cubic-bezier(.17,.65,.3,1);transform-origin:left center;}
  @keyframes team-calculation-reveal {from{transform:scaleX(.11)} to{transform:scaleX(1)}}
}
