/* payment-plan-agreement-template (build_payment_plan_agreement_template.py). Every rule starts with .th-pp.
   Centrepiece: the agreement with the debt stepping down by instalment and the two signatures. */
.th-pp .pp-docp p{font-size:1.02rem;color:#3d3b41;margin-top:8px}
.th-pp .pp-deed{margin-top:26px;border:2px solid var(--ink);border-radius:4px;background:#fff;box-shadow:12px 12px 0 #ffd3e0}
.th-pp .pp-title{font-family:var(--head);font-weight:700;font-size:1.4rem;letter-spacing:-.025em;text-align:center;padding:26px 20px 22px;border-bottom:2px solid var(--ink)}
.th-pp .pp-cl{display:grid;grid-template-columns:200px minmax(0,1fr);gap:20px;padding:18px 32px;border-bottom:1px solid var(--line);align-items:start}
.th-pp .pp-cl h3{font-size:1rem}
.th-pp .pp-body .pp-ln:first-child{margin-top:7px}
.th-pp .pp-body p{font-size:.98rem;line-height:1.5;color:var(--ink)}
.th-pp .pp-miss{background:#fff0f4}
.th-pp .pp-stairs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;align-items:end;padding:4px 0 6px}
.th-pp .pp-st{display:grid;font-size:.78rem;line-height:1.25}
.th-pp .pp-st i{display:block;background:var(--cfield);border-radius:3px 3px 0 0}
.th-pp .pp-s1 i{height:150px;background:var(--plum)}
.th-pp .pp-s2 i{height:112px}.th-pp .pp-s3 i{height:76px}.th-pp .pp-s4 i{height:42px}.th-pp .pp-s5 i{height:12px}
.th-pp .pp-st span{font-weight:700;padding-top:7px;border-top:2px solid var(--ink);min-height:2.9em}
.th-pp .pp-s1 span{margin-bottom:33px}
.th-pp .pp-st .pp-bl{height:14px;border-bottom-color:#8a8387}
.th-pp .pp-st em{font-style:normal;color:var(--mute);padding-top:3px}
.th-pp .pp-signs{display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:30px 32px 30px}
.th-pp .pp-signs .pp-bl{height:42px}
.th-pp .pp-signs span{display:block;font-size:.86rem;font-weight:700;margin-top:6px}
.th-pp .pp-debtor{position:relative}
.th-pp .pp-debtor .pp-bl{border-bottom:3px solid var(--cfield);background:#fff0f4}
.th-pp .pp-debtor p{font-size:.92rem;line-height:1.45;color:var(--cd);font-weight:700;margin-top:6px}
.th-pp .pp-fill{margin-top:56px}
.th-pp .pp-law{margin-top:40px;display:grid;grid-template-columns:200px minmax(0,1fr);gap:20px;padding-top:22px;border-top:2px solid var(--ink)}
.th-pp .pp-before{margin-top:24px;display:grid;grid-template-columns:200px minmax(0,1fr);gap:20px;padding-top:22px;border-top:1px solid var(--line)}
.th-pp .pp-law p,.th-pp .pp-before p{margin-top:0}
@media(max-width:700px){
.th-pp .pp-cl{grid-template-columns:1fr;gap:8px;padding:16px 18px}
.th-pp .pp-signs{grid-template-columns:1fr;padding:22px 18px}
.th-pp .pp-st{font-size:.7rem}
.th-pp .pp-s1 i{height:110px}.th-pp .pp-s2 i{height:84px}.th-pp .pp-s3 i{height:58px}.th-pp .pp-s4 i{height:32px}
.th-pp .pp-law,.th-pp .pp-before{grid-template-columns:1fr;gap:8px}
.th-pp .pp-deed{box-shadow:7px 7px 0 #ffd3e0}
}

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

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

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

/* related templates: the SEO-LINKS block, set as a plain list */
.th-pp .art-rel{padding-block:0 64px}
.th-pp .art-rel>h2{font-size:1.25rem;letter-spacing:-.02em;margin-bottom:12px}
.th-pp .art-rel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 48px;border-top:2px solid var(--ink)}
.th-pp .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-pp .art-rel-grid a:first-child{background:none;border-color:var(--line)}
.th-pp .art-rel-grid a:hover{transform:none;box-shadow:none;color:var(--c)}

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

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