/* supply-of-goods-agreement-b2b-template (build_supply_of_goods_agreement_b2b_template.py). Every rule starts with .tf-supply.
   Centrepiece: the agreement as a tabbed file, the blanks on the front sheet and the eight sections as index tabs. */
.tf-supply .sg-in{max-width:1220px;margin:0 auto;padding:0 28px}
.tf-supply h2{font-size:clamp(1.55rem,2.4vw,2rem);font-weight:700;letter-spacing:-.03em;line-height:1.14;margin:0}

.tf-supply .sg-doc{padding:64px 0 80px}
.tf-supply .sg-doc-g{display:grid;grid-template-columns:minmax(0,1fr) 410px;gap:64px;align-items:start}
.tf-supply .sg-lede{margin-top:10px;font-size:1.05rem;color:#3d3b41}
.tf-supply .sg-file{display:grid;grid-template-columns:minmax(0,1fr) 230px;margin-top:30px}
.tf-supply .sg-sheet{background:#fff0f4;border:2px solid var(--ink);border-radius:4px 0 0 4px;padding:34px 36px 40px}
.tf-supply .sg-title{font-family:var(--head);font-weight:700;font-size:1.5rem;letter-spacing:-.025em;line-height:1.18;max-width:13ch}
.tf-supply .sg-tb{width:100%;border-collapse:collapse;margin:26px 0 24px;background:#fff}
.tf-supply .sg-tb th,.tf-supply .sg-tb td{border:1.5px solid var(--ink);padding:13px 14px;text-align:left;font-size:.96rem}
.tf-supply .sg-tb th{width:44%;font-weight:700}
.tf-supply .sg-ln{display:block;height:8px;border-radius:2px;background:#ffc9d6;margin-top:10px}
.tf-supply .sg-ln.w80{width:80%}
.tf-supply .sg-ln.w55{width:55%}
.tf-supply .sg-tabs{list-style:none;margin:0;padding:10px 0;counter-reset:sg;display:grid;gap:5px;align-content:space-between}
.tf-supply .sg-tabs li{counter-increment:sg;display:flex;align-items:center;gap:10px;min-height:44px;margin-left:-2px;padding:6px 14px 6px 14px;border:2px solid var(--ink);border-radius:0 10px 10px 0;background:#fff;font-weight:700;font-size:.95rem;line-height:1.2;width:86%}
.tf-supply .sg-tabs li:before{content:counter(sg);font-family:var(--head);color:var(--c);flex:none;width:14px}
.tf-supply .sg-tabs .sg-on{background:var(--cfield);width:100%;border-left-color:var(--cfield)}
.tf-supply .sg-tabs .sg-on:before{color:var(--ink)}
.tf-supply .sg-tabs em{margin-left:auto;font-style:normal;font-size:.78rem;background:var(--ink);color:#fff;border-radius:999px;padding:4px 10px;white-space:nowrap}
.tf-supply .sg-h-fill{margin-top:48px}
.tf-supply .sg-fill{margin-top:12px;font-size:1.1rem;line-height:1.65;color:var(--ink);max-width:56ch}

.tf-supply .sg-get{position:sticky;top:96px;min-width:0}
.tf-supply .tpl{border:2px solid var(--ink);border-radius:14px;margin:0;max-width:none;box-shadow:10px 10px 0 var(--ink)}
.tf-supply .tplbar{display:none}
.tf-supply .tplgate{background:#fff;text-align:left;padding:28px 26px}
.tf-supply .tplgate h3{color:var(--ink)}
.tf-supply .tplgate>p{color:#3d3b41;margin-left:0;max-width:none}
.tf-supply .tplcta{justify-content:flex-start}
.tf-supply .tplcta .btn{background:var(--cfield);color:var(--ink);border-color:var(--cfield);white-space:normal}
.tf-supply .tplsignin,.tf-supply .tplplans{color:var(--ink);text-decoration:underline}
.tf-supply .tpldfy{background:#fff0f4;margin:24px -26px -28px;padding:24px 26px 26px;border-top:2px solid var(--ink);text-align:left;max-width:none}
.tf-supply .tpldfy>p{max-width:none}
.tf-supply .tpldfy form{display:grid;grid-template-columns:1fr;gap:10px}
.tf-supply .tpldfy button{background:var(--ink)}
.tf-supply .sg-doc-g:has(.tpldoc:not(.hidden-guide)){grid-template-columns:1fr}
.tf-supply .sg-doc-g:has(.tpldoc:not(.hidden-guide)) .sg-get{position:static}
.tf-supply .sg-doc-g:has(.tpldoc:not(.hidden-guide)) .tplbar{display:flex}

.tf-supply .sg-law{background:var(--plum);color:#fff;padding:72px 0 76px}
.tf-supply .sg-acts{list-style:none;margin:30px 0 0;padding:0;counter-reset:sa;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 64px}
.tf-supply .sg-acts li{counter-increment:sa;position:relative;padding:22px 0 26px 58px;border-top:1px solid rgba(255,255,255,.35);font-size:1.06rem;line-height:1.6;color:#fbeef2}
.tf-supply .sg-acts li:before{content:counter(sa);position:absolute;left:0;top:18px;font-family:var(--head);font-weight:700;font-size:1.7rem;color:var(--cfield)}
.tf-supply .sg-rot{display:flex;align-items:center;margin-top:16px}
.tf-supply .sg-rot-a{flex:1;background:var(--cfield);color:var(--ink);font-weight:700;font-size:.92rem;padding:8px 14px;border-radius:999px 0 0 999px}
.tf-supply .sg-rot-b{flex:none;background:#fff;color:var(--ink);font-weight:700;font-size:.92rem;padding:8px 14px;border-radius:0 999px 999px 0}
.tf-supply .sg-before{margin-top:20px;padding-top:34px;border-top:1px solid rgba(255,255,255,.35);display:grid;grid-template-columns:300px minmax(0,1fr);gap:64px;align-items:start}
.tf-supply .sg-before h2{font-size:1.3rem}
.tf-supply .sg-before p{font-size:1.04rem;line-height:1.7;color:#fbeef2;max-width:64ch}

.tf-supply .sg-ask{padding:72px 0 20px;color:var(--ink)}
.tf-supply .sg-qs{margin-top:22px;border-top:2px solid var(--ink);columns:1}
.tf-supply .sg-qs details.fq>summary{font-size:1.14rem;padding:22px 2px}
.tf-supply .sg-qs .fqa{max-width:70ch;padding-bottom:22px}
.tf-supply .art-rel{padding-block:56px 76px}
.tf-supply .art-rel>h2{font-size:1.3rem;margin-bottom:6px}
.tf-supply .art-rel-grid{gap:0 32px}
.tf-supply .art-rel-grid a,.tf-supply .art-rel-grid a:first-child{min-height:0;gap:14px;padding:18px 0 0;border:0;border-bottom:3px solid var(--cfield);border-radius:0;background:none;padding-bottom:14px}
.tf-supply .art-rel-grid a:hover{transform:none;box-shadow:none;border-bottom-color:var(--ink)}

@media(max-width:1100px){
  .tf-supply .sg-doc-g{grid-template-columns:minmax(0,1fr) 360px;gap:40px}
  .tf-supply .sg-file{grid-template-columns:minmax(0,1fr) 200px}
}
@media(max-width:980px){
  .tf-supply .sg-doc-g{grid-template-columns:1fr;gap:48px}
  .tf-supply .sg-get{position:static}
  .tf-supply .sg-acts{grid-template-columns:1fr}
  .tf-supply .sg-before{grid-template-columns:1fr;gap:12px}
}
@media(max-width:620px){
  .tf-supply .sg-doc{padding:44px 0 56px}
  .tf-supply .sg-file{grid-template-columns:1fr}
  .tf-supply .sg-sheet{border-radius:4px 4px 0 0;padding:24px 20px 28px}
  .tf-supply .sg-tabs{padding:0;gap:0}
  .tf-supply .sg-tabs li,.tf-supply .sg-tabs .sg-on{width:100%;margin:-2px 0 0;border-radius:0;border-left-color:var(--ink)}
  .tf-supply .sg-tabs li:last-child{border-radius:0 0 10px 10px}
  .tf-supply .sg-acts li{padding-left:42px}
  .tf-supply .tpl{box-shadow:6px 6px 0 var(--ink)}
}
