/* ===========================================================================
   WE Hub prototype — extra module styles for Hiring, Reports and Admin.
   Loaded AFTER style.css. Adds only what those three sections need; every
   colour, radius and spacing value comes from the tokens in style.css so the
   new screens are the same design system, not a second one.
   No build step, no dependencies, no external fonts, no CDN references.
   Mobile-first, like everything else here.
   =========================================================================== */

/* --- Pipeline board ------------------------------------------------------- */
/* On a phone the five stages scroll sideways; on a wide screen they share the
   row. A board that reflows into a vertical list stops reading as a pipeline. */
.board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(216px, 1fr);
  gap: .55rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: .45rem;
  scrollbar-width: thin;
}
@media (min-width: 900px) { .board { grid-auto-columns: minmax(0, 1fr); } }

.stage {
  background: var(--line-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .5rem .5rem .55rem;
  min-width: 0;
}
.stage-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .4rem; margin-bottom: .5rem;
}
.stage-name {
  font-size: .68rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-3);
}
.stage-count {
  font-size: .7rem; font-weight: 700; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: .05rem .4rem;
  font-variant-numeric: tabular-nums;
}
.stage-empty { font-size: .76rem; color: var(--ink-3); padding: .3rem .1rem; }

.cand {
  display: block; width: 100%; text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .55rem .6rem;
  font: inherit; color: inherit;
  cursor: pointer;
}
.cand + .cand { margin-top: .45rem; }
.cand:hover { border-color: #cbd4e0; }
.cand[aria-pressed="true"] {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 2px rgba(27, 90, 168, .16);
}
/* These three are <span> inside a <button>; they must stack, not flow inline. */
.cand-name { display: block; font-size: .88rem; font-weight: 650; }
.cand-role { display: block; font-size: .76rem; color: var(--ink-3); margin-top: .1rem; }
.cand-meta { display: block; font-size: .71rem; color: var(--ink-3); margin-top: .3rem; }

/* --- Two-up card grid (admin hub, report cards) --------------------------- */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: .7rem; }
@media (min-width: 620px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.tile {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: .9rem;
  text-decoration: none;
  color: inherit;
}
a.tile:hover { border-color: #cbd4e0; }
.tile h3 { font-size: 1rem; margin-bottom: .2rem; }
.tile p { font-size: .84rem; color: var(--ink-2); margin: 0; }
.tile .go {
  font-size: .78rem; font-weight: 650; color: var(--brand-2);
  display: inline-block; margin-top: .5rem;
}
.tile .mini {
  margin-top: .6rem; padding-top: .55rem; border-top: 1px solid var(--line-2);
}
.tile .mini table { font-size: .8rem; }
.tile .mini th, .tile .mini td { padding: .3rem .35rem; }

/* --- Posting destinations / any icon-led row list ------------------------- */
.dest { display: flex; gap: .6rem; align-items: flex-start; padding: .65rem 0;
        border-bottom: 1px solid var(--line-2); }
.dest:last-child { border-bottom: 0; }
.dest-main { flex: 1 1 auto; min-width: 0; }
.dest-title { font-size: .9rem; font-weight: 650; }
.dest-sub { font-size: .8rem; color: var(--ink-3); margin-top: .12rem; }

/* --- Document / résumé placeholder ---------------------------------------- */
.doc {
  display: flex; gap: .7rem; align-items: center;
  border: 1px dashed #c2ccd8; border-radius: var(--radius-sm);
  padding: .75rem .8rem; background: #fbfcfd;
}
.doc-ico {
  flex: 0 0 auto; width: 38px; height: 46px; border-radius: 4px;
  background: var(--line-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-3);
}
.doc-main { min-width: 0; }
.doc-name { font-size: .88rem; font-weight: 650; }
.doc-sub { font-size: .78rem; color: var(--ink-3); margin-top: .1rem; }

/* --- Notes ---------------------------------------------------------------- */
.note-item { padding: .6rem 0; border-bottom: 1px solid var(--line-2); }
.note-item:last-child { border-bottom: 0; }
.note-who { font-size: .74rem; color: var(--ink-3); font-weight: 600; }
.note-body { font-size: .87rem; margin-top: .15rem; }

/* --- Report-builder field picker ------------------------------------------ */
.group-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; margin: 1rem 0 .1rem;
}
.group-head h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em;
                 color: var(--ink-3); }

