/* Caselton Clark jobs pages.
 *
 * These rules are copied from Jess's main-site pages so the jobs pages match:
 *   - shared + listing rules: roles.html
 *   - job detail rules:       job-<slug>.html
 * Her pages carry their CSS inline (no shared stylesheet), so when the main
 * site's design changes, re-copy the matching rules here.
 *
 * <body> has class "page-roles" (listing) or "page-job" (detail and message
 * pages) for the few places where the two designs differ.
 */

:root {
  --brand: #00A5DC;
  --brand-dark: #0089BA;
  --dark: #2C4A56;
  --dark-soft: #3B5A66;
  --text: #21262C;
  --muted: #6A7480;
  --bg-light: #F5F6F8;
  --border: #E5E8EB;
  --card-bg: #FFFFFF;
  --heading-font: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased;
  background: var(--bg-light);
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Per-page differences */
body.page-job { line-height: 1.6; background: #fff; }
body.page-job h1, body.page-job h2, body.page-job h3, body.page-job h4 {
  font-family: var(--heading-font); font-weight: 800; letter-spacing: -0.01em;
}

/* ---------- header ---------- */
header.site { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; max-width: 1280px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; padding: 14px 0; }
.logo-img { height: 50px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav-item { position: relative; }
.nav-link, .nav-link-plain { display: inline-flex; align-items: center; gap: 6px; height: 64px; color: var(--text); font-weight: 500; font-size: 14px; cursor: pointer; }
.nav-link:hover, .nav-link-plain:hover { color: var(--brand); text-decoration: none; }
.nav-link.active { color: var(--brand); }
.caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: 0.55; transition: transform 0.15s; }
.nav-item:hover .caret { transform: rotate(180deg); }
.dropdown { position: absolute; top: 100%; left: -12px; min-width: 234px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 16px 32px -12px rgba(35,58,68,0.32); padding: 8px; z-index: 200; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s; }
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 14px; border-radius: 6px; font-size: 14px; color: var(--text); font-weight: 500; white-space: nowrap; }
.dropdown a:hover { background: var(--bg-light); color: var(--brand); text-decoration: none; }
.dropdown a.sub { padding-left: 26px; font-size: 13px; color: var(--muted); font-weight: 400; }
.dropdown a.sub::before { content: "\2013"; margin-right: 9px; opacity: 0.7; }
.nav .divider { width: 1px; height: 18px; background: var(--border); }

/* ---------- buttons ---------- */
.btn { display: inline-block; background: var(--brand); color: #fff; padding: 12px 28px; border-radius: 999px; font-weight: 600; font-size: 15px; border: none; cursor: pointer; transition: background 0.15s, transform 0.15s; text-decoration: none; }
.btn:hover { background: var(--brand-dark); text-decoration: none; transform: translateY(-1px); }
body.page-job .btn { padding: 13px 34px; }
body.page-job .btn:hover { color: #fff; }
.btn-ghost { display: inline-block; background: transparent; color: var(--dark); padding: 12px 28px; border-radius: 999px; font-weight: 600; font-size: 14px; border: 1.5px solid var(--border); text-decoration: none; transition: background 0.15s, border-color 0.15s; }
.btn-ghost:hover { background: var(--bg-light); border-color: var(--dark); text-decoration: none; color: var(--dark); }

/* ---------- listing: search hero ---------- */
section.roles-hero { background: var(--dark); padding: 56px 0 40px; text-align: center; }
.roles-hero .eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); margin: 0 0 14px; }
.roles-hero h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; margin: 0 0 14px; color: #fff; font-weight: 800; letter-spacing: -0.02em; }
.roles-hero p { color: rgba(255,255,255,0.74); font-size: 17px; margin: 0 auto; max-width: 600px; }

/* ---------- listing: search / filter bar ---------- */
.search-wrap { max-width: 1080px; margin: -34px auto 0; padding: 0 24px; position: relative; z-index: 5; }
.search-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 24px 48px -20px rgba(35,58,68,0.3); padding: 20px; }
.search-grid { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; }
@media (max-width: 780px) { .search-grid { grid-template-columns: 1fr 1fr; } .search-card .btn { grid-column: 1 / -1; } }
@media (max-width: 480px) { .search-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 6px; letter-spacing: 0.01em; }
.field input, .field select { width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 14px; background: #fff; color: var(--text); }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,165,220,0.15); }
.search-card .btn { padding: 12px 26px; height: 44px; white-space: nowrap; }
.filter-active { margin: 14px 24px 0; max-width: 1080px; margin-left: auto; margin-right: auto; padding: 0 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--dark); font-weight: 500; }
.chip button { border: none; background: none; cursor: pointer; color: var(--muted); font-size: 15px; line-height: 1; padding: 0; }
.chip button:hover { color: var(--brand); }
.clear-all { color: var(--brand); font-weight: 600; cursor: pointer; }

