/* notice-of-termination-of-contract-template (build_notice_of_termination_of_contract_template.py).
   Every rule starts with .tf-notice. Centrepiece: the notice drawn as a notice form, with its service record. */
.tf-notice .nt-in{max-width:1220px;margin:0 auto;padding:0 28px}
.tf-notice h2{font-size:clamp(1.55rem,2.4vw,2rem);font-weight:700;letter-spacing:-.03em;line-height:1.14;margin:0}

/* the notice and how it is served */
.tf-notice .nt-doc{background:#fff0f4;padding:64px 0 76px}
.tf-notice .nt-doc-g{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:72px;align-items:start}
.tf-notice .nt-lede{margin:10px 0 26px;font-size:1.05rem;color:#3d3b41}
.tf-notice .nt-sheet{background:#fff;border:2px solid var(--ink);border-top:14px solid var(--ink);border-radius:3px;padding:34px 44px 44px}
.tf-notice .nt-title{font-family:var(--head);font-weight:700;font-size:1.45rem;letter-spacing:-.02em;text-align:center;padding-bottom:22px;border-bottom:1px solid var(--ink)}
.tf-notice .nt-fields{display:grid;grid-template-columns:1fr 1fr;gap:0;border:1.5px solid var(--ink);margin:26px 0 8px}
.tf-notice .nt-fields>div{padding:10px 14px 12px}
.tf-notice .nt-fields>div+div{border-left:1.5px solid var(--ink)}
.tf-notice .nt-fields span{display:block;font-size:.84rem;font-weight:700;color:var(--cd)}
.tf-notice .nt-fields i{display:block;height:34px;border-bottom:1.5px dotted var(--mute)}
.tf-notice .nt-secs{list-style:none;margin:0;padding:0;counter-reset:nt}
.tf-notice .nt-secs li{counter-increment:nt;position:relative;padding:24px 0 4px 54px}
.tf-notice .nt-secs li:before{content:counter(nt) ".";position:absolute;left:0;top:20px;font-family:var(--head);font-weight:700;font-size:1.5rem;color:var(--cfield)}
.tf-notice .nt-secs b{display:block;font-family:var(--head);font-weight:700;font-size:1.12rem;letter-spacing:-.012em;margin-bottom:12px}
.tf-notice .nt-ln{display:block;height:8px;border-radius:2px;background:var(--line);margin-top:9px}
.tf-notice .nt-ln.w80{width:80%}
.tf-notice .nt-ln.w60{width:60%}
.tf-notice .nt-ln.w45{width:45%}
.tf-notice .nt-ln.w30{width:30%}

.tf-notice .nt-fill{padding-top:4px}
.tf-notice .nt-fill>p{margin:14px 0 30px;font-size:1.08rem;line-height:1.65;color:var(--ink)}
.tf-notice .nt-slip{background:#fff;border:2px dashed var(--ink);border-radius:10px;padding:22px 24px 24px;transform:rotate(-1.2deg)}
.tf-notice .nt-slip-h{font-family:var(--head);font-weight:700;font-size:1.02rem;letter-spacing:-.01em;margin-bottom:6px}
.tf-notice .nt-slip dl{margin:0}
.tf-notice .nt-slip dl>div{display:grid;grid-template-columns:118px minmax(0,1fr);align-items:end;padding-top:18px}
.tf-notice .nt-slip dt{font-size:.95rem;font-weight:700;color:var(--ink)}
.tf-notice .nt-slip dd{margin:0;height:1.2em;border-bottom:1.5px solid var(--ink)}
.tf-notice .nt-proof{display:flex;align-items:center;gap:12px;margin-top:24px;padding-top:18px;border-top:2px solid var(--cfield);font-weight:700;font-size:.98rem}
.tf-notice .nt-proof i{position:relative;flex:none;width:24px;height:24px;border:2px solid var(--ink);border-radius:4px;background:var(--cfield)}
.tf-notice .nt-proof i:after{content:"";position:absolute;left:7px;top:2px;width:6px;height:12px;border:solid var(--ink);border-width:0 2.5px 2.5px 0;transform:rotate(45deg)}

/* the law, and the subscription box */
.tf-notice .nt-law{padding:76px 0 70px}
.tf-notice .nt-law-g{display:grid;grid-template-columns:minmax(0,1fr) 440px;gap:72px;align-items:start}
.tf-notice .nt-law-tx>p{margin-top:14px;font-size:1.04rem;line-height:1.7;color:#3d3b41;max-width:62ch}
.tf-notice .nt-chain{margin:30px 0 0;max-width:520px}
.tf-notice .nt-wrong{display:flex;flex-wrap:wrap;gap:10px}
.tf-notice .nt-wrong span{border:2px solid var(--ink);border-radius:999px;padding:7px 16px;font-weight:700;font-size:.95rem;background:#fff}
.tf-notice .nt-then{position:relative;margin:0 0 0 22px;padding:12px 0 12px 20px;border-left:2px solid var(--ink);font-size:.92rem;color:var(--mute)}
.tf-notice .nt-out{border:2px solid var(--ink);border-radius:10px;padding:13px 18px;font-family:var(--head);font-weight:700;font-size:1.05rem;letter-spacing:-.012em;background:#fff0f4}
.tf-notice .nt-out.nt-worst{background:var(--cfield);border-color:var(--cfield)}
.tf-notice .nt-h-before{margin-top:52px;padding-top:30px;border-top:2px solid var(--ink);font-size:1.3rem}
.tf-notice .nt-get{position:sticky;top:96px;min-width:0}
.tf-notice .tpl{border:2px solid var(--ink);border-radius:14px;margin:0;max-width:none}
.tf-notice .tplbar{display:none}
.tf-notice .tplgate{background:var(--cfield);text-align:left;padding:30px 28px}
.tf-notice .tplgate h3,.tf-notice .tplgate>p{color:var(--ink)}
.tf-notice .tplgate>p{margin-left:0;max-width:none}
.tf-notice .tplcta{justify-content:flex-start}
.tf-notice .tplcta .btn{background:var(--ink);color:#fff;border-color:var(--ink);white-space:normal}
.tf-notice .tplsignin,.tf-notice .tplplans{color:var(--ink);text-decoration:underline}
.tf-notice .tpldfy{background:#fff;margin:24px -28px -30px;padding:26px 28px;border-top:2px solid var(--ink);text-align:left;max-width:none}
.tf-notice .tpldfy>p{max-width:none}
.tf-notice .tpldfy form{display:grid;grid-template-columns:1fr;gap:10px}
.tf-notice .nt-law-g:has(.tpldoc:not(.hidden-guide)){grid-template-columns:1fr}
.tf-notice .nt-law-g:has(.tpldoc:not(.hidden-guide)) .nt-get{position:static}
.tf-notice .nt-law-g:has(.tpldoc:not(.hidden-guide)) .tplbar{display:flex}

/* questions */
.tf-notice .nt-faq{background:var(--ink);padding:64px 0 70px}
.tf-notice .nt-faq h2{color:#fff}
.tf-notice .nt-qs{margin-top:26px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
.tf-notice .nt-qs details.fq{background:#fff;border:0;border-radius:12px;padding:4px 22px}
.tf-notice .nt-qs details.fq>summary{padding:16px 0}
.tf-notice .nt-qs .fqa{padding-bottom:18px}

/* other templates: a ruled index */
.tf-notice .art-rel{padding-block:64px 70px}
.tf-notice .art-rel-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 56px}
.tf-notice .art-rel-grid a,.tf-notice .art-rel-grid a:first-child{flex-direction:row;align-items:center;min-height:0;padding:18px 2px;border:0;border-top:2px solid var(--ink);border-radius:0;background:none}
.tf-notice .art-rel-grid a:hover{transform:none;box-shadow:none;color:var(--c)}

@media(max-width:980px){
  .tf-notice .nt-doc-g,.tf-notice .nt-law-g{grid-template-columns:1fr;gap:44px}
  .tf-notice .nt-get{position:static}
  .tf-notice .nt-qs{grid-template-columns:1fr}
}
@media(max-width:620px){
  .tf-notice .nt-doc{padding:44px 0 52px}
  .tf-notice .nt-sheet{padding:24px 20px 30px}
  .tf-notice .nt-fields{grid-template-columns:1fr}
  .tf-notice .nt-fields>div+div{border-left:0;border-top:1.5px solid var(--ink)}
  .tf-notice .nt-secs li{padding-left:38px}
  .tf-notice .nt-slip{transform:none}
  .tf-notice .nt-law{padding:52px 0}
  .tf-notice .art-rel-grid{grid-template-columns:1fr}
}
.tf-notice .art-rel>h2{margin-bottom:22px}
.tf-notice .nt-fill{align-self:center}
