/* VEN Mobility careers — tokens match the Paper file "VEN Mobility · Careers" */

:root {
  --color-white: #ffffff;
  --color-mist: #f3f6f3;
  --color-border: #d9e0da;
  --color-muted: #5a6b5c;
  --color-placeholder: #8a959c;
  --color-ink: #000000;
  --color-forest: #507040;
  --color-forest-deep: #3f5a33;
  --color-leaf: #7cc488;
  --color-leaf-tint: #eef6ef;
  --color-leaf-light: #bfe3c6;

  --font-sans: "Schibsted Grotesk", system-ui, sans-serif;

  --text-label: 13px;
  --text-small: 14px;
  --text-body: 16px;
  --text-lead: 18px;
  --text-title: 22px;
  --text-heading: 28px;
  --text-display: 64px;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  --control-height: 52px;
  --button-height: 56px;
  --page-gutter: 120px;
  --page-max: 1440px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--color-ink);
  background: var(--color-white);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Layout ------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

/* Nav --------------------------------------------------------------- */

.nav {
  border-bottom: 1px solid var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__logo {
  height: 26px;
  width: auto;
}

.nav__divider {
  width: 1px;
  height: 20px;
  background: var(--color-border);
}

.nav__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--color-forest);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-muted);
}

.nav__links a[aria-current="page"] {
  color: var(--color-ink);
}

/* Type -------------------------------------------------------------- */

.eyebrow {
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-forest);
}

.display {
  margin: 0;
  font-size: var(--text-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.lead {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  color: var(--color-muted);
}

.section-title {
  margin: 0;
  font-size: var(--text-title);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.help {
  margin: 0;
  font-size: 15px;
  color: var(--color-muted);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-muted);
}

.meta--ink {
  color: var(--color-ink);
}

.meta__dot {
  width: 4px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-border);
}

/* Buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--button-height);
  padding: 0 32px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.btn--primary {
  background: var(--color-forest);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-forest-deep);
}

.btn--secondary {
  background: transparent;
  border-color: var(--color-ink);
  color: var(--color-ink);
}

.btn--secondary:hover {
  background: var(--color-mist);
}

.btn--sm {
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
}

.btn:focus-visible,
.chip:focus-visible,
.field__input:focus-visible,
.textarea:focus-visible {
  outline: none;
  border-color: var(--color-forest);
  box-shadow: 0 0 0 4px var(--color-leaf-tint);
}

/* Chips ------------------------------------------------------------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.chip--filter {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.chip[aria-pressed="true"],
.chip.is-selected {
  border: 1.5px solid var(--color-forest);
  background: var(--color-leaf-tint);
  font-weight: 600;
}

.chip--filter[aria-pressed="true"] {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-white);
}

/* Lists ------------------------------------------------------------- */

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rows > li {
  display: flex;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
  font-size: 17px;
  line-height: 1.45;
}

.rows > li:last-child {
  border-bottom: 1px solid var(--color-border);
}

.rows__index {
  flex-shrink: 0;
  width: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-forest);
}

.rows__index--muted {
  color: var(--color-muted);
}

.rows > li.is-bonus {
  color: var(--color-muted);
}

/* Fact card --------------------------------------------------------- */

.facts {
  margin: 0;
  padding: 6px 24px;
  border-radius: var(--radius-lg);
  background: var(--color-mist);
}

.facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-body);
}

.facts > div:last-child {
  border-bottom: 0;
}

.facts dt {
  color: var(--color-muted);
}

.facts dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}

/* Open roles page --------------------------------------------------- */

.roles-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 72px 0 48px;
}

.roles-header .display {
  max-width: 800px;
}

.roles-header .lead {
  max-width: 640px;
}

.roles-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
}

.role-list {
  list-style: none;
  margin: 0;
  padding: 0 0 96px;
}

.role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
}

.role-row:last-child {
  border-bottom: 1px solid var(--color-border);
}

.role-row__title {
  margin: 0 0 10px;
  font-size: var(--text-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.role-row__aside {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
}

/* Job page ---------------------------------------------------------- */

.job-header {
  border-bottom: 1px solid var(--color-border);
}

.job-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 56px 48px;
}

.job-header__title {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.job-header__title .display {
  max-width: 820px;
  font-size: 56px;
}

.back {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-muted);
}

.job-body {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(280px, 1fr);
  gap: 120px;
  padding-block: 56px 96px;
}

.job-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.job-content__intro {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.job-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.job-section .section-title {
  font-size: 20px;
}

.job-aside {
  padding-top: 6px;
}

/* Application form -------------------------------------------------- */

.apply-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 120px;
  padding-block: 56px 96px;
}

.apply-aside {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.apply-aside__title {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--color-border);
}

.steps li {
  position: sticky;
  top: 0;
}

.steps a {
  display: block;
  margin-left: -2px;
  padding: 10px 0 10px 18px;
  border-left: 2px solid transparent;
  font-size: 15px;
  color: var(--color-muted);
}

.steps a.is-active {
  border-left-color: var(--color-forest);
  color: var(--color-ink);
  font-weight: 600;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-top: 32px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  scroll-margin-top: 24px;
}

.form-section__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  font-size: var(--text-small);
  font-weight: 500;
}

