/* purchasing-terms-buying-in-template (build_purchasing_terms_buying_in_template.py). Every rule starts with .tg-buy.
   Centrepiece: a purchase order form with boxes for the details to fill in and the eleven sections printed at its foot. */
.tg-buy .tg-in{max-width:1220px;margin:0 auto;padding:0 28px}
.tg-buy .tg-in h2{font-size:clamp(1.55rem,2.3vw,2rem);font-weight:700;letter-spacing:-.028em;line-height:1.15;margin:0}
.tg-buy .tg-ln{display:block;height:7px;border-radius:2px;background:var(--line);margin-top:9px;width:92%}
.tg-buy .tg-ln.b{width:76%}
.tg-buy .tg-ln.c{width:58%}
.tg-buy .tg-ln.d{width:36%}
.tg-buy .tg-title{font-family:var(--head);font-weight:700;letter-spacing:-.02em;color:var(--ink)}
.tg-buy .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-buy .tg-cap{font-size:.9rem;line-height:1.5;color:var(--mute)}

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

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

.tg-buy .tg-po{margin-right:12px;background:#fff;border:2px solid var(--ink);border-radius:4px;box-shadow:12px 12px 0 var(--cfield)}
.tg-buy .tg-pohead{display:flex;justify-content:space-between;align-items:center;padding:22px 30px;background:var(--ink)}
.tg-buy .tg-pohead .tg-title{font-size:1.5rem;color:#fff}
.tg-buy .tg-pohead i{display:block;width:120px;height:30px;border:1.5px solid #fff;border-radius:4px}
.tg-buy .tg-boxes{display:grid;grid-template-columns:1.2fr 1fr 1fr;border-bottom:2px solid var(--ink)}
.tg-buy .tg-boxes>div{padding:16px 18px 22px;border-left:2px solid var(--ink);background:#fff0f4}
.tg-buy .tg-boxes>div:first-child{border-left:0}
.tg-buy .tg-boxes h3{font-size:.9rem;font-weight:700;margin-bottom:4px}
.tg-buy .tg-boxes .tg-ln{background:#fff;border-bottom:1.5px solid var(--ink);border-radius:0;height:18px;margin-top:4px}
.tg-buy .tg-lines{height:176px;margin:0;background:
  linear-gradient(var(--ink),var(--ink)) 12% 0/1.5px 100% no-repeat,
  linear-gradient(var(--ink),var(--ink)) 64% 0/1.5px 100% no-repeat,
  linear-gradient(var(--ink),var(--ink)) 82% 0/1.5px 100% no-repeat,
  repeating-linear-gradient(#fff,#fff 43px,var(--line) 43px,var(--line) 44px);border-bottom:2px solid var(--ink)}
.tg-buy .tg-small{padding:22px 30px 26px}
.tg-buy .tg-small .tg-title{font-size:1.02rem}
.tg-buy .tg-small ol{columns:3;column-gap:28px;margin-top:10px;padding-left:0;list-style:none;counter-reset:s}
.tg-buy .tg-small li{counter-increment:s;break-inside:avoid;display:flex;gap:9px;font-size:.92rem;font-weight:700;line-height:1.35;padding:5px 0;color:var(--ink)}
.tg-buy .tg-small li:before{content:counter(s) ".";color:var(--cd);min-width:20px}
.tg-buy .tg-fill{margin-top:48px;padding-left:22px;border-left:4px solid var(--cfield)}
.tg-buy .tg-fill p{margin-top:10px;font-size:1.08rem;line-height:1.65;color:#2a2629;max-width:58ch}

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

.tg-buy .tg-law{background:#fff0f4}
.tg-buy .tg-shots{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:34px;margin-top:30px}
.tg-buy .tg-shots li{position:relative;background:#fff;border:2px solid var(--ink);border-radius:4px;padding:18px 18px 22px}
.tg-buy .tg-shots li+li:before{content:"";position:absolute;right:100%;top:50%;width:34px;border-top:2px solid var(--ink)}
.tg-buy .tg-shots li:nth-child(2){border-style:dashed}
.tg-buy .tg-shots li:last-child{background:var(--cfield)}
.tg-buy .tg-shots h3{font-size:1rem}
.tg-buy .tg-shots p{margin-top:6px;font-size:.94rem;line-height:1.5;color:var(--ink)}

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

.tg-buy .art-rel{padding-block:44px 68px}
.tg-buy .art-rel>h2{font-size:1.4rem;margin-bottom:14px}
.tg-buy .art-rel-grid{border-top:2px solid var(--ink)}
.tg-buy .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-buy .art-rel-grid a:first-child{background:none;border-color:var(--line)}
.tg-buy .art-rel-grid a:hover{transform:none;box-shadow:none;color:var(--c)}

.tg-buy .art-rel-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:48px;row-gap:0}
@media (max-width:760px){
.tg-buy .art-rel-grid{grid-template-columns:1fr}
}

@media (max-width:600px){
.tg-buy .tg-pohead{padding:18px 20px}
.tg-buy .tg-pohead i{width:70px}
.tg-buy .tg-boxes{grid-template-columns:1fr}
.tg-buy .tg-boxes>div{border-left:0;border-top:1.5px solid var(--ink)}
.tg-buy .tg-boxes>div:first-child{border-top:0}
.tg-buy .tg-lines{height:132px}
.tg-buy .tg-small{padding:20px}
.tg-buy .tg-small ol{columns:1}
.tg-buy .tg-shots{grid-template-columns:1fr;gap:22px}
.tg-buy .tg-shots li+li:before{right:auto;left:28px;top:auto;bottom:100%;width:0;height:22px;border-top:0;border-left:2px solid var(--ink)}
}
