/* Sevet careers page. Uses the tokens, form and odometer styles from holding.css;
   this file adds the page layout, on the same three-column grid as the home page. */
.page-careers { letter-spacing: -0.05em; }
.page-careers h2, .page-careers h3 { margin: 0; }

/* Shared grid: wide left column for headings, content in the middle and right columns */
.c-row, .c-top {
  display: grid; grid-template-columns: var(--col-1) 1fr var(--col-3);
}
.c-row > :first-child { padding: 0 var(--pad) 0 calc(3.6 * var(--u)); }
.c-body { grid-column: 2 / 4; padding-right: var(--pad); }

/* Top row: logo, photo, black tag, at the home page's proportions */
.c-top { height: max(220px, var(--row)); }
.c-logo { display: grid; place-items: center; }
.c-logo img { width: calc(16.1 * var(--u)); }
.c-photo { background: url("/assets/careers-photo.webp") 70% 25% / cover no-repeat; }
.c-tag { display: flex; align-items: flex-end; padding: 0 var(--pad) calc(2.3 * var(--u)) calc(2.7 * var(--u)); background: var(--black); color: #ffffff; }
.c-tag p { font-size: calc(2.6 * var(--u)); font-weight: 300; line-height: 1; letter-spacing: -0.06em; }

/* Text */
.c-row { padding: calc(7 * var(--u)) 0; border-bottom: 1px solid rgba(36, 31, 33, 0.12); }
.c-row h1, .c-row h2 { font-size: calc(2.3 * var(--u)); font-weight: 600; line-height: 1.05; }
.c-lede { max-width: 22ch; font-size: calc(3.1 * var(--u)); font-weight: 500; line-height: 0.98; letter-spacing: -0.06em; }
.c-body > p:not(.c-lede), .c-side, .c-note { max-width: 34em; font-size: calc(1.35 * var(--u)); line-height: 1.3; letter-spacing: -0.03em; }
.c-lede + p { margin-top: calc(2.4 * var(--u)); }
.c-side { margin-top: 1em; max-width: 20em; }
.c-note { margin-top: calc(2 * var(--u)); }
.c-note a { color: inherit; }

/* Vacancies */
.roles { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--black); }
.role {
  display: grid; grid-template-columns: 1.4fr 1fr auto; align-items: center; gap: calc(2 * var(--u));
  padding: calc(1.8 * var(--u)) 0; border-bottom: 1px solid rgba(36, 31, 33, 0.25); text-decoration: none; color: inherit;
}
.role-title { font-size: calc(2 * var(--u)); font-weight: 500; }
.role-meta { font-size: calc(1.35 * var(--u)); color: #5f5b5c; letter-spacing: -0.03em; }
.role-go {
  display: grid; place-items: center; min-width: calc(9 * var(--u)); height: calc(3.4 * var(--u)); padding: 0 1.2em;
  background: var(--button); font-size: calc(1.2 * var(--u)); font-weight: 500; letter-spacing: -0.03em;
  transition: background-color 0.2s, color 0.2s;
}
.role:hover .role-go, .role:focus-visible .role-go { background: var(--black); color: var(--cream); }

/* Core behaviours: black band with flat cream tiles */
.c-band { padding: calc(7 * var(--u)) var(--pad) calc(7 * var(--u)) calc(3.6 * var(--u)); background: var(--black); color: var(--cream); }
.c-band-head { display: grid; grid-template-columns: calc(var(--col-1) - 3.6 * var(--u)) 1fr; }
.c-band-head h2 { font-size: calc(2.3 * var(--u)); font-weight: 600; line-height: 1.05; }
.c-band-head p { max-width: 34em; font-size: calc(1.35 * var(--u)); line-height: 1.3; letter-spacing: -0.03em; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(1.3 * var(--u)); list-style: none; margin: calc(4 * var(--u)) 0 0; padding: 0; }
.tiles > li { padding: calc(2.4 * var(--u)); background: var(--cream); color: var(--black); }
.tile-n { font-size: calc(1.1 * var(--u)); color: #5f5b5c; letter-spacing: -0.02em; }
.tiles h3 { margin-top: 0.6em; font-size: calc(1.8 * var(--u)); font-weight: 600; line-height: 1.05; }
.tiles ul { display: grid; gap: 0.5em; margin: 1em 0 0; padding-left: 1.05em; font-size: calc(1.15 * var(--u)); line-height: 1.28; letter-spacing: -0.02em; }

/* Benefits */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(2 * var(--u)); margin-top: calc(4 * var(--u)); }
.figure { font-size: calc(4.1 * var(--u)); font-weight: 300; line-height: 0.95; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.figure-label { margin-top: 0.3em; font-size: calc(1.5 * var(--u)); font-weight: 500; line-height: 1.1; }
.figure-note { margin-top: 0.4em; font-size: calc(1.1 * var(--u)); line-height: 1.25; letter-spacing: -0.02em; color: #5f5b5c; }
.perks {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(2.6 * var(--u)) calc(2 * var(--u));
  list-style: none; margin: calc(4.5 * var(--u)) 0 0; padding: calc(3 * var(--u)) 0 0; border-top: 1.5px solid var(--black);
}
.perks h3 { font-size: calc(1.4 * var(--u)); font-weight: 600; line-height: 1.1; letter-spacing: -0.04em; }
.perks p { margin-top: 0.4em; font-size: calc(1.1 * var(--u)); line-height: 1.28; letter-spacing: -0.02em; }

/* Enquiry form: the home page form, here in the middle and right columns */
.c-apply .form { grid-column: 2 / 4; padding: 0 var(--pad) 0 0; }

/* Footer */
.c-foot { display: flex; justify-content: space-between; gap: 16px; padding: calc(2.4 * var(--u)) var(--pad) calc(2.4 * var(--u)) calc(3.6 * var(--u)); background: var(--black); color: var(--cream); font-size: calc(1.2 * var(--u)); letter-spacing: -0.02em; }
.c-foot a { color: inherit; }

/* ---------- Phones, tablets and short screens: one column ---------- */
@media (max-width: 900px), (max-height: 559px) {
  .page-careers { letter-spacing: -0.03em; }
  .c-top { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; }
  .c-logo { padding: 32px 24px; }
  .c-logo img { width: min(180px, 40vw); }
  .c-tag { align-items: center; padding: 24px; }
  .c-tag p { font-size: clamp(1.4rem, 6vw, 2rem); }
  .c-photo { grid-column: 1 / -1; grid-row: 2; aspect-ratio: 16 / 9; background-position: 70% 30%; }
  .c-row { grid-template-columns: 1fr; gap: 20px; padding: 48px 0; }
  .c-row > :first-child, .c-body, .c-apply .form { grid-column: 1; padding: 0 24px; }
  .c-row h1, .c-row h2, .c-band-head h2 { font-size: clamp(1.6rem, 7.4vw, 2.4rem); }
  .c-lede { font-size: clamp(1.5rem, 6.6vw, 2.2rem); letter-spacing: -0.035em; line-height: 1.02; }
  .c-body > p:not(.c-lede), .c-side, .c-note, .c-band-head p, .role-meta { font-size: 1.05rem; }
  .role { grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 0; }
  .role-title { font-size: 1.25rem; }
  .role-meta { grid-row: 2; }
  .role-go { grid-row: 1 / 3; grid-column: 2; min-width: 0; height: 44px; font-size: 1rem; }
  .c-band { padding: 48px 24px; }
  .c-band-head { grid-template-columns: 1fr; gap: 12px; }
  .tiles { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .tiles > li { padding: 24px; }
  .tile-n { font-size: 0.85rem; }
  .tiles h3 { font-size: 1.3rem; }
  .tiles ul { font-size: 1rem; }
  .figures, .perks { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .figure { font-size: clamp(2rem, 9vw, 3rem); }
  .figure-label { font-size: 1rem; }
  .figure-note, .perks p { font-size: 0.9rem; }
  .perks h3 { font-size: 1.05rem; }
  .c-foot { padding: 24px; font-size: 0.9rem; }
}
@media (min-width: 901px) and (max-width: 1200px) and (min-height: 560px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Greenhouse job board: Greenhouse draws its own frame inside this box and sets its height */
.greenhouse { min-height: calc(12 * var(--u)); border-top: 1.5px solid var(--black); padding-top: calc(1.5 * var(--u)); }
.greenhouse iframe { display: block; width: 100%; border: 0; }

/* Desktop: the top row and intro fill the first screen exactly, so the black band starts below the fold */
@media (min-width: 901px) and (min-height: 560px) {
  .c-intro { min-height: calc(100vh - max(220px, var(--row))); align-content: center; }
}
