/* cease-and-desist-letter-template (build_cease_and_desist_letter_template.py). Every rule starts with .tf-cease.
   Centrepiece: the letter drawn as a folded letter, beside its evidence and the envelope it is sent in. */
.tf-cease .cz-in{max-width:1220px;margin:0 auto;padding:0 28px}
.tf-cease h2{font-size:clamp(1.55rem,2.4vw,2rem);font-weight:700;letter-spacing:-.03em;line-height:1.14;margin:0}

.tf-cease .cz-doc{background:var(--ink);color:#fff;padding:64px 0 0}
.tf-cease .cz-doc-g{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:80px;align-items:start}
.tf-cease .cz-lede{margin:10px 0 30px;font-size:1.05rem;color:#e9e2e5}
.tf-cease .cz-letter{position:relative;background:#fff;color:var(--ink);padding:44px 56px 60px;border-radius:3px 3px 0 0;background-image:linear-gradient(to bottom,transparent 33.2%,rgba(20,17,20,.1) 33.2%,transparent 34.6%,transparent 66.4%,rgba(20,17,20,.1) 66.4%,transparent 67.8%)}
.tf-cease .cz-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:34px}
.tf-cease .cz-addr{width:38%}
.tf-cease .cz-dt{width:22%}
.tf-cease .cz-head i{display:block;height:1.35em;border-bottom:1.5px solid var(--mute)}
.tf-cease .cz-title{font-family:var(--head);font-weight:700;font-size:1.5rem;letter-spacing:-.025em;margin-bottom:8px}
.tf-cease .cz-ps{list-style:none;margin:0;padding:0;counter-reset:cz}
.tf-cease .cz-ps li{counter-increment:cz;position:relative;padding:18px 0 4px 40px}
.tf-cease .cz-ps li:before{content:counter(cz);position:absolute;left:0;top:17px;width:26px;height:26px;border-radius:50%;background:var(--ink);color:#fff;font-family:var(--head);font-weight:700;font-size:.82rem;display:grid;place-items:center}
.tf-cease .cz-ps b{font-family:var(--head);font-size:1.06rem;letter-spacing:-.012em}
.tf-cease .cz-ln{display:block;height:8px;border-radius:2px;background:var(--line);margin-top:10px}
.tf-cease .cz-ln.w80{width:80%}
.tf-cease .cz-ln.w55{width:55%}
.tf-cease .cz-req:before{background:var(--cfield);color:var(--ink)}
.tf-cease .cz-by{display:inline-flex;align-items:center;gap:12px;margin-top:14px;padding:8px 12px 8px 14px;background:var(--cfield);border-radius:8px;font-weight:700;font-size:.92rem}
.tf-cease .cz-by i{display:block;width:120px;height:28px;background:#fff;border-radius:5px}

.tf-cease .cz-rcol{padding:4px 0 64px}
.tf-cease .cz-rcol>p{margin-top:14px;font-size:1.08rem;line-height:1.65;color:#f3ecef}
.tf-cease .cz-ev{list-style:none;margin:34px 0 0;padding:0 0 0 6px}
.tf-cease .cz-ev li{background:#fff;color:var(--ink);font-weight:700;font-size:.98rem;padding:14px 18px;border-radius:3px;width:86%;box-shadow:0 6px 16px rgba(0,0,0,.4)}
.tf-cease .cz-ev li:nth-child(1){transform:rotate(-2deg)}
.tf-cease .cz-ev li:nth-child(2){transform:rotate(1.5deg) translate(34px,-6px)}
.tf-cease .cz-ev li:nth-child(3){transform:rotate(-1deg) translate(10px,-10px)}
.tf-cease .cz-env{position:relative;margin-top:30px;height:190px;border-radius:8px;background-color:var(--cfield);
  background-image:linear-gradient(to bottom right,transparent calc(50% - 1.5px),var(--ink) calc(50% - 1.5px),var(--ink) calc(50% + 1.5px),transparent calc(50% + 1.5px)),linear-gradient(to bottom left,transparent calc(50% - 1.5px),var(--ink) calc(50% - 1.5px),var(--ink) calc(50% + 1.5px),transparent calc(50% + 1.5px));
  background-size:50% 58%;background-position:0 0,100% 0;background-repeat:no-repeat}
.tf-cease .cz-env span{position:absolute;left:0;right:0;bottom:22px;text-align:center;color:var(--ink);font-family:var(--head);font-weight:700;font-size:1.02rem;letter-spacing:-.012em;padding:0 16px}
.tf-cease .cz-copy{display:flex;align-items:center;gap:12px;font-weight:700;font-size:.98rem;color:#fff}
.tf-cease .cz-copy i{flex:none;width:20px;height:24px;border:2px solid #fff;border-radius:2px;box-shadow:5px -5px 0 -2px var(--ink),5px -5px 0 0 #fff}

.tf-cease .cz-law{padding:80px 0 76px}
.tf-cease .cz-law-g{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:72px;align-items:start}
.tf-cease .cz-law-tx>p{margin-top:14px;font-size:1.04rem;line-height:1.7;color:#3d3b41;max-width:64ch}
.tf-cease .cz-routes{margin:30px 0 0;border-top:2px solid var(--ink)}
.tf-cease .cz-routes>div{position:relative;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:56px;align-items:center;padding:16px 0;border-bottom:1px solid var(--ink)}
.tf-cease .cz-routes>div:before{content:"";position:absolute;left:calc(45.45% - 34px);width:22px;top:50%;border-top:2px solid var(--ink)}
.tf-cease .cz-routes>div:after{content:"";position:absolute;left:calc(45.45% - 21px);top:calc(50% - 4px);width:8px;height:8px;border:solid var(--ink);border-width:2px 2px 0 0;transform:rotate(45deg)}
.tf-cease .cz-routes dt{font-family:var(--head);font-weight:700;font-size:1.04rem;letter-spacing:-.012em;line-height:1.3}
.tf-cease .cz-routes dd{margin:0;font-size:.98rem;font-weight:700;color:#3d3b41;line-height:1.4}
.tf-cease .cz-routes .cz-ad dd{justify-self:start;background:var(--ink);color:#fff;padding:7px 16px;border-radius:999px}
.tf-cease .cz-h-before{margin-top:48px;font-size:1.3rem}
.tf-cease .cz-get{position:sticky;top:96px;min-width:0}
.tf-cease .tpl{border:0;border-radius:16px;margin:0;max-width:none;background:#fff0f4}
.tf-cease .tplbar{display:none}
.tf-cease .tplgate{background:#fff0f4;text-align:left;padding:30px 28px 28px;border-top:10px solid var(--cfield)}
.tf-cease .tplgate h3{color:var(--ink)}
.tf-cease .tplgate>p{color:#3d3b41;margin-left:0;max-width:none}
.tf-cease .tplcta{justify-content:flex-start}
.tf-cease .tplcta .btn{white-space:normal}
.tf-cease .tplsignin,.tf-cease .tplplans{color:var(--ink);text-decoration:underline}
.tf-cease .tpldfy{margin:24px 0 0;padding-top:22px;border-top:2px solid var(--ink);text-align:left;max-width:none}
.tf-cease .tpldfy>p{max-width:none}
.tf-cease .tpldfy form{display:grid;grid-template-columns:1fr;gap:10px}
.tf-cease .tpldfy button{background:var(--ink)}
.tf-cease .cz-law-g:has(.tpldoc:not(.hidden-guide)){grid-template-columns:1fr}
.tf-cease .cz-law-g:has(.tpldoc:not(.hidden-guide)) .cz-get{position:static}
.tf-cease .cz-law-g:has(.tpldoc:not(.hidden-guide)) .tplbar{display:flex}
.tf-cease .cz-law-g:has(.tpldoc:not(.hidden-guide)) .tpl{background:#fff;border:2px solid var(--ink)}

.tf-cease .cz-last{border-top:2px solid var(--ink);padding:68px 0 76px;color:var(--ink)}
.tf-cease .cz-last-g{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,4fr);gap:80px;align-items:start}
.tf-cease .cz-qs{margin-top:16px}
.tf-cease .cz-qs details.fq>summary{font-size:1.1rem;padding:20px 2px}
.tf-cease .art-rel{max-width:none;margin:0;padding:0}
.tf-cease .art-rel>h2{font-size:1.3rem;margin-bottom:14px}
.tf-cease .art-rel-grid{grid-template-columns:1fr;gap:0;counter-reset:czr}
.tf-cease .art-rel-grid a,.tf-cease .art-rel-grid a:first-child{counter-increment:czr;flex-direction:row;align-items:baseline;justify-content:flex-start;gap:14px;min-height:0;padding:14px 0;border:0;border-radius:0;background:none;font-size:1rem}
.tf-cease .art-rel-grid a:before{content:counter(czr,decimal-leading-zero);color:var(--c);font-size:.88rem}
.tf-cease .art-rel-grid a i{margin-left:auto}
.tf-cease .art-rel-grid a:hover{transform:none;box-shadow:none;color:var(--c)}

@media(max-width:980px){
  .tf-cease .cz-doc-g,.tf-cease .cz-law-g,.tf-cease .cz-last-g{grid-template-columns:1fr;gap:44px}
  .tf-cease .cz-doc{padding-bottom:0}
  .tf-cease .cz-doc-g{display:flex;flex-direction:column-reverse}
  .tf-cease .cz-rcol{padding-bottom:0;max-width:520px}
  .tf-cease .cz-get{position:static}
}
@media(max-width:620px){
  .tf-cease .cz-doc{padding-top:44px}
  .tf-cease .cz-letter{padding:28px 22px 40px}
  .tf-cease .cz-ps li{padding-left:36px}
  .tf-cease .cz-ev li:nth-child(2){transform:rotate(1.5deg) translate(14px,-6px)}
  .tf-cease .cz-routes>div{grid-template-columns:1fr;gap:6px}
  .tf-cease .cz-routes>div:before,.tf-cease .cz-routes>div:after{display:none}
  .tf-cease .cz-law{padding:52px 0}
}
.tf-cease .cz-routes>div{gap:72px}
.tf-cease .cz-routes>div:before{left:calc((100% - 72px) * 5 / 11 + 24px)}
.tf-cease .cz-routes>div:after{left:calc((100% - 72px) * 5 / 11 + 37px)}
.tf-cease .cz-ev li+li{margin-top:10px}
.tf-cease .cz-ev li:nth-child(2){transform:rotate(1.5deg) translate(34px,0)}
.tf-cease .cz-ev li:nth-child(3){transform:rotate(-1deg) translate(10px,0)}
@media(max-width:620px){
  .tf-cease .cz-routes>div{gap:6px}
  .tf-cease .cz-ev li:nth-child(2){transform:rotate(1.5deg) translate(14px,0)}
}
@media(max-width:980px){
  .tf-cease .cz-doc-g{display:block}
  .tf-cease .cz-rcol{padding:44px 0 56px;max-width:520px}
  .tf-cease .cz-letter{border-radius:3px}
}
