/* ==========================================================================
   CFOLogic Careers — design system
   Faithful to cfologic.com (2026-07): centered floating nav pill, centered
   hero with an azure accent line over a faint blue graph-paper grid, solid
   black pill buttons, generous whitespace, refined type. SF Pro Display on
   Apple, Inter elsewhere. Ships verbatim as the portal stylesheet on deploy.
   ========================================================================== */

:root {
  --accent:      #2da5e8;
  --accent-ink:  #1b8fd0;
  --accent-wash: #eaf6fd;
  --accent-line: rgba(45,165,232,.08);   /* graph-paper grid                 */

  --ink:       #0b0f14;    /* headings — near-black like the site           */
  --text:      #2b2f36;
  --muted:     #5e6774;    /* the site's secondary gray                     */
  --faint:     #9aa3ad;

  --bg:        #ffffff;
  --surface:   #ffffff;
  --surface-2: #f7f9fb;
  --line:      #e9edf1;
  --line-2:    #dbe1e7;

  --ok:   #1a9d5a;

  --r-sm: 8px;
  --r:    12px;            /* buttons/inputs                                */
  --r-lg: 18px;           /* cards                                          */
  --r-xl: 24px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(16,24,40,.05);
  --shadow-2: 0 2px 6px rgba(16,24,40,.05), 0 12px 32px rgba(16,24,40,.07);
  --shadow-3: 0 4px 10px rgba(16,24,40,.06), 0 30px 60px rgba(16,24,40,.10);
  --shadow-nav: 0 4px 20px rgba(16,24,40,.08);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1120px;
  --maxw-narrow: 940px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

h1,h2,h3,h4 { color: var(--ink); font-weight: 700; letter-spacing: -0.025em; margin: 0; }
h1 { font-size: clamp(38px, 5.2vw, 60px); line-height: 1.08; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; }
h3 { font-size: 20px; line-height: 1.3; }
p { margin: 0 0 1em; }

.accent { color: var(--accent); }
.wrap   { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 28px; }
.muted  { color: var(--muted); }
.center { text-align: center; }

/* ---------- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-size: 16px; font-weight: 500; line-height: 1;
  padding: 15px 26px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .16s cubic-bezier(.2,.7,.3,1),
              box-shadow .16s ease, background .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: #000; color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.btn-accent  { background: var(--accent); color: #fff; }
.btn-accent:hover  { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(45,165,232,.4); }
.btn-ghost   { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: #000; transform: translateY(-2px); }
.btn-lg { padding: 17px 32px; font-size: 17px; }
.btn-sm { padding: 11px 18px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- Header: logo · centered pill nav · action ---------------------- */
/* Every page: header floats transparent over the top wash, then turns solid
   white once scrolled (toggled by assets/careers.js). No white strip. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line); box-shadow: 0 2px 16px rgba(16,24,40,.06);
}
/* Landing hero starts at y=0, so the header must float over it (fixed). Inner
   pages keep the sticky header in flow above their (shorter) top wash. */
.landing .site-header { position: fixed; top: 0; left: 0; right: 0; }

/* Inner-page top wash — the same blue grid as the hero, shorter, fading out. */
.page-top {
  position: absolute; top: 0; left: 0; right: 0; height: 360px; z-index: -2;
  background: linear-gradient(180deg, #e5ebfb 0%, #eef2fd 46%, #ffffff 100%);
  pointer-events: none;
}
.page-top::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--accent-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent-line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
}
.site-header .bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 96px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; justify-self: start; }
.brand img { height: 44px; width: auto; display: block; }
.brand-fallback { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.brand-fallback span { color: var(--accent); font-style: italic; font-weight: 600; }

.nav-pill {
  justify-self: center; display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 7px 8px; box-shadow: var(--shadow-nav);
}
.nav-pill a {
  color: var(--ink); font-size: 15px; font-weight: 500; padding: 9px 16px;
  border-radius: var(--r-pill); transition: background .14s ease, color .14s ease;
}
.nav-pill a:hover { background: var(--surface-2); text-decoration: none; }
.nav-pill a.active { background: var(--ink); color: #fff; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }

/* ---------- Hero: centered, azure accent line, graph-paper grid ------------ */
.hero {
  position: relative; min-height: 100svh; padding: 104px 0 132px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
/* Soft blue wash behind the hero, matching cfologic.com */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, #e5ebfb 0%, #eef2fd 40%, #ffffff 76%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--accent-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent-line) 1px, transparent 1px);
  background-size: 46px 46px; background-position: center top;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 35%, transparent 78%);
          mask-image: radial-gradient(120% 80% at 50% 0%, #000 35%, transparent 78%);
}
.hero-inner { text-align: center; max-width: 900px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-wash);
  border: 1px solid #cfeafb; padding: 7px 14px; border-radius: var(--r-pill); margin-bottom: 26px;
}
.eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(45,165,232,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(45,165,232,.45)} 70%{box-shadow:0 0 0 7px rgba(45,165,232,0)} 100%{box-shadow:0 0 0 0 rgba(45,165,232,0)} }
.hero h1 { margin: 0 auto; max-width: 16ch; }
.hero h1 .line-accent { color: var(--accent); display: block; }
.hero .lede { font-size: 20px; color: var(--muted); max-width: 62ch; margin: 24px auto 0; }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }

