/* statutory-demand-individual-template (build_statutory_demand_individual_template.py). Every rule starts with .th-si.
   Centrepiece: the 21 days after service, with day 18 and day 21 marked. */
.th-si .si-days{background:var(--ink);color:#fff;padding:60px 0 64px}
.th-si .si-strip{margin-top:34px}
.th-si .si-cal{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(21,minmax(0,1fr));gap:4px;counter-reset:d}
.th-si .si-cal li{counter-increment:d;height:74px;border-radius:4px;background:#3a3338;display:flex;align-items:flex-end;justify-content:center;padding-bottom:7px;font-family:var(--head);font-weight:700;font-size:.82rem;color:#b9aeb4}
.th-si .si-cal li:before{content:counter(d)}
.th-si .si-cal .si-late{background:#2a2428}
.th-si .si-cal .si-d18{background:#fff;color:var(--ink);height:92px;margin-top:-18px}
.th-si .si-cal .si-d21{background:var(--cfield);color:var(--ink);height:92px;margin-top:-18px}
.th-si .si-marks{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,10fr) minmax(0,6fr);gap:24px;margin-top:18px}
.th-si .si-marks>div{padding-top:14px;border-top:3px solid #6b6066}
.th-si .si-marks b{display:block;font-family:var(--head);font-weight:700;font-size:1.3rem;letter-spacing:-.02em}
.th-si .si-marks span{display:block;font-size:.98rem;line-height:1.5;color:#e6dfe2;margin-top:4px;max-width:34ch}
.th-si .si-m18{text-align:right;border-top-color:#fff}
.th-si .si-m18 span{margin-left:auto}
.th-si .si-marks .si-m18{border-top-color:#fff}
.th-si .si-marks .si-m21{border-top-color:var(--cfield)}
.th-si .si-m21 b{color:var(--cfield)}
.th-si .si-body{padding:64px 0 20px}
.th-si .si-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:64px;align-items:start}
.th-si .si-warn{background:var(--cfield);border-radius:var(--r);padding:30px 34px 34px}
.th-si .si-fig{font-family:var(--head);font-weight:700;font-size:clamp(3.2rem,7vw,5.4rem);letter-spacing:-.05em;line-height:1;margin-bottom:18px}
.th-si .si-warn p:not(.si-fig){font-size:1.04rem;line-height:1.65;color:var(--ink);margin-top:12px}
.th-si .si-docp p{font-size:1.02rem;color:#3d3b41;margin-top:8px}
.th-si .si-sheet{margin-top:22px;border:2px solid var(--ink);border-radius:3px;padding:26px 30px 30px;background:#fff}
.th-si .si-title{font-family:var(--head);font-weight:700;font-size:1.3rem;letter-spacing:-.025em;padding-bottom:14px;border-bottom:2px solid var(--ink)}
.th-si .si-title span{display:block;font-family:var(--body);font-size:.88rem;letter-spacing:0;color:var(--mute);margin-top:3px}
.th-si .si-sec{padding:18px 0 8px}
.th-si .si-wn{margin-top:10px;padding:16px 18px 20px;border:3px solid var(--ink)}
.th-si .si-use{padding:52px 0 64px}
.th-si .si-before{margin-top:32px;padding-top:20px;border-top:1px solid var(--line)}
.th-si .si-law{padding-top:6px}
.th-si .si-law p{font-size:.98rem}
@media(max-width:980px){
.th-si .si-two{grid-template-columns:1fr;gap:38px}
}
@media(max-width:700px){
.th-si .si-days{padding:40px 0 44px}
.th-si .si-cal{grid-template-columns:repeat(7,minmax(0,1fr))}
.th-si .si-cal li{height:44px}
.th-si .si-cal .si-d18,.th-si .si-cal .si-d21{height:44px;margin-top:0}
.th-si .si-marks{grid-template-columns:1fr;gap:16px}
.th-si .si-m18{text-align:left}
.th-si .si-m18 span{margin-left:0}
.th-si .si-warn{padding:22px 18px 24px}
.th-si .si-sheet{padding:20px 16px 22px}
.th-si .si-body{padding:40px 0 8px}
.th-si .si-use{padding:38px 0 44px}
}

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

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

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

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

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

/* layout: the subscription box as a band of its own, plans on the left, drafting form on the right */
.th-si .si-get{padding:0 0 72px}
.th-si .si-buy .tplgate{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:48px;align-content:start;padding:34px 36px}
.th-si .si-buy .tplgate>*{grid-column:1}
.th-si .si-buy .tplgate .tpldfy{grid-column:2;grid-row:1/span 5;margin:-34px -36px -34px 0;padding:34px 36px;border-top:0;border-left:2px solid var(--ink)}
@media(max-width:860px){
.th-si .si-buy .tplgate{display:block;padding:24px 20px}
.th-si .si-buy .tplgate .tpldfy{margin:22px -20px -24px;padding:22px 20px;border-left:0;border-top:2px solid var(--ink)}
.th-si .si-get{padding-bottom:48px}
}
