/* bill-of-sale-template (build_bill_of_sale_template.py). Every rule starts with .ta-bos.
   Centrepiece: the bill of sale as a filled-in-by-hand form: goods table, price, handover date, two signatures, and the buyer's copy behind it. */
.ta-bos .bos-in{max-width:1220px;margin:0 auto;padding:0 28px}
.ta-bos section[class^="bos-"] h2{font-size:clamp(1.6rem,2.4vw,2.1rem);font-weight:700;letter-spacing:-.03em;line-height:1.14;margin:0;max-width:none}

.ta-bos .bos-doc{padding:64px 0 84px;background:linear-gradient(90deg,#fff0f4 0,#fff0f4 46%,#fff 46%)}
.ta-bos .bos-doc .bos-in{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:72px;align-items:start}
.ta-bos .bos-paper{position:relative;padding:0 0 46px 0;margin-right:22px}
.ta-bos .bos-sheet{position:relative;z-index:1;background:#fff;border:2px solid var(--ink);border-radius:3px;padding:38px 42px 36px}
.ta-bos .bos-copy{position:absolute;z-index:0;left:22px;right:-22px;top:22px;bottom:0;margin:0;background:var(--cfield);border:2px solid var(--ink);border-radius:3px;display:flex;align-items:flex-end;justify-content:flex-end;padding:0 18px 10px;font-family:var(--head);font-weight:700;font-size:.92rem;color:var(--ink)}
.ta-bos .bos-title{margin:0;font-family:var(--head);font-weight:700;font-size:1.6rem;letter-spacing:-.03em;padding-bottom:16px;border-bottom:4px solid var(--ink)}
.ta-bos .bos-cl{list-style:none;margin:0;padding:0;counter-reset:bos}
.ta-bos .bos-cl>li{counter-increment:bos;padding-top:22px}
.ta-bos .bos-cl b{display:block;font-family:var(--head);font-weight:700;font-size:1.05rem;letter-spacing:-.012em}
.ta-bos .bos-cl b:before{content:counter(bos) ". ";color:var(--c)}
.ta-bos .bos-tbl{display:grid;grid-template-columns:1fr 1fr 1.5fr;margin-top:12px;border:2px solid var(--ink);border-radius:6px;overflow:hidden}
.ta-bos .bos-tbl span{background:var(--ink);color:#fff;font-weight:700;font-size:.86rem;line-height:1.3;padding:9px 12px}
.ta-bos .bos-tbl i{display:block;height:38px;border-top:1px solid var(--ink);border-left:1px solid var(--ink)}
.ta-bos .bos-tbl i:nth-of-type(3n+1){border-left:0}
.ta-bos .bos-f{margin:10px 0 0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:end;font-size:.95rem}
.ta-bos .bos-f i{display:block;height:30px;border:2px solid var(--ink);border-radius:6px;max-width:260px}
.ta-bos .bos-ln{display:block;height:7px;border-radius:2px;background:var(--line);margin-top:10px}
.ta-bos .bos-ln.s{width:55%}
.ta-bos .bos-sign{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin-top:44px}
.ta-bos .bos-sign p{margin:0;font-size:.86rem;font-weight:700}
.ta-bos .bos-sign i{display:block;border-top:2px solid var(--ink);margin-bottom:7px}

.ta-bos .bos-tx{padding-top:8px}
.ta-bos .bos-tx>p{margin:12px 0 0;font-size:1.08rem;line-height:1.7;color:#2f2b2e}
.ta-bos .bos-names{list-style:none;margin:14px 0 0;padding:0;counter-reset:bn;border-top:2px solid var(--ink)}
.ta-bos .bos-names li{counter-increment:bn;padding:12px 0;border-bottom:1px solid var(--line);font-family:var(--head);font-weight:600;font-size:1.05rem;letter-spacing:-.012em}
.ta-bos .bos-names li:before{content:counter(bn);display:inline-block;width:34px;color:var(--c);font-weight:700}
.ta-bos .bos-tx .bos-h2b{margin-top:52px}

/* the law: a bill of sale as security on one side, this template on the other */
.ta-bos .bos-law{background:var(--ink);color:#fff;padding:68px 0 72px}
.ta-bos .bos-law h2{color:#fff}
.ta-bos .bos-sides{display:grid;grid-template-columns:1fr 1fr;margin-top:30px;border-radius:14px;overflow:hidden}
.ta-bos .bos-sides>div{padding:32px 36px 34px}
.ta-bos .bos-sec{background:#2a2529}
.ta-bos .bos-sec p{margin:0;font-size:1.02rem;line-height:1.7;color:#f1e9ed}
.ta-bos .bos-seven{display:block;height:16px;max-width:210px;margin-top:20px;background:repeating-linear-gradient(90deg,#fff 0 calc(100% / 7 - 5px),rgba(255,255,255,0) calc(100% / 7 - 5px) calc(100% / 7))}
.ta-bos .bos-abs{background:var(--cfield);color:var(--ink)}
.ta-bos .bos-abs p{margin:0;font-family:var(--head);font-weight:600;font-size:1.14rem;line-height:1.55;letter-spacing:-.012em;color:var(--ink)}
.ta-bos .bos-abs p.bos-tw{margin-top:18px;padding-top:16px;border-top:2px solid var(--ink);font-size:.98rem}
.ta-bos .bos-b4{margin-top:40px;max-width:760px}
.ta-bos .bos-law .bos-b4 h2{font-size:1.2rem}
.ta-bos .bos-b4 p{margin:8px 0 0;line-height:1.7;color:#e4dce0}

/* subscription box: three columns in one row */
.ta-bos .bos-get{padding:76px 0 72px}
.ta-bos .tpl{border:0;margin:0;border-top:4px solid var(--ink);border-bottom:4px solid var(--ink);border-radius:0}
.ta-bos .tplbar{display:none}
.ta-bos .tpl:has(.tpldoc:not(.hidden-guide)) .tplbar{display:flex}
.ta-bos .tplgate{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:72px;align-content:start;text-align:left;padding:40px 0 44px;background:#fff}
.ta-bos .tplgate>*{grid-column:1}
.ta-bos .tplgate>h3{font-size:1.6rem}
.ta-bos .tplgate>p{max-width:none;margin-left:0}
.ta-bos .tplcta{justify-content:flex-start;gap:16px}
.ta-bos .tplcta .btn{background:var(--cfield);border-color:var(--cfield);color:var(--ink);white-space:normal}
.ta-bos .tplgate>.tpldfy{grid-column:2;grid-row:1/span 4;margin:0;max-width:none;border-top:0;padding:0;text-align:left}
.ta-bos .tpldfy h4{font-size:1.6rem;letter-spacing:-.02em;margin-bottom:8px}
.ta-bos .tpldfy>p{margin-left:0;max-width:none}
.ta-bos .tpldfy form{display:grid;grid-template-columns:1fr;gap:10px}

.ta-bos .bos-faq{padding:0 0 72px}
.ta-bos .bos-faq .bos-in{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:48px;align-items:start}
.ta-bos .bos-qs{border-top:2px solid var(--ink)}

/* related templates on a pink strip */
.ta-bos .art-rel{max-width:none;background:#fff0f4;padding:48px max(28px,calc((100% - 1220px) / 2 + 28px)) 52px}
.ta-bos .art-rel-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.ta-bos .art-rel-grid a,.ta-bos .art-rel-grid a:first-child{min-height:0;flex-direction:row;align-items:center;padding:18px 22px;border-radius:10px;background:#fff;border:2px solid var(--ink)}
.ta-bos .art-rel-grid a:hover{transform:none;box-shadow:none;background:var(--ink);color:#fff}

.ta-bos .close{background:#fff;border-top:0}
.ta-bos .close .closein{flex-direction:row;flex-wrap:nowrap;justify-content:space-between;align-items:flex-start;text-align:left;gap:56px;border-top:4px solid var(--cfield);padding-top:40px}
.ta-bos .close h2,.ta-bos .close .r p{color:var(--ink)}
.ta-bos .close .r{align-items:flex-start;max-width:480px}
.ta-bos .close .r a{background:var(--ink);color:#fff}
.ta-bos .close .r a:hover{background:var(--c);color:#fff}

@media (max-width:980px){
.ta-bos .bos-doc{background:#fff0f4}
.ta-bos .bos-doc .bos-in,.ta-bos .bos-sides,.ta-bos .bos-faq .bos-in,.ta-bos .tplgate{grid-template-columns:1fr;gap:36px}
.ta-bos .tplgate{row-gap:0}
.ta-bos .tplgate>.tpldfy{grid-column:1;grid-row:auto;margin-top:34px;padding-top:30px;border-top:2px solid var(--ink)}
.ta-bos .bos-sides{gap:0}
.ta-bos .close .closein{flex-direction:column;gap:20px}
}
@media (max-width:620px){
.ta-bos .bos-sheet{padding:28px 20px 28px}
.ta-bos .bos-paper{margin-right:12px}
.ta-bos .bos-copy{left:12px;right:-12px}
.ta-bos .bos-tbl span{padding:8px 7px;font-size:.78rem}
.ta-bos .bos-f{grid-template-columns:1fr;gap:6px}
.ta-bos .bos-sides>div{padding:26px 22px 28px}
.ta-bos .art-rel-grid{grid-template-columns:1fr}
}
