/* =========================================================
   Single vacancy page — A1 v2 design.
   Loads on top of website.css (which provides .nav, .wrap,
   .btn, .kicker, .title, .band, .cta, .foot-*, etc.).
   ========================================================= */

/* ---------- Hero ---------- */
.job-hero { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.job-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 88% 18%, rgba(30, 175, 224, 0.32), transparent 55%),
    radial-gradient(ellipse at 3% 92%, rgba(76, 139, 174, 0.42), transparent 52%);
  pointer-events: none;
}
.job-hero-inner {
  position: relative;
  padding-top: 70px;
  padding-bottom: 90px;
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 80px;
  align-items: end;
}
.job-hero .crumbs {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 56px;
  font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600; color: rgba(255, 255, 255, 0.6);
}
.job-hero .crumbs a { color: rgba(255, 255, 255, 0.55); }
.job-hero .crumbs a:hover { color: var(--cyan); }
.job-hero .crumbs .sep { color: var(--cyan); }
.job-hero .sector-tag {
  font-size: 16px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 32px;
}
.job-hero .sector-tag::before {
  content: ""; width: 36px; height: 1.5px; background: var(--cyan);
}
.job-hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 92px;
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--white);
  text-wrap: balance;
}
.job-hero h1 em { font-style: italic; font-weight: 500; color: var(--cyan); }
.job-hero .jh-actions {
  margin-top: 38px;
  display: flex; gap: 14px; flex-wrap: wrap;
}

/* Right-side meta block */
.jh-meta { padding-bottom: 8px; display: flex; flex-direction: column; }
.jh-meta .jh-lede {
  font-size: 18px; line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  max-width: 420px;
}
.jh-meta dl {
  margin-top: 32px; padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px;
}
.jh-meta dt {
  font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--cyan);
  margin-bottom: 10px;
}
.jh-meta dd {
  font-family: 'Fraunces', serif;
  font-size: 28px; font-weight: 500;
  line-height: 1.2; letter-spacing: -0.015em;
  color: var(--white);
}
.jh-meta dd em { font-style: italic; color: var(--cyan); font-weight: 500; }

/* ---------- Quick-fact strip ---------- */
.quick-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.quick-strip .qs-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 22px; padding-bottom: 22px; gap: 30px; flex-wrap: wrap;
}
.quick-strip .qs-left {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  font-size: 13px; color: var(--slate-2);
  letter-spacing: 0.04em;
}
.quick-strip .qs-left .qs-item {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--slate);
}
.quick-strip .qs-left .qs-item b { color: var(--ink); font-weight: 600; }
.quick-strip .qs-left .qs-item svg { width: 14px; height: 14px; color: var(--blue); }
.quick-strip .qs-left .ref {
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 500;
  color: var(--blue); font-size: 16px;
}
.quick-strip .qs-right { display: flex; align-items: center; gap: 12px; }

.qs-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line);
  color: var(--slate); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.15s ease;
  font-family: inherit;
}
.qs-btn:hover { border-color: var(--ink); color: var(--ink); }
.qs-btn svg { width: 13px; height: 13px; }

/* ---------- Body grid ---------- */
.role-body { background: var(--white); }
.role-body .role-grid {
  padding-top: 100px;
  padding-bottom: 130px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 100px;
  align-items: start;
}
.role-main > section + section { margin-top: 80px; }
.role-main .role-section .kicker,
.related .kicker,
.cta .kicker {
  margin-bottom: 26px;
  font-size: 22px;
  letter-spacing: 0.18em;
  opacity: 0.7;
}
.role-main h2 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 52px;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
.role-main h2 em { font-style: italic; font-weight: 500; color: var(--blue); }
.role-main .role-section p {
  margin-top: 22px;
  font-family: 'Inter', sans-serif;
  font-size: 19px; line-height: 1.6;
  color: var(--slate);
  max-width: 720px;
  text-wrap: pretty;
}

/* Numbered list (responsibilities / profile) */
.role-list {
  margin-top: 30px;
  display: flex; flex-direction: column;
}
.role-list .rl-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.role-list .rl-item:first-child { border-top: 1px solid var(--line); }
.role-list .rl-num {
  font-family: 'Fraunces', serif;
  font-style: italic; font-weight: 500;
  color: var(--blue);
  font-size: 24px;
  line-height: 1.3;
}
.role-list .rl-txt {
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 500;
  text-wrap: pretty;
}