.pick-row {
  display: flex; gap: .65rem; align-items: flex-start;
  padding: .6rem .35rem;
  border-bottom: 1px solid var(--line-2);
  border-radius: 6px;
  cursor: pointer;
}
.pick-row input { width: 20px; height: 20px; margin: .15rem 0 0; flex: 0 0 auto;
                  accent-color: var(--brand); }
.pick-main { flex: 1 1 auto; min-width: 0; }
.pick-label { display: block; font-size: .9rem; font-weight: 600; }
.pick-sub { display: block; font-size: .76rem; color: var(--ink-3); margin-top: .1rem; }
.pick-row.locked { background: #fffaf1; cursor: not-allowed; }
.pick-row.locked .pick-label { color: var(--ink-2); }
.pick-row.locked input { cursor: not-allowed; }
.denial { margin: .1rem 0 .7rem; }

/* --- Role strip (who the demo is running as) ------------------------------ */
.rolebar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  background: var(--line-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .55rem .7rem;
  font-size: .82rem; color: var(--ink-2);
}
.rolebar .who { font-weight: 700; color: var(--ink); }

/* --- Access matrix -------------------------------------------------------- */
.matrix th, .matrix td { white-space: nowrap; }
.matrix th.rowhead, .matrix td.rowhead { white-space: normal; min-width: 148px; }
.matrix td.mark { text-align: center; font-weight: 700; font-size: 1rem; }
.matrix .yes { color: var(--ok-ink); }
.matrix .no  { color: #b4bdc9; }
.matrix .tbd { color: var(--warn-ink); font-size: .7rem; font-weight: 700;
               text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }

/* --- Configuration panels (editable-LOOKING, entirely static) ------------- */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}
.panel + .panel { margin-top: .8rem; }
.panel-head {
  background: var(--line-2);
  padding: .55rem .7rem;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  border-bottom: 1px solid var(--line);
}
.panel-title { font-size: .85rem; font-weight: 700; }
.cfg-row {
  display: flex; gap: .6rem; align-items: center;
  padding: .5rem .7rem;
  border-top: 1px solid var(--line-2);
}
.cfg-row:first-of-type { border-top: 0; }
.cfg-row .k { flex: 1 1 auto; min-width: 0; font-size: .87rem; }
.cfg-row .k small { display: block; font-size: .74rem; color: var(--ink-3); margin-top: .1rem; }
/* Qualified with the element on purpose: style.css carries
   input[type="text"]{width:100%} at (0,1,1), which beats a bare class —
   the same specificity trap already fixed inline on time/settings.html. */
input.cfg-input {
  flex: 0 0 auto; width: 116px;
  font: inherit; font-size: .85rem;
  padding: .35rem .5rem; text-align: right;
  border: 1px solid #c9d0da; border-radius: 6px;
  background: #fbfcfd; color: var(--ink);
  min-height: 34px;
}
input.cfg-input.wide { width: 158px; text-align: left; }
.cfg-foot {
  padding: .55rem .7rem; border-top: 1px solid var(--line);
  background: #fbfcfd; font-size: .78rem; color: var(--ink-3);
}
.cfg-foot b { color: var(--ink-2); }

/* --- Public careers-page preview frame ------------------------------------ */
.preview-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.preview-bar {
  background: #e8ecf2;
  border-bottom: 1px solid var(--line);
  padding: .45rem .7rem;
  font-size: .72rem;
  color: var(--ink-3);
  font-family: var(--mono);
  display: flex; align-items: center; gap: .45rem;
}
.preview-bar .lamp { width: 8px; height: 8px; border-radius: 50%; background: #c3cbd6;
                     flex: 0 0 auto; }
.preview-body { padding: 1rem .9rem 1.1rem; }
.role-card {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .8rem; background: #fbfcfd;
}
.role-card + .role-card { margin-top: .6rem; }
.role-card h3 { font-size: 1rem; }
.role-card .role-meta { font-size: .78rem; color: var(--ink-3); margin-top: .15rem; }
.role-card p { font-size: .85rem; color: var(--ink-2); margin: .5rem 0 0; }
