/* employee-evaluation-template (build_employee_evaluation_template.py). Every rule starts with .ti-eval.
   Centrepiece: the evaluation as a form: nine numbered boxes, a rating and an example per objective, two signatures. */
.ti-eval .ev-in{max-width:1220px;margin:0 auto;padding:0 28px}
.ti-eval section[class^="ev-"] h2{font-size:clamp(1.5rem,2.2vw,1.9rem);letter-spacing:-.028em;line-height:1.14;margin:0}

.ti-eval .ev-top{background:#fff0f4;padding:60px 0 80px}
.ti-eval .ev-head{display:flex;align-items:baseline;gap:28px;flex-wrap:wrap}
.ti-eval .ev-head p{font-size:1.08rem;color:#3d3b41;margin:0}

.ti-eval .ev-form{margin-top:32px;background:#fff;border:2px solid var(--ink);border-radius:6px;box-shadow:12px 12px 0 var(--cfield)}
.ti-eval .ev-form-h{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:20px 30px;background:var(--ink);color:#fff;border-radius:3px 3px 0 0}
.ti-eval .ev-form-h p{font-family:var(--head);font-weight:700;font-size:1.25rem;letter-spacing:-.02em;margin:0}
.ti-eval .ev-who{display:flex;gap:14px}
.ti-eval .ev-who span{display:block;width:150px;height:30px;border:2px solid #fff;border-radius:4px}
.ti-eval .ev-grid{display:grid;grid-template-columns:1fr 1fr}
.ti-eval .ev-f{padding:22px 30px 26px;border-bottom:2px solid var(--ink)}
.ti-eval .ev-f:not(.ev-wide):nth-child(even){border-right:2px solid var(--ink)}
.ti-eval .ev-f.ev-wide{grid-column:1 / -1}
.ti-eval .ev-n{display:flex;align-items:center;gap:12px;font-family:var(--head);font-weight:700;font-size:1rem;margin:0 0 14px;line-height:1.25}
.ti-eval .ev-n i{flex:none;width:28px;height:28px;border-radius:6px;background:var(--cfield);color:var(--ink);font-style:normal;font-size:.9rem;display:flex;align-items:center;justify-content:center}
.ti-eval .ev-box{height:84px;border:2px solid #f3cfda;border-radius:6px;background:repeating-linear-gradient(#fff 0 26px,#f3cfda 26px 28px)}
.ti-eval .ev-box.sm{height:56px}
.ti-eval .ev-flag{background:#fff0f4}
.ti-eval .ev-flag .ev-box{background:#fff;border-color:var(--cfield)}
.ti-eval .ev-pink{background:var(--cfield)}
.ti-eval .ev-pink .ev-n i{background:var(--ink);color:#fff}
.ti-eval .ev-pink .ev-box{background:#fff;border-color:var(--ink)}
.ti-eval .ev-table{border:2px solid var(--ink);border-radius:6px;overflow:hidden}
.ti-eval .ev-tr{display:grid;grid-template-columns:5fr 110px 6fr;border-top:1px solid #e3a9bb}
.ti-eval .ev-tr span{padding:13px 16px;border-left:1px solid #e3a9bb;display:flex;align-items:center}
.ti-eval .ev-tr span:first-child{border-left:0}
.ti-eval .ev-tr i{display:block;width:80%;height:6px;border-radius:3px;background:#f3cfda}
.ti-eval .ev-tr b{display:block;width:44px;height:26px;border:2px solid var(--ink);border-radius:5px;margin:0 auto}
.ti-eval .ev-th{border-top:0;background:#fff0f4;font-size:.84rem;font-weight:700;color:var(--cd)}
.ti-eval .ev-th span:nth-child(2){justify-content:center}
.ti-eval .ev-rows{display:grid;gap:0}
.ti-eval .ev-rows i{display:block;height:30px;border-bottom:2px dotted #e3a9bb}
.ti-eval .ev-sign{display:grid;grid-template-columns:1fr 1fr;gap:40px;padding:30px 30px 34px}
.ti-eval .ev-sign span{display:flex;align-items:flex-end;gap:10px;font-size:.9rem;font-weight:700}
.ti-eval .ev-sign i{flex:1;border-bottom:2px solid var(--ink);height:1.6em}

.ti-eval .ev-three{padding:76px 0 64px}
.ti-eval .ev-three-g{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,5fr) minmax(0,3fr);gap:44px;align-items:start}
.ti-eval .ev-three-g>div{border-top:4px solid var(--ink);padding-top:22px}
.ti-eval .ev-three-g>.ev-law{border-top-color:var(--cfield)}
.ti-eval .ev-three p{margin:14px 0 0;line-height:1.7;color:#3d3b41}
.ti-eval .ev-fill p{font-size:1.08rem;color:var(--ink)}

.ti-eval .ev-last{padding:20px 0 60px}
.ti-eval .ev-last-g{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:64px;align-items:start}
.ti-eval .ev-qs{margin-top:20px;border-top:2px solid var(--ink)}
.ti-eval .tpl{border:0;border-radius:16px;margin:0;max-width:none;background:var(--ink)}
.ti-eval .tplbar{display:none}
.ti-eval .tplgate{background:var(--ink);text-align:left;padding:32px 30px 30px}
.ti-eval .tplgate h3{color:#fff}
.ti-eval .tplgate>p{color:#ece6e9;margin-left:0;max-width:none}
.ti-eval .tplgate>p.tplnote{color:#ffc9d6}
.ti-eval .tplcta{justify-content:flex-start}
.ti-eval .tplcta .btn{background:var(--cfield);color:var(--ink);border-color:var(--cfield);white-space:normal}
.ti-eval .tplsignin,.ti-eval .tplplans{color:#fff;text-decoration:underline}
.ti-eval .tpldfy{margin:26px 0 0;padding:24px 22px;background:#fff;border:0;border-radius:10px;text-align:left;max-width:none}
.ti-eval .tpldfy form{display:grid;grid-template-columns:1fr;gap:10px}
.ti-eval .ev-last-g:has(.tpldoc:not(.hidden-guide)){grid-template-columns:1fr}
.ti-eval .ev-last-g:has(.tpldoc:not(.hidden-guide)) .tplbar{display:flex}
.ti-eval .ev-last-g:has(.tpldoc:not(.hidden-guide)) .tpl{background:#fff;border:2px solid var(--ink)}

@media(max-width:980px){
.ti-eval .ev-three-g,.ti-eval .ev-last-g{grid-template-columns:1fr;gap:36px}
}
@media(max-width:640px){
.ti-eval .ev-top{padding:44px 0 60px}
.ti-eval .ev-form{box-shadow:6px 6px 0 var(--cfield)}
.ti-eval .ev-grid{grid-template-columns:1fr}
.ti-eval .ev-f{padding:18px 18px 22px}
.ti-eval .ev-f:not(.ev-wide):nth-child(even){border-right:0}
.ti-eval .ev-form-h{padding:16px 18px}
.ti-eval .ev-who{display:none}
.ti-eval .ev-tr{grid-template-columns:1fr 64px 1fr}
.ti-eval .ev-tr span{padding:12px 8px}
.ti-eval .ev-tr b{width:32px}
.ti-eval .ev-sign{grid-template-columns:1fr;gap:18px;padding:22px 18px 26px}
}
