/* employment-termination-letter-template (build_employment_termination_letter_template.py). Every rule starts with .ti-term.
   Centrepiece: the letter as one sheet of six numbered panels with the blanks each needs, under the fair process that comes first. */
.ti-term .tm-in{max-width:1220px;margin:0 auto;padding:0 28px}
.ti-term section[class^="tm-"] h2{font-size:clamp(1.5rem,2.2vw,1.9rem);letter-spacing:-.028em;line-height:1.14;margin:0}

.ti-term .tm-top{padding:60px 0 72px}
.ti-term .tm-head{display:flex;justify-content:space-between;align-items:flex-end;gap:32px;flex-wrap:wrap}
.ti-term .tm-head p{margin:12px 0 0;font-size:1.08rem;color:#3d3b41}
.ti-term .tm-first{list-style:none;margin:0;padding:0;display:flex;align-items:center;font-family:var(--head);font-weight:700;font-size:.98rem}
.ti-term .tm-first li{border:2px solid var(--ink);border-radius:999px;padding:9px 18px;background:#fff;white-space:nowrap}
.ti-term .tm-first li+li{margin-left:34px;position:relative}
.ti-term .tm-first li+li:before{content:"";position:absolute;right:100%;top:50%;width:36px;height:2px;background:var(--ink);margin-top:-1px}
.ti-term .tm-first li.tm-now{background:var(--cfield);border-color:var(--cfield)}

.ti-term .tm-sheet{margin-top:34px;border:2px solid var(--ink);border-radius:6px;background:#fff;box-shadow:12px 12px 0 var(--plum)}
.ti-term .tm-bar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 30px;border-bottom:2px solid var(--ink)}
.ti-term .tm-bar p{font-family:var(--head);font-weight:700;font-size:1.3rem;letter-spacing:-.02em;margin:0}
.ti-term .tm-bar div{display:grid;gap:7px;width:140px}
.ti-term .tm-bar i{display:block;height:6px;border-radius:3px;background:#f3cfda}
.ti-term .tm-bar i:last-child{width:60%;margin-left:auto}
.ti-term .tm-panels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.ti-term .tm-p{padding:26px 30px 30px;border-right:2px solid var(--ink);border-bottom:2px solid var(--ink);min-height:176px}
.ti-term .tm-p:nth-child(3n){border-right:0}
.ti-term .tm-p:nth-child(n+4){border-bottom:0}
.ti-term .tm-n{display:flex;align-items:flex-start;gap:12px;font-family:var(--head);font-weight:700;font-size:1.04rem;line-height:1.25;margin:0 0 20px}
.ti-term .tm-n i{flex:none;font-style:normal;font-size:1.9rem;line-height:.9;color:var(--c);letter-spacing:-.04em;min-width:24px}
.ti-term .tm-bl{display:grid;gap:14px}
.ti-term .tm-bl span{display:flex;align-items:flex-end;gap:10px;font-size:.9rem;font-weight:700;white-space:nowrap}
.ti-term .tm-bl i{flex:1;border-bottom:2px dotted var(--ink);height:1.1em}
.ti-term .tm-ck{display:grid;gap:12px}
.ti-term .tm-ck span{display:flex;align-items:center;gap:12px}
.ti-term .tm-ck b{flex:none;width:18px;height:18px;border:2px solid var(--ink);border-radius:4px}
.ti-term .tm-ck i,.ti-term .tm-ln i{display:block;flex:1;height:6px;border-radius:3px;background:#f3cfda}
.ti-term .tm-ln{display:grid;gap:12px}
.ti-term .tm-ln i:last-child{width:60%}
.ti-term .tm-pink{background:var(--cfield)}
.ti-term .tm-pink .tm-n i{color:var(--ink)}
.ti-term .tm-pink .tm-ln i{background:#fff}

.ti-term .tm-fill{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,9fr);gap:48px;align-items:start;margin-top:64px}
.ti-term .tm-fill p{margin:0;font-family:var(--head);font-weight:500;font-size:1.2rem;line-height:1.55;letter-spacing:-.012em;max-width:52ch}

.ti-term .tm-law{background:var(--plum);color:#fff;padding:72px 0}
.ti-term .tm-law h2{color:#fff}
.ti-term .tm-law-g{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:64px;align-items:start}
.ti-term .tm-law-tx p{margin:16px 0 0;line-height:1.75;color:#f4dfe6}
.ti-term .tm-notice{background:#fff;color:var(--ink);border-radius:16px;padding:28px 30px 30px}
.ti-term .tm-notice-h{font-family:var(--head);font-weight:700;font-size:1.1rem;margin:0 0 18px}
.ti-term .tm-ruler{display:grid;grid-template-columns:repeat(12,1fr);gap:4px}
.ti-term .tm-ruler i{display:block;height:40px;border-radius:4px;background:#ffd9e4}
.ti-term .tm-ruler i:first-child{background:var(--cfield)}
.ti-term .tm-marks{display:flex;justify-content:space-between;gap:20px;margin-top:10px;font-size:.86rem;font-weight:700;color:var(--cd)}
.ti-term .tm-marks span{max-width:16ch}
.ti-term .tm-marks span:last-child{text-align:right}
.ti-term .tm-notice-f{margin:18px 0 0;padding-top:16px;border-top:2px solid var(--ink);font-size:.95rem;line-height:1.6;color:#3d3b41}

.ti-term .tm-last{padding:72px 0 64px}
.ti-term .tm-last-g{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:64px;align-items:start}
.ti-term .tm-before{margin-bottom:52px;padding:0 0 0 26px;border-left:6px solid var(--cfield)}
.ti-term .tm-before p{margin:12px 0 0;line-height:1.7;color:#3d3b41;font-size:1.04rem}
.ti-term .tm-qs{margin-top:20px;border-top:2px solid var(--ink)}

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

@media(max-width:980px){
.ti-term .tm-panels{grid-template-columns:repeat(2,minmax(0,1fr))}
.ti-term .tm-p,.ti-term .tm-p:nth-child(3n),.ti-term .tm-p:nth-child(n+4){border-right:2px solid var(--ink);border-bottom:2px solid var(--ink);min-height:0}
.ti-term .tm-p:nth-child(2n){border-right:0}
.ti-term .tm-p:nth-child(n+5){border-bottom:0}
.ti-term .tm-fill,.ti-term .tm-law-g,.ti-term .tm-last-g{grid-template-columns:1fr;gap:28px}
.ti-term .tm-last-g{gap:44px}
.ti-term .tm-get{position:static}
}
@media(max-width:640px){
.ti-term .tm-first{flex-direction:column;align-items:flex-start}
.ti-term .tm-first li+li{margin:18px 0 0}
.ti-term .tm-first li+li:before{right:auto;left:26px;top:auto;bottom:100%;width:2px;height:20px;margin:0}
.ti-term .tm-sheet{box-shadow:6px 6px 0 var(--plum)}
.ti-term .tm-panels{grid-template-columns:1fr}
.ti-term .tm-p,.ti-term .tm-p:nth-child(3n),.ti-term .tm-p:nth-child(2n),.ti-term .tm-p:nth-child(n+4){border-right:0;border-bottom:2px solid var(--ink);padding:22px 20px 24px}
.ti-term .tm-p:last-child{border-bottom:0}
.ti-term .tm-bar{padding:18px 20px}
.ti-term .tm-bar div{display:none}
.ti-term .tm-notice{padding:22px 20px 24px}
.ti-term .tm-ruler i{height:30px}
}