.field__optional {
  font-weight: 400;
  color: var(--color-placeholder);
}

.field__input,
.textarea {
  width: 100%;
  height: var(--control-height);
  padding: 0 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.field__input::placeholder,
.textarea::placeholder {
  color: var(--color-placeholder);
}

.field__group {
  display: flex;
  align-items: center;
  height: var(--control-height);
  padding: 0 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  gap: 12px;
}

.field__group:focus-within {
  border-color: var(--color-forest);
  box-shadow: 0 0 0 4px var(--color-leaf-tint);
}

.field__prefix {
  font-weight: 500;
}

.field__group .field__divider {
  width: 1px;
  height: 24px;
  background: var(--color-border);
}

.field__group input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  outline: none;
}

.textarea {
  height: 140px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.4;
}

.counter {
  font-size: 13px;
  text-align: right;
  color: var(--color-placeholder);
}

.dropzone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px;
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
}

.dropzone.is-dragover {
  border-color: var(--color-forest);
  background: var(--color-leaf-tint);
}

.dropzone__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-leaf-tint);
  color: var(--color-forest);
}

.dropzone__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropzone__title {
  font-weight: 600;
}

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

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.file-row__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.file-row__badge {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 48px;
  padding-bottom: 8px;
  border-radius: 6px;
  background: var(--color-ink);
  color: var(--color-white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.file-row__name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.file-row__actions {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 600;
}

.file-row__actions button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.file-row__actions button.is-muted {
  font-weight: 500;
  color: var(--color-muted);
}

.question {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.question__label {
  font-size: 15px;
  font-weight: 500;
}

.submit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}

.submit-bar__note {
  max-width: 520px;
  font-size: 14px;
  color: var(--color-muted);
}

.field__error {
  display: none;
  font-size: 13px;
  color: #a63d2a;
}

.field.is-invalid .field__input,
.field.is-invalid .field__group {
  border-color: #a63d2a;
}

.field.is-invalid .field__error {
  display: block;
}

/* Submitted page ---------------------------------------------------- */

.submitted {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
  padding: 96px 0;
}

.submitted__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-forest);
  color: var(--color-white);
}

.submitted .display {
  font-size: 48px;
}

.submitted__next {
  padding-top: 20px;
}

.submitted__next .eyebrow {
  display: block;
  padding-bottom: 12px;
  color: var(--color-muted);
}

.submitted__actions {
  padding-top: 8px;
}

/* Mobile ------------------------------------------------------------ */

.mobile-apply {
  display: none;
}

@media (max-width: 1100px) {
  :root {
    --page-gutter: 48px;
  }

  .job-body,
  .apply-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .job-aside {
    order: -1;
  }

  .apply-aside .steps {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --page-gutter: 24px;
    --text-display: 40px;
  }

  .nav__inner {
    height: 64px;
  }

  .nav__logo {
    height: 22px;
  }

  .nav__divider,
  .nav__tag,
  .nav__links a:not([data-mobile]) {
    display: none;
  }

  .roles-header {
    padding: 40px 0 28px;
  }

  .roles-filters {
    flex-wrap: wrap;
  }

  .role-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 0;
  }

  .role-row__title {
    font-size: 24px;
  }

  .role-row__aside {
    width: 100%;
    justify-content: space-between;
  }

  .job-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-block: 28px 24px;
  }

  .job-aside {
    order: 1;
  }

  .job-header__title .display {
    font-size: 40px;
  }

  .job-header__inner > .btn {
    display: none;
  }

  .job-body {
    padding-block: 28px 140px;
  }

  .job-content__intro {
    font-size: 17px;
  }

  .rows > li {
    font-size: 15px;
    gap: 14px;
  }

  .mobile-apply {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--color-border);
    background: var(--color-white);
    text-align: center;
  }

  .mobile-apply .btn {
    height: 54px;
    border-radius: var(--radius-lg);
  }

  .mobile-apply__note {
    font-size: 13px;
    color: var(--color-muted);
  }

  .apply-layout {
    padding-block: 28px 96px;
  }

  .apply-aside__title {
    font-size: 30px;
  }

  .form {
    gap: 40px;
    padding-top: 0;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .dropzone {
    flex-direction: column;
    align-items: flex-start;
  }

  .file-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .submit-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .submitted {
    padding: 48px 0;
  }

  .submitted .display {
    font-size: 36px;
  }
}
