/* Canvas CP: the candidate page (docs/plans/candidate-page.md). */
/* Layers: the sticky section bar 4, the hero and its menus 3, the tab bar 2,
   the Held pill 1. A hero at 4 ties the section bar and scrolls over it. */
.rec-cand .rec-apx-hero { position: relative; z-index: 3; }
.rec-cand .rec-apx-hero > * { min-width: 0; }
.rec-cand .rec-prof__hero__head { padding-left: 0; padding-bottom: 0; border-bottom: 0; }
.rec-cand-namerow { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem 1rem; }
.rec-cand-namerow h1 { margin: 0; }
.rec-cand-origin { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.2rem 0.75rem 0.2rem 0.25rem; border: 1px solid var(--hs-line); border-radius: 999px; background: #fff; font-size: 0.86rem; color: var(--hs-ink-soft); }
.rec-cand-origin b { color: var(--hs-ink); font-weight: 600; }
.rec-cand-origin__kind { font-family: var(--ub-font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--pp-tint, #f2effa); color: var(--pp-mid, #49338d); }
.rec-cand-origin__kind--src { background: #f6f2ea; color: #7a6219; }
.rec-cand-origin__kind--ft { background: #eef3f8; color: #2f5f8a; }
.rec-cand-origin__ans { display: inline-flex; align-items: center; gap: 0.2rem; padding-left: 0.55rem; border-left: 1px solid var(--hs-line); color: var(--pp-mid, #49338d); font-weight: 600; }
.rec-cand-origin__ans svg { width: 13px; height: 13px; transform: rotate(-90deg); }
button.rec-cand-origin { cursor: pointer; font: inherit; font-size: 0.86rem; }
button.rec-cand-origin:hover { border-color: var(--line2, #cfc5e6); background: var(--pp-tint, #f2effa); }
.rec-cand-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.7fr); gap: 0.55rem 2.4rem; margin-top: 0.7rem; font-size: 0.88rem; align-items: center; }
.rec-cand-facts__sets { display: contents; }
.rec-cand .rec-prof__edit { margin-top: 0.7rem; }
.rec-cand-fact { display: inline-flex; align-items: center; gap: 0.6rem; min-width: 0; }
.rec-cand-fact > * { flex: none; }
.rec-cand-fact--wide { grid-column: 2 / -1; }
.rec-cand-fact__k { font-family: var(--ub-font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hs-ink-soft); }
.rec-cand-fact > a, .rec-cand-fact > span:not(.rec-cand-fact__k):not(.rec-tags) { color: var(--hs-ink); }
.rec-cand-fact > a { cursor: pointer; text-decoration: none; }
.rec-cand-fact > a:hover { color: var(--pp-mid, #49338d); text-decoration: underline; text-underline-offset: 3px; }
.rec-cand-fact > a:not(.rec-cand-chipadd):not(.rec-cand-fact__add) { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-cand-fact > .rec-tags { display: flex; flex: 0 1 auto; flex-wrap: nowrap; gap: 0.3rem; min-width: 0; overflow: hidden; }
.rec-cand-fact .rec-tag { flex: none; max-width: 12rem; }
.rec-cand-fact .rec-tag[hidden] { display: none; }
.rec-cand-fact > a.rec-cand-fact__add { color: var(--pp-mid, #49338d); font-weight: 600; cursor: pointer; }
.rec-cand-fact > a.rec-cand-fact__add { font-weight: 500; border-bottom: 1px dashed currentColor; }
/* A set's picker opens from a chip at the end of its chips, as the next one would sit: the
   chips' height and radius, dashed because it adds (requester, 2026-11-09). */
.rec-cand-fact > a.rec-cand-chipadd { display: inline-flex; align-items: center; gap: 0.2rem; box-sizing: border-box; height: 1.34rem; padding: 0 0.45rem 0 0.35rem; border: 1px dashed color-mix(in srgb, var(--pp-mid, #49338d) 45%, transparent); border-radius: 4px; font-size: 0.74rem; font-weight: 600; color: var(--pp-mid, #49338d); white-space: nowrap; }
.rec-cand-fact > a.rec-cand-chipadd:hover { border-style: solid; border-color: var(--pp-mid, #49338d); background: var(--pp-tint, #f2effa); text-decoration: none; }
.rec-cand-more { flex: none; font: inherit; font-size: 0.78rem; padding: 0.1rem 0.5rem; border: 1px solid var(--hs-line); border-radius: 6px; background: var(--pp-tint, #f2effa); color: var(--pp-mid, #49338d); font-weight: 600; cursor: pointer; white-space: nowrap; }
.rec-cand-more:hover { border-color: var(--line2, #cfc5e6); }
.rec-cand-fact .rec-tag.rec-cand-dnc { color: var(--ub-danger, #c0392f); border-color: color-mix(in srgb, var(--ub-danger, #c0392f) 40%, transparent); background: color-mix(in srgb, var(--ub-danger, #c0392f) 10%, transparent); font-weight: 600; }
.rec-cand-approw { display: flex; align-items: center; gap: 0.9rem; flex-wrap: nowrap; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid color-mix(in srgb, var(--hs-gold) 45%, transparent); }
.rec-cand-approw__app, .rec-cand-move { display: contents; }
.rec-cand-approw .rec-apx-stages { flex: 1 1 0; min-width: 0; overflow: hidden; margin-right: 1.25rem; }
.rec-cand-approw .rec-apx-st__n { white-space: nowrap; }
.rec-cand-approw .rec-apx-st--off { display: none; }
.rec-cand-approw .rec-cand-st--tight .rec-apx-st + .rec-apx-st::before { width: 0.9rem; margin: 0 0.35rem; }
.rec-cand-approw .rec-cand-st--compact .rec-apx-st:not(.rec-apx-st--now) .rec-apx-st__n,
.rec-cand-approw .rec-cand-st--near .rec-apx-st:not(.rec-apx-st--now):not(.rec-apx-st--near) .rec-apx-st__n { display: none; }
.rec-cand-approw .rec-apx-herofacts { margin-left: auto; white-space: nowrap; }
.rec-cand-approw--none { gap: 0.9rem; justify-content: flex-start; }
.rec-cand-noapp { color: var(--hs-ink-soft); font-size: 0.86rem; }
.rec-cand-sep { color: var(--hs-line-strong, #bfb6d3); }
.rec-cand-rej { color: var(--ub-danger, #c0392f); }
.rec-cand-jobsel { flex: none; }
.rec-cand-jobsel__btn { width: 15.5rem; justify-content: space-between; gap: 0.5rem; }
.rec-cand-jobsel__t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; font-weight: 400; }
.rec-cand-jobsel__t b { font-weight: 600; }
.rec-cand-jobsel__btn svg { width: 14px; height: 14px; flex: none; }
.rec-cand-jobsel .rec-ivmanage__menu { left: 0; right: auto; min-width: 20rem; }
.rec-cand-appi--on { background: var(--pp-tint, #f2effa); }
.rec-cand-tabcard { margin-top: 1rem; }
/* The tabs switch in place between long and short panels, and a classic
   scrollbar coming and going moved the page by its width. The shell keeps the
   viewport's full width instead, so the bar lies over the right padding. Not a
   reserved gutter or a forced track: both leave a strip on a short panel.
   `:where()` keeps it below the wizard's and dialogs' `overflow: hidden` lock. */
:where(html:has(.rec-cand-tabcard)) { overflow-x: hidden; }
.home-shell:has(.rec-cand-tabcard) { width: 100vw; }
.rec-cand-tabs { position: relative; top: 0; z-index: 2; display: flex; align-items: center; margin: 0; padding: 0 0.6rem; background: #fff; border: 1px solid rgb(228, 223, 240); border-bottom: 0; border-radius: 14px 14px 0 0; }
.rec-cand-tabs .rec-sectionbar__scroll { flex: 1; min-width: 0; }
.rec-cand-tabs .rec-sectionbar__tab { cursor: pointer; }
/* The tabs borrow the section bar's classes, and with them its transition
   names; a name used twice skips every View Transition on the page. */
.rec-cand-tabs { view-transition-name: none; }
.rec-cand-tabs .rec-sectionbar__tab--on .rec-sectionbar__ink { view-transition-name: rec-cand-tab-ink; }
::view-transition-group(rec-cand-tab-ink) { z-index: 4; animation-duration: 0.26s; animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
::view-transition-old(rec-cand-tab-ink), ::view-transition-new(rec-cand-tab-ink) { height: 100%; }
.rec-cand-n { margin-left: 0.35rem; font-family: var(--ub-font-mono); font-size: 0.72rem; color: var(--hs-ink-faint); }
.rec-cand-tabacts { flex: none; padding: 0 0.6rem; }
.rec-cand-acts { display: inline-flex; gap: 0.5rem; align-items: center; }
.rec-cand-panel > :first-child { border-top-left-radius: 0; border-top-right-radius: 0; margin-top: 0; }
.rec-cand-panel .rec-ov__panel + .rec-ov__panel, .rec-cand-panel .rec-panel + .rec-ov__panel { margin-top: 1rem; }
.rec-cand-panel--iv .rec-ov__head, .rec-cand-panel--notes .rec-ov__head, .rec-cand-panel--emails .rec-ov__head { display: none; }
.rec-cand-panel--iv .rec-apo1-sub:first-of-type { margin-top: 0.2rem; }
.rec-cand-ftpanel { padding: 0; overflow: hidden; }
.rec-cand-ftnote { margin: 0; padding: 0.8rem 1.25rem; font-size: 0.82rem; color: var(--hs-ink-soft); }
.rec-cand-fttabs { border-top: 1px solid var(--hs-line); }
.rec-cand-fttabs .rec-jobtabs__tab { cursor: pointer; }
.rec-cand-ftbody { padding: 1.1rem 1.25rem 1.25rem; }
.rec-cand-ftbody .rec-fh__note + .rec-fh__note { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--hs-line); }
.rec-cand-ftbody .rec-fh__notehead { margin: 0 0 0.3rem; font-size: 0.86rem; font-weight: 400; }
.rec-cand-in { animation: rec-cand-in 180ms cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes rec-cand-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rec-cand-in { animation: none; } }
a.rec-cand-origin { cursor: pointer; font-size: 0.86rem; text-decoration: none; }
a.rec-cand-origin:hover { border-color: var(--line2, #cfc5e6); background: var(--pp-tint, #f2effa); }
.rec-tagpicker__pick { display: flex; flex: 1; min-width: 0; align-items: center; gap: 0.45rem; cursor: pointer; }
.rec-tagpicker__check { flex: none; margin: 0; accent-color: var(--ub-accent); }
.rec-tagpicker__pick:not(:has(.rec-tagpicker__check:checked)) .rec-tagpicker__on { display: none; }
.rec-tagpicker__opt:has(.rec-tagpicker__check:checked) { background: var(--pp-tint, var(--hs-active)); box-shadow: inset 2px 0 0 var(--ub-accent); }
.rec-tagpicker__opt:has(.rec-tagpicker__check:checked) .rec-tagpicker__n { color: var(--ub-accent); }

/* Previous and Next through the job's Candidates tab the page was opened from. */
.rec-cand-stepslot { display: contents; }
.rec-cand-step { display: flex; align-items: center; gap: 1rem; margin-bottom: calc(8px - 1rem); font-size: 0.86rem; }
.rec-cand-step__back { display: inline-flex; align-items: center; gap: 0.3rem; min-width: 0; color: var(--hs-ink-soft); text-decoration: none; }
.rec-cand-step__back:hover { color: var(--hs-ink); text-decoration: underline; }
.rec-cand-step__back svg { width: 1rem; height: 1rem; flex: none; }
.rec-cand-step__back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-cand-step__pager { display: inline-flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.rec-cand-step__count { min-width: 4.5rem; text-align: center; color: var(--hs-ink-soft); font-variant-numeric: tabular-nums; }
.rec-cand-step__arrow { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border: 1px solid var(--hs-line); border-radius: var(--ub-radius-sm, 9px); background: #fff; color: var(--hs-ink); }
.rec-cand-step__arrow svg { width: 1.1rem; height: 1.1rem; }
a.rec-cand-step__arrow:hover { border-color: var(--ub-primary); color: var(--ub-primary); }
.rec-cand-step__arrow[aria-disabled="true"] { color: var(--hs-ink-faint, #8a8598); background: transparent; cursor: default; }
.rec-cand-step a:focus-visible { outline: 2px solid var(--ub-primary); outline-offset: 2px; }
