/* Trainee Search — public page styles (scoped to .ts-page) */
.ts-page{
  --ink:#1c302a;--muted:#52615a;--green:#174b3f;--line:#d9dfd7;--paper:#f5f6f1;--card:#fffefa;
  --serif:"DM Serif Text","Iowan Old Style",Georgia,"Times New Roman",serif;
  --sans:"DM Sans",Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  --mono:"IBM Plex Mono","SFMono-Regular",Consolas,monospace;
  color:var(--ink);font-family:var(--sans);padding:30px 0 60px;
}
.ts-page *,.ts-page *::before,.ts-page *::after{box-sizing:border-box}
.ts-page [hidden]{display:none !important}
.ts-page .icon{width:18px;height:18px;display:inline-block;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.ts-page .workspace{display:grid;grid-template-columns:minmax(280px,320px) minmax(0,1fr);align-items:start;gap:26px}
.ts-page .side-stack{display:grid;gap:15px}
.ts-page .panel{border:1px solid var(--line);border-radius:12px;background:var(--card);box-shadow:0 2px 4px rgba(26,50,34,.025)}
.ts-page .search-panel{padding:20px}
.ts-page .side-title,.ts-page .heading-group,.ts-page .result-heading,.ts-page .examples-heading{display:flex;align-items:center}
.ts-page .side-title,.ts-page .result-heading{justify-content:space-between;gap:10px}
.ts-page .heading-group{gap:10px;min-width:0}
.ts-page .title-icon{color:var(--green);width:19px;height:19px}
.ts-page .reset{padding:3px 6px;color:#5b6b60;font-size:12px;font-weight:600;background:transparent;border:0;cursor:pointer}
.ts-page .form-intro{color:var(--muted);font-size:12.5px;margin:5px 0 17px}
.ts-page .fields{display:grid;grid-template-columns:minmax(0,1fr)}
.ts-page .fields label{color:#34473d;font-size:12.5px;font-weight:650;margin:12px 0 5px}
.ts-page .fields label:first-child{margin-top:0}
.ts-page .fields input{min-width:0;width:100%;height:39px;color:#162e23;border:1px solid #cdd5cc;background:var(--card);border-radius:6px;padding:0 11px;font-size:13px;font-family:var(--sans)}
.ts-page .fields input:focus-visible{outline:2px solid #598675;outline-offset:1px}
.ts-page .identifier-disclosure{margin:18px 0 16px;border-top:1px solid #e0e5dc;border-bottom:1px solid #e0e5dc;padding:12px 0}
.ts-page summary{list-style:none;cursor:pointer}
.ts-page summary::-webkit-details-marker{display:none}
.ts-page .identifier-disclosure summary{display:flex;align-items:center;gap:9px;min-height:32px;color:var(--green)}
.ts-page .disclosure-icon{display:flex;align-items:center;justify-content:center;width:30px;height:32px;border-radius:5px;background:#edf2e9;flex:none}
.ts-page .disclosure-copy{display:flex;flex-direction:column;flex:1;min-width:0}
.ts-page .disclosure-copy strong{font-size:12.5px;font-weight:680}
.ts-page .disclosure-copy small{font-size:10.5px;color:#5b665e;margin-top:1px}
.ts-page .chevron{width:15px;height:15px;transition:transform .15s}
.ts-page .identifier-disclosure[open] .chevron{transform:rotate(180deg)}
.ts-page .id-fields{padding:15px 0 2px}
.ts-page .typo-control{position:relative;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:-2px 0 15px}
.ts-page .typo-control strong,.ts-page .typo-control small{display:block}
.ts-page .typo-control strong{font-size:12.5px;font-weight:650;color:#384d3e}
.ts-page .typo-control small{margin-top:1px;color:#59695b;font-size:11px}
.ts-page .typo-control input{position:absolute;width:33px;height:23px;right:0;opacity:0;cursor:pointer}
.ts-page .switch-track{width:31px;height:18px;border-radius:20px;background:#8a9589;padding:3px;pointer-events:none;flex:none}
.ts-page .switch-track::before{display:block;content:'';background:#fff;border-radius:50%;width:12px;height:12px;transition:transform .12s}
.ts-page .typo-control input:checked+.switch-track{background:#2c634d}
.ts-page .typo-control input:checked+.switch-track::before{transform:translateX(13px)}
.ts-page .primary{background:var(--green);color:#fffef8;font-weight:630;font-size:13.5px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:41px;border:0;cursor:pointer}
.ts-page .primary:hover{background:#0d3b30}
.ts-page .search-submit{width:100%}
.ts-page .search-submit .icon{width:16px;height:16px;stroke-width:2}
.ts-page .form-error{color:#893c24;font-size:12px;margin:-2px 0 10px}
.ts-page h2{margin:0}
.ts-page .results{min-width:0}
.ts-page .result-heading{margin:0 1px 11px;min-height:30px}
.ts-page .result-heading h2{font-size:20px}
.ts-page .count-badge{display:inline-flex;align-items:center;min-height:20px;border-radius:20px;padding:1px 8px;background:#e7eee2;color:#496449;font-size:11px;font-weight:600;white-space:nowrap}
.ts-page .profile{overflow:hidden}
.ts-page .profile-head{display:flex;align-items:center;gap:17px;padding:18px 23px;border-bottom:1px solid #e0e5db;background:linear-gradient(100deg,#fffefa 55%,#f5f7f0 100%)}
.ts-page .portrait{flex:0 0 auto;width:73px;height:80px;border-radius:8px;border:1px solid #c9d3c6;object-fit:cover;background:#e5eadf}
.ts-page .person-heading{flex:1;min-width:0}
.ts-page .person-heading h3{font:normal clamp(25px,2.3vw,35px)/1.12 var(--serif);color:#20392c;letter-spacing:-.85px;overflow-wrap:anywhere;margin:0}
.ts-page .location{display:flex;align-items:center;gap:5px;color:#58645a;font-size:12px;margin-top:6px}
.ts-page .location .icon{width:14px;height:14px}
.ts-page .tid{text-align:right;flex:none}
.ts-page .meta-label,.ts-page .tid span{color:#5c6a60;font-size:11px}
.ts-page .tid span{display:block;margin-bottom:4px}
.ts-page .tid code,.ts-page .match-id{font:600 11.5px/1.4 var(--mono);letter-spacing:.15px;color:#335942;background:#edf2e8;border:1px solid #d9e3d5;padding:4px 8px;border-radius:4px;white-space:nowrap}
.ts-page .profile-data{padding:16px 23px 17px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:15px;row-gap:15px;margin:0}
.ts-page dt{color:#5c685e;font-size:11.3px;line-height:1.35;margin-bottom:3px;font-weight:400}
.ts-page dd{color:#26392d;font-size:13.5px;line-height:1.4;font-weight:560;overflow-wrap:anywhere;margin:0}
.ts-page .masked{font:500 12.2px/1.4 var(--mono);letter-spacing:.1px;color:#7a8579}
.ts-page .missing{color:#637065;font-weight:400}
.ts-page .protected-note{display:inline-flex;align-items:center;gap:5px;margin-top:4px;font-size:10.5px;color:#8a5a2b;background:#fbf1e2;border:1px solid #f0dcc1;border-radius:5px;padding:1px 6px}
.ts-page .protected-note .icon{width:12px;height:12px}
.ts-page .history{margin-top:17px;overflow:hidden}
.ts-page .history-head{display:flex;align-items:center;gap:10px;padding:17px 20px 15px}
.ts-page .history-head h3{font-size:16px;font-weight:660;margin:0}
.ts-page .history-head .icon{width:19px;height:19px;color:var(--green)}
.ts-page .history-head .count-badge{margin-left:auto;color:#52614f;background:#eef1e9}
.ts-page .history-scroll{overflow-x:auto}
.ts-page .history-table{width:100%;min-width:680px;border-collapse:collapse;text-align:left;table-layout:fixed}
.ts-page .history-table col:nth-child(1){width:28%}
.ts-page .history-table col:nth-child(2){width:26%}
.ts-page .history-table col:nth-child(3){width:23%}
.ts-page .history-table col:nth-child(4){width:23%}
.ts-page .status-wrap{display:flex;align-items:center;justify-content:space-between;gap:6px}
.ts-page .toggle-detail{min-width:26px;min-height:26px;flex:none;background:transparent;border:0;border-radius:4px;color:#526b56;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.ts-page .toggle-detail:hover{background:#eaf0e5}
.ts-page .toggle-detail .icon{width:15px;height:15px;transition:transform .15s}
.ts-page .toggle-detail.open .icon{transform:rotate(180deg)}
.ts-page .history-table .detail-row td{padding:0 20px 14px}
.ts-page .batch-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 18px;background:#f3f6ee;border:1px solid #dfe6d8;border-radius:7px;padding:14px;margin:0}
.ts-page .batch-details dd{font-size:12px}
.ts-page .batch-details .missing{color:#637065;font-weight:400}
.ts-page .history-table thead{background:#f1f3ec}
.ts-page .history-table th{border-block:1px solid #dfe5d9;padding:7px 8px;font-size:10.5px;font-weight:620;color:#536254}
.ts-page .history-table td{padding:12px 8px;font-size:12px;vertical-align:top;overflow-wrap:anywhere;border:0}
.ts-page .history-table th:first-child,.ts-page .history-table td:first-child{padding-left:20px}
.ts-page .history-table th:last-child,.ts-page .history-table td:last-child{padding-right:13px}
.ts-page .history-table tr.batch-row:not(:first-child){border-top:1px solid #e3e7df}
.ts-page .occup{display:block;font-size:12.8px;color:#294034;font-weight:650}
.ts-page .batch-id{display:block;font:10.4px/1.45 var(--mono);margin-top:4px;color:#58685c}
.ts-page a.batch-link{text-decoration:none;cursor:pointer}
.ts-page a.batch-link:hover{color:#0d6b58;text-decoration:underline}
.ts-page .ts-badge{display:inline-flex;align-items:center;gap:5px;color:#2e5c3f;background:#eaf3e6;padding:3px 7px;border-radius:20px;font:600 10.4px/1.35 var(--sans);white-space:nowrap}
.ts-page .ts-badge i{width:5px;height:5px;background:#5d865e;border-radius:50%}
.ts-page .ts-badge.ongoing{color:#815129;background:#fbefdb}
.ts-page .ts-badge.ongoing i{background:#b17b39}
.ts-page .empty-state{display:grid;justify-items:center;text-align:center;padding:46px 22px}
.ts-page .empty-symbol{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;color:#46694e;background:#eef2e8}
.ts-page .empty-symbol .icon{width:23px;height:23px}
.ts-page .empty-state h3{margin-top:14px;font:normal 27px/1.15 var(--serif)}
.ts-page .empty-state p{max-width:420px;font-size:13px;color:#566357;margin-top:6px}
.ts-page .match-list{padding:4px 17px}
.ts-page .match-row{width:100%;display:flex;align-items:center;gap:12px;text-align:left;background:transparent;border:0;padding:14px 1px;cursor:pointer;font-family:var(--sans)}
.ts-page .match-row+.match-row{border-top:1px solid var(--line)}
.ts-page .match-row:hover .match-name{color:#96613f}
.ts-page .match-row img{width:45px;height:48px;object-fit:cover;border-radius:5px}
.ts-page .match-person{display:grid;gap:2px;flex:1;min-width:0}
.ts-page .match-name{font-weight:630;font-size:15px;color:var(--ink)}
.ts-page .match-desc{color:#596559;font-size:12px}
.ts-page .match-person .compared{font-size:11px;color:#506554;margin-top:2px}
.ts-page .match-grade{display:inline-block;align-self:flex-start;white-space:nowrap;border-radius:4px;font-size:11px;font-weight:650;padding:2px 6px;color:#754b28;background:#f8eddc}
.ts-page .match-grade.exact{color:#2f603f;background:#e9f1e3}
.ts-page .match-record-id{display:grid;gap:5px;justify-items:end}
.ts-page .match-evidence{display:flex;flex-wrap:wrap;align-items:center;gap:5px 9px;font-size:12px;color:#526452;padding:0 1px 9px}
.ts-page .review-note{font-size:12.5px;color:#58675a;margin-bottom:9px}
.ts-page .back-button{padding:5px 2px;font-size:12px;font-weight:600;color:var(--green);background:transparent;border:0;cursor:pointer;display:inline-flex;align-items:center;gap:6px;margin-bottom:9px}
.ts-page .no-history{color:var(--muted);font-size:13px;padding:5px 20px 22px}
@media(max-width:960px){
  .ts-page .workspace{grid-template-columns:1fr}
  .ts-page .profile-data{grid-template-columns:repeat(2,1fr)}
  .ts-page .batch-details{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  .ts-page .profile-head{flex-wrap:wrap;padding:14px}
  .ts-page .profile-data{grid-template-columns:1fr 1fr;padding:13px 14px}
}
