/* more-chip.css — "+N more" with its popover, and skill chips (app/more-chip.js): shared by the
 * job cards and drawer (css/jobs.css, loaded after it) and the mentor cards (pages/mentoring.css).
 * Moved verbatim from jobs.css section 3 on 2026-10-27, so /mentoring no longer loads all of
 * jobs.css for them. Shared tokens only.
 */

/* ── 3 "+N more" and skill chips ───────────────────────────────────────────── */
/* The control looks like one more chip, in the accent, so it reads as "and these". */
.wz-more { display: inline-flex; max-width: 100%; }
.wz-more__btn {
  display: inline-flex; align-items: center; padding: 3px 10px; border: 0; border-radius: var(--pill);
  background: var(--accent-soft); color: var(--accent-ink); cursor: pointer;
  font: inherit; font-size: var(--fs-xs); font-weight: 700; line-height: 1.35; white-space: nowrap;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-ink) 16%, transparent);
  transition: background-color var(--dur-1) var(--ease-out);
}
.wz-more__btn:hover, .wz-more__btn[aria-expanded="true"] { background: var(--accent-ring); }
.wz-skills .wz-more__btn { padding: 4px 10px; }

/* The popover. In the top layer (Popover API), positioned by script under or over its control,
   so no `overflow: hidden` row, shelf or drawer clips it; it keeps to the viewport on a phone. */
.wz-more__pop {
  position: fixed; inset: auto; margin: 0; z-index: 80;
  width: max-content; max-width: min(340px, calc(100vw - 16px)); max-height: min(360px, calc(100vh - 32px));
  overflow: auto; padding: var(--space-3);
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-pop);
  /* Inherited from a card's one-line chip row: the list itself wraps. */
  white-space: normal; text-wrap: wrap; font-size: var(--fs-sm); font-weight: var(--fw-body); text-align: left;
}
.wz-more__pop[hidden] { display: none; }
.wz-more__pop:popover-open, .wz-more__pop:not([popover]):not([hidden]) { animation: wz-more-in var(--dur-2) var(--ease-out); }
.wz-more__pop.is-above { animation-name: wz-more-in-up; }
@keyframes wz-more-in { from { opacity: 0; transform: translateY(calc(var(--nudge, 4px) * -1)); } }
@keyframes wz-more-in-up { from { opacity: 0; transform: translateY(var(--nudge, 4px)); } }
.wz-more__title { margin: 0 0 var(--space-2); font-size: var(--fs-xs); font-weight: 700; line-height: 1.4; color: var(--ink); }
.wz-more__note { display: flex; align-items: center; gap: 6px; margin: var(--space-2) 0 0; font-size: var(--fs-xs); color: var(--ink); }
.wz-more__note:first-child { margin-top: 0; }

/* A skill as a chip, by what it means to this person: on the resume (green, a check), to build
   (the accent, outlined, a cap: as on the card, 2026-10-25), asked for (the accent, filled),
   related (blue), or just listed (neutral). */
ul.wz-skills { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; min-width: 0; }
.wz-skills > li { display: flex; min-width: 0; max-width: 100%; }
.wz-skill {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 4px 10px;
  border-radius: var(--pill); font-size: var(--fs-xs); font-weight: 600; line-height: 1.35;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 18%, transparent);
  overflow-wrap: anywhere;
}
.wz-skill .wz-icon { flex-shrink: 0; }
.wz-skill--have { background: var(--ok); color: var(--ok-ink); }
.wz-skill--gap {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface)); color: var(--accent-deep);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 34%, transparent);
}
.wz-skill--skill { background: var(--accent-soft); color: var(--accent-ink); }
.wz-skill--related { background: var(--info); color: var(--info-ink); }
.wz-skill--neutral { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

@media (prefers-reduced-motion: reduce) {
  .wz-more__btn { transition: none; }
  .wz-more__pop:popover-open, .wz-more__pop:not([popover]):not([hidden]) { animation: none; }
}
