/* clb.css: the Career Leadership Briefing pages (LN-0198). Uses the tokens in base.css. */

/* ---- /briefing/ ---------------------------------------------------- */
.clb-how { margin: 20px 0 24px; padding-left: 1.2em; display: grid; gap: 6px; color: var(--ink); }
.clb-offices { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.clb-office { cursor: pointer; font: inherit; }
.clb-office[aria-pressed="true"] { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.clb-sessions { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.clb-session {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "when go" "where go";
  align-items: center; gap: 2px 12px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--ground);
}
.clb-session__when { grid-area: when; font-size: 1.05rem; }
.clb-session__where { grid-area: where; font-size: .92rem; }
.clb-session__go { grid-area: go; white-space: nowrap; }
.clb-demo { margin-top: 8px; }

/* ---- the room ------------------------------------------------------- */
.clb-room, .clb-host { padding: 20px 0 48px; }
.clb-room__head { margin-bottom: 14px; }
.clb-room__head .h3 { margin: 4px 0; }
.clb-honest { margin: 0; color: var(--muted); font-size: .95rem; }
.clb-join { max-width: 460px; display: grid; gap: 14px; }

.clb-stage { display: grid; gap: 16px; max-width: 880px; }
.clb-screen {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 14px; background: var(--navy-deep);
}
.clb-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.clb-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px; text-align: center; color: var(--on-navy);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.clb-overlay[hidden] { display: none; }
.clb-overlay__eyebrow { margin: 0; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-navy-muted); }
.clb-overlay__big { margin: 6px 0; font-size: clamp(1.6rem, 7vw, 3rem); font-weight: 600; font-variant-numeric: tabular-nums; }
.clb-overlay__sub { margin: 0; color: var(--on-navy-muted); font-size: .95rem; max-width: 34ch; }
.clb-sound {
  position: absolute; right: 12px; bottom: 12px; padding: 10px 14px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 600; background: rgba(255, 255, 255, .92); color: var(--navy); cursor: pointer;
}
.clb-sound[hidden] { display: none; }
.clb-part { margin: -8px 0 0; font-size: .9rem; }
.clb-qa { display: grid; gap: 8px; }
.clb-qa .h3 { margin: 0; }

/* ---- chat ---------------------------------------------------------- */
.clb-chat .h3 { margin: 0 0 4px; }
.clb-log {
  list-style: none; margin: 10px 0; padding: 10px; display: grid; gap: 8px; align-content: start;
  min-height: 120px; max-height: 320px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2);
}
.clb-log:empty::before { content: "No messages yet."; color: var(--muted); font-size: .92rem; }
.clb-msg { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--ground); border: 1px solid var(--line); }
.clb-msg--team { background: var(--accent-tint); border-color: var(--accent-border); }
.clb-msg__who { font-size: .78rem; font-weight: 600; color: var(--muted); }
.clb-msg__text { overflow-wrap: anywhere; }
.clb-msg__reply { justify-self: start; }
.clb-send { display: flex; gap: 8px; }
.clb-send[hidden] { display: none; }
.clb-send .input { flex: 1 1 auto; min-width: 0; }
.linkbtn { padding: 0; border: 0; background: none; font: inherit; font-size: .88rem; color: var(--accent-text); text-decoration: underline; cursor: pointer; }

