/* deed-of-assignment-of-debt-template (build_deed_of_assignment_of_debt_template.py). Every rule starts with .tg-deed.
   Centrepiece: the deed drawn with its schedule of the debt as a table and its signature and independent witness blocks, numbered in the order they are done. */
.tg-deed .tg-in{max-width:1220px;margin:0 auto;padding:0 28px}
.tg-deed .tg-in h2{font-size:clamp(1.55rem,2.3vw,2rem);font-weight:700;letter-spacing:-.028em;line-height:1.15;margin:0}
.tg-deed .tg-ln{display:block;height:7px;border-radius:2px;background:var(--line);margin-top:9px;width:92%}
.tg-deed .tg-ln.b{width:76%}
.tg-deed .tg-ln.c{width:58%}
.tg-deed .tg-ln.d{width:36%}
.tg-deed .tg-title{font-family:var(--head);font-weight:700;letter-spacing:-.02em;color:var(--ink)}
.tg-deed .tg-bl{font-size:.8rem;font-weight:700;color:var(--mute);line-height:1.2;padding:16px 0 5px;border-bottom:1.5px solid var(--ink)}
.tg-deed .tg-cap{font-size:.9rem;line-height:1.5;color:var(--mute)}

.tg-deed .tpl{border:2px solid var(--ink);border-radius:14px;margin:0;max-width:none}
.tg-deed .tplbar{display:none}
.tg-deed .tplgate h3,.tg-deed .tplgate>p{color:var(--ink)}
.tg-deed .tplgate>p{margin-left:0}
.tg-deed .tplgate .tplnote{color:var(--ink)}
.tg-deed .tplcta{justify-content:flex-start}
.tg-deed .tplcta .btn{background:var(--ink);color:#fff;border-color:var(--ink)}
.tg-deed .tplsignin,.tg-deed .tplplans{color:var(--ink);text-decoration:underline;font-weight:700;font-size:.95rem}
.tg-deed .tpldfy form{display:grid;grid-template-columns:1fr;gap:10px}

.tg-deed .tplgate{background:var(--cfield);text-align:left;padding:30px 28px}
.tg-deed .tpldfy{background:#fff;margin:24px -28px -30px;padding:26px 28px;border-top:2px solid var(--ink);text-align:left;max-width:none}
.tg-deed .tg-top{padding:56px 0 68px}
.tg-deed .tg-top>.tg-in{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:56px;align-items:start}
.tg-deed .tg-what>p{margin:8px 0 26px;color:#3d3b41;font-size:1.02rem}
.tg-deed .tg-get{position:sticky;top:24px;min-width:0}
.tg-deed .tg-top>.tg-in:has(.tpldoc:not(.hidden-guide)){grid-template-columns:1fr}
.tg-deed .tg-top>.tg-in:has(.tpldoc:not(.hidden-guide)) .tg-get{position:static}
.tg-deed .tg-top>.tg-in:has(.tpldoc:not(.hidden-guide)) .tplbar{display:flex}
@media (max-width:980px){
.tg-deed .tg-top>.tg-in{grid-template-columns:1fr;gap:40px}
.tg-deed .tg-get{position:static}
}

.tg-deed .tg-warn{margin-bottom:44px;padding:22px 26px 24px;border:2px solid var(--ink);border-left:10px solid var(--cfield);border-radius:12px}
.tg-deed .tg-warn h2{font-size:1.25rem}
.tg-deed .tg-warn p{margin-top:8px;font-size:1.06rem;line-height:1.6;color:#2a2629}
.tg-deed .tg-sheet{margin-right:12px;background:#fff;border:2px solid var(--ink);outline:2px solid var(--ink);outline-offset:-10px;border-radius:2px;box-shadow:12px 12px 0 var(--cfield);padding:50px 54px 48px}
.tg-deed .tg-sheet>.tg-title{font-size:1.7rem;text-align:center;line-height:1.2}
.tg-deed .tg-dated{width:220px;margin:8px auto 22px;text-align:left}
.tg-deed .tg-secs{list-style:none;counter-reset:s;display:grid;grid-template-columns:1fr 1fr;column-gap:40px}
.tg-deed .tg-secs>li{counter-increment:s;position:relative;padding:12px 0 12px 30px}
.tg-deed .tg-secs>li:before{content:counter(s) ".";position:absolute;left:0;top:12px;font-family:var(--head);font-weight:700;color:var(--cd)}
.tg-deed .tg-secs h3{font-size:1.02rem;font-weight:700}
.tg-deed .tg-secs>.tg-wide{grid-column:1/-1;margin-top:10px;padding-top:20px;border-top:2px solid var(--ink)}
.tg-deed .tg-secs>.tg-wide:before{top:20px}
.tg-deed .tg-sheet table{width:100%;margin-top:12px;border-collapse:collapse;border:2px solid var(--ink)}
.tg-deed .tg-sheet th{width:46%;text-align:left;font-size:.94rem;font-weight:700;padding:12px 14px;background:#fff0f4;border-bottom:1px solid var(--ink);border-right:2px solid var(--ink)}
.tg-deed .tg-sheet td{border-bottom:1px solid var(--ink)}
.tg-deed .tg-sheet tr:last-child th,.tg-deed .tg-sheet tr:last-child td{border-bottom:0}
.tg-deed .tg-exec{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:40px;margin-top:28px;padding-top:22px;border-top:2px solid var(--ink)}
.tg-deed .tg-exec h3{font-size:1rem;font-weight:700}
.tg-deed .tg-rule{display:block;height:34px;border-bottom:1.5px solid var(--ink)}
.tg-deed .tg-p1:after,.tg-deed .tg-p2:after,.tg-deed .tg-p3:after{position:absolute;right:0;top:10px;width:30px;height:30px;border-radius:50%;background:var(--cfield);color:var(--ink);font-family:var(--head);font-weight:700;font-size:.95rem;display:flex;align-items:center;justify-content:center}
.tg-deed .tg-p1:after{content:"1";top:16px}
.tg-deed .tg-p2:after{content:"2";top:-17px;right:auto;left:50%;margin-left:-15px}
.tg-deed .tg-p3:after{content:"3"}
.tg-deed .tg-fill{margin-top:48px}
.tg-deed .tg-fill p{margin-top:10px;font-size:1.08rem;line-height:1.65;color:#2a2629;max-width:60ch}
.tg-deed .tg-order{list-style:none;counter-reset:o;display:flex;flex-wrap:wrap;gap:10px 26px;margin-top:20px}
.tg-deed .tg-order li{counter-increment:o;display:flex;align-items:center;gap:10px;font-family:var(--head);font-weight:700;font-size:1rem}
.tg-deed .tg-order li:before{content:counter(o);width:30px;height:30px;border-radius:50%;background:var(--cfield);display:flex;align-items:center;justify-content:center;font-size:.95rem}

.tg-deed .tg-law{padding:64px 0}
.tg-deed .tg-law>.tg-in{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:56px;align-items:start}
.tg-deed .tg-law p{font-size:1.02rem;line-height:1.68;color:#3d3b41}
.tg-deed .tg-lawtx>p{margin-top:12px;max-width:68ch}
.tg-deed .tg-before{border:2px solid var(--ink);border-radius:14px;padding:26px 26px 28px;background:#fff}
.tg-deed .tg-before h2{font-size:1.25rem}
.tg-deed .tg-before p{margin-top:10px}
@media (max-width:980px){
.tg-deed .tg-law>.tg-in{grid-template-columns:1fr;gap:32px}
}

.tg-deed .tg-law{background:var(--ink)}
.tg-deed .tg-law .tg-lawtx h2,.tg-deed .tg-law .tg-lawtx>p{color:#fff}
.tg-deed .tg-limbs{list-style:none;counter-reset:l;display:grid;grid-template-columns:1fr 1fr;gap:0;margin-top:28px;border:2px solid var(--cfield);border-radius:12px;overflow:hidden;max-width:680px}
.tg-deed .tg-limbs li{counter-increment:l;display:flex;gap:14px;align-items:baseline;padding:18px 20px;color:#fff;font-family:var(--head);font-weight:700;font-size:1rem;line-height:1.35;border-bottom:1px solid rgba(255,255,255,.3)}
.tg-deed .tg-limbs li:nth-child(odd){border-right:1px solid rgba(255,255,255,.3)}
.tg-deed .tg-limbs li:nth-child(n+3){border-bottom:0}
.tg-deed .tg-limbs li:before{content:counter(l);color:var(--cfield);font-size:1.3rem}

.tg-deed .tg-faq{padding:64px 0 28px}
.tg-deed .tg-faq h2{margin-bottom:22px}
.tg-deed .tg-faq .faqs{max-width:900px;padding-block:0}

.tg-deed .art-rel{padding-block:44px 68px}
.tg-deed .art-rel>h2{font-size:1.4rem;margin-bottom:14px}
.tg-deed .art-rel-grid{border-top:2px solid var(--ink)}
.tg-deed .art-rel-grid a{flex-direction:row;align-items:center;min-height:0;padding:15px 4px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;font-size:1.02rem;gap:16px}
.tg-deed .art-rel-grid a:first-child{background:none;border-color:var(--line)}
.tg-deed .art-rel-grid a:hover{transform:none;box-shadow:none;color:var(--c)}

.tg-deed .art-rel-grid{display:block;max-width:900px}

@media (max-width:600px){
.tg-deed .tg-sheet{padding:34px 26px 34px}
.tg-deed .tg-sheet>.tg-title{font-size:1.35rem}
.tg-deed .tg-secs{grid-template-columns:1fr}
.tg-deed .tg-secs>li{padding-right:36px}
.tg-deed .tg-exec{grid-template-columns:1fr;gap:24px}
.tg-deed .tg-limbs{grid-template-columns:1fr}
.tg-deed .tg-limbs li:nth-child(odd){border-right:0}
.tg-deed .tg-limbs li:nth-child(3){border-bottom:1px solid rgba(255,255,255,.3)}
}
