/* Careers, on top of the site's own stylesheet (/contact-us/assets/style.css),
   which already gives the header, hero, cards, fields and buttons. Only what
   the careers pages add is here, plus the admin panel, which stands alone. */

/* ---- public pages ------------------------------------------------------ */
.careers-list { margin: 40px 0 8px; }
.careers-list > h2, .pool h2 { font-size: 1.5rem; margin-bottom: 16px; }
.careers-list .empty { color: var(--ink-soft); }
.jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.job-card {
  display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 24px 26px;
  text-decoration: none; color: var(--ink); border-top: 3px solid var(--green);
  transition: transform .15s, box-shadow .15s;
}
.job-card:hover { transform: translateY(-2px); box-shadow: var(--lift); }
.job-card h3 { font-size: 1.15rem; }
.job-area { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.job-meta { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.job-card .go { margin-top: auto; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }

.pool { display: flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--wash); }
.pool p { margin: 0; max-width: 640px; color: var(--ink-soft); }

.job-detail .job-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: .9rem; }
.job-body { line-height: 1.75; }
.job-body ul { padding-left: 1.2em; }
.job-body li { margin: 4px 0; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.apply fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.apply legend { font-size: .88rem; font-weight: 600; margin-bottom: 8px; padding: 0; }
.apply legend em { color: #c0392b; font-style: normal; }
.questions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
.choice { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; margin: 0 18px 6px 0; font-weight: 400; }
.choice input { width: auto; accent-color: var(--green); }
.checks .choice { display: inline-flex; }
.privacy-notice { color: var(--ink-soft); font-size: .88rem; line-height: 1.65; margin: 0; }

@media (max-width: 900px) {
  .jobs { grid-template-columns: 1fr 1fr; }
  .pool { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .jobs, .questions { grid-template-columns: 1fr; }
}

/* ---- admin ------------------------------------------------------------- */
body.admin {
  margin: 0; background: #f4f5f5; color: #333; font: 14px/1.55 'Open Sans', Arial, sans-serif;
  --green: #00863A; --line: #e3e5e6; --soft: #6b7074; --r: 4px;
}
/* widths include padding and border, so a 100% button or box never spills out of its card */
body.admin *, body.admin *::before, body.admin *::after { box-sizing: border-box; }
body.admin h1, body.admin h2, body.admin h3 { font-family: 'Roboto', Arial, sans-serif; font-weight: 800; margin: 0 0 14px; }
body.admin h1 { font-size: 1.6rem; }
body.admin h2 { font-size: 1.1rem; }
body.admin h3 { font-size: .95rem; margin-top: 20px; }
body.admin a { color: var(--green); }
.admin-bar { display: flex; align-items: center; gap: 28px; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 24px; flex-wrap: wrap; }
.admin-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.admin-brand img { height: 40px; width: auto; }
.admin-brand span { font-family: 'Roboto', Arial, sans-serif; font-weight: 800; color: #333; font-size: 1.05rem; }
.admin-bar nav { display: flex; gap: 20px; }
.admin-bar nav a { text-decoration: none; color: #333; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.admin-bar nav a:hover, .admin-bar nav a.here { color: var(--green); border-bottom-color: var(--green); }
.who { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--soft); }
.admin-main { max-width: 1240px; margin: 0 auto; padding: 26px 24px 60px; }
body.admin .card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; margin: 0 0 20px; }
body.admin .card.narrow, .login { max-width: 460px; margin: 40px auto; }
body.admin label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .86rem; margin-bottom: 14px; }
body.admin label small { font-weight: 400; color: var(--soft); }
body.admin input, body.admin select, body.admin textarea {
  font: inherit; font-weight: 400; border: 1px solid #cfd3d6; border-radius: var(--r); padding: 9px 11px; background: #fff; width: 100%; box-sizing: border-box;
}
body.admin input:focus, body.admin select:focus, body.admin textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 134, 58, .15); }
body.admin .btn {
  display: inline-block; background: var(--green); color: #fff; border: 1px solid var(--green); border-radius: var(--r);
  padding: 9px 20px; font: 600 14px 'Open Sans', Arial, sans-serif; text-decoration: none; cursor: pointer;
}
body.admin .btn.ghost { background: #fff; color: var(--green); }
body.admin .btn.small { padding: 5px 12px; font-size: 13px; }
button.link { background: none; border: 0; color: var(--green); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.muted, body.admin .muted { color: var(--soft); }
.mono { font-family: Consolas, 'Courier New', monospace; font-size: .92em; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.page-head h1 { margin: 0; }
.count { font-size: .9rem; font-weight: 600; color: var(--soft); margin-left: 6px; }
.crumbs { color: var(--soft); margin: 0 0 8px; }
.flash { padding: 10px 14px; border-radius: var(--r); margin: 0 0 16px; }
.flash.ok { background: #e8f6ee; border-left: 3px solid var(--green); }
.flash.err { background: #fdecea; border-left: 3px solid #c0392b; }
.notice { background: #fff8e1; border-left: 3px solid #e0a800; padding: 10px 14px; border-radius: var(--r); }
.empty { color: var(--soft); padding: 30px 0; }

.status-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; }
.status-pills a { display: inline-block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; color: #333; }
.status-pills a.here { border-color: var(--green); color: var(--green); }
.status-pills b { color: var(--soft); font-weight: 600; margin-left: 4px; }

.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 16px; }
.filters label { margin: 0; min-width: 150px; }
.filters label:first-of-type { flex: 1 1 240px; }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); background: #fafbfb; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.list td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr:last-child td { border-bottom: 0; }
.pager { display: flex; gap: 16px; justify-content: center; margin: 16px 0; }

.status { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: #eceff0; color: #555; vertical-align: middle; }
.s-new { background: #e3f0fb; color: #1b5e9a; }
.s-reviewing { background: #fff4d6; color: #8a6300; }
.s-interview { background: #efe6fb; color: #5b2ca0; }
.s-offer, .s-hired, .j-open { background: #e8f6ee; color: #00863A; }
.s-rejected, .s-withdrawn, .j-closed { background: #f1f1f1; color: #777; }
.j-draft { background: #fff4d6; color: #8a6300; }

.two-col { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
dl.facts dt { color: var(--soft); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
.message { white-space: normal; border-left: 3px solid var(--green); padding-left: 12px; }
ul.files { list-style: none; padding: 0; margin: 0; }
ul.files li { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
ol.history { list-style: none; padding: 0; margin: 0; }
ol.history li { padding: 10px 0; border-bottom: 1px solid var(--line); }
ol.history li:last-child { border-bottom: 0; }
ol.history .when { display: block; color: var(--soft); font-size: .8rem; }
.note-text { margin: 6px 0 0; background: #fafbfb; padding: 8px 10px; border-radius: var(--r); }

.job-form .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.job-form .actions { display: flex; gap: 16px; align-items: center; }

@media (max-width: 900px) {
  .two-col, .job-form .grid { grid-template-columns: 1fr; }
}

/* Sign in with Microsoft: Microsoft's own button shape (white, the four-square mark) */
body.admin .btn.ms { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #fff; color: #5e5e5e; border: 1px solid #8c8c8c; font-weight: 600; }
body.admin .btn.ms:hover { background: #f3f3f3; }
.or { display: flex; align-items: center; gap: 10px; color: var(--soft); font-size: .82rem; margin: 16px 0; }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }

/* Users page */
body.admin fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
body.admin legend { font-weight: 600; font-size: .86rem; margin-bottom: 8px; padding: 0; }
body.admin .choice { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; margin: 0 0 6px; font-weight: 400; font-size: .9rem; }
body.admin .choice input { width: auto; margin-top: 3px; accent-color: var(--green); }
body.admin .areas .choice { display: inline-flex; margin-right: 18px; }
body.admin fieldset[disabled] { opacity: .6; }
.user-form .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; }
.user-actions form.inline { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.user-actions form.inline label { flex: 0 1 320px; margin: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
body.admin .btn.danger { color: #c0392b; border-color: #c0392b; }
@media (max-width: 900px) { .user-form .grid { grid-template-columns: 1fr; } }

/* the footer's privacy link, white on the green bar like the rest of it */
footer.foot a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
footer.foot a:hover { text-decoration-thickness: 2px; }

/* /privacy: a readable column of plain text */
.legal { max-width: 760px; margin: 0 auto; padding: 36px 0 56px; }
.legal .updated { color: var(--ink-soft); font-size: .9rem; margin: 0 0 22px; }
.legal h2 { font-size: 1.15rem; margin: 30px 0 10px; }
.legal p, .legal li { line-height: 1.7; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal li { margin: 0 0 8px; }
.privacy-more { font-size: .88rem; margin: 8px 0 0; }

/* admin: roles and permissions */
.perm-matrix th.role-col, .perm-matrix td.cell { text-align: center; white-space: nowrap; }
.perm-matrix th.role-col small { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--soft); margin-top: 2px; }
.perm-matrix td.yes { color: var(--green); font-weight: 700; font-size: 1.05rem; }
.perm-matrix td.no { color: #b8bec2; }
.perm-matrix tr.edit-row td { border-bottom: 0; padding-top: 14px; }
.role-form .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.role-form fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.role-form fieldset.perms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
.role-form fieldset.perms legend { grid-column: 1 / -1; }
.role-form .choice.perm span { display: flex; flex-direction: column; }
.role-form .choice.perm small { color: var(--soft); font-size: .8rem; line-height: 1.4; }
.role-form .choice.fixed { opacity: .65; }
td.row-action { text-align: right; white-space: nowrap; }
@media (max-width: 900px) { .role-form .grid, .role-form fieldset.perms { grid-template-columns: 1fr; } }

/* admin on a phone */
.perm-matrix th:first-child, .perm-matrix td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; min-width: 170px; }
.perm-matrix thead th:first-child { background: #fafbfb; }
@media (max-width: 640px) {
  .admin-bar { gap: 8px 14px; padding: 10px 14px; }
  .admin-brand img { height: 32px; }
  .admin-bar nav { order: 3; width: 100%; gap: 18px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .admin-bar nav::-webkit-scrollbar { display: none; }
  .who { font-size: 12px; gap: 8px; }
  .admin-main { padding: 18px 12px 48px; }
  body.admin .card { padding: 16px; }
  body.admin h1 { font-size: 1.3rem; }
  .page-head { flex-wrap: wrap; }
  .filters label, .filters label:first-of-type { flex: 1 1 100%; min-width: 0; }
  .user-actions form.inline label { flex-basis: 100%; }
  table.list th, table.list td { padding: 8px 10px; }
  .perm-matrix th:first-child, .perm-matrix td:first-child { min-width: 140px; }
  /* long emails wrap instead of widening the table */
  table.list small, table.list .mono { overflow-wrap: anywhere; }
  table.list .status + small { display: block; }
  /* on a phone the lists keep what you act on: who, role, status and the button */
  .users-list th:nth-child(3), .users-list td:nth-child(3),
  .users-list th:nth-child(4), .users-list td:nth-child(4),
  .users-list th:nth-child(5), .users-list td:nth-child(5),
  .apps-list th:nth-child(4), .apps-list td:nth-child(4),
  .apps-list th:nth-child(5), .apps-list td:nth-child(5),
  .apps-list th:nth-child(6), .apps-list td:nth-child(6) { display: none; }
}
