/* Intranet careers — aligned with www.velnualabs.com fonts, header, footer */
:root {
  --white: #ffffff;
  --paper: #f6f5f1;
  --ink: #0b0b0b;
  --text: #0b0b0b;
  --muted: #161616;
  --line: #e7e5df;
  --line-strong: #d5d3cc;
  --accent: #1f3db8;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --max: 1200px;
  --wide: 1360px;
  --nav-offset: 100px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.careers-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

.vl-wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.vl-wrap-wide {
  width: min(var(--wide), calc(100% - 48px));
  margin-inline: auto;
}

.vl-main {
  flex: 1;
  padding-top: var(--nav-offset);
}

/* —— Header (pill, matches company site) —— */
.vl-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
}

.vl-header-bar {
  pointer-events: auto;
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(20, 16, 10, 0.1);
  color: #111;
}

.vl-brand img {
  height: 42px;
  width: auto;
}

.vl-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}

.vl-nav a {
  color: #111;
}

.vl-nav a.is-active,
.vl-nav a:hover {
  box-shadow: inset 0 -1px 0 var(--ink);
}

.vl-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vl-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.vl-cta:hover { background: #222; }

/* —— Flash —— */
.vl-flash {
  width: min(1180px, calc(100% - 24px));
  margin: 12px auto 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
}
.vl-flash.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.vl-flash.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* —— Typography —— */
.vl-kicker {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.vl-kicker.light { color: rgba(255, 255, 255, 0.72); }

h1, h2, h3 { color: var(--ink); margin: 0; }

.vl-hero h1,
.c-job-top h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.03em;
  color: #fff;
}

.vl-hero h1 em { font-style: italic; }

h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}

h3 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.vl-lede {
  margin: 18px 0 0;
  max-width: 36em;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--muted);
}

.vl-lede.light { color: rgba(255, 255, 255, 0.82); }

/* —— Hero —— */
.vl-hero {
  position: relative;
  overflow: hidden;
  background: #07070c;
  color: #fff;
  padding: 72px 0 88px;
}

.vl-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(80, 100, 200, 0.35), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(180, 100, 60, 0.18), transparent 55%),
    linear-gradient(180deg, #0a0a12 0%, #07070c 100%);
  pointer-events: none;
}

.vl-hero-inner {
  position: relative;
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.vl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 28px;
}

/* —— Buttons —— */
.vl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
}

.vl-btn-primary {
  background: var(--ink);
  color: #fff !important;
}
.vl-btn-primary:hover { background: #222; }

.vl-btn-light {
  background: #fff;
  color: var(--ink) !important;
}
.vl-btn-light:hover { background: #f0eee8; }

.vl-btn-ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.vl-btn-ghost:hover { border-color: #fff; }

.vl-btn-text {
  padding: 0;
  min-height: 0;
  border-radius: 0;
  background: none;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}
.vl-btn-text:hover { color: var(--accent); border-color: var(--accent); }

.vl-btn-block { width: 100%; }

/* —— Sections —— */
.vl-section {
  padding: 88px 0;
}

.vl-section-alt {
  background: var(--paper);
}

.vl-section-head {
  margin-bottom: 36px;
}

.vl-section-head p {
  margin: 14px 0 0;
  max-width: 36em;
  color: var(--muted);
}

/* —— Role list —— */
.vl-filters {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}

.vl-filters input,
.vl-filters select,
.c-stack input,
.c-stack textarea,
.c-stack select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
}

.c-stack textarea {
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

.vl-role-list {
  display: grid;
  gap: 0;
}

.vl-role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none !important;
}

.vl-role:last-child { border-bottom: 1px solid var(--line); }
.vl-role:hover .vl-role-cta { color: var(--accent); border-color: var(--accent); }

.vl-role-main h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.vl-role-main p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.vl-role-cta {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.vl-empty {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
.vl-empty strong { display: block; margin-bottom: 8px; font-size: 18px; }
.vl-empty p { margin: 0; color: var(--muted); }
.vl-empty a { text-decoration: underline; text-underline-offset: 3px; }

.vl-muted { color: var(--muted); font-size: 14px; }

/* —— Job detail —— */
.c-job-top {
  background: #07070c;
  color: #fff;
  padding: 56px 0 64px;
}

.c-job-top-inner {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.c-back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7) !important;
}
.c-back:hover { color: #fff !important; }

.c-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 16px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.c-job-lede {
  margin: 16px 0 0;
  max-width: 34em;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

.c-job-top .vl-btn,
.c-job-top .c-btn {
  margin-top: 24px;
}

.c-job-layout {
  width: min(var(--max), calc(100% - 48px));
  margin: 48px auto 80px;
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.c-panel {
  padding: 0 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.c-panel:last-child { border-bottom: 0; margin-bottom: 0; }
.c-panel h2 { margin-bottom: 16px; font-size: clamp(28px, 3vw, 40px); }

.c-prose {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.c-checklist {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
}
.c-checklist li { margin-bottom: 0.55em; }

.c-apply {
  position: sticky;
  top: calc(var(--nav-offset) + 12px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}

.c-apply h2 { margin-bottom: 8px; font-size: 32px; }
.c-apply-note { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.c-stack { display: grid; gap: 14px; }
.c-stack label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}
.c-hint { font-weight: 400; color: var(--muted); }
.c-apply-foot { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.c-apply-foot a { text-decoration: underline; text-underline-offset: 3px; }

/* legacy btn aliases used in show.php */
.c-btn,
a.c-btn,
button.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  font-family: var(--sans);
}
.c-btn-primary { background: var(--ink); color: #fff !important; }
.c-btn-primary:hover { background: #222; }
.c-btn-block { width: 100%; }

/* —— Footer —— */
.vl-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: #fff;
  color: #111;
}

.vl-foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 36px;
}

.vl-foot-brand img { height: 40px; }

.vl-foot-tag {
  margin: 16px 0 0;
  max-width: 18em;
  color: #111;
}

.vl-foot-label {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #111;
}

.vl-foot-grid a,
.vl-foot-grid p {
  display: block;
  margin: 0 0 10px;
  font-size: 15px;
  color: #111;
}

.vl-foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: #111;
}

.vl-foot-mega {
  width: 100%;
  overflow: hidden;
  padding: 0.55rem max(0.7rem, 2.5vw) 1.15rem;
  pointer-events: none;
  user-select: none;
  text-align: center;
}

.vl-foot-mega-name {
  margin: 0 auto;
  font-family: "Space Grotesk", var(--sans);
  font-weight: 600;
  font-size: clamp(2.8rem, 11vw, 7.25rem);
  letter-spacing: -0.06em;
  line-height: 1.05;
  white-space: nowrap;
  color: #6b7eb8;
}

@media (max-width: 960px) {
  .vl-nav { display: none; }
  .vl-filters { grid-template-columns: 1fr; }
  .c-job-layout { grid-template-columns: 1fr; }
  .c-apply { position: static; }
  .vl-foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .vl-wrap,
  .vl-wrap-wide,
  .vl-hero-inner,
  .c-job-top-inner,
  .c-job-layout {
    width: min(var(--max), calc(100% - 32px));
  }
  .vl-role {
    flex-direction: column;
    align-items: flex-start;
  }
  .vl-foot-grid { grid-template-columns: 1fr; }
  .vl-foot-mega-name {
    font-size: clamp(1.85rem, 11.5vw, 3.4rem);
  }
}