/* ---------- listing: results ---------- */
section.results { padding: 40px 0 72px; }
.results-head { display: flex; align-items: baseline; justify-content: space-between; margin: 8px 0 22px; flex-wrap: wrap; gap: 8px; }
.results-head .count { font-size: 15px; color: var(--muted); }
.results-head .count strong { color: var(--dark); }
.results-head .sort { font-size: 14px; color: var(--muted); }

.jobs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.job-card { background: var(--card-bg); color: var(--text); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(35,58,68,0.08); border: 1px solid var(--border); }
.job-card-top { background: var(--dark-soft); color: #fff; padding: 18px 18px 14px; position: relative; min-height: 104px; }
.job-card-top .sector { font-size: 12px; opacity: 0.85; margin-bottom: 4px; }
.job-card-top h3 { font-size: 18px; margin: 0 0 6px; font-weight: 700; }
.job-card-top .location { font-size: 13px; opacity: 0.9; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 18px 0; }
.tag { font-size: 11px; font-weight: 600; color: var(--brand-dark); background: #EAF7FC; border-radius: 999px; padding: 3px 10px; }
.job-card-body { padding: 10px 18px 16px; font-size: 13px; flex: 1; color: #444; line-height: 1.5; }
.job-card-footer { padding: 12px 18px 16px; display: flex; align-items: center; gap: 14px; border-top: 1px solid #eee; }
.job-card-footer .btn { padding: 8px 22px; font-size: 13px; }

.empty-state { display: none; text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state h3 { color: var(--dark); font-size: 20px; margin: 0 0 8px; }
.empty-state.show { display: block; }
.empty-state .alert-box { max-width: 480px; margin: 28px auto 0; padding: 24px 26px; background: rgba(0,165,220,0.06); border: 1px solid rgba(0,165,220,0.2); border-radius: 12px; text-align: center; }
.empty-state .alert-box p { color: var(--text); font-size: 14.5px; margin: 0 0 16px; line-height: 1.55; }
.empty-state .alert-box .btn { padding: 10px 22px; font-size: 14px; }

.cv-strip { max-width: 1080px; margin: 12px auto 0; padding: 12px 24px; background: rgba(0,165,220,0.05); border: 1px solid rgba(0,165,220,0.15); border-radius: 8px; text-align: center; font-size: 13.5px; color: var(--text); }
.cv-strip p { margin: 0; }
.cv-strip a { color: var(--brand-dark); font-weight: 600; }

/* ---------- job detail: breadcrumb ---------- */
.crumbs { padding: 22px 0 10px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { margin: 0 8px; opacity: 0.5; }

/* ---------- job detail: role header ---------- */
.role-head { padding: 10px 0 36px; border-bottom: 1px solid var(--border); margin-bottom: 44px; }
.role-head .sector-pill {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #E8541C; padding: 6px 12px; border: 1.5px solid #E8541C;
  border-radius: 999px; margin-bottom: 18px;
}
.role-head h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; margin: 0 0 22px; color: var(--dark); max-width: 820px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 26px 36px; margin-bottom: 28px; font-size: 15px; color: var(--text); }
.meta-item { display: flex; align-items: center; gap: 10px; }
.meta-item .label { color: var(--muted); font-size: 13px; font-weight: 500; }
.meta-item .value { font-weight: 600; }
.meta-item .icon { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.posted-note { font-size: 13px; color: var(--muted); }

/* ---------- job detail: body ---------- */
.body-wrap { max-width: 820px; margin: 0 auto; padding: 0 0 56px; }
.job-body { font-size: 17px; line-height: 1.75; color: #2C3540; }
.job-body p { margin: 0 0 20px; }
.job-body h2 { font-size: 22px; margin: 42px 0 14px; color: var(--dark); font-weight: 800; letter-spacing: -0.01em; }
.job-body h3 { font-size: 18px; margin: 34px 0 10px; color: var(--dark); font-weight: 800; }
.job-body strong { color: var(--dark); font-weight: 700; }
.job-body ul { padding-left: 22px; margin: 0 0 24px; }
.job-body li { margin-bottom: 10px; line-height: 1.65; }
.job-body .lede { font-size: 20px; line-height: 1.6; color: var(--dark); font-weight: 500; margin-bottom: 30px; }

/* ---------- job detail: apply strip ---------- */
.footer-cta {
  max-width: 820px; margin: 24px auto 0; padding: 36px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.footer-cta .left { max-width: 520px; }
.footer-cta h3 { font-size: 22px; margin: 0 0 6px; color: var(--dark); }
.footer-cta p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.footer-cta .right { display: flex; align-items: center; gap: 14px; }

.li-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--dark); font-weight: 600; font-size: 14px;
  padding: 10px 16px; border: 1.5px solid var(--border); border-radius: 999px;
  text-decoration: none; transition: border-color 0.15s, color 0.15s;
}
.li-link:hover { border-color: #0A66C2; color: #0A66C2; text-decoration: none; }
.li-link svg { width: 16px; height: 16px; }

/* ---------- job detail: end strip ---------- */
.end-strip {
  background: var(--bg-light); padding: 44px 0; margin-top: 56px;
  text-align: center; border-top: 1px solid var(--border);
}
.end-strip h3 { font-size: 22px; margin: 0 0 8px; color: var(--dark); }
.end-strip p { color: var(--muted); font-size: 15px; margin: 0 0 20px; }

/* ---------- message pages (not found, admin) ---------- */
.message { max-width: 820px; margin: 0 auto; padding: 48px 0 72px; }
.message h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; margin: 0 0 18px; color: var(--dark); }
.message h2 { font-size: 20px; margin: 32px 0 10px; color: var(--dark); }
.message pre { background: var(--bg-light); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; overflow-x: auto; font-size: 13px; white-space: pre-wrap; }
.notice { padding: 14px 18px; border-radius: 8px; margin: 16px 0; }
.notice.success { background: #e7f5ec; color: #14532d; }
.notice.error { background: #fdecec; color: #7f1d1d; }

/* ---------- footer ---------- */
footer.site { background: #17303D; padding: 64px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; margin-bottom: 52px; }
.footer-brand .logo { margin-bottom: 16px; display: inline-flex; align-items: center; width: fit-content; color: #fff; }
.footer-brand .logo-img { height: 38px; display: block; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.75; max-width: 280px; }
.footer-col h5 { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin: 0 0 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 11px; font-size: 14px; color: rgba(255,255,255,0.65); }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.65); transition: color 0.12s; }
.footer-col ul li a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.35); margin: 0; }
.footer-bottom a { color: rgba(255,255,255,0.35); transition: color 0.12s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.65); text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .search-grid { grid-template-columns: 1fr 1fr; }
  .search-card .btn { grid-column: 1 / -1; width: 100%; }
  .jobs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .nav-item, .nav-link-plain, .nav .divider { display: none; }
}
@media (max-width: 560px) {
  .search-grid { grid-template-columns: 1fr; }
  .jobs-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .role-head h1 { font-size: 30px; }
  .job-body { font-size: 16px; }
  .job-body .lede { font-size: 18px; }
  .footer-cta { flex-direction: column; align-items: flex-start; }
}

/* Consultant strip (job page), copied from the main site's job pages */
.consultant-strip { max-width: 820px; margin: 36px auto 0; padding: 22px 0; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.consultant-strip img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.consultant-strip .ctxt { display: flex; flex-direction: column; gap: 2px; }
.consultant-strip .ctxt .label { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.consultant-strip .ctxt .name { font-family: var(--heading-font); font-weight: 800; font-size: 17px; color: var(--dark); }
.consultant-strip .ctxt .links { font-size: 13px; color: var(--muted); margin-top: 2px; }
.consultant-strip .ctxt .links a { margin-right: 14px; }

/* Cookie banner, copied from the main site */
.cc-cookies { position: fixed; left: 20px; right: 20px; bottom: 90px; z-index: 600; background: #fff; border: 1px solid #E5E8EB; border-radius: 12px; padding: 16px 20px; box-shadow: 0 12px 32px rgba(0,0,0,0.18); display: none; align-items: center; gap: 20px; flex-wrap: wrap; max-width: 720px; margin: 0 auto; }
.cc-cookies.show { display: flex; }
.cc-cookies p { flex: 1; margin: 0; font-size: 13.5px; color: #21262C; line-height: 1.5; min-width: 220px; }
.cc-cookies a { color: #0089BA; font-weight: 600; }
.cc-cookies-actions { display: flex; gap: 8px; }
.cc-btn { font-family: inherit; font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform 0.12s; }
.cc-btn:hover { transform: translateY(-1px); }
.cc-btn-primary { background: #00A5DC; color: #fff; border-color: #00A5DC; }
.cc-btn-secondary { background: transparent; color: #21262C; border-color: #E5E8EB; }
@media (max-width: 560px) { .cc-cookies { bottom: 90px; left: 12px; right: 12px; padding: 14px 16px; } .cc-cookies-actions { width: 100%; } .cc-btn { flex: 1; } }
