/* PCQMS Jobs portal navigation and contained community chat layout.
   Loaded after pcqms.css and jobs.css; scoped to Jobs pages only. */
.jobs-portal-nav,
.jobs-portal-nav * { box-sizing:border-box; }
.jobs-portal-nav {
  --j-ink:#153b56; --j-muted:#718398; --j-line:#dce6ee; --j-blue:#176b9c; --j-teal:#078b91;
  position:relative; z-index:40; display:flex; align-items:center; gap:12px;
  width:100%; min-height:62px; margin:0 0 22px; padding:9px 14px;
  border:1px solid var(--j-line); border-radius:15px; background:#fff;
  box-shadow:0 5px 18px rgba(22,54,78,.07); color:var(--j-ink);
}
.jobs-portal-nav__brand { display:flex; align-items:center; gap:9px; flex:0 0 auto; color:inherit; text-decoration:none; white-space:nowrap; }
.jobs-portal-nav__brand-mark { display:grid; place-items:center; width:38px; height:38px; border-radius:11px; background:linear-gradient(135deg,var(--j-blue),var(--j-teal)); color:#fff; font-size:20px; font-weight:850; }
.jobs-portal-nav__brand strong { display:block; font-size:14px; line-height:1.2; }
.jobs-portal-nav__brand small { display:block; margin-top:3px; color:var(--j-muted); font-size:9px; }
.jobs-portal-nav__links { display:flex; align-items:center; flex:1 1 auto; gap:3px; min-width:0; flex-wrap:wrap; }
.jobs-portal-link,.jobs-portal-menu__trigger { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:38px; padding:7px 9px; border:0; border-radius:9px; background:transparent; color:#304b60; text-decoration:none; font:inherit; font-size:11px; font-weight:700; white-space:nowrap; cursor:pointer; list-style:none; transition:background .16s ease,color .16s ease; }
.jobs-portal-link>span,.jobs-portal-menu__trigger>span:first-child { color:var(--j-teal); font-size:14px; }
.jobs-portal-link:hover,.jobs-portal-menu__trigger:hover,.jobs-portal-menu[open]>.jobs-portal-menu__trigger { background:#eff6fa; color:var(--j-blue); }
.jobs-portal-link.is-active,.jobs-portal-menu__trigger.is-active { background:#eaf4fa; color:#075d8d; }
.jobs-portal-menu { position:relative; flex:0 0 auto; }
.jobs-portal-menu__trigger::-webkit-details-marker { display:none; }
.jobs-portal-menu__trigger::marker { content:""; }
.jobs-portal-menu__chevron { color:#8293a0!important; font-size:12px!important; }
.jobs-portal-menu[open] .jobs-portal-menu__chevron { transform:rotate(180deg); }
.jobs-portal-menu__panel { position:absolute; top:calc(100% + 8px); left:0; z-index:100; width:230px; padding:9px; border:1px solid var(--j-line); border-radius:12px; background:#fff; box-shadow:0 14px 34px rgba(18,48,70,.16); }
.jobs-portal-menu__panel--right { right:0; left:auto; }
.jobs-portal-menu__eyebrow { margin:3px 8px 7px; color:#8293a0; font-size:9px; font-weight:800; letter-spacing:.12em; }
.jobs-portal-menu__item { display:flex; align-items:center; min-height:34px; padding:7px 9px; border-radius:7px; color:#29465c; text-decoration:none; font-size:11px; font-weight:650; }
.jobs-portal-menu__item:hover,.jobs-portal-menu__item.is-active { background:#eef6fa; color:#075d8d; }
.jobs-portal-nav__account { display:flex; align-items:center; justify-content:flex-end; flex:0 0 auto; margin-left:auto; }
.jobs-portal-account-link,.jobs-portal-login,.jobs-portal-register { display:inline-flex; align-items:center; justify-content:center; min-height:34px; padding:7px 11px; border-radius:9px; text-decoration:none; font-size:10px; font-weight:750; white-space:nowrap; }
.jobs-portal-account-link { color:var(--j-blue); background:#eff6fa; }
.jobs-portal-login { color:var(--j-ink); border:1px solid var(--j-line); }
.jobs-portal-register { color:#fff; background:var(--j-blue); }
.jobs-portal-register:hover { background:#10577f; }
@media(max-width:1000px) {
 .jobs-portal-nav { align-items:flex-start; flex-wrap:wrap; gap:8px 12px; }
 .jobs-portal-nav__links { order:3; flex-basis:100%; }
 .jobs-portal-nav__account { margin-left:auto; }
}
@media(max-width:620px) {
 .jobs-portal-nav { padding:10px; border-radius:11px; }
 .jobs-portal-nav__links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; gap:4px; }
 .jobs-portal-link,.jobs-portal-menu__trigger { width:100%; min-height:36px; justify-content:center; padding:6px; font-size:10px; }
 .jobs-portal-menu__panel { width:min(230px,calc(100vw - 48px)); }
 .jobs-portal-menu__panel--right { right:0; left:auto; }
 .jobs-portal-nav__account { width:100%; }
 .jobs-portal-account-link,.jobs-portal-login,.jobs-portal-register { flex:1; }
}

/* Community chat: compact, centered conversation page. The old promotional
   hero is intentionally removed; the Jobs navigation already provides context. */
body.page-jobs-chat {
  min-height:100vh!important;
  height:auto!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  background:#f2f6fa;
}
body.page-jobs-chat main.container {
  display:block!important;
  width:min(100%,1180px)!important;
  max-width:1180px!important;
  height:auto!important;
  min-height:0!important;
  margin:0 auto!important;
  padding:0 24px 24px!important;
  overflow:visible!important;
}
body.page-jobs-chat .chat-page-head { display:none!important; }
body.page-jobs-chat .community-chat {
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:min(68vh,690px)!important;
  min-height:440px!important;
  max-height:690px!important;
  flex:0 0 auto!important;
  overflow:hidden!important;
  border:1px solid #dce6ee!important;
  border-radius:15px!important;
  background:#fff!important;
  box-shadow:0 8px 28px rgba(21,53,78,.07)!important;
}
body.page-jobs-chat .chat-room-bar {
  position:relative!important;
  top:auto!important;
  z-index:5;
  flex:0 0 auto!important;
  min-height:58px!important;
  padding:9px 14px!important;
}
body.page-jobs-chat .chat-toolbar { flex:0 0 auto!important; min-height:30px!important; }
body.page-jobs-chat .chat-messages {
  display:flex!important;
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
}
body.page-jobs-chat .chat-compose { flex:0 0 auto!important; }
/* The legacy chat CSS applied a fixed viewport height to every .container,
   including the footer's inner container. Explicitly restore normal footer flow. */
body.page-jobs-chat .site-footer {
  display:block!important;
  height:auto!important;
  min-height:0!important;
  margin-top:22px!important;
  padding:18px 0 20px!important;
  overflow:visible!important;
}
body.page-jobs-chat .site-footer-inner.container {
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px 22px!important;
  width:min(100%,1180px)!important;
  max-width:1180px!important;
  height:auto!important;
  min-height:0!important;
  margin:0 auto!important;
  padding:0 24px!important;
  overflow:visible!important;
}
body.page-jobs-chat .site-footer-copy,
body.page-jobs-chat .site-footer-policies,
body.page-jobs-chat .site-footer-credit {
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  margin:0!important;
}
body.page-jobs-chat .site-footer-copy { flex-wrap:wrap!important; gap:8px 12px!important; }
body.page-jobs-chat .site-footer-policies { flex-wrap:wrap!important; gap:14px!important; }
body.page-jobs-chat .site-footer-credit { flex-wrap:wrap!important; gap:6px!important; }
@media(max-width:760px) {
  body.page-jobs-chat main.container { padding:0 12px 18px!important; }
  body.page-jobs-chat .community-chat { height:70vh!important; min-height:420px!important; max-height:720px!important; }
  body.page-jobs-chat .chat-room-bar { min-height:54px!important; padding:7px 9px!important; }
  body.page-jobs-chat .site-footer-inner.container {
    flex-direction:column!important;
    align-items:flex-start!important;
    padding:0 16px!important;
  }
}
