.talent {
  --talent-ink: var(--ev-ink, #17233c);
  --talent-muted: var(--ev-ink-2, #52647d);
  --talent-line: var(--ev-line, #d8e2ef);
  --talent-surface: var(--ev-surface, #fff);
  --talent-inset: var(--ev-inset, #f4f7fc);
  --talent-blue: #1769d2;
  --talent-blue-soft: #eaf3ff;
  --talent-green: #16835d;
  --talent-green-soft: #eaf8f1;
  box-sizing: border-box;
  max-width: 1120px;
  margin: 2rem auto;
  padding: 0 1rem;
  color: var(--talent-ink);
}

.talent *, .talent *::before, .talent *::after { box-sizing: border-box; }
.talent h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: .5rem 0 1rem; }
.talent h2 { font-size: 1.25rem; }
.talent p { line-height: 1.6; }
.talent small { display: block; line-height: 1.5; }
.talent a { overflow-wrap: anywhere; }
.talent .talent-muted { color: var(--talent-muted); }
.talent-lead { max-width: 760px; }
.talent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.talent-card, .talent-panel { min-width: 0; background: var(--talent-surface); border: 1px solid var(--talent-line); border-radius: 16px; padding: 1.5rem; overflow-wrap: anywhere; }
.talent-panel { margin: 1.25rem 0; }
.talent-form { display: grid; gap: 1rem; }
.talent-form label, .talent-filters label { display: block; font-weight: 600; margin-bottom: .4rem; }
.talent input:not([type="checkbox"]):not([type="hidden"]), .talent textarea {
  max-width: 100%; width: 100%; font: inherit; padding: .78rem .9rem; border: 1px solid var(--talent-line);
  border-radius: 10px; background: var(--talent-surface); color: var(--talent-ink); transition: border-color .16s, box-shadow .16s;
}
.talent textarea { resize: vertical; }
.talent input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--talent-blue); flex: 0 0 auto; }
.talent-filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1rem; }
.talent-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1rem 0; }
.talent-button { display: inline-flex; justify-content: center; align-items: center; gap: .5rem; min-height: 44px; border: 1px solid var(--talent-line); border-radius: 10px; padding: .7rem 1rem; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; color: var(--talent-ink); background: var(--talent-surface); transition: transform .16s, box-shadow .16s, background .16s; }
.talent-button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px #17233c16; }
.talent-primary { background: var(--talent-blue); color: #fff; border-color: var(--talent-blue); }
.talent-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .75rem 0; padding: 0; list-style: none; }
.talent-tags li { border-radius: 999px; padding: .3rem .65rem; background: var(--talent-inset); font-size: .9rem; }
.talent-notice { padding: 1rem; border-left: 4px solid var(--talent-blue); background: var(--talent-blue-soft); border-radius: 8px; }
.talent .errorlist, .talent-error { color: var(--ev-danger, #b42318); }
.talent-bio { white-space: pre-line; }
.talent a:focus-visible, .talent button:focus-visible, .talent input:focus-visible, .talent textarea:focus-visible { outline: 3px solid #699dff; outline-offset: 3px; }

/* Candidate profile editor */
.talent-editor { width: 100%; max-width: none; margin: 0; padding: 0; }
.talent-back { display: inline-flex; gap: .5rem; align-items: center; color: var(--talent-blue); text-decoration: none; font-weight: 700; margin: 0 0 1.25rem; }
.talent-back:hover { text-decoration: underline; }
.talent-editor-hero {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 2rem; align-items: center; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 22px;
  color: #fff; background: radial-gradient(circle at 88% 20%, #73b4ff8a, transparent 30%), linear-gradient(118deg, #0b4ca6 0%, #176fd1 52%, #5365d8 100%);
  box-shadow: 0 18px 42px #1759a529;
}
.talent-editor-hero::after { content: ""; position: absolute; z-index: -1; width: 320px; height: 320px; right: 8%; bottom: -245px; border: 1px solid #ffffff35; border-radius: 50%; box-shadow: 0 0 0 24px #ffffff09, 0 0 0 48px #ffffff08; }
.talent-editor-hero__copy { max-width: 820px; }
.talent-editor-hero h1 { max-width: 760px; margin: .45rem 0 .7rem; font-size: clamp(2rem, 4.2vw, 3.35rem); letter-spacing: -.035em; }
.talent-editor-hero__copy > p:last-child { max-width: 740px; margin: 0; color: #e2efff; font-size: clamp(1rem, 1.45vw, 1.12rem); }
.talent-eyebrow { margin: 0; color: var(--talent-blue); font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.talent-editor-hero .talent-eyebrow { color: #c6e0ff; }
.talent-editor-hero .talent-eyebrow span { padding: 0 .25rem; color: #fff; }
.talent-hero-mark { display: grid; place-items: center; width: 104px; height: 104px; margin-right: clamp(0rem, 4vw, 3rem); border: 1px solid #ffffff66; border-radius: 28px; background: #ffffff19; transform: rotate(4deg); }
.talent-hero-mark span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 19px; color: #0e61bd; background: #fff; font-size: 2rem; font-weight: 900; transform: rotate(-4deg); }
.talent-hero-foot { grid-column: 1 / -1; display: flex; gap: 2.25rem; flex-wrap: wrap; border-top: 1px solid #ffffff40; padding-top: 1rem; }
.talent-hero-foot span { display: grid; gap: .2rem; }
.talent-hero-foot strong { font-size: .9rem; }
.talent-hero-foot small { color: #d7eaff; }
.talent-flash { margin: 1rem 0; padding: .9rem 1rem; border: 1px solid #a8ddc5; border-radius: 12px; color: #126548; background: #effaf4; font-weight: 600; }
.talent-flash--error { border-color: #f0b7ba; color: #a22830; background: #fff3f3; }
.talent-flash--info { border-color: #b9d6f7; color: #244b7e; background: #eff6ff; }
.talent-visibility { display: flex; align-items: center; gap: 1rem; margin: 1.2rem 0; padding: 1.1rem 1.25rem; border: 1px solid #e6c98c; border-radius: 15px; background: linear-gradient(100deg, #fffaf0, var(--talent-surface)); }
.talent-visibility--public { border-color: #a8ddc5; background: linear-gradient(100deg, #f0fbf5, var(--talent-surface)); }
.talent-visibility__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #956000; background: #ffedc7; font-size: 1.35rem; font-weight: 900; flex: 0 0 auto; }
.talent-visibility--public .talent-visibility__icon { color: #126548; background: #d7f2e3; }
.talent-visibility__copy { min-width: 0; flex: 1; }
.talent-visibility__copy .talent-eyebrow { color: var(--talent-muted); }
.talent-visibility h2 { margin: .15rem 0; font-size: 1.05rem; }
.talent-visibility p:last-child { margin: 0; color: var(--talent-muted); font-size: .9rem; }
.talent-editor-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 1.25rem; align-items: start; }
.talent-profile-form { display: grid; gap: 0; margin: 0; padding: 0; overflow: hidden; }
.talent-form-section { padding: clamp(1.15rem, 2.3vw, 1.8rem); border-bottom: 1px solid var(--talent-line); }
.talent-section-heading { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1.25rem; }
.talent-section-number { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 11px; color: var(--talent-blue); background: var(--talent-blue-soft); font-size: .78rem; font-weight: 900; }
.talent-section-heading h2 { margin: 0 0 .25rem; font-size: 1.12rem; }
.talent-section-heading p { margin: 0; color: var(--talent-muted); font-size: .9rem; }
.talent-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.talent-field { min-width: 0; }
.talent-field--wide { grid-column: 1 / -1; }
.talent-field label { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; margin-bottom: .4rem; font-size: .9rem; font-weight: 750; }
.talent-field label span { color: var(--talent-muted); font-size: .75rem; font-weight: 600; }
.talent-field small, .talent-choice-group > small { margin-top: .4rem; color: var(--talent-muted); font-size: .78rem; }
.talent-field textarea { min-height: 130px; }
.talent-field input:focus, .talent-field textarea:focus { border-color: var(--talent-blue); box-shadow: 0 0 0 3px #2476d51b; outline: 0; }
.talent-choice-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.talent-choice-group > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: 0; padding: 0; list-style: none; }
.talent-choice-group > ul li { min-width: 0; }
.talent-choice-group > ul label { display: flex; gap: .7rem; align-items: center; height: 100%; min-height: 64px; margin: 0; padding: .85rem; border: 1px solid var(--talent-line); border-radius: 12px; background: var(--talent-inset); cursor: pointer; font-weight: 700; }
.talent-choice-group > ul label:has(input:checked) { border-color: #79aee9; background: var(--talent-blue-soft); box-shadow: inset 0 0 0 1px #79aee9; }
.talent-choice-group input { margin: 0; }
.talent-empty-choice { margin: 0; padding: 1rem; border: 1px dashed var(--talent-line); border-radius: 12px; color: var(--talent-muted); background: var(--talent-inset); }
.talent-consent-card { margin: .8rem 0; padding: 1rem; border: 1px solid var(--talent-line); border-radius: 13px; background: var(--talent-inset); }
.talent-consent-card--legal { background: transparent; }
.talent-checkbox-row { display: flex; gap: .75rem; align-items: flex-start; margin: 0; cursor: pointer; }
.talent-checkbox-row input { margin-top: .18rem; }
.talent-checkbox-row span { display: grid; gap: .3rem; }
.talent-checkbox-row strong { font-size: .9rem; }
.talent-checkbox-row small { color: var(--talent-muted); font-size: .8rem; font-weight: 400; }
.talent-form-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem clamp(1.15rem, 2.3vw, 1.8rem); background: var(--talent-inset); }
.talent-form-actions p { max-width: 520px; margin: 0; color: var(--talent-muted); font-size: .8rem; }
.talent-form-actions .talent-button { flex: 0 0 auto; }
.talent-editor-aside { display: grid; gap: 1rem; }
.talent-aside-card { margin: 0; padding: 1.25rem; }
.talent-aside-card > h2 { margin: .45rem 0 .9rem; font-size: 1.05rem; }
.talent-steps { display: grid; gap: 1rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.talent-steps li { display: flex; gap: .75rem; align-items: flex-start; }
.talent-steps li > span { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 auto; border-radius: 50%; color: var(--talent-blue); background: var(--talent-blue-soft); font-size: .78rem; font-weight: 900; }
.talent-steps strong { display: block; margin: .15rem 0; font-size: .84rem; }
.talent-steps small { color: var(--talent-muted); font-size: .78rem; }
.talent-privacy-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--talent-green); background: var(--talent-green-soft); font-size: 1.3rem; }
.talent-privacy-card ul { display: grid; gap: .5rem; margin: 0 0 .8rem; padding-left: 1.15rem; color: var(--talent-muted); font-size: .82rem; }
.talent-privacy-card > p:last-child, .talent-privacy-controls > p:not(.talent-eyebrow) { margin: .75rem 0 0; color: var(--talent-muted); font-size: .78rem; }
.talent-privacy-controls form { margin-top: .65rem; }
.talent-privacy-controls .talent-button { width: 100%; justify-content: flex-start; font-size: .82rem; }
.talent-button--quiet { background: var(--talent-inset); }
.talent-button--danger { color: #a22830; border-color: #efc6c8; background: #fff7f7; }
.talent-directory-link { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.1rem; border: 1px solid var(--talent-line); border-radius: 13px; color: var(--talent-blue); background: var(--talent-surface); text-decoration: none; }
.talent-directory-link strong { display: block; font-size: .88rem; }
.talent-directory-link small { margin-top: .2rem; color: var(--talent-muted); }
.talent-directory-link > span:last-child { font-size: 1.2rem; }
.talent-form .errorlist { margin: 0 0 .35rem; padding-left: 1.15rem; font-size: .8rem; }
.talent-form > .errorlist { margin: 1rem 1.5rem 0; }
.talent-profile-form > input[type="hidden"] { display: none; }
.talent .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

html[data-theme="dark"] .talent {
  --talent-ink: #e7edf8; --talent-muted: #a8b7cd; --talent-line: #31435d; --talent-surface: #142238;
  --talent-inset: #101c2d; --talent-blue-soft: #1b3557; --talent-green-soft: #18392e;
}
html[data-theme="dark"] .talent-visibility { border-color: #645338; background: linear-gradient(100deg, #322a1c, var(--talent-surface)); }
html[data-theme="dark"] .talent-visibility--public { border-color: #315b49; background: linear-gradient(100deg, #18372b, var(--talent-surface)); }
html[data-theme="dark"] .talent-flash { border-color: #315b49; color: #a8e0c0; background: #18372b; }
html[data-theme="dark"] .talent-flash--error { border-color: #70434b; color: #ffc1c9; background: #38232b; }
html[data-theme="dark"] .talent-flash--info { border-color: #36577e; color: #c3dcff; background: #1a2f49; }
html[data-theme="dark"] .talent-choice-group > ul label:has(input:checked) { border-color: #5688c3; }
html[data-theme="dark"] .talent-button--danger { color: #ffc1c9; border-color: #70434b; background: #38232b; }

@media (max-width: 1050px) {
  .talent-editor-grid { grid-template-columns: minmax(0, 1.35fr) minmax(250px, .8fr); }
  .talent-hero-mark { margin-right: 0; }
}
@media (max-width: 800px) {
  .talent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .talent-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .talent-editor-grid { grid-template-columns: minmax(0, 1fr); }
  .talent-editor-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .talent-privacy-controls, .talent-directory-link { grid-column: 1 / -1; }
}
@media (max-width: 550px) {
  .talent-grid, .talent-filters, .talent-field-grid, .talent-choice-group > ul, .talent-editor-aside { grid-template-columns: minmax(0, 1fr); }
  .talent-card, .talent-panel { padding: 1rem; }
  .talent { margin: 1rem auto; }
  .talent-editor { margin: 0; padding: 0; }
  .talent-editor-hero { grid-template-columns: minmax(0, 1fr); gap: 1rem; border-radius: 16px; }
  .talent-hero-mark { display: none; }
  .talent-hero-foot { gap: .85rem; }
  .talent-hero-foot span { flex: 1 1 100%; }
  .talent-visibility { align-items: flex-start; flex-wrap: wrap; }
  .talent-visibility > .talent-button { width: 100%; }
  .talent-form-actions { align-items: stretch; flex-direction: column; }
  .talent-form-actions .talent-button { width: 100%; }
}
