/* waiver-release-agreement-template (build_waiver_release_agreement_template.py). Every rule starts with .tf-waiver.
   Centrepiece: the agreement as a deed, with the claims and the payment as blanks and the two ways of signing side by side. */
.tf-waiver .wv-in{max-width:1220px;margin:0 auto;padding:0 28px}
.tf-waiver h2{font-size:clamp(1.55rem,2.4vw,2rem);font-weight:700;letter-spacing:-.03em;line-height:1.14;margin:0}

.tf-waiver .wv-doc{background:var(--cfield);color:var(--ink);padding:60px 0 0}
.tf-waiver .wv-top{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:64px}
.tf-waiver .wv-top p{margin-top:10px;font-size:1.1rem;line-height:1.6;color:var(--ink);max-width:50ch}
.tf-waiver .wv-deed{position:relative;margin:44px auto -70px;max-width:980px;background:#fff;padding:52px 64px 54px;border:2px solid var(--ink);box-shadow:inset 0 0 0 8px #fff,inset 0 0 0 10px var(--ink)}
.tf-waiver .wv-title{font-family:var(--head);font-weight:700;font-size:1.9rem;letter-spacing:-.03em;text-align:center;padding-bottom:22px;border-bottom:2px solid var(--ink)}
.tf-waiver .wv-cols{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,6fr);gap:56px;padding:26px 0 30px}
.tf-waiver .wv-cl{list-style:none;margin:0;padding:0;counter-reset:wv}
.tf-waiver .wv-cl li{counter-increment:wv;display:flex;gap:14px;align-items:baseline;padding:9px 0;font-family:var(--head);font-weight:700;font-size:1.05rem;letter-spacing:-.012em}
.tf-waiver .wv-cl li:before{content:counter(wv,upper-roman);flex:0 0 30px;font-size:.85rem;color:var(--c)}
.tf-waiver .wv-blanks{display:grid;gap:22px;align-content:start;padding-top:8px}
.tf-waiver .wv-blanks>div{background:#fff0f4;border-radius:8px;padding:16px 20px 22px}
.tf-waiver .wv-blanks span{font-weight:700;font-size:.98rem;color:var(--cd)}
.tf-waiver .wv-blanks i{display:block;height:30px;border-bottom:1.5px solid var(--ink)}
.tf-waiver .wv-exec{display:grid;grid-template-columns:1fr 1fr;border-top:2px solid var(--ink)}
.tf-waiver .wv-exec>div{position:relative;padding:22px 28px 0 0}
.tf-waiver .wv-exec>div+div{padding:22px 0 0 28px;border-left:2px solid var(--ink)}
.tf-waiver .wv-exec p{font-family:var(--head);font-weight:700;font-size:1.08rem;letter-spacing:-.012em}
.tf-waiver .wv-exec i{display:block;height:50px;border-bottom:2px solid var(--ink);margin-right:0}
.tf-waiver .wv-exec span{display:block;margin-top:7px;font-size:.9rem;font-weight:700;color:var(--mute)}
.tf-waiver .wv-as-deed i{margin-right:96px}
.tf-waiver .wv-exec em{position:absolute;right:0;bottom:4px;width:78px;height:78px;border-radius:50%;background:var(--cfield);border:3px dotted var(--ink);display:grid;place-items:center;font-style:normal;font-family:var(--head);font-weight:700;font-size:.95rem;transform:rotate(-12deg)}

.tf-waiver .wv-law{padding:140px 0 70px}
.tf-waiver .wv-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:44px;margin-top:28px}
.tf-waiver .wv-three p{padding-top:20px;border-top:4px solid var(--ink);font-size:1.02rem;line-height:1.68;color:#3d3b41}
.tf-waiver .wv-three p:first-child{border-top-color:var(--cfield)}

.tf-waiver .wv-rest{background:#fff0f4;padding:72px 0 76px;color:var(--ink)}
.tf-waiver .wv-rest-g{display:grid;grid-template-columns:minmax(0,1fr) 440px;gap:72px;align-items:start}
.tf-waiver .wv-left>h2:first-child{font-size:1.3rem}
.tf-waiver .wv-before{margin-top:12px;font-size:1.06rem;line-height:1.68;color:#3d3b41;max-width:60ch}
.tf-waiver .wv-h-q{margin-top:56px}
.tf-waiver .wv-qs{margin-top:16px;border-top:2px solid var(--ink)}
.tf-waiver .wv-qs details.fq{border-bottom:1px solid var(--ink)}
.tf-waiver .wv-get{position:sticky;top:96px;min-width:0}
.tf-waiver .tpl{border:2px solid var(--ink);border-radius:4px;margin:0;max-width:none}
.tf-waiver .tplbar{display:none}
.tf-waiver .tplgate{background:#fff;text-align:left;padding:30px 28px}
.tf-waiver .tplgate h3{color:var(--ink)}
.tf-waiver .tplgate>p{color:#3d3b41;margin-left:0;max-width:none}
.tf-waiver .tplcta{justify-content:flex-start}
.tf-waiver .tplcta .btn{background:var(--ink);color:#fff;border-color:var(--ink);white-space:normal}
.tf-waiver .tplsignin,.tf-waiver .tplplans{color:var(--ink);text-decoration:underline}
.tf-waiver .tpldfy{background:var(--ink);margin:24px -28px -30px;padding:26px 28px 28px;border-top:0;text-align:left;max-width:none}
.tf-waiver .tpldfy h4{color:#fff}
.tf-waiver .tpldfy>p,.tf-waiver .tpldfy .msg{color:#e9e2e5;max-width:none}
.tf-waiver .tpldfy form{display:grid;grid-template-columns:1fr;gap:10px}
.tf-waiver .tpldfy button{background:var(--cfield);color:var(--ink)}
.tf-waiver .wv-rest-g:has(.tpldoc:not(.hidden-guide)){grid-template-columns:1fr}
.tf-waiver .wv-rest-g:has(.tpldoc:not(.hidden-guide)) .wv-get{position:static}
.tf-waiver .wv-rest-g:has(.tpldoc:not(.hidden-guide)) .tplbar{display:flex}

.tf-waiver .art-rel{padding-block:64px 72px}
.tf-waiver .art-rel>h2{margin-bottom:22px}
.tf-waiver .art-rel-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.tf-waiver .art-rel-grid a,.tf-waiver .art-rel-grid a:first-child{min-height:110px;padding:20px 22px;border:2px solid var(--ink);border-radius:0;background:#fff;box-shadow:inset 0 0 0 4px #fff,inset 0 0 0 5px var(--ink)}
.tf-waiver .art-rel-grid a:hover{transform:none;background:var(--cfield);box-shadow:inset 0 0 0 4px var(--cfield),inset 0 0 0 5px var(--ink)}

@media(max-width:980px){
  .tf-waiver .wv-rest-g{grid-template-columns:1fr;gap:48px}
  .tf-waiver .wv-get{position:static}
  .tf-waiver .wv-three{grid-template-columns:1fr;gap:26px}
  .tf-waiver .wv-deed{padding:44px 40px}
}
@media(max-width:700px){
  .tf-waiver .wv-doc{padding-top:44px}
  .tf-waiver .wv-top{grid-template-columns:1fr;gap:28px}
  .tf-waiver .wv-deed{padding:34px 26px 36px;margin-bottom:-50px}
  .tf-waiver .wv-title{font-size:1.4rem}
  .tf-waiver .wv-cols{grid-template-columns:1fr;gap:20px}
  .tf-waiver .wv-exec{grid-template-columns:1fr}
  .tf-waiver .wv-exec>div{padding:20px 0 22px}
  .tf-waiver .wv-exec>div+div{padding:20px 0 0;border-left:0;border-top:2px solid var(--ink)}
  .tf-waiver .wv-law{padding:100px 0 52px}
  .tf-waiver .art-rel-grid{grid-template-columns:1fr}
  .tf-waiver .art-rel-grid a,.tf-waiver .art-rel-grid a:first-child{min-height:0}
}