/* Why-this-role cards */
.why-cards {
  margin-top: 36px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.why-card {
  background: var(--paper);
  border-top: 3px solid var(--cyan);
  padding: 30px 28px 26px;
  border-radius: 6px;
  display: flex; flex-direction: column;
  gap: 14px;
  min-height: 180px;
}
.why-card .wc-num {
  font-family: 'Fraunces', serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1;
}
.why-card .wc-num em { color: var(--blue); font-style: italic; font-weight: 500; }
.why-card .wc-txt {
  font-size: 16px;
  line-height: 1.45;
  color: var(--slate);
  font-weight: 500;
}

/* Process / next-steps callout */
.process-block {
  margin-top: 36px;
  background: linear-gradient(135deg, var(--blue) 0%, #3a6f8e 100%);
  color: var(--white);
  border-radius: 6px;
  padding: 44px 44px;
  position: relative;
  overflow: hidden;
}
.process-block::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 92% 10%, rgba(30, 175, 224, 0.45), transparent 50%);
  pointer-events: none;
}
.process-block > * { position: relative; }
.process-block h3 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
}
.process-block h3 em { font-style: italic; font-weight: 500; color: var(--cyan); }
.process-block .pb-steps {
  margin-top: 30px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.process-block .pb-step .pb-n {
  font-family: 'Fraunces', serif;
  font-style: italic; font-weight: 500;
  color: var(--cyan);
  font-size: 18px;
  margin-bottom: 8px;
}
.process-block .pb-step .pb-t {
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
}
.process-block .pb-step .pb-t b { color: var(--white); font-weight: 600; }

/* ---------- Sidebar ---------- */
.role-aside {
  position: sticky; top: 110px;
  display: flex; flex-direction: column; gap: 18px;
}

/* Apply card */
.apply-card {
  background: var(--ink);
  color: var(--white);
  border-radius: 6px;
  padding: 36px 32px 30px;
  position: relative; overflow: hidden;
}
.apply-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 100% 0%, rgba(30, 175, 224, 0.32), transparent 65%);
  pointer-events: none;
}
.apply-card > * { position: relative; }
.apply-card .ac-ref {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.apply-card .ac-title {
  font-family: 'Fraunces', serif;
  font-weight: 600; font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  text-wrap: balance;
}
.apply-card .ac-title em { font-style: italic; font-weight: 500; color: var(--cyan); }
.apply-card .ac-sub {
  margin-top: 14px;
  font-size: 14px; line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}
.apply-card .ac-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  margin-top: 26px;
  background: var(--cyan);
  color: var(--ink);
  border: none;
  padding: 16px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  text-decoration: none;
}
.apply-card .ac-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 5px rgba(30, 175, 224, 0.18), 0 12px 36px -6px rgba(30, 175, 224, 0.65), 0 0 60px rgba(30, 175, 224, 0.4);
}
.apply-card .ac-cta svg { width: 16px; height: 16px; }
.apply-card .ac-row {
  margin-top: 12px;
  display: flex; gap: 10px;
}
.apply-card .ac-row button {
  flex: 1;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 12px 10px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.15s ease;
}
.apply-card .ac-row button:hover { border-color: var(--cyan); color: var(--cyan); }
.apply-card .ac-row button svg { width: 13px; height: 13px; }
.apply-card .ac-hint {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}
.apply-card .ac-hint a {
  color: var(--cyan); font-weight: 600;
  border-bottom: 1px solid rgba(30, 175, 224, 0.35);
  padding-bottom: 1px;
}

/* Recruiter card */
.recruiter-card {
  background: var(--paper);
  border-radius: 6px;
  padding: 30px 28px;
  border-top: 3px solid var(--cyan);
}
.recruiter-card .rc-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.recruiter-card .rc-row { display: flex; align-items: center; gap: 16px; }
.recruiter-card .rc-row img {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cyan);
  background: #fff;
}
.recruiter-card .rc-name {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.recruiter-card .rc-role {
  margin-top: 4px;
  font-size: 12px;
  color: var(--slate-2);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.recruiter-card .rc-contacts {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.recruiter-card .rc-contacts a {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 500;
  color: var(--ink);
  transition: color 0.15s ease;
}
.recruiter-card .rc-contacts a:hover { color: var(--cyan); }
.recruiter-card .rc-contacts svg {
  width: 16px; height: 16px;
  color: var(--cyan);
  flex-shrink: 0;
}

/* Share row */
.share-row {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 4px 0;
}
.share-row .sr-label {
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 700;
  color: var(--slate-2);
  margin-right: 4px;
}
.share-row .sr-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--slate);
  display: grid; place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.share-row .sr-btn:hover {
  background: var(--ink); color: var(--white);
  border-color: var(--ink);
}
.share-row .sr-btn svg { width: 14px; height: 14px; }

/* Related roles override (sit on shared .band, .jobs-grid, .job from website.css) */
.related { background: var(--paper); }
.related .head-row {
  display: flex; align-items: end; justify-content: space-between;
  gap: 60px;
}
.related .head-row .view-all {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 22px; font-weight: 600;
  color: var(--blue);
  padding-bottom: 12px;
}
.related .jobs-grid { margin-top: 60px; }
.related .job { background: var(--white); }

/* Italic em fix — extend background-clip:text bounding box so the last
   letter of Fraunces italics doesn't get sliced. */
.job-hero h1 em,
.role-main h2 em,
.apply-card .ac-title em,
.process-block h3 em,
.why-card .wc-num em,
.jh-meta dd em {
  display: inline-block;
  padding-right: 0.08em;
  margin-right: -0.04em;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .role-body .role-grid { grid-template-columns: 1fr; gap: 60px; padding-top: 70px; padding-bottom: 90px; }
  .role-aside { position: static; flex-direction: column; }
  .job-hero h1 { font-size: 64px; }
  .job-hero-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 60px; padding-bottom: 70px; }
  .role-main h2 { font-size: 40px; }
  .why-cards, .process-block .pb-steps { grid-template-columns: 1fr; }
  .quick-strip .qs-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
}