/* trust strip under hero */
.trust { display: flex; justify-content: center; gap: 56px; margin-top: 56px; flex-wrap: wrap; }
.trust .item { text-align: center; }
.trust .item b { display: block; font-size: 30px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.trust .item span { font-size: 14px; color: var(--muted); }

/* ---------- Sections ------------------------------------------------------- */
/* Offset in-page anchors so the sticky header doesn't cover the heading */
.section, .hero { scroll-margin-top: 96px; }
.section { padding: 88px 0; }
/* Full-viewport section: content vertically centered */
.section--full {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 100px 0;
}
.section--tint { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* ---------- Roles (crisp bordered list) ------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12.5px; font-weight: 500; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 4px 11px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 6px;
}
.chip.accent { color: var(--accent-ink); background: var(--accent-wash); border-color: #cfeafb; }

.roles-list {
  max-width: 880px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-1); overflow: hidden;
}
.role-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
  padding: 24px 30px; border-top: 1px solid var(--line);
  transition: background .14s ease; text-decoration: none;
}
.role-row:first-child { border-top: 0; }
.role-row:hover { background: #fafcfe; text-decoration: none; }
.role-row h3 { font-size: 19px; color: var(--ink); margin: 0 0 9px; letter-spacing: -.02em; }
.role-row:hover h3 { color: var(--accent-ink); }
.role-go {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: 14px;
  color: var(--muted); white-space: nowrap;
}
.role-row:hover .role-go { color: var(--ink); }
.role-go .arrow { transition: transform .16s ease; }
.role-row:hover .role-go .arrow { transform: translateX(4px); }

/* ---------- Why CFOLogic --------------------------------------------------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; }
.why-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 32px; transition: box-shadow .16s ease, transform .16s ease;
}
.why-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.why-card .num { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--accent); }
.why-card h3 { font-size: 19px; margin: 14px 0 8px; letter-spacing: -.02em; }
.why-card p { color: var(--muted); font-size: 15px; margin: 0; line-height: 1.6; }

/* ---------- About --------------------------------------------------------- */
.about-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.about-inner h2 { margin-bottom: 18px; }
.about-inner p { color: var(--muted); font-size: 19px; line-height: 1.6; margin: 0 0 30px; }

/* ---------- JD detail ------------------------------------------------------ */
.jd-top { padding: 40px 0 8px; }
.back-link { font-size: 14px; color: var(--muted); font-weight: 500; }
.back-link:hover { color: var(--ink); text-decoration: none; }
.jd-header { padding: 10px 0 30px; border-bottom: 1px solid var(--line); }
.jd-header h1 { font-size: clamp(32px, 4.2vw, 48px); }
.jd-header .chips { margin-top: 20px; }

.jd-layout { display: grid; grid-template-columns: 1fr 330px; gap: 56px; align-items: start; padding-top: 40px; }
.jd-body { min-width: 0; font-size: 16.5px; color: var(--text); }

/* Role summary lead-in */
.jd-lead { font-size: 19px; line-height: 1.62; color: var(--ink); margin: 0 0 4px; }

/* Sectioned JD */
.jd-section { margin-top: 44px; }
.jd-section:first-of-type { margin-top: 8px; }
.jd-section > h2 {
  font-size: 22px; letter-spacing: -.02em; margin: 0 0 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.jd-section h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 26px 0 10px; }
.jd-section h3:first-of-type { margin-top: 0; }

/* Bullets with azure markers */
.jd-body ul { list-style: none; padding: 0; margin: 0 0 6px; }
.jd-body ul li { position: relative; padding-left: 26px; margin: 11px 0; line-height: 1.55; }
.jd-body ul li::before {
  content: ""; position: absolute; left: 5px; top: 9px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
}
.jd-body ul li b, .jd-body ul li strong { color: var(--ink); font-weight: 600; }

/* Robust rendering for real Frappe/Quill JD data on deploy: neutralize the
   editor's baked-in inline font-size/color, and re-style its lists to match. */
.jd-body .ql-editor { padding: 0; }
.jd-body .ql-editor span[style] { font-size: inherit !important; color: inherit !important; }
.jd-body .ql-editor strong { font-weight: 600; color: var(--ink); }
.jd-body .ql-editor ol, .jd-body .ql-editor ul { list-style: none; padding: 0; margin: 0 0 6px; }
.jd-body .ql-editor li { position: relative; padding-left: 26px; margin: 11px 0; }
.jd-body .ql-editor li::before { content: ""; position: absolute; left: 5px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.jd-body .ql-ui { display: none; }

/* Minimum qualifications card */
.qual-card {
  background: linear-gradient(180deg, #fbfdff, var(--surface-2));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 32px; margin-top: 8px;
}
.qual-card > h2 { font-size: 21px; letter-spacing: -.02em; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.qual-card > h2 .badge { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-wash); border: 1px solid #cfeafb; padding: 4px 9px; border-radius: var(--r-pill); }
.qual-card .qual-sub { color: var(--muted); font-size: 14.5px; margin: 0 0 20px; }
.qual-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 15px; }
.qual-list li { display: grid; grid-template-columns: 24px 1fr; gap: 13px; align-items: start; font-size: 15.5px; line-height: 1.5; color: var(--text); padding-left: 0; margin: 0; }
.qual-list li::before { content: none; display: none; }  /* override the generic .jd-body bullet dot */
.qual-list li .ck { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; margin-top: 1px; }
.qual-list li .ck svg { width: 12px; height: 12px; }
.qual-list li b { color: var(--ink); font-weight: 600; }
.qual-note { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }

/* Grouped requirements (Skills · Tools & Technologies · Experience · Qualifications) */
.req-group { margin-top: 24px; }
.req-group:first-of-type { margin-top: 6px; }
.req-group-title {
  font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent-ink); margin: 0 0 4px;
}
.req-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; padding: 11px 0; border-top: 1px solid var(--line);
}
.req-group-title + .req-item { border-top: 0; }
.req-name { font-size: 15px; color: var(--text); line-height: 1.4; }
.req-tags { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.rtag {
  font-size: 11px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  padding: 3px 9px; border-radius: var(--r-pill); border: 1px solid transparent;
}
.rtag.must { color: var(--accent-ink); background: var(--accent-wash); border-color: #cfeafb; }
.rtag.pref { color: var(--muted); background: var(--surface-2); border-color: var(--line); }
.rtag.prof { color: var(--ink); background: #fff; border-color: var(--line-2); }

.jd-aside { position: sticky; top: 108px; }
.apply-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 26px; box-shadow: var(--shadow-2);
}
.apply-card h3 { font-size: 18px; margin-bottom: 6px; }
.apply-card > p { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.apply-card .meta-row { display: flex; justify-content: space-between; font-size: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.apply-card .meta-row:first-of-type { border-top: 0; }
.apply-card .meta-row span { color: var(--muted); }
.apply-card .meta-row b { color: var(--ink); font-weight: 600; }
.apply-card .btn { margin-top: 22px; }

/* ---------- Forms ---------------------------------------------------------- */
.form-page { padding: 40px 0 110px; }
.form-shell { max-width: 660px; margin: 0 auto; }
.form-head { text-align: center; margin-bottom: 8px; }
.form-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-2); padding: 40px 44px 36px; margin-top: 22px;
}
/* Signature blue bar across the top of the card (matches cfologic.com forms) */
.form-card--accent::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-ink));
}

