/* Atlas Talent — Employee Profile page styles */

.profile-hero {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 24px;
  padding: 22px 24px 18px;
  background: var(--surface-tint);
  border-bottom: 1px solid var(--line);
}
[data-density="compact"] .profile-hero { padding: 14px 18px 10px; }

.profile-id { display: flex; align-items: flex-start; gap: 18px; }
.profile-id .avatar-lg { width: 64px; height: 64px; font-size: 22px; background: var(--accent-tint); color: var(--accent); border-color: var(--accent-tint); }
.profile-name { font-size: 24px; font-weight: 600; letter-spacing: -0.018em; margin: 0; }
.profile-role { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.profile-meta-row { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; font-size: 12px; }
.profile-meta-row span b { color: var(--ink-4); font-weight: 500; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; margin-right: 6px; }
.profile-meta-row .v { color: var(--ink-2); }

.profile-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px;
}
.profile-stat { padding: 10px 12px; }
.profile-stat .lab { font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-4); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.profile-stat .val { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 6px; }
.profile-stat .sub { font-size: 11px; color: var(--ink-4); margin-top: 2px; }

/* layout */
.profile-body { display: grid; grid-template-columns: 1fr 320px; gap: 16px; padding: 16px 24px 40px; }
[data-density="compact"] .profile-body { padding: 10px 18px 24px; }

/* competencies */
.comp-list { padding: 4px 0; }
.comp-row { display: flex; flex-direction: column; gap: 4px; padding: 10px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.comp-row:hover { background: var(--bg-2); }
.comp-row:last-child { border-bottom: 0; }
.comp-row-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.comp-row-sub { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.comp-row-bar { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.comp-name { font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.comp-code { font-family: var(--font-mono); font-size: 10px; color: var(--ink-4); }
.comp-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ladder { display: flex; gap: 5px; align-items: center; flex: 1; }
.ladder-cell { height: 6px; flex: 1; background: var(--bg-3); border-radius: 999px; position: relative; min-width: 14px; transition: background 120ms ease; }
.ladder-cell.f { background: var(--accent); }
.ladder-cell.target::after {
  content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%);
  width: 2px; height: 3px; background: var(--ink-4); border-radius: 999px; pointer-events: none;
}
.ladder-cell.partial { background: linear-gradient(90deg, var(--accent) 55%, var(--bg-3) 55%); }
.comp-target { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); text-align: right; flex-shrink: 0; }
.comp-evidence { font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); white-space: nowrap; }

/* timeline */
.timeline { padding: 6px 16px 14px; }
.tl-row { display: grid; grid-template-columns: 90px 16px 1fr; gap: 14px; align-items: stretch; padding: 0; position: relative; }
.tl-date { align-self: flex-start; padding: 10px 0; font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); }
.tl-content { align-self: flex-start; padding: 10px 0; }
.tl-rail { position: relative; display: flex; justify-content: center; }
.tl-rail::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; margin-left: -0.5px; background: var(--line-strong); }
.tl-row:first-child .tl-rail::before { top: 18px; }
.tl-row:last-child .tl-rail::before { display: none; }
.tl-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink-4); position: relative; z-index: 1; margin-top: 10px; flex-shrink: 0; }
.tl-dot.ok { border-color: var(--accent); background: var(--accent); }
.tl-dot.event { border-color: var(--ink); }
.tl-content .ttl { font-size: 12.5px; font-weight: 500; }
.tl-content .body { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.5; }
.tl-content .tag { margin-right: 6px; }

/* review history */
.rev-row { display: grid; grid-template-columns: 80px 1fr auto; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); align-items: center; font-size: 12px; }
.rev-row:last-child { border-bottom: 0; }
.rev-cycle { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.rev-rating { font-weight: 500; }

/* readiness widget */
.readiness { padding: 14px 16px; }
.read-bar { height: 8px; background: var(--bg-3); border-radius: 999px; overflow: hidden; margin: 12px 0 8px; position: relative; }
.read-fill { height: 100%; background: var(--accent); border-radius: 999px; }
.read-marker { position: absolute; top: -3px; width: 1px; height: 14px; background: var(--ink); }
.read-criteria { padding: 6px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.crit-row { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 12px; border-bottom: 1px dashed var(--line); }
.crit-row:last-child { border-bottom: 0; }
.crit-row .check { width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; font-size: 8px; color: #fff; }
.crit-row .check.ok { background: var(--accent); }
.crit-row .check.partial { background: #A6791E; }
.crit-row .check.no { background: var(--bg-3); border: 1px solid var(--line-strong); color: transparent; }
.crit-row .lab { color: var(--ink-2); }
.crit-row .lab small { display: block; font-size: 10.5px; color: var(--ink-4); margin-top: 2px; }
.crit-row .meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-4); }

/* tabs */
.seg-tabs { display: inline-flex; padding: 2px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; }
.seg-tabs button { height: 26px; padding: 0 12px; border: 0; background: transparent; font-size: 11.5px; color: var(--ink-3); border-radius: 3px; cursor: pointer; }
.seg-tabs button[data-active] { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }

/* chip close helper */
.chip-close { color: var(--ink-4); margin-left: 4px; }
.chip-dashed { border-style: dashed; }
