/* CV directory (CvBoardController, partials cv-board.php + cv-tile.php), redesigned 2026-09-15 to match the vacancy board. The filter
   column, results bar, chips, grid, empty state and Load more come from jobs-board.css (.ndti-jb); this sheet adds the CV tiles and the
   CV-only parts (the open-to-all note, company notices, Save this search, the count-only box). Loaded only on the directory by
   CvBoardController::assets(). The class names stay clear of the designed page's baked ul.resumes / form.resume_filters rules. */

/* ---------- filter column extras ---------- */
.ndti-cvb .ndti-cvb__lock{display:flex;align-items:flex-start;gap:9px;margin:0 0 14px;padding:10px 12px;border:1px solid #f0e0b2;border-radius:12px;background:#fffaf0;color:#5e4a12;font-size:12.5px;font-weight:600;line-height:1.45}
.ndti-cvb__lock svg{flex:0 0 auto;margin-top:1px;color:#a0740b}
.ndti-cvb__lock strong{font-weight:800;color:#3f3107}
.ndti-cvb .ndti-cvb__hint{display:block;clear:both;margin:-4px 0 8px;font-size:12px;font-weight:600;line-height:1.4;color:var(--jb-faint)}
.ndti-cvb__detail{display:block;margin-top:1px;font-style:normal;font-size:12px;font-weight:600;line-height:1.3;color:var(--jb-faint)}
.ndti-cvb .ndti-jb__opt:has(input:checked) .ndti-cvb__detail{color:#3b6b45}
.ndti-cvb .ndti-jb__select option:disabled{color:#9aa7b2}

/* ---------- notices above the grid ---------- */
.ndti-cvb__note,.ndti-cvb__save{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;margin:-4px 0 18px;padding:12px 14px 12px 12px;border:1px solid var(--jb-line);border-radius:14px;background:#fff;color:var(--jb-text);font-size:13.5px;line-height:1.5}
.ndti-cvb__noteico,.ndti-cvb__saveico{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:11px;background:#fff5d6;color:#835400}
.ndti-cvb .ndti-cvb__note p{flex:1 1 300px;min-width:0;margin:0}
.ndti-cvb__note strong{color:var(--jb-ink)}
.ndti-cvb__note .ndti-btn{white-space:nowrap}
.ndti-cvb__note a:not(.ndti-btn){font-weight:800;color:var(--jb-green-d);white-space:nowrap;text-decoration:none}
.ndti-cvb__note a:not(.ndti-btn):hover{text-decoration:underline}
.ndti-cvb__note--meter{border-color:#cfe8d3;background:var(--jb-green-t);color:#1e5426}
.ndti-cvb__note--meter .ndti-cvb__noteico{background:#fff;color:var(--jb-green-d)}
.ndti-cvb__note--meter strong{color:#173f23}

/* ---------- Save this search (company plans with a filter set) ---------- */
.ndti-cvb__save{border:1.5px dashed #b9dcc0;background:#f7fbf7}
.ndti-cvb__saveico{background:#fff;color:var(--jb-green-d)}
.ndti-cvb__savetext{flex:1 1 240px;display:flex;flex-direction:column;gap:2px;min-width:0}
.ndti-cvb__savetext strong{font-size:14px;font-weight:800;line-height:1.3;color:#173f23}
.ndti-cvb__savetext small{font-size:12.5px;line-height:1.4;color:#3b6b45;overflow-wrap:anywhere}
.ndti-cvb .ndti-cvb__save input[type=text]{flex:1 1 170px;max-width:240px;height:42px;margin:0;padding:0 12px;border:1px solid #cfd8df;border-radius:11px;background:#fff;color:var(--jb-ink);font:inherit;font-size:13.5px;box-shadow:none}
.ndti-cvb .ndti-cvb__save input[type=text]:focus{outline:none;border-color:var(--jb-green);box-shadow:0 0 0 3px rgba(68,160,71,.18)}
.ndti-cvb__save .ndti-btn{white-space:nowrap}

/* ---------- count only (a company filter without a company plan) ---------- */
.ndti-cvb .ndti-cvb__locked{border-style:solid;border-color:#f0e0b2;background:#fffdf7}
.ndti-cvb__locked .ndti-jb__emptyico{background:#fff5d6;color:#835400}
.ndti-cvb .ndti-cvb__locked p{max-width:560px}

/* ---------- CV tiles ---------- */
.ndti-cvb .ndti-cvb__grid > li.resume{display:flex;min-width:0;margin:0;padding:0;list-style:none;background:none;border:0}
.ndti-cvb li.resume > a{position:relative;display:flex;flex-direction:column;gap:6px;width:100%;min-width:0;margin:0;padding:14px 14px 0;background:#fff;border:1px solid var(--jb-line);border-radius:16px;color:var(--jb-text);text-decoration:none;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.ndti-cvb li.resume > a:hover{transform:translateY(-3px);box-shadow:0 16px 36px rgba(11,22,32,.11);border-color:#c9d6e0;color:var(--jb-text);text-decoration:none}
.ndti-cvb li.resume > a:focus-visible{outline:none;border-color:var(--jb-green);box-shadow:0 0 0 3px rgba(68,160,71,.28)}
.ndti-cvb li.resume:has(.ndti-cvt__pill--featured) > a{border-color:#efd89a;background:linear-gradient(180deg,#fffdf5 0,#fff 90px)}
.ndti-cvt__head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin:0 0 4px}
.ndti-cvb .ndti-cvt__photo{display:block;flex:0 0 auto;width:48px;height:48px;max-width:none;margin:0;padding:0;border:1px solid #edf1f4;border-radius:50%;background:#f5f8f9;object-fit:cover}
.ndti-cvt__pill{display:inline-flex;align-items:center;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:800;line-height:1.4;letter-spacing:.01em;white-space:nowrap}
.ndti-cvt__pill--featured{background:#fff5d6;color:#835400}
.ndti-cvt__pill--new{background:var(--jb-green-t);color:var(--jb-green-d)}
.ndti-cvb li.resume h3{margin:0;padding:0;font-family:inherit;font-size:15px;line-height:1.35;font-weight:800;letter-spacing:-.005em;color:var(--jb-ink);overflow-wrap:anywhere}
.ndti-cvb li.resume h3 .ndti-badge{margin-left:2px;vertical-align:2px}
.ndti-cvb li.resume > a:hover h3{color:var(--jb-green-d)}
.ndti-cvt__role{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:13px;font-weight:600;line-height:1.35;color:#3b5163}
.ndti-cvt__role .ndti-badge{vertical-align:1px}
.ndti-cvt__place{display:flex;align-items:center;gap:6px;min-width:0;font-size:12.5px;font-weight:600;line-height:1.35;color:var(--jb-mute)}
.ndti-cvt__place > span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ndti-cvt__place svg{flex:0 0 auto;color:#9aabb7}
.ndti-cvt__flag{flex:0 0 auto;font-style:normal;font-size:14px;line-height:1;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.ndti-cvt__tags{display:flex;flex-wrap:wrap;gap:5px;margin:2px 0 0}
.ndti-cvt__lvl,.ndti-cvt__tag{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:800;line-height:1.35;letter-spacing:.01em}
.ndti-cvt__lvl{background:var(--jb-green-t);color:var(--jb-green-d)}
.ndti-cvt__tag{background:#edf3f9;color:#28506f}
.ndti-cvt__tag--more{background:#f1f4f7;color:#5f7183}
.ndti-cvt__creds{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px;font-weight:700;line-height:1.35;color:#5b6b7a}
.ndti-cvt__foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding:10px 0 12px;border-top:1px solid #eef2f5;font-size:11.5px;font-weight:600;line-height:1.3;color:var(--jb-faint)}
.ndti-cvt__ago{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ndti-cvt__file{flex:0 0 auto;display:inline-flex;align-items:center;gap:4px;color:#28506f;white-space:nowrap}

@media (max-width:640px){
  .ndti-cvb li.resume > a:hover{transform:none}
  .ndti-cvb .ndti-cvb__save input[type=text]{max-width:none}
  .ndti-cvb__note .ndti-btn,.ndti-cvb__save .ndti-btn{flex:1 1 100%;justify-content:center}
}