/* Card header: eyebrow + role title + one-line meta */
.form-card-head { margin-bottom: 30px; }
.form-eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: 12px;
}
.form-title { font-size: clamp(25px, 3.2vw, 31px); letter-spacing: -.025em; margin: 0 0 8px; }
.form-sub { color: var(--muted); font-size: 15px; margin: 0; }

.field-group { margin-bottom: 26px; }
.field-group > .legend {
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 16px; padding-top: 20px; border-top: 1px solid var(--line);
}
.field-group:first-of-type > .legend { padding-top: 0; border-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field label .req { color: var(--accent); margin-left: 2px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font); font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid #e2e7ec; border-radius: 10px;
  padding: 13px 14px; transition: border-color .14s ease, box-shadow .14s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #aab2bb; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #cdd5dd; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,165,232,.16);
}
.field textarea { resize: vertical; min-height: 108px; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; pointer-events: none; }
.input-prefix input { padding-left: 30px; }

.file-drop {
  border: 1.5px dashed #d3dae1; border-radius: 10px; background: #fbfcfd;
  padding: 24px; text-align: center; cursor: pointer; transition: border-color .14s ease, background .14s ease;
}
.file-drop:hover { border-color: var(--accent); background: #fff; }
.file-drop .fd-ico { width: 22px; height: 22px; color: var(--muted); margin-bottom: 6px; }
.file-drop:hover .fd-ico { color: var(--accent); }
.file-drop b { color: var(--accent-ink); font-weight: 600; }
.file-drop .sub { font-size: 12.5px; color: var(--faint); margin-top: 4px; }

.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 4px 0 22px; }
.consent input { width: 17px; height: 17px; margin-top: 2px; flex: none; accent-color: var(--accent); }
/* Full-width black submit + centered reassurance line (matches the site form) */
.submit-row .btn { width: 100%; border-radius: 12px; padding: 16px; font-size: 16px; font-weight: 600; }
.form-note { display: block; text-align: center; font-size: 13px; color: var(--faint); margin-top: 14px; }

