/* termination-agreement-template (build_termination_agreement_template.py). Every rule starts with .tf-termagr.
   Centrepiece: the agreement as the sheet both sides sign, with the end date, the ledger of outstanding matters and two signature lines. */
.tf-termagr .ta-in{max-width:1220px;margin:0 auto;padding:0 28px}
.tf-termagr h2{font-size:clamp(1.55rem,2.4vw,2rem);font-weight:700;letter-spacing:-.03em;line-height:1.14;margin:0}

.tf-termagr .ta-doc{background:linear-gradient(to right,var(--plum) 0,var(--plum) 44%,#fff0f4 44%);padding:68px 0 76px}
.tf-termagr .ta-doc-g{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:72px;align-items:start}
.tf-termagr .ta-tx{color:#fff;padding-top:8px}
.tf-termagr .ta-tx p{margin-top:12px;font-size:1.1rem;line-height:1.65;color:#fbeef2}
.tf-termagr .ta-h-fill{margin-top:48px}
.tf-termagr .ta-sheet{background:#fff;color:var(--ink);border-radius:3px;padding:42px 52px 46px;box-shadow:0 20px 50px rgba(74,13,44,.28)}
.tf-termagr .ta-title{font-family:var(--head);font-weight:700;font-size:1.7rem;letter-spacing:-.03em;margin-bottom:22px}
.tf-termagr .ta-row{display:flex;align-items:flex-end;gap:14px;padding:8px 0}
.tf-termagr .ta-row span{flex:none;font-weight:700;font-size:.98rem;color:var(--cd)}
.tf-termagr .ta-row i{flex:1;height:30px;border-bottom:1.5px solid var(--ink)}
.tf-termagr .ta-date i{flex:0 0 46px;height:38px;border:1.5px solid var(--ink);border-radius:5px}
.tf-termagr .ta-date .ta-y{flex-basis:84px}
.tf-termagr .ta-cl{list-style:none;margin:22px 0 0;padding:0;counter-reset:ta;border-top:2px solid var(--ink)}
.tf-termagr .ta-cl li{counter-increment:ta;position:relative;padding:12px 0 12px 40px;border-bottom:1px solid var(--line)}
.tf-termagr .ta-cl li:before{content:counter(ta);position:absolute;left:2px;top:12px;font-family:var(--head);font-weight:700;color:var(--c)}
.tf-termagr .ta-cl b{font-family:var(--head);font-size:1.03rem;letter-spacing:-.012em}
.tf-termagr .ta-cl .ta-open{background:#fff0f4;margin:0 -20px;padding:14px 20px 20px 60px;border-bottom:0;border-radius:8px}
.tf-termagr .ta-cl .ta-open:before{left:22px;top:14px}
.tf-termagr .ta-ledger{display:grid;grid-template-columns:1fr 1fr;margin-top:12px;background:#fff;border:1.5px solid var(--ink)}
.tf-termagr .ta-ledger>div+div{border-left:1.5px solid var(--ink)}
.tf-termagr .ta-ledger span{display:block;padding:8px 12px;font-weight:700;font-size:.9rem;border-bottom:1.5px solid var(--ink)}
.tf-termagr .ta-ledger i{display:block;height:30px;border-bottom:1px solid var(--line)}
.tf-termagr .ta-ledger i:last-child{border-bottom:0}
.tf-termagr .ta-sign{display:grid;grid-template-columns:1fr 1fr;gap:44px;margin-top:38px}
.tf-termagr .ta-sign i{display:block;height:44px;border-bottom:2px solid var(--ink)}
.tf-termagr .ta-sign span{display:block;margin-top:6px;font-size:.88rem;font-weight:700;color:var(--mute)}

.tf-termagr .ta-law{padding:80px 0 72px}
.tf-termagr .ta-law-g{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:40px 72px;align-items:start}
.tf-termagr .ta-law-tx p,.tf-termagr .ta-before p{margin-top:14px;font-size:1.04rem;line-height:1.7;color:#3d3b41;max-width:64ch}
.tf-termagr .ta-before h2{font-size:1.3rem}
.tf-termagr .ta-fork{grid-row:span 2;padding-top:6px}
.tf-termagr .ta-fork-q{display:inline-block;background:var(--ink);color:#fff;font-family:var(--head);font-weight:700;font-size:1.08rem;letter-spacing:-.012em;padding:13px 20px;border-radius:10px}
.tf-termagr .ta-fork ul{list-style:none;margin:0 0 0 28px;padding:6px 0 0;border-left:2px solid var(--ink)}
.tf-termagr .ta-fork li{position:relative;margin:16px 0 0 34px;padding:14px 18px;border:2px solid var(--ink);border-radius:10px;font-family:var(--head);font-weight:700;font-size:1.04rem;letter-spacing:-.012em}
.tf-termagr .ta-fork li:before{content:"";position:absolute;right:100%;top:50%;width:34px;border-top:2px solid var(--ink);margin-right:2px}
.tf-termagr .ta-fork li:last-child{background:var(--cfield);border-color:var(--cfield)}
.tf-termagr .ta-fork li:last-child:after{content:"";position:absolute;left:-40px;top:calc(50% + 1px);bottom:-4px;width:6px;background:#fff}

.tf-termagr .ta-get{padding:0 0 76px}
.tf-termagr .tpl{border:0;border-radius:16px;margin:0;max-width:none;background:var(--cfield)}
.tf-termagr .tplbar{display:none}
.tf-termagr .tplgate{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);background:var(--cfield);text-align:left;padding:12px}
.tf-termagr .tplgate>h3,.tf-termagr .tplgate>p,.tf-termagr .tplcta{grid-column:1;padding-inline:32px;color:var(--ink)}
.tf-termagr .tplgate>h3{padding-top:30px;font-size:1.6rem}
.tf-termagr .tplgate>p{max-width:none;margin-inline:0}
.tf-termagr .tplcta{justify-content:flex-start;padding-bottom:30px}
.tf-termagr .tplcta .btn{background:var(--ink);color:#fff;border-color:var(--ink);white-space:normal}
.tf-termagr .tplsignin,.tf-termagr .tplplans{color:var(--ink);text-decoration:underline}
.tf-termagr .tpldfy{grid-column:2;grid-row:1/span 4;margin:0;max-width:none;background:#fff;border-top:0;border-radius:10px;padding:28px 28px 26px;text-align:left}
.tf-termagr .tpldfy>p{max-width:none}
.tf-termagr .tpldfy form{display:grid;grid-template-columns:1fr;gap:10px}
.tf-termagr .ta-get:has(.tpldoc:not(.hidden-guide)) .tpl{background:#fff;border:2px solid var(--ink)}
.tf-termagr .ta-get:has(.tpldoc:not(.hidden-guide)) .tplbar{display:flex}

.tf-termagr .ta-ask{background:#fff0f4;padding:64px 0 68px;color:var(--ink)}
.tf-termagr .ta-qs{margin-top:24px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 40px;align-items:start}
.tf-termagr .ta-qs details.fq{border-bottom:0;border-top:3px solid var(--ink)}
.tf-termagr .ta-qs details.fq>summary{font-size:1.1rem;padding:18px 0}
.tf-termagr .ta-qs .fqa{padding-bottom:10px}
.tf-termagr .art-rel{padding-block:64px 72px}
.tf-termagr .art-rel>h2{margin-bottom:22px}
.tf-termagr .art-rel-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tf-termagr .art-rel-grid a,.tf-termagr .art-rel-grid a:first-child{flex-direction:row;align-items:center;min-height:0;padding:20px 24px;border:2px solid var(--ink);border-radius:10px;background:#fff}
.tf-termagr .art-rel-grid a:first-child{box-shadow:inset 8px 0 0 var(--cfield)}

@media(max-width:980px){
  .tf-termagr .ta-doc{background:linear-gradient(to bottom,var(--plum) 0,var(--plum) 330px,#fff0f4 330px)}
  .tf-termagr .ta-doc-g,.tf-termagr .ta-law-g{grid-template-columns:1fr;gap:40px}
  .tf-termagr .ta-fork{grid-row:auto}
  .tf-termagr .tplgate{grid-template-columns:1fr}
  .tf-termagr .tpldfy{grid-column:1;grid-row:auto}
  .tf-termagr .ta-qs{grid-template-columns:1fr}
}
@media(max-width:620px){
  .tf-termagr .ta-doc{padding:44px 0 56px;background:linear-gradient(to bottom,var(--plum) 0,var(--plum) 440px,#fff0f4 440px)}
  .tf-termagr .ta-sheet{padding:26px 20px 30px}
  .tf-termagr .ta-row{flex-wrap:wrap}
  .tf-termagr .ta-row:not(.ta-date) span{flex-basis:100%}
  .tf-termagr .ta-cl .ta-open{margin:0 -10px;padding:14px 10px 16px 40px}
  .tf-termagr .ta-cl .ta-open:before{left:12px}
  .tf-termagr .ta-ledger{grid-template-columns:1fr}
  .tf-termagr .ta-ledger>div+div{border-left:0;border-top:1.5px solid var(--ink)}
  .tf-termagr .ta-sign{gap:20px}
  .tf-termagr .tplgate>h3,.tf-termagr .tplgate>p,.tf-termagr .tplcta{padding-inline:14px}
  .tf-termagr .tpldfy{padding:22px 18px}
  .tf-termagr .art-rel-grid{grid-template-columns:1fr}
  .tf-termagr .ta-law{padding:52px 0}
}
.tf-termagr .ta-tx{align-self:center}
