/* ===========================================================================
   WE People — screen-specific styles.
   Loaded ONLY by the WE People pages that need it. Everything here builds on
   the tokens in ../style.css; nothing is redefined, nothing is overridden.
   No build step, no dependencies, no external fonts, no CDN references.
   Mobile-first, same as the parent sheet.
   =========================================================================== */

/* --- Inner tab bar (My Info sections) -------------------------------------
   The page-level nav is the dark pill row in style.css. This is its light
   twin, used INSIDE a card to switch sections of one record. Scrolls
   horizontally on a phone rather than wrapping to three ragged lines.
   ------------------------------------------------------------------------- */
.tabbar {
  display: flex;
  gap: .3rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin: -.25rem -.25rem .85rem;
  padding: .25rem;
  /* Positioned so a tab's offsetLeft is measured against this bar and the
     scroll-into-view arithmetic in the page script stays correct. */
  position: relative;
}
.tabbar::-webkit-scrollbar { display: none; }
.tabbar button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: .45rem .78rem;
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--line-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
}
.tabbar button[aria-selected="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
[hidden] { display: none !important; }

/* --- Restricted / masked rows ---------------------------------------------
   The mask is a picture of a database refusal, not a CSS trick. Styled to
   look deliberately inert: no hover, no affordance, nothing to click.
   ------------------------------------------------------------------------- */
.masked-row {
  padding: .7rem 0;
  border-bottom: 1px solid var(--line-2);
}
.masked-row:last-child { border-bottom: 0; }
.masked-row .mk-label {
  font-size: .8rem;
  font-weight: 650;
  color: var(--ink-2);
}
.mask {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: .16em;
  color: #97a0af;
  display: block;
  margin: .15rem 0 .3rem;
  user-select: none;
}
.mk-why {
  display: block;
  font-size: .78rem;
  color: var(--ink-3);
  line-height: 1.45;
}
.locked-card {
  background: repeating-linear-gradient(
    -45deg, #fafbfc, #fafbfc 9px, #f3f5f8 9px, #f3f5f8 18px);
  border: 1px dashed #c9d0da;
  border-radius: var(--radius-sm);
  padding: 1.1rem .9rem;
  text-align: center;
}
.locked-card .mask { font-size: 1.25rem; margin-bottom: .5rem; }

/* --- Two-account direct deposit split ------------------------------------- */
.split {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin: .5rem 0 .35rem;
}
.split i { display: block; height: 100%; }
.split .a { background: var(--brand-2); }
.split .b { background: var(--accent); }
.split-key {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* --- Meter (campaign progress) -------------------------------------------- */
.meter {
  height: 10px;
  border-radius: 999px;
  background: var(--line-2);
  border: 1px solid var(--line);
  overflow: hidden;
  margin: .55rem 0 .4rem;
}
.meter i { display: block; height: 100%; background: var(--brand-2); }
.meter.warn i { background: var(--accent); }

/* --- Reporting chain (org slice) ------------------------------------------
   A single chain rendered as a vertical spine rather than a nested tree.
   Seven levels of nesting indents a phone off the right edge; seven dots on
   one spine does not.
   ------------------------------------------------------------------------- */
.chain { list-style: none; margin: 0; padding: 0 0 0 1.55rem; position: relative; }
.chain::before {
  content: "";
  position: absolute;
  left: .29rem; top: .9rem; bottom: 1.1rem;
  width: 2px;
  background: var(--line);
}
.chain li { position: relative; padding: .5rem 0; }
.chain li::before {
  content: "";
  position: absolute;
  left: -1.55rem; top: .95rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #b8c4d4;
  box-sizing: border-box;
}
.chain li.me::before { border-color: var(--accent); background: var(--accent); }
.chain li.wide::before { border-color: var(--brand); background: var(--brand); }
.chain .lvl {
  display: block;
  font-size: .66rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3);
}
.chain .who { display: block; font-size: .93rem; font-weight: 650; }
.chain .what { display: block; font-size: .8rem; color: var(--ink-3); }

/* --- Directory ------------------------------------------------------------ */
.dir-tools { display: grid; gap: .5rem; }
.dir-row {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line-2);
}
.dir-ini {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--info-bg); color: var(--info-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; letter-spacing: -.01em;
}
.dir-main { flex: 1 1 auto; min-width: 0; }
.dir-name { font-size: .93rem; font-weight: 650; }
.dir-meta { font-size: .79rem; color: var(--ink-3); margin-top: .1rem; }
.dir-side { flex: 0 0 auto; text-align: right; }

/* Division badge variants. `.badge-division` itself lives in style.css. */
.badge-division.south  { background: var(--accent); }
.badge-division.office { background: var(--ink-2); }
.badge-division.sm     { font-size: .64rem; padding: .18rem .45rem; letter-spacing: .05em; }

/* --- eNPS 0-10 row --------------------------------------------------------
   Six per row on a phone, eleven across once there is room. Every target is
   at least 46px tall — this gets tapped with a work glove on.
   ------------------------------------------------------------------------- */
.nps { display: grid; grid-template-columns: repeat(6, 1fr); gap: .35rem; }
@media (min-width: 560px) { .nps { grid-template-columns: repeat(11, 1fr); } }
.nps button {
  min-height: 46px;
  font: inherit; font-size: .9rem; font-weight: 650;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid #c9d0da;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.nps button[aria-pressed="true"] {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.nps-ends {
  display: flex; justify-content: space-between;
  font-size: .72rem; color: var(--ink-3); margin-top: .4rem;
}

/* --- Pending self-service change ------------------------------------------ */
.pending-row {
  border: 1px solid var(--warn-line);
  background: var(--warn-bg);
  border-radius: var(--radius-sm);
  padding: .7rem .8rem;
  font-size: .85rem;
  color: var(--warn-ink);
}
.was-now {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  font-family: var(--mono); font-size: .8rem;
  margin-top: .35rem;
}
.was-now .was { text-decoration: line-through; opacity: .7; }
.was-now .arrow { opacity: .6; }

/* --- Queue row (HR side) -------------------------------------------------- */
.q-row {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line-2);
  flex-wrap: wrap;
}
.q-row:last-child { border-bottom: 0; }
.q-main { flex: 1 1 190px; min-width: 0; }
.q-acts { flex: 0 0 auto; display: flex; gap: .4rem; }
.q-acts .btn { min-height: 40px; padding: .4rem .8rem; font-size: .84rem; }

/* --- File rows ------------------------------------------------------------ */
.file-row {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line-2);
}
.file-row:last-child { border-bottom: 0; }
.file-kind {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 7px;
  background: var(--line-2);
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-size: .58rem; font-weight: 750; letter-spacing: .04em;
  display: flex; align-items: center; justify-content: center;
}
.file-main { flex: 1 1 auto; min-width: 0; }
.file-name { font-size: .91rem; font-weight: 620; }
.file-meta { font-size: .78rem; color: var(--ink-3); margin-top: .1rem; }

/* --- Balance cards (2-up, unlike the 3-up .stats in style.css) ------------ */
.stats-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; }

/* --- Open-question marker -------------------------------------------------
   Used wherever the prototype shows something we have NOT confirmed. It is
   supposed to be visible. A demo that hides its unknowns is a demo that sells
   an assumption.
   ------------------------------------------------------------------------- */
.open-q {
  border-left: 4px solid #b1789a;
  background: #fdf4f8;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: .7rem .8rem;
  font-size: .84rem;
  color: #6d3050;
}
.open-q b { color: #4d1e37; }
