/* letter-of-intent-template: the document drawn as a letter, folded in three */
.te-loi .loi-in{max-width:1220px;margin:0 auto;padding:0 28px}
.te-loi h2{font-size:clamp(1.5rem,2.4vw,1.9rem);letter-spacing:-.026em;line-height:1.15}

.te-loi .loi-top{background:linear-gradient(180deg,#fff 0 150px,#fff0f4 150px 100%);padding-block:60px 76px}
.te-loi .loi-top .loi-in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,560px);gap:80px;align-items:start}
.te-loi .loi-tx{padding-top:120px}
.te-loi .loi-tx h2{margin:0 0 10px}
.te-loi .loi-tx h2 + p{font-size:1.1rem;line-height:1.68;color:#2e2b30;margin:0 0 38px;max-width:54ch}

/* the letter */
.te-loi .loi-letter{position:relative;background:#fff;padding:44px 48px 46px;box-shadow:0 20px 46px rgba(74,13,44,.2);
  background-image:linear-gradient(180deg,transparent calc(33.3% - 1px),#f6dbe3 calc(33.3% - 1px),#f6dbe3 33.3%,transparent 33.3%,transparent calc(66.6% - 1px),#f6dbe3 calc(66.6% - 1px),#f6dbe3 66.6%,transparent 66.6%)}
.te-loi .loi-from{width:170px;margin-left:auto}
.te-loi .loi-to{width:200px;margin-top:22px}
.te-loi .loi-from i,.te-loi .loi-to i{display:block;height:8px;border-radius:2px;background:#f3d3dd;margin-top:8px}
.te-loi .loi-from i:first-child{background:var(--cfield);height:12px}
.te-loi .loi-from .s,.te-loi .loi-to .s{width:55%}
.te-loi .loi-date{display:flex;align-items:flex-end;gap:10px;margin-top:26px;font-size:.84rem;font-weight:700;color:var(--cd)}
.te-loi .loi-date i{width:150px;border-bottom:2px dotted var(--ink)}
.te-loi .loi-subj{font-family:var(--head);font-weight:700;font-size:1.3rem;letter-spacing:-.02em;margin-top:28px;padding-bottom:6px;border-bottom:3px solid var(--ink);display:inline-block}
.te-loi .loi-paras{list-style:none;margin:6px 0 0;padding:0;counter-reset:s}
.te-loi .loi-paras li{counter-increment:s;position:relative;padding:18px 0 0 36px}
.te-loi .loi-paras li:before{content:counter(s) ".";position:absolute;left:0;top:18px;font-family:var(--head);font-weight:700}
.te-loi .loi-paras b{font-family:var(--head);font-weight:700;font-size:1rem;display:block}
.te-loi .loi-ln{display:block;height:2px;background:#f3d3dd;margin-top:11px}
.te-loi .loi-ln.w85{width:85%}
.te-loi .loi-ln.w70{width:70%}
.te-loi .loi-ln.w50{width:50%}
.te-loi .loi-bind:after{content:'';position:absolute;left:-18px;top:16px;bottom:-4px;width:5px;background:var(--cfield)}
.te-loi .loi-bind em{position:absolute;right:0;top:16px;font-style:normal;font-family:var(--head);font-weight:700;font-size:.78rem;background:var(--cfield);color:var(--ink);padding:4px 10px;border-radius:4px}
.te-loi .loi-sig{width:220px;margin-top:40px}
.te-loi .loi-sig i{display:block;height:34px;border-bottom:2px solid var(--ink)}
.te-loi .loi-sig span{display:block;margin-top:7px;font-size:.84rem;font-weight:700;color:var(--cd)}

.te-loi .loi-tx h3{font-size:1.02rem;margin-bottom:8px}
.te-loi .loi-tx .loi-law,.te-loi .loi-tx .loi-before{max-width:54ch;padding-top:20px;border-top:3px solid var(--ink)}
.te-loi .loi-tx .loi-before{margin-top:26px;border-top:1px solid #e9b9c8}
.te-loi .loi-tx h3 + p{font-size:.98rem;line-height:1.7;margin:0}

/* the subscription box: plum band */
.te-loi .loi-buy{background:var(--plum);padding-block:58px}
.te-loi .tpl{border:0;border-radius:0;background:none;overflow:visible}
.te-loi .tplbar{display:none}
.te-loi .tplgate{background:none;padding:0;text-align:left;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,440px);column-gap:76px;align-items:start}
.te-loi .tplgate>*{grid-column:1}
.te-loi .tplgate h3{font-size:1.7rem;letter-spacing:-.026em;margin:0 0 12px;color:#fff}
.te-loi .tplgate>p{color:#f6e3ea;font-size:1.02rem;margin-left:0;max-width:58ch}
.te-loi .tplgate>.tplnote{color:#fff;font-size:.92rem;font-weight:700}
.te-loi .tplcta{justify-content:flex-start;margin-top:8px}
.te-loi .tplcta .btn{background:var(--cfield);color:var(--ink);border-color:var(--cfield)}
.te-loi .tplcta .btn:hover{background:#fff;border-color:#fff;color:var(--ink)}
.te-loi .tplplans,.te-loi .tplsignin{color:#fff;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.te-loi .tpldfy{grid-column:2;grid-row:1/span 4;margin:0;max-width:none;padding:0 0 0 40px;background:none;border:0;border-left:2px solid rgba(255,255,255,.35);text-align:left}
.te-loi .tpldfy h4{color:#fff}
.te-loi .tpldfy>p{color:#f6e3ea;margin-left:0}
.te-loi .tpldfy form{display:grid;grid-template-columns:1fr;gap:10px}
.te-loi .tpldfy button{background:#fff;color:var(--ink)}
.te-loi .tpldfy button:hover{background:var(--cfield)}
.te-loi .tpldfy .msg{color:#f6e3ea}
.te-loi .loi-buy:has(.tpldoc:not(.hidden-guide)){background:#fff}
.te-loi .loi-buy:has(.tpldoc:not(.hidden-guide)) .tpl{border:2px solid var(--ink);border-radius:14px;overflow:hidden;background:#fff}
.te-loi .loi-buy:has(.tpldoc:not(.hidden-guide)) .tplbar{display:flex}

.te-loi .loi-faq{padding-block:68px 60px}
.te-loi .loi-faq .loi-in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,280px);gap:56px;align-items:start}
.te-loi .loi-faq h2{order:2;text-align:right}
.te-loi .loi-qs{order:1;border-top:3px solid var(--cfield)}

/* related templates: envelopes in a row */
.te-loi .art-rel{padding-block:0 68px}
.te-loi .art-rel>h2{font-size:1.4rem;margin-bottom:14px}
.te-loi .art-rel-grid a,.te-loi .art-rel-grid a:first-child{min-height:0;gap:14px;padding:18px 20px;border:0;border-top:5px solid var(--cfield);border-radius:0;background:#fff0f4;font-size:.98rem}
.te-loi .art-rel-grid a:hover{transform:none;box-shadow:none;background:var(--cfield)}

.te-loi .loi-close{background:var(--cfield);padding-block:60px}
.te-loi .loi-close .loi-in{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 48px;align-items:center}
.te-loi .loi-close h2{color:var(--ink)}
.te-loi .loi-close p{grid-column:1;font-size:1.05rem;line-height:1.6;color:var(--ink);max-width:60ch}
.te-loi .loi-close a{grid-column:2;grid-row:1/span 2;background:var(--ink);color:#fff;font-family:var(--head);font-weight:700;padding:15px 26px;border-radius:8px;white-space:nowrap}
.te-loi .loi-close a:hover{background:var(--plum)}

@media(max-width:980px){
  .te-loi .loi-top{background:#fff0f4}
  .te-loi .loi-top .loi-in{grid-template-columns:1fr;gap:40px}
  .te-loi .loi-tx{padding-top:0;order:2}
  .te-loi .loi-letter{max-width:600px}
  .te-loi .tplgate{grid-template-columns:1fr}
  .te-loi .tpldfy{grid-column:1;grid-row:auto;margin-top:30px;padding:28px 0 0;border-left:0;border-top:2px solid rgba(255,255,255,.35)}
  .te-loi .loi-faq .loi-in{grid-template-columns:1fr;gap:18px}
  .te-loi .loi-faq h2{order:0;text-align:left}
  .te-loi .loi-close .loi-in{grid-template-columns:1fr}
  .te-loi .loi-close a{grid-column:1;grid-row:auto;justify-self:start;margin-top:12px}
}
@media(max-width:520px){
  .te-loi .loi-in{padding:0 20px}
  .te-loi .loi-top{padding-block:40px 52px}
  .te-loi .loi-letter{padding:30px 22px 32px 30px}
  .te-loi .loi-bind:after{left:-14px}
  .te-loi .loi-paras li{padding-left:28px}
  .te-loi .loi-bind em{position:static;display:inline-block;margin-top:10px}
  .te-loi .tplcta .btn{white-space:normal;text-align:center}
}