.verify-note {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 18px 20px;
  background: var(--accent-wash); border: 1px solid #cfeafb; border-radius: var(--r-lg);
  font-size: 14px; color: var(--ink);
}
.verify-note .icon { font-size: 18px; }

/* ---------- Applicant status (Phase 1b) ------------------------------------ */
.status-steps { display: grid; gap: 0; margin-top: 8px; }
.status-step { display: grid; grid-template-columns: 32px 1fr; gap: 14px; }
.status-step .rail { display: flex; flex-direction: column; align-items: center; }
.status-step .node { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; margin-top: 5px; }
.status-step .line { width: 2px; flex: 1; background: var(--line); min-height: 26px; }
.status-step.done .node { background: var(--ok); border-color: var(--ok); }
.status-step.current .node { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(45,165,232,.2); }
.status-step .body { padding-bottom: 22px; }
.status-step .body b { color: var(--ink); font-size: 15px; }
.status-step .body .when { font-size: 12.5px; color: var(--faint); }
.status-step.upcoming .body b { color: var(--faint); font-weight: 500; }

/* Applicant portal — dashboard cards (video / assessments / documents) */
.portal-shell { max-width: 720px; margin: 0 auto; }
.portal-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-2); padding: 30px 34px; margin-top: 22px;
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-head h3 { font-size: 18px; letter-spacing: -.01em; }
.card-head .pill-note { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 4px 10px; border-radius: var(--r-pill); }
.card-sub { color: var(--muted); font-size: 14px; margin: 8px 0 4px; }

