/* ============================================================
   AGSL Technology Consulting — Job detail page (job.css)
   Load after styles.css on job.html only.
   Builds on existing tokens and .bullets / .job-meta-bar styles.
   ============================================================ */

/* ---------- Key facts panel ---------- */
.job-meta-bar.job-facts{
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin-bottom:8px;
  box-shadow:var(--shadow-card);
}
.job-meta-bar.job-facts > div:last-child{grid-column-end:auto;}
.job-facts .job-fact{
  background:#fff;
  padding:18px 20px;
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}
.job-facts .lbl{
  display:block;
  margin:0;
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
}
.job-facts .val{
  font-family:'Exo',sans-serif;
  font-size:16px;
  font-weight:600;
  line-height:1.35;
  color:var(--ink);
  overflow-wrap:anywhere;
}
.job-facts .is-closing{background:var(--orange-tint);}
.job-facts .is-closing .val{color:#b8391a;} /* AA on orange tint */
.job-facts .is-ref .val{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:14.5px;
  font-weight:600;
  letter-spacing:.02em;
}
.job-badge{
  align-self:flex-start;
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.04em;
  color:#fff;
  background:#b8391a;
  padding:3px 9px;
  border-radius:999px;
}

/* ---------- Body copy ---------- */
.job-body .job-section{padding:36px 0;}
.job-body .job-section h2{margin-bottom:16px;}
.job-body .job-section p{
  font-size:16px;
  line-height:1.7;
  color:var(--ink);
  margin:0 0 14px;
  max-width:72ch;
}
.job-body .job-section p:last-child{margin-bottom:0;}
.job-body .job-section a{
  color:var(--ink);
  text-decoration:underline;
  text-decoration-color:var(--orange);
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
.job-body .job-section a:hover{color:var(--orange-dark);}
.job-body .job-section .btn{text-decoration:none;}

/* Real lists with hanging indent */
.job-body .job-list{
  margin:0 0 18px;
  padding:0;
}
.job-body .job-list:last-child{margin-bottom:0;}
.job-body .job-list li{
  font-size:16px;
  line-height:1.6;
  padding-left:26px;
  margin-bottom:10px;
  max-width:72ch;
}
.job-body .job-list li::before{top:9px;width:7px;height:7px;}

/* "Not required to have every skill" note */
.job-body .job-note{
  margin-top:20px !important;
  padding:12px 16px;
  border-left:3px solid var(--blue);
  background:#eef8fd;
  border-radius:0 var(--radius-sm) var(--radius-sm) 0;
  font-size:15px !important;
}

/* ---------- Application details card ---------- */
.job-kv{
  margin:20px 0;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--off-white);
  overflow:hidden;
}
.job-kv-row{
  display:grid;
  grid-template-columns:170px minmax(0,1fr);
  gap:16px;
  padding:14px 20px;
  border-bottom:1px solid var(--line);
}
.job-kv-row:last-child{border-bottom:none;}
.job-kv dt{
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
  padding-top:3px;
}
.job-kv dd{
  margin:0;
  font-size:15.5px;
  font-weight:500;
  color:var(--ink);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  overflow-wrap:anywhere;
}
.job-kv-subject{flex:1 1 220px;}
.job-copy{
  font:600 12px/1 'Outfit',sans-serif;
  color:var(--ink);
  background:#fff;
  border:1px solid var(--line);
  border-radius:999px;
  padding:7px 12px;
  cursor:pointer;
  transition:border-color .15s var(--ease);
}
.job-copy:hover{border-color:var(--orange);}
.job-copy:focus-visible{outline:2px solid var(--orange);outline-offset:2px;}

/* Fine print (shortlisting, client approval) */
.job-fineprint{margin-top:18px;}
.job-body .job-fineprint p{
  font-size:13.5px;
  line-height:1.6;
  color:var(--muted);
  margin:0 0 6px;
}

/* Email fallback under the form */
.job-apply-alt{font-size:14px;margin-top:16px;}
.job-apply-alt a{
  color:var(--ink);
  font-weight:600;
  text-decoration:underline;
  text-decoration-color:var(--orange);
  text-underline-offset:3px;
}

/* ---------- Sticky apply bar (mobile) ---------- */
.job-apply-bar{display:none;}
@media(max-width:760px){
  .job-meta-bar.job-facts{grid-template-columns:repeat(2,minmax(0,1fr));}
  .job-kv-row{grid-template-columns:1fr;gap:4px;}
  .job-body .job-section{padding:28px 0;}

  .job-apply-bar{
    display:flex;
    position:fixed;
    left:0;right:0;bottom:0;
    z-index:60;
    align-items:center;
    gap:12px;
    padding:12px 16px calc(12px + env(safe-area-inset-bottom));
    background:var(--black);
    border-top:1px solid var(--line-dark);
    transform:translateY(110%);
    transition:transform .25s var(--ease);
  }
  .job-apply-bar.is-visible{transform:none;}
  .job-apply-bar-text{flex:1;min-width:0;display:flex;flex-direction:column;}
  .job-apply-bar-text strong{
    color:#fff;font-family:'Exo',sans-serif;font-size:14px;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  .job-apply-bar-text span{color:#c9cbcf;font-size:12px;}
  .job-apply-bar .btn{flex:none;padding:11px 18px;font-size:14px;}
  body.has-apply-bar{padding-bottom:76px;}
}
@media(max-width:420px){
  .job-meta-bar.job-facts{grid-template-columns:1fr;}
}
@media(prefers-reduced-motion:reduce){
  .job-apply-bar{transition:none;}
}
