/* letter-before-action-business-debtor-template (build_letter_before_action_business_debtor_template.py). Every rule starts with .th-lb.
   Centrepiece: the letter itself, with its three sections and the blanks to complete. */
.th-lb .lb-desk{background:#fff0f4;border-radius:var(--r);padding:44px 40px 48px;margin-top:22px}
.th-lb .lb-docp p{font-size:1.02rem;color:#3d3b41;margin-top:8px}
.th-lb .lb-letter{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 0 var(--line),0 18px 40px rgba(74,13,44,.14);padding:46px 44px 44px}
.th-lb .lb-slip{position:absolute;top:-14px;right:28px;width:190px;background:var(--ink);color:#fff;padding:14px 16px 16px;border-radius:3px;transform:rotate(2.5deg)}
.th-lb .lb-slip:before{content:"";position:absolute;top:-9px;left:24px;width:16px;height:34px;border:3px solid var(--cfield);border-radius:9px}
.th-lb .lb-slip p{font-family:var(--head);font-weight:700;font-size:.92rem;margin:0 0 6px 30px}
.th-lb .lb-slip div{display:grid;grid-template-columns:44px 1fr;align-items:end;font-size:.82rem}
.th-lb .lb-slip .lb-bl{border-bottom-color:#fff;height:22px}
.th-lb .lb-ph{display:block;width:max-content;max-width:100%;font-family:var(--body);font-weight:700;font-size:.9rem;line-height:1.3;color:var(--cd);background:#ffe1ea;border:1px dashed var(--c);border-radius:4px;padding:5px 10px}
.th-lb .lb-to{display:grid;gap:7px;max-width:calc(100% - 210px)}
.th-lb .lb-re{font-family:var(--head);font-weight:700;font-size:1.45rem;letter-spacing:-.025em;margin:30px 0 4px}
.th-lb .lb-sec{padding:20px 0 4px;border-top:1px solid var(--line);margin-top:18px}
.th-lb .lb-sec h3{margin-bottom:12px}
.th-lb .lb-inv{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:8px;margin-top:8px}
.th-lb .lb-inv .lb-ph{width:auto}
.th-lb .lb-inv.lb-add{grid-template-columns:2.3fr 1fr}
.th-lb .lb-row{margin-top:14px}
.th-lb .lb-sign{width:40%;margin-top:30px}
.th-lb .lb-fill{margin-top:52px}
.th-lb .lb-which{margin-top:52px}
.th-lb .lb-fork{display:grid;grid-template-columns:1fr 1fr;margin-top:20px;border-top:2px solid var(--ink)}
.th-lb .lb-arm{padding:20px 24px 4px 0}
.th-lb .lb-arm+.lb-arm{padding-left:28px;border-left:1px solid var(--line)}
.th-lb .lb-who{font-size:.95rem;color:var(--mute);font-weight:700}
.th-lb .lb-what{font-family:var(--head);font-weight:700;font-size:1.5rem;letter-spacing:-.025em;margin:4px 0 6px}
.th-lb .lb-this .lb-what{color:var(--cd)}
.th-lb .lb-what a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--cfield);text-underline-offset:4px}
.th-lb .lb-how{font-size:.98rem;line-height:1.55;color:#3d3b41}
.th-lb .lb-law{margin-top:52px;padding-top:22px;border-top:1px solid var(--line)}
.th-lb .lb-before{margin-top:30px;padding:20px 24px 22px;background:#fff0f4;border-radius:var(--r)}
@media(max-width:700px){
.th-lb .lb-desk{padding:30px 12px 24px}
.th-lb .lb-letter{padding:74px 18px 30px}
.th-lb .lb-slip{right:14px}
.th-lb .lb-to{max-width:100%}
.th-lb .lb-inv{grid-template-columns:1fr 1fr 1fr;gap:5px}
.th-lb .lb-ph{font-size:.8rem;padding:5px 6px}
.th-lb .lb-fork{grid-template-columns:1fr}
.th-lb .lb-arm+.lb-arm{padding-left:0;border-left:0;border-top:1px solid var(--line);margin-top:14px}
}

/* shared shape of the kept blocks */
.th-lb .lb-in{max-width:1220px;margin:0 auto;padding:0 28px}
.th-lb section[class^="lb-"] h2{font-size:clamp(1.5rem,2.3vw,2rem);font-weight:700;letter-spacing:-.028em;line-height:1.14;margin:0}
.th-lb section[class^="lb-"] h3{font-size:1.12rem;font-weight:700;letter-spacing:-.015em;margin:0}
.th-lb .lb-tx{font-size:1.04rem;line-height:1.68;color:#3d3b41;max-width:68ch}
.th-lb .lb-fill p{font-size:1.14rem;line-height:1.6;color:var(--ink);max-width:60ch;margin-top:12px}
.th-lb .lb-law p{font-size:.95rem;line-height:1.72;color:#3d3b41;max-width:74ch;margin-top:10px}
.th-lb .lb-before p{font-size:1rem;line-height:1.65;color:var(--ink);margin-top:8px;max-width:62ch}
.th-lb .lb-ln{display:block;height:7px;border-radius:2px;background:var(--line);margin-top:9px}
.th-lb .lb-ln.w20{width:20%}.th-lb .lb-ln.w30{width:30%}.th-lb .lb-ln.w40{width:40%}.th-lb .lb-ln.w50{width:50%}.th-lb .lb-ln.w60{width:60%}
.th-lb .lb-ln.w70{width:70%}.th-lb .lb-ln.w80{width:80%}.th-lb .lb-ln.w90{width:90%}.th-lb .lb-ln.w100{width:100%}
.th-lb .lb-bl{display:block;height:24px;border-bottom:1.5px solid var(--ink)}

/* the subscription box (#tpl), kept from the source */
.th-lb .lb-buy{min-width:0}
.th-lb .lb-buy .tpl{border:2px solid var(--ink);border-radius:14px;margin:0;max-width:none}
.th-lb .lb-buy .tplbar{display:none}
.th-lb .lb-buy .tpl:has(.tpldoc:not(.hidden-guide)) .tplbar{display:flex}
.th-lb .lb-buy .tplgate{background:var(--cfield);text-align:left;padding:30px 28px}
.th-lb .lb-buy .tplgate h3,.th-lb .lb-buy .tplgate>p{color:var(--ink)}
.th-lb .lb-buy .tplgate>p{margin-left:0}
.th-lb .lb-buy .tplgate h3{margin-bottom:12px}
.th-lb .lb-buy .tplcta{justify-content:flex-start}
.th-lb .lb-buy .tplcta .btn{background:var(--ink);color:#fff;border-color:var(--ink);max-width:100%;text-align:center}
.th-lb .lb-buy .tplsignin,.th-lb .lb-buy .tplplans{color:var(--ink);text-decoration:underline}
.th-lb .lb-buy .tpldfy{background:#fff;margin:24px -28px -30px;padding:26px 28px;border-top:2px solid var(--ink);text-align:left;max-width:none}
.th-lb .lb-buy .tpldfy form{display:grid;grid-template-columns:1fr;gap:10px}

/* questions */
.th-lb .lb-faq{padding:64px 0 60px;border-top:1px solid var(--line)}
.th-lb .lb-faq .lb-in{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,8fr);gap:48px;align-items:start}
.th-lb .lb-qs{border-top:2px solid var(--ink)}

/* related templates: the SEO-LINKS block, set as a plain list */
.th-lb .art-rel{padding-block:0 64px}
.th-lb .art-rel>h2{font-size:1.25rem;letter-spacing:-.02em;margin-bottom:12px}
.th-lb .art-rel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 48px;border-top:2px solid var(--ink)}
.th-lb .art-rel-grid a{flex-direction:row;align-items:center;min-height:0;padding:15px 2px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;font-size:1rem;gap:16px;transition:none}
.th-lb .art-rel-grid a:first-child{background:none;border-color:var(--line)}
.th-lb .art-rel-grid a:hover{transform:none;box-shadow:none;color:var(--c)}

@media(max-width:980px){
.th-lb .lb-faq .lb-in{grid-template-columns:1fr;gap:22px}
}
@media(max-width:700px){
.th-lb .lb-in{padding:0 18px}
.th-lb .lb-faq{padding:44px 0}
.th-lb .art-rel-grid{grid-template-columns:1fr}
.th-lb .art-rel{padding-block:0 44px}
.th-lb .lb-buy .tplgate{padding:24px 20px}
.th-lb .lb-buy .tplcta .btn{padding-inline:14px}
.th-lb .lb-buy .tpldfy{margin:22px -20px -24px;padding:22px 20px}
}

/* layout: reading column with the subscription box beside it */
.th-lb .lb-top{padding:52px 0 72px}
.th-lb .lb-cols{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,4.4fr);gap:60px;align-items:start}
.th-lb .lb-main{min-width:0}
.th-lb .lb-buy{position:sticky;top:24px}
.th-lb .lb-cols:has(.tpldoc:not(.hidden-guide)){grid-template-columns:1fr}
.th-lb .lb-cols:has(.tpldoc:not(.hidden-guide)) .lb-buy{position:static}
@media(max-width:980px){
.th-lb .lb-cols{grid-template-columns:1fr;gap:44px}
.th-lb .lb-buy{position:static}
}
@media(max-width:700px){
.th-lb .lb-top{padding:36px 0 48px}
}