/* ---- host ---------------------------------------------------------- */
.clb-key { max-width: 380px; display: grid; gap: 12px; margin-bottom: 16px; }
.clb-host__when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 4px; }
.clb-counts { list-style: none; padding: 0; margin: 12px 0 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.clb-counts li { padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: .85rem; color: var(--muted); }
.clb-counts strong { display: block; font-size: 1.4rem; color: var(--ink); }
.clb-host__grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .clb-host__grid { grid-template-columns: 3fr 2fr; } }
.clb-log--host { max-height: 420px; }
.clb-tablewrap { overflow-x: auto; }
.clb-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.clb-table th, .clb-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.clb-table th { font-size: .78rem; color: var(--muted); font-weight: 600; }
@media (max-width: 520px) { .clb-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- invite and applicants (LN-0202) -------------------------------- */
.clb-invite, .clb-done { display: grid; gap: 16px; margin-top: 16px; }
.clb-done .h3 { margin: 0; }
.clb-times { border: 0; padding: 0; margin: 0; }
.clb-times__list { display: grid; gap: 8px; margin-top: 8px; }
.clb-time { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.clb-time:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.clb-consent .check__text { font-size: .92rem; line-height: 1.45; }
.clb-stop { margin-top: 18px; }
.ap-drop, .ap-send { display: grid; gap: 12px; margin-bottom: 16px; max-width: 640px; }
.ap-drop .h3, .ap-send .h3 { margin: 0; }
.ap-email { white-space: pre-wrap; font-size: .85rem; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); margin: 0; overflow-wrap: anywhere; }
.input--sm { padding: 4px 6px; font-size: .85rem; }

/* Text replies that need a person (LN-0215) */
.ap-inbox { display: grid; gap: 10px; margin-bottom: 16px; max-width: 640px; }
.ap-inbox .h3 { margin: 0; }
.ap-inbox__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ap-inbox__item { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.ap-inbox__item p { margin: 0; }
.ap-inbox__item .btn { justify-self: start; }
.ap-inbox__body { white-space: pre-wrap; overflow-wrap: anywhere; }
.ap-export { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0 0; }

/* Live video in the briefing room and on the host page (LN-0227) */
.clb-live { display: grid; gap: 12px; }
.clb-live__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.clb-live__head .h3 { margin: 0; }
.clb-live__status { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--surface); color: var(--muted); }
.clb-live__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.clb-live__status.is-live { background: var(--danger-tint); color: var(--danger); }
.clb-live__status.is-ok { background: var(--ok-tint); color: var(--ok); }
.clb-live__controls { display: flex; flex-wrap: wrap; gap: 8px; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.live-grid:empty { display: none; }
.live-tile { position: relative; margin: 0; aspect-ratio: 16 / 9; max-width: 100%; background: var(--navy-deep); border-radius: var(--radius-lg); overflow: hidden; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .15s ease; }
.live-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--navy-deep); }
.live-tile.is-local video { transform: scaleX(-1); }
.live-tile.is-off video { visibility: hidden; }
.live-tile__initials { position: absolute; inset: 0; display: none; place-items: center; font-size: 1.6rem; font-weight: 600; color: var(--on-navy); letter-spacing: .04em; }
.live-tile.is-off .live-tile__initials { display: grid; }
.live-tile__name { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 3px 8px; border-radius: 3px; background: rgba(10, 33, 64, .78); color: var(--on-navy); font-size: .78rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-tile.is-speaking { outline-color: var(--ok); }
/* The team first, the person themself last, whatever order people joined in. */
.live-tile.is-team { order: -1; }
.live-tile.is-local { order: 1; }
.live-tile.is-team.is-local { order: -2; }
.live-tile audio { display: none; }
.live-tile__actions { position: absolute; top: 6px; right: 6px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; max-width: calc(100% - 12px); }
.live-tile__actions:empty { display: none; }
.live-tile__actions button { font: 600 .72rem var(--font); padding: 4px 8px; border-radius: 3px; border: 0; cursor: pointer; background: rgba(255, 255, 255, .92); color: var(--navy-deep); }
.live-tile__actions button.is-danger { color: var(--danger); }
.live-tile__actions button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* While the recording plays, the team's cameras shrink to a strip so the briefing stays the focus. */
body[data-phase="video"] .clb-live .live-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); }
body[data-phase="video"] #clb-live-title::after { content: " · recording playing"; font-weight: 400; color: var(--muted); font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .live-tile { transition: none; } }

/* Applicants page: one person's history, call backs, demo card (LN-0229) */
.ap-history, .ap-demo { display: grid; gap: 10px; margin: 16px 0; max-width: 640px; }
.ap-history .h3, .ap-demo .h3, .ap-demo .h4 { margin: 0; }
.ap-history .btn { justify-self: start; }
.ap-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ap-timeline li { display: grid; gap: 2px; padding: 8px 10px; border-left: 3px solid var(--line-2); background: var(--surface-2); border-radius: 0 8px 8px 0; overflow-wrap: anywhere; }
.ap-timeline li[data-dir="in"] { border-left-color: var(--accent); }
.ap-timeline .ap-timeline__when { font-size: .78rem; color: var(--muted); }
.ap-name { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-text, var(--accent)); text-decoration: underline; cursor: pointer; text-align: left; }
.ap-demo__form, .ap-demo__actions { display: grid; gap: 10px; }
.ap-demo__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-callback__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
/* LN-0293: booking the interview inside the room */
.clb-bookform { display: grid; gap: 16px; }
.clb-bookform .opt-group { gap: 8px; }
#clb-book-call { display: block; text-align: center; margin-top: 10px; }
/* LN-0298: interest 1 to 10 */
.clb-scale { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 420px) { .clb-scale { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.clb-scale__n { padding: 10px 0; border: 1px solid var(--line); border-radius: 8px; background: transparent; font: inherit; font-weight: 600; cursor: pointer; }
.clb-scale__n[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-tint); }
