/* employment-offer-letter-conditional-template (build_employment_offer_letter_conditional_template.py). Every rule starts with .ti-offer.
   Centrepiece: the offer letter with numbered terms, the conditions as boxes to tick and the acceptance line. */
.ti-offer .of-in{max-width:1220px;margin:0 auto;padding:0 28px}
.ti-offer section[class^="of-"] h2{font-size:clamp(1.5rem,2.2vw,1.9rem);letter-spacing:-.028em;line-height:1.14;margin:0}

.ti-offer .of-top{background:var(--cfield);color:var(--ink);padding:0}
.ti-offer .of-top-g{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:72px;align-items:center}
.ti-offer .of-tx{padding:64px 0}
.ti-offer .of-tx p{margin:14px 0 0;font-size:1.1rem;line-height:1.65;color:var(--ink)}
.ti-offer .of-h2b{margin-top:44px !important}

.ti-offer .of-letter{background:#fff;border:2px solid var(--ink);border-radius:4px;padding:44px 48px 40px;margin:56px 0 -56px;position:relative;z-index:1;box-shadow:-12px 12px 0 var(--ink)}
.ti-offer .of-addr{display:grid;gap:7px;width:150px;margin-left:auto}
.ti-offer .of-addr i{display:block;height:6px;border-radius:3px;background:#f3cfda}
.ti-offer .of-addr i:last-child{width:60%}
.ti-offer .of-title{font-family:var(--head);font-weight:700;font-size:1.4rem;letter-spacing:-.02em;margin:26px 0 10px}
.ti-offer .of-terms{list-style:none;margin:0;padding:0;counter-reset:t}
.ti-offer .of-terms li{counter-increment:t;display:grid;grid-template-columns:34px 110px minmax(0,1fr);align-items:end;padding:14px 0 12px;font-family:var(--head);font-weight:700}
.ti-offer .of-terms li:before{content:counter(t) ".";color:var(--cd)}
.ti-offer .of-terms i{display:block;border-bottom:2px dotted var(--ink);height:1.2em}
.ti-offer .of-cond{margin:22px -20px 0;padding:22px 20px 20px;border:2px solid var(--ink);border-radius:12px;background:#fff0f4}
.ti-offer .of-cond-h{font-family:var(--head);font-weight:700;font-size:1.02rem;margin:0 0 14px}
.ti-offer .of-cond ul{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.ti-offer .of-cond li{display:flex;align-items:center;gap:14px;font-weight:700}
.ti-offer .of-cond li i{flex:none;width:24px;height:24px;border:2px solid var(--ink);border-radius:5px;background:#fff}
.ti-offer .of-cond li b{flex:1;border-bottom:2px dotted var(--ink);height:1.1em;max-width:240px}
.ti-offer .of-acc{margin-top:28px}
.ti-offer .of-acc span{display:flex;align-items:flex-end;gap:10px;font-size:.95rem;font-weight:700}
.ti-offer .of-acc i{flex:1;border-bottom:2px solid var(--ink);height:1.4em;max-width:220px}

.ti-offer .of-law{padding:128px 0 72px}
.ti-offer .of-law-tx{max-width:70ch}
.ti-offer .of-law-tx p{margin:14px 0 0;font-size:1.06rem;line-height:1.7;color:#3d3b41}
.ti-offer .of-track{list-style:none;margin:44px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr 1fr;position:relative}
.ti-offer .of-track:before{content:"";position:absolute;left:0;right:0;top:11px;height:4px;background:var(--ink);border-radius:2px}
.ti-offer .of-track li{position:relative;padding:44px 24px 0 0}
.ti-offer .of-track li:before{content:"";position:absolute;left:0;top:0;width:26px;height:26px;border-radius:50%;background:#fff;border:4px solid var(--ink);box-sizing:border-box}
.ti-offer .of-track li.of-d1{padding-right:0}
.ti-offer .of-track li.of-d1:before{background:var(--cfield);border-color:var(--cfield);border-radius:6px}
.ti-offer .of-track b{display:block;font-family:var(--head);font-size:1.12rem;letter-spacing:-.01em}
.ti-offer .of-track span{display:block;margin-top:4px;color:var(--cd);font-weight:700;font-size:.95rem}

.ti-offer .of-last{padding:0 0 64px}
.ti-offer .of-last-g{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:64px;align-items:start}
.ti-offer .of-before{margin-bottom:48px;padding:26px 30px 28px;background:var(--ink);color:#fff;border-radius:16px}
.ti-offer .of-before h2{color:#fff;font-size:1.3rem !important}
.ti-offer .of-before p{margin:10px 0 0;line-height:1.7;color:#ece6e9}
.ti-offer .of-qs{margin-top:20px;border-top:2px solid var(--ink)}

.ti-offer .tpl{border:2px solid var(--ink);border-radius:14px;margin:0;max-width:none}
.ti-offer .tplbar{display:none}
.ti-offer .tplgate{background:#fff0f4;text-align:left;padding:30px 28px}
.ti-offer .tplgate h3{color:var(--ink)}
.ti-offer .tplgate>p{margin-left:0;max-width:none;color:#3d3b41}
.ti-offer .tplcta{justify-content:flex-start}
.ti-offer .tplcta .btn{background:var(--ink);color:#fff;white-space:normal}
.ti-offer .tplsignin,.ti-offer .tplplans{color:var(--ink);text-decoration:underline}
.ti-offer .tpldfy{background:#fff;margin:24px -28px -30px;padding:26px 28px;border-top:2px solid var(--ink);text-align:left;max-width:none}
.ti-offer .tpldfy form{display:grid;grid-template-columns:1fr;gap:10px}
.ti-offer .of-last-g:has(.tpldoc:not(.hidden-guide)){grid-template-columns:1fr}
.ti-offer .of-last-g:has(.tpldoc:not(.hidden-guide)) .tplbar{display:flex}

@media(max-width:980px){
.ti-offer .of-top-g{grid-template-columns:1fr;gap:0}
.ti-offer .of-tx{padding:48px 0 0}
.ti-offer .of-letter{margin-top:40px;max-width:600px}
.ti-offer .of-last-g{grid-template-columns:1fr;gap:44px}
}
@media(max-width:640px){
.ti-offer .of-letter{padding:32px 26px 30px;box-shadow:-6px 8px 0 var(--ink);margin-left:6px}
.ti-offer .of-cond{margin-inline:-12px;padding-inline:12px}
.ti-offer .of-terms li{grid-template-columns:28px 96px minmax(0,1fr)}
.ti-offer .of-law{padding-top:108px}
.ti-offer .of-track{grid-template-columns:1fr;gap:26px}
.ti-offer .of-track:before{left:11px;right:auto;top:0;bottom:0;width:4px;height:auto}
.ti-offer .of-track li{padding:0 0 0 44px}
}