.item-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.item-row:first-of-type { border-top: 0; }
.item-row .meta b { color: var(--ink); font-size: 15px; font-weight: 600; }
.item-row .meta span { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.item-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.item-badge { font-size: 11.5px; font-weight: 600; padding: 4px 11px; border-radius: var(--r-pill); white-space: nowrap; }
.item-badge.ready { color: var(--accent-ink); background: var(--accent-wash); border: 1px solid #cfeafb; }
.item-badge.done { color: #1a9d5a; background: #e6f6ec; border: 1px solid #b9e6cb; }
.item-badge.locked { color: var(--faint); background: var(--surface-2); border: 1px solid var(--line); }
.item-badge.pending { color: var(--warn); background: #fdf6e3; border: 1px solid #f0e2b8; }
.card-foot-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); }

/* Persistent application context above the tabs */
.app-context { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.app-context b { color: var(--ink); font-weight: 600; }
.app-context .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.app-context .sep { color: var(--faint); }

/* Horizontal tab bar (Frappe-style) — switch sections, one page each */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 22px 0 0; overflow-x: auto; overflow-y: hidden; }
.tab {
  appearance: none; background: none; border: none; cursor: pointer; font-family: var(--font);
  font-size: 15px; font-weight: 500; color: var(--muted); white-space: nowrap;
  padding: 13px 18px; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .14s ease, border-color .14s ease;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.tab-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px;
  padding: 0 5px; font-size: 11px; font-weight: 600; color: var(--accent-ink);
  background: var(--accent-wash); border-radius: var(--r-pill); margin-left: 6px; vertical-align: middle;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel .portal-card:first-child { margin-top: 20px; }

/* Empty state (e.g. documents not yet requested) */
.empty-state { text-align: center; padding: 30px 12px; }
.empty-state svg { width: 30px; height: 30px; color: var(--faint); margin-bottom: 12px; }
.empty-state b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 6px; }
.empty-state p { color: var(--muted); font-size: 14px; max-width: 48ch; margin: 0 auto; line-height: 1.6; }

/* ---------- Footer --------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0; margin-top: 40px; background: var(--surface-2); }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer .footer-logo { height: 26px; width: auto; display: block; }
.site-footer .brand-fallback { font-size: 18px; }
.site-footer .muted { font-size: 13.5px; }
.site-footer a { color: var(--muted); font-size: 13.5px; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Responsive ----------------------------------------------------- */
@media (max-width: 900px) {
  .jd-layout { grid-template-columns: 1fr; gap: 30px; }
  .jd-aside { position: static; }
}
@media (max-width: 720px) {
  .nav-pill { display: none; }
  .site-header .bar { grid-template-columns: 1fr auto; }
  .header-actions { justify-self: end; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand img { height: 36px; }
  .hero { min-height: auto; padding: 92px 0 56px; }
  .section--full { min-height: auto; padding: 64px 0; }
  .section { padding: 56px 0; }
  .trust { gap: 32px; margin-top: 40px; }
  .why-grid { grid-template-columns: 1fr; }
  .role-row { grid-template-columns: 1fr; gap: 14px; }
  .grid-2 { grid-template-columns: 1fr; }
  .role-card { grid-template-columns: 1fr; gap: 18px; }
  .role-go { justify-self: start; }
  .form-card { padding: 28px 22px; }
}

/* ==========================================================================
   Motion layer — Magic UI effects ported to vanilla CSS/JS.
   blur-fade (all pages) · spotlight (marketing cards) · animated grid
   (landing hero only) · shiny eyebrow (landing). careers.js adds `.js` to
   <html>, so if JS is disabled/fails, .bf content stays fully visible. OS
   "reduce motion" is honored.
   ========================================================================== */

/* 1 · Blur Fade — entrance + scroll reveal */
.js .bf {
  opacity: 0; transform: translateY(-6px); filter: blur(6px);
  transition: opacity .55s cubic-bezier(.2,.7,.3,1),
              transform .55s cubic-bezier(.2,.7,.3,1),
              filter .55s cubic-bezier(.2,.7,.3,1);
  transition-delay: var(--d, 0s); will-change: opacity, transform, filter;
}
.js .bf.in { opacity: 1; transform: none; filter: blur(0); }

/* 2 · Magic Card — cursor-following azure spotlight (marketing cards only) */
.mc { position: relative; }
.mc::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; opacity: 0; transition: opacity .3s ease; z-index: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
              rgba(45,165,232,.14), transparent 68%);
}
.mc:hover::after { opacity: 1; }
.why-card.mc > *, .role-row.mc > *, .apply-card.mc > *, .qual-card.mc > * { position: relative; z-index: 1; }

/* 3 · Animated Grid — cells light up inside the landing hero's grid squares */
.hero-cells {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 32%, transparent 76%);
          mask-image: radial-gradient(120% 80% at 50% 0%, #000 32%, transparent 76%);
}
.gcell {
  position: absolute; width: 44px; height: 44px; border-radius: 2px;  /* 44 sits inside a 46px cell */
  background: rgba(45,165,232,.16); opacity: 0;
  animation: gridpulse var(--dur, 4.5s) ease-in-out var(--del, 0s) infinite;
}
@keyframes gridpulse { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

/* 4 · Shiny eyebrow — slow shimmer across the "We're hiring" text */
.eyebrow .shiny {
  background: linear-gradient(90deg, var(--accent-ink) 0%, var(--accent-ink) 42%,
              #bfe6fb 50%, var(--accent-ink) 58%, var(--accent-ink) 100%);
  background-size: 220% 100%; background-position: 120% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shiny 3.6s linear infinite;
}
@keyframes shiny { to { background-position: -120% 0; } }

@media (prefers-reduced-motion: reduce) {
  .js .bf { opacity: 1; transform: none; filter: none; transition: none; }
  .hero-cells, .mc::after { display: none; }
  .eyebrow .shiny {
    -webkit-text-fill-color: var(--accent-ink); color: var(--accent-ink);
    background: none; animation: none;
  }
}
