/*
 * ThePhoneLab careers site: design tokens, base, buttons, kicker, badge, the shared shell
 * (selling-point bar, header, footer), section helpers, photo grid, numbered rows, check rows,
 * perk cards, the overview's sections and vacancy list, the vacancy page's sections, the step
 * bar and the apply layout.
 * Values from the design export (Werken bij ThePhoneLab v3 and its vacancy and apply pages); the
 * page modules add their own sections.
 *
 * Breakpoints. The design has no media queries; the small-screen layouts are ours. Two
 * breakpoints, written as literal pixel values in every media query (a custom property cannot
 * be used in one):
 *   bp-nav   900px: below it the header shows the Menu (left), the logo (centred) and the
 *            Solliciteer button (right); the nav links sit in the Menu's panel.
 *   bp-apply 1024px: below it the apply main column stops spanning two columns and the side
 *            panel is not sticky.
 * Below 600px (the one other width): the step bar shows only the current step's label, the
 * selling-point bar shows one line at a time, the vacancy group tabs become one row that scrolls
 * sideways with the counter under it, the role rows show their first city buttons (site.js), the
 * travel fields (Stad and Jouw postcode) stack, and the overview shows fewer photos.
 * Everything else uses the design's auto-fit and auto-fill grids.
 *
 * The hidden attribute is the only show/hide toggle the scripts use; the rule after the tokens
 * keeps it working on elements this file lays out as grid or flex.
 *
 * Fabrik is the font of every text on every page, controls included, self-hosted from
 * ThePhoneLab's own theme files (regular and bold only). Inter is only the fallback.
 */

/* Fabrik, self-hosted from ThePhoneLab's own WordPress theme webfonts. Only two weights exist. */
@font-face { font-family: Fabrik; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/fabrik-regular.woff2) format("woff2"); }
@font-face { font-family: Fabrik; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/fabrik-bold.woff2) format("woff2"); }

/* Inter, self-hosted from @fontsource/inter 5.3.0 (SIL Open Font License, see fonts/LICENSE). */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/inter-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/inter-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/inter-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/inter-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokens ---------- */
:root {
  --tpl-cream: #FDFCF7;          /* page background */
  --tpl-red: #E1151C;
  --tpl-red-hover: #B80F19;
  --tpl-red-press: #960C14;
  --tpl-ink: #1A1A1A;            /* text */
  --tpl-muted: #8A8478;
  --tpl-cream-200: #F6F3E8;
  --tpl-cream-300: #ECE7D6;      /* lines and borders */
  --tpl-selected: #FDECEC;       /* a selected answer */
  --tpl-photo-red: #C8001A;      /* behind a photo while it loads */
  --tpl-white: #FFFFFF;
  --tpl-row-hover: #F6F3EA;      /* list rows and file zones on hover */
  --tpl-star: #FFC700;           /* the footer's review stars */
  --tpl-error: #B80F19;          /* error lines */
  --focus-ring: 0 0 0 3px rgba(225, 21, 28, .28);   /* form fields on focus */
  --gutter: clamp(20px, 5vw, 80px);
  /* The design's containers are max-width 1280px of CONTENT with the gutter as padding outside it
   * (its inline styles are content-box); with border-box sizing the box is 1280 plus both gutters. */
  --container: calc(1280px + 2 * var(--gutter));
  --container-hero: 1440px;
}

[hidden] { display: none !important; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Fabrik, Inter, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--tpl-ink);
  background: var(--tpl-cream);
}
main { display: block; }
p, h1, h2, h3, h4, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; border: 0; }
a { color: var(--tpl-red); text-decoration: none; }
a:hover { color: var(--tpl-red-hover); }
button { font: inherit; color: inherit; }
input, textarea, select, button { font-family: inherit; }
.icon { display: inline-block; flex: none; width: 1em; height: 1em; fill: currentColor; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 700; }
/* Balanced lines on the page and section headings only: the design's h3s (rows, cards) wrap normally. */
h1, h2 { text-wrap: balance; }
.accent { color: var(--tpl-red); }
.h1-overview { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.05; }
.h1-vacancy { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.05; }
.h1-apply { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; }
.h2-section { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.h2-closing { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; }
.h2-step { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; }
.h2-thanks { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; }
.lead { font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.lead-hero { font-size: 20px; line-height: 1.55; max-width: 540px; text-wrap: pretty; }
.muted { font-size: 16px; color: var(--tpl-muted); }
/* Rich text from the snapshot: paragraphs and lists spaced, links red. */
.rich > * + * { margin-top: 12px; }
.rich ul { list-style: disc; padding-left: 1.3em; }
.rich ol { list-style: decimal; padding-left: 1.3em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 120ms ease-out, color 120ms ease-out;
}
.btn-lg { font-size: 18px; padding: 16px 28px; }
.btn-sm { font-size: 14px; height: 34px; padding: 0 14px; }
.btn-arrow { display: inline-flex; }
.btn-arrow .icon { width: .8em; height: .8em; }
.btn-primary { background: var(--tpl-red); color: var(--tpl-white); }
.btn-primary:hover { background: var(--tpl-red-hover); color: var(--tpl-white); }
.btn-primary:active { background: var(--tpl-red-press); color: var(--tpl-white); }
.btn-outline { background: transparent; color: var(--tpl-red); border-color: var(--tpl-red); }
.btn-outline:hover { background: var(--tpl-red); color: var(--tpl-white); }
.btn-outline:active { background: var(--tpl-red-press); border-color: var(--tpl-red-press); color: var(--tpl-white); }
.btn-inverse { background: var(--tpl-white); color: var(--tpl-red); }
.btn-inverse:hover { background: var(--tpl-cream); color: var(--tpl-red-hover); }
.btn-inverse:active { background: var(--tpl-cream-200); color: var(--tpl-red-press); }

/* ---------- kicker and badge ---------- */
.kicker {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tpl-red);
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .04em;
  white-space: nowrap;
  color: var(--tpl-ink);
  border: 1px solid transparent;
}
.badge-cream { background: var(--tpl-cream-200); }
.badge-outline { background: transparent; border-color: var(--tpl-red); color: var(--tpl-red); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- shell: selling-point bar ---------- */
.usp-bar { background: var(--tpl-red); color: var(--tpl-white); }
.usp-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 28px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.usp { display: flex; align-items: center; gap: 8px; }
.usp .icon { width: 16px; height: 16px; }

/* ---------- shell: header ---------- */
/* An anchor jump (#vacatures, #solliciteer) lands below the sticky header (72px and its line). */
html { scroll-padding-top: 73px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--tpl-cream);
  border-bottom: 1px solid var(--tpl-cream-300);
}
.header-inner {
  max-width: var(--container);
  height: 72px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px clamp(16px, 2.6vw, 44px);
  font-size: 16px;
  font-weight: 700;
}
.nav a { color: var(--tpl-ink); white-space: nowrap; }
.nav a:hover { color: var(--tpl-red); }
.nav-start { justify-content: flex-end; }
.header-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
/* The logo hangs below the header line (align-self start, 96 px in a 72 px row), drawn above the page. */
.logo { display: block; align-self: start; position: relative; z-index: 2; color: var(--tpl-ink); }
.logo-img { width: 96px; height: 96px; object-fit: contain; }
.logo-text { display: flex; align-items: center; height: 72px; font-size: 20px; font-weight: 700; }
/* The Menu (below 900px only, see bp-nav): a <details> whose summary reads "Menu" after three
 * lines drawn with CSS, and whose panel lies under the header across the full width. The panel
 * is positioned against the sticky header (its containing block), so it stays under it while the
 * page scrolls and never pushes the page down. */
.menu > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 44px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: var(--tpl-ink);
  list-style: none;
  cursor: pointer;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::before {
  content: "";
  flex: none;
  width: 18px;
  height: 14px;
  border-block: 2px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}
.menu > summary:hover, .menu[open] > summary { color: var(--tpl-red); }
.menu > summary:focus-visible { outline: 2px solid var(--tpl-ink); outline-offset: 2px; }
.menu-panel {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  max-height: calc(100vh - 73px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 4px var(--gutter) 12px;
  background: var(--tpl-cream);
  border-bottom: 1px solid var(--tpl-cream-300);
}
.menu-panel a { padding: 14px 0; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--tpl-ink); }
.menu-panel a + a { border-top: 1px solid var(--tpl-cream-300); }
.menu-panel a:hover { color: var(--tpl-red); }

/* ---------- shell: footer ---------- */
.site-footer { background: var(--tpl-white); border-top: 1px solid var(--tpl-cream-300); }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) var(--gutter) 28px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; font-size: 16px; line-height: 1.2; }
.footer-col a { color: var(--tpl-ink); }
.footer-col a:hover { color: var(--tpl-red); }
.footer-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.footer-score { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.stars { display: flex; gap: 6px; color: var(--tpl-star); }
.stars .icon { width: 24px; height: 24px; }
.score { font-size: 24px; font-weight: 700; line-height: 1.2; }
.review-logo img { width: 126px; height: 36px; }
.social-title { font-size: 24px; font-weight: 700; line-height: 1.2; margin-top: 20px; }
.social { display: flex; justify-content: center; align-items: center; gap: 20px; }
.social-link { display: flex; color: var(--tpl-red); }
.social-link:hover { color: var(--tpl-red-hover); }
.social-link .icon { width: 26px; height: 26px; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--tpl-cream-300);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.2;
}

/* ---------- section helpers ---------- */
/* A section: <section class="container section">. The wide hero sections use .container-hero. */
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.container-hero { max-width: var(--container-hero); margin: 0 auto; }
.section { padding-top: clamp(72px, 10vw, 128px); }
.section-tight { padding-top: clamp(64px, 9vw, 120px); }
.section-tight.section-end { padding-bottom: clamp(64px, 9vw, 120px); }
/* The closing call: a full-width line above, the content in a .container inside. */
.section-closing { border-top: 1px solid var(--tpl-cream-300); }
.section-closing > .container { padding-block: clamp(56px, 8vw, 96px); }
.stack { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.section-head { display: flex; flex-direction: column; gap: 24px; }
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 32px clamp(32px, 6vw, 80px);
  align-items: start;
}
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
/* A photo filling its frame; the frame shows red while the image loads. */
.photo-frame { position: relative; overflow: hidden; background: var(--tpl-photo-red); }
.photo-frame > img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- photo grid (atmosphere, values) ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(min(100%, 240px), calc((100% - 24px) / 3)), 1fr));
  gap: 12px;
}
.photo-tile { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: var(--tpl-cream-200); }
.photo-tile > img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- numbered rows (values, day parts) ---------- */
.numbered-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--tpl-cream-300);
}
.numbered-row .num { font-size: 24px; font-weight: 700; line-height: 1.1; color: var(--tpl-red); }
.numbered-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.numbered-body h3 { font-size: 20px; line-height: 1.25; }
.numbered-text { font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.numbered-text > * + * { margin-top: 8px; }
.numbered-day .numbered-row { padding: 22px 0; }
.numbered-day .numbered-text { line-height: 1.6; }

/* ---------- check rows (traits 22, apply side panel 20) ---------- */
.check-rows { display: flex; flex-direction: column; gap: 12px; }
.check-rows li { display: grid; gap: 12px; align-items: start; }
.check-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tpl-red);
  color: var(--tpl-white);
}
.check-rows-22 li { grid-template-columns: 22px minmax(0, 1fr); font-size: 17px; line-height: 1.55; }
.check-rows-22 .check-box { width: 22px; height: 22px; margin-top: 2px; }
.check-rows-20 { gap: 10px; }
.check-rows-20 li { grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 1.5; }
.check-rows-20 .check-box { width: 20px; height: 20px; margin-top: 1px; }
.check-box .icon { width: 80%; height: 80%; }

/* ---------- perk cards ---------- */
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.perk {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--tpl-white);
  border: 1px solid var(--tpl-cream-300);
  border-radius: 8px;
}
/* The icon of the set as a mask: the PNG's shape in the red of the page. */
.perk .icon {
  width: 52px;
  height: 52px;
  mask-image: var(--icon);
  -webkit-mask-image: var(--icon);
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  background-color: var(--tpl-red);
}
.perk h3 { font-size: 21px; line-height: 1.25; }
.perk-text { font-size: 16px; line-height: 1.6; color: var(--tpl-ink); text-wrap: pretty; }
.perk-text > * + * { margin-top: 8px; }
.perks-muted .perk-text { line-height: 1.55; color: var(--tpl-muted); }

/* ---------- red panel (vacancy closing, thank-you) ---------- */
.panel-red { background: var(--tpl-red); color: var(--tpl-white); }
.panel-red .kicker, .panel-red a:not(.btn) { color: var(--tpl-white); }
.panel-red .perk .icon { background-color: var(--tpl-white); }
/* A heading's accent word stays white on red (red on red would hide it). */
.panel-red .accent { color: inherit; }

/* ---------- overview ---------- */
/* A photo filling a frame sized by the frame (min-height or aspect-ratio): the image lies over the
 * frame, so its own size never stretches it. */
.photo-fill > img { position: absolute; inset: 0; }
.two-col-center { align-items: center; }

/* Hero: photo column (the 1440 container has no gutter there) and text column. Below two columns
 * the photo comes first, at a lower height on a phone. */
.hero-photo { min-height: clamp(320px, 56vw, 580px); }
.hero-photo > img { object-position: 40% 8%; }
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 26px;
  min-width: 0;
  padding: clamp(64px, 8vw, 112px) var(--gutter) clamp(48px, 8vw, 112px);
}
/* The value bold, the label regular; a red dot between two stats (never a character). The dot
 * sits in the middle of the 20px gap before a stat; on a stat that starts a wrapped line it falls
 * outside the row and the clip hides it, so no line begins with a dot. */
.stats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; overflow: hidden; font-size: 16px; line-height: 1.2; }
.stat { position: relative; }
.stat + .stat::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -12.5px;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--tpl-red);
}

/* Atmosphere: kicker and heading left, text right (bottom aligned), then the photo grid. */
.split-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px clamp(32px, 6vw, 80px);
  align-items: end;
  margin-bottom: 40px;
}
.split-text { max-width: 560px; }

/* Values: text left, numbered rows right, the row of 1:1 photo tiles under them (left to right). */
.values-text { max-width: 480px; }
.values-photo { margin-top: 48px; }

/* Growth: text, highlight line and person card left, the photo right. */
.growth-text { max-width: 520px; }
.growth-photo { align-self: stretch; min-height: clamp(300px, 45vw, 440px); }
.highlight { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; line-height: 1.4; }
.highlight .check-box { flex: none; width: 22px; height: 22px; }
.person-card {
  align-self: stretch;
  margin-top: 8px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--tpl-white);
  border: 1px solid var(--tpl-cream-300);
  border-radius: 8px;
}
.person-card-nophoto { grid-template-columns: minmax(0, 1fr); }
.person-photo { display: block; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--tpl-red); }
.person-photo > img { width: 100%; height: 100%; object-fit: cover; }
.person-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.person-name { font-size: 18px; font-weight: 700; line-height: 1.2; }
.person-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 15px; line-height: 1.3; }
.person-steps > li { display: inline-flex; align-items: center; gap: 8px; }
.step-sep { display: inline-flex; color: var(--tpl-red); }
.step-sep .icon { width: 12px; height: 12px; }
.step-last { font-weight: 700; color: var(--tpl-red); }

/* Repair: the square photo left, text right. */
.repair-photo { aspect-ratio: 1 / 1; }
.repair-photo > img { object-position: 55% center; }

.perks-head { margin-bottom: 40px; }

/* Vacancy list: heading and city select, the group tabs with the counter at their right, the
 * role rows (title and meta line, then "Kies je stad" and the city buttons), the empty state. */
.list-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}
.city-select {
  min-width: 200px;
  max-width: 100%;
  padding: 12px 40px 12px 14px;
  font-size: 16px;
  line-height: 1.3;
  color: var(--tpl-ink);
  background: var(--tpl-white);
  border: 1px solid var(--tpl-cream-300);
  border-radius: 4px;
}
.city-select:focus-visible { outline: none; box-shadow: var(--focus-ring); }
/* With a travel table and the script (site.js initTravel): "Stad" and "Jouw postcode" as two
 * labelled fields of the same box, side by side with the labels on top. The postcode box holds
 * the input and a red arrow button inside its right edge, the way the select holds its chevron;
 * under it "Gebruik mijn locatie" and the quiet message line. Without the script the labels and
 * the postcode field stay hidden and the select keeps its own width, as without a table. */
.list-tools { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; }
.list-field { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.list-label { font-size: 14px; font-weight: 700; line-height: 1.2; }
.list-label:not([hidden]) + .city-select { width: 240px; }
.travel-field { width: 240px; max-width: 100%; }
.pc-box {
  display: flex;
  width: 240px;
  max-width: 100%;
  background: var(--tpl-white);
  border: 1px solid var(--tpl-cream-300);
  border-radius: 4px;
  overflow: hidden;
}
.pc-box:focus-within { box-shadow: var(--focus-ring); }
.pc-box input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.3;
  color: var(--tpl-ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: none;
}
.pc-go {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  padding: 0;
  color: var(--tpl-white);
  background: var(--tpl-red);
  border: 0;
  cursor: pointer;
}
.pc-go:hover { background: var(--tpl-red-hover); }
.pc-go:active { background: var(--tpl-red-press); }
/* Inside the box (whose ring shows the focus too): a white ring on the red, not clipped. */
.pc-go:focus-visible { outline: 2px solid var(--tpl-white); outline-offset: -6px; }
.pc-go .icon { width: 18px; height: 18px; }
/* A button that reads as a text link: "Gebruik mijn locatie" and "Wissen". */
.link-btn {
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--tpl-red);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: 0;
  cursor: pointer;
}
.link-btn:hover { color: var(--tpl-red-hover); }
.link-btn:focus-visible { outline: 2px solid var(--tpl-ink); outline-offset: 2px; }
/* The quiet line under the field: a postcode or a location the table does not know. */
.travel-msg { font-size: 15px; line-height: 1.4; }
/* The note above the sorted list with its undo button, and under them the small credit line
 * (OpenStreetMap data is ODbL: the credit goes wherever the minutes show). */
.sort-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: -8px 0 20px; font-size: 15px; line-height: 1.4; }
.travel-credit { flex-basis: 100%; font-size: 13px; line-height: 1.4; }
.list-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 24px; }
/* The group tabs: rounded pills, ink on a hairline; the chosen one filled red. */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tab {
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--tpl-ink);
  background: transparent;
  border: 2px solid var(--tpl-cream-300);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out;
}
.tab:hover { border-color: var(--tpl-red); }
.tab[aria-pressed="true"] { color: var(--tpl-white); background: var(--tpl-red); border-color: var(--tpl-red); }
.tab:focus-visible { outline: 2px solid var(--tpl-ink); outline-offset: 2px; }
.list-count { margin-left: auto; font-size: 17px; line-height: 1.2; white-space: nowrap; }
.vacancy-list { border-top: 1px solid var(--tpl-cream-300); }
/* A role row: stacked below 900px, the title left and the buttons right from it (bp-nav block). */
.role {
  display: grid;
  gap: 20px;
  padding: 32px 4px;
  border-bottom: 1px solid var(--tpl-cream-300);
}
.role-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.role-title { font-size: clamp(20px, 2vw, 24px); line-height: 1.25; overflow-wrap: anywhere; }
/* The meta line takes the hero stats' red dots (.stats, .stat), muted and a little tighter. */
.role-meta { gap: 6px 20px; font-size: 17px; color: var(--tpl-muted); }
.role-cities { min-width: 0; }
.cities-label { margin-bottom: 12px; font-size: 16px; font-weight: 700; line-height: 1.3; }
.city-btns { display: flex; flex-wrap: wrap; gap: 10px; }
/* A city button: boxed, the city bold and a red arrow. The chosen city's button is marked. */
.city-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--tpl-ink);
  background: var(--tpl-white);
  border: 1px solid var(--tpl-cream-300);
  border-radius: 4px;
  overflow-wrap: anywhere;
  transition: border-color 120ms ease-out, background-color 120ms ease-out;
}
.city-btn:hover { color: var(--tpl-ink); border-color: var(--tpl-red); }
.city-btn:focus-visible { outline: 2px solid var(--tpl-ink); outline-offset: 2px; }
.city-btn.is-picked { border-color: var(--tpl-red); background: var(--tpl-selected); }
.city-arrow { display: inline-flex; flex: none; color: var(--tpl-red); }
.city-arrow .icon { width: .8em; height: .8em; }
/* The travel line (site.js fills it): a second, smaller line under the city and its arrow, the
 * minutes bold and red. While a button has one (has-travel) it is a grid, so a long label wraps
 * beside its arrow instead of pushing the arrow onto a line of its own; an empty line takes no
 * room (no flex gap after the arrow). */
.city-btn.has-travel { display: inline-grid; grid-template-columns: minmax(0, max-content) 1fr; row-gap: 2px; }
.city-btn .travel { grid-column: 1 / -1; font-size: 14px; font-weight: 400; line-height: 1.3; }
.travel:empty { display: none; }
.vacancy-travel-credit { display: block; margin: 4px 0 0; }
.vacancy-travel { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 600; }
.travel b { font-weight: 700; color: var(--tpl-red); }
/* "+N steden" after a row's first buttons (below 600px only, site.js shows it): the same box, red. */
.more-cities {
  min-height: 48px;
  padding: 10px 16px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--tpl-red);
  background: transparent;
  border: 1px solid var(--tpl-cream-300);
  border-radius: 4px;
  cursor: pointer;
}
.more-cities:hover { border-color: var(--tpl-red); }
.more-cities:focus-visible { outline: 2px solid var(--tpl-ink); outline-offset: 2px; }
.list-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 24px; font-size: 17px; line-height: 1.5; }
.list-empty .btn { margin-top: 8px; }

/* Closing call: heading and button left, the 4:3 photo right. */
.closing-text { gap: 24px; }
.closing-photo { aspect-ratio: 4 / 3; }
.closing-photo > img { object-position: 62% 30%; }

/* ---------- vacancy page ---------- */
/* The sections after the hero: the 1280 container and the section spacing. Whichever section is
 * last on a page (the company section, else the closing panel or the fallback text) also pads the
 * bottom, as the design's last section does. */
.vacancy-day, .vacancy-perks, .vacancy-traits, .fallback, .closing, .vacancy-company {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) var(--gutter) 0;
}
:is(.vacancy-day, .vacancy-perks, .vacancy-traits, .fallback, .closing, .vacancy-company):last-child {
  padding-bottom: clamp(72px, 10vw, 128px);
}

/* Hero: the photo (the 1440 container has no gutter there), then the text column. Below two
 * columns the photo comes first, at a lower height on a phone. */
.vacancy-hero-photo { min-height: clamp(320px, 56vw, 560px); }
.vacancy-hero-nophoto { max-width: var(--container); }
.vacancy-hero-photo > img { object-position: center 22%; }
.vacancy-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
  padding: clamp(56px, 7vw, 96px) var(--gutter);
}
.vacancy-hero-text .h1-vacancy { overflow-wrap: anywhere; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; line-height: 1.2; }
/* The arrow icon turned around: the back chevron. */
.back-arrow { display: inline-flex; transform: scaleX(-1); }
.back-arrow .icon { width: .8em; height: .8em; }
.vacancy-intro { max-width: 540px; }

/* Day: kicker, heading and intro left; the numbered parts right, then the outro block with its
 * line on top, the fixed line and the outline button. */
.day-intro { max-width: 500px; }
.day-parts { display: flex; flex-direction: column; min-width: 0; }
.numbered-day .numbered-body { gap: 6px; }
.day-outro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--tpl-cream-300);
}
.day-outro-text { font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.day-cta-line { font-size: 20px; font-weight: 700; line-height: 1.2; }

/* Traits: kicker, heading and the check rows left, the 4:5 portrait right. */
.traits-text { gap: 22px; }
.traits-text .check-rows { gap: 14px; }
.traits-photo { aspect-ratio: 4 / 5; }
.traits-photo > img { object-position: center; }

/* Fallback: the vacancy's own text in one readable column. */
.fallback-text { max-width: 760px; }
.fallback-text h2 { font-size: 26px; line-height: 1.2; }
.fallback-text h3 { font-size: 20px; line-height: 1.25; }
.fallback-text > :is(h2, h3):not(:first-child) { margin-top: 28px; }

/* Closing: the red panel, text left and the photo right (under the text on a phone). */
.closing-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  align-items: stretch;
}
.closing-panel-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
  padding: clamp(36px, 5vw, 64px);
}
.closing-panel-lead { font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.closing-note { font-size: 15px; line-height: 1.5; }
.closing-panel-photo { min-height: 380px; }
.closing-panel-photo > img { object-position: 62% 30%; }

/* Company: kicker and heading left, the text and the outline button right. */
.company-body { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }

/* ---------- step bar (apply) ----------
 * <ol class="steps"><li data-step="basics" class="done|current"><span class="step-label">1 Basisgegevens</span></li>...</ol>
 * One equal column per step; a 4 px bar above each label, red when done or current. */
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.steps > li { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.3; color: var(--tpl-muted); }
.steps > li::before { content: ""; display: block; height: 4px; background: var(--tpl-cream-300); }
.steps > li.done, .steps > li.current { color: var(--tpl-ink); }
.steps > li.done::before, .steps > li.current::before { background: var(--tpl-red); }
.steps > li.current { font-weight: 700; }

/* ---------- apply layout ----------
 * <div class="apply-layout"><div class="apply-main">form</div><aside class="apply-aside">panel</aside></div> */
.apply-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 32px clamp(32px, 5vw, 64px);
  align-items: start;
}
.apply-aside { display: flex; flex-direction: column; gap: 16px; }

/* ---------- bp-nav: 900px ---------- */
@media (max-width: 899px) {
  /* A long label wraps inside its button instead of pushing the page sideways. */
  .btn { max-width: 100%; white-space: normal; text-align: center; overflow-wrap: anywhere; }
  .btn-sm { height: auto; min-height: 34px; padding-block: 8px; }
  /* Menu left, the logo in the middle of the page, Solliciteer right, as on thephonelab.nl: the
   * nav links leave the header for the Menu (shell.ts). Both side tracks stay 1fr, so the logo
   * sits exactly in the centre, and every item has its own track, so it stays there without a
   * Menu. The smaller gap leaves Solliciteer room for one line at 360px. */
  .header-inner { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; }
  .menu { grid-column: 1; justify-self: start; }
  .nav { display: none; }
  .logo { grid-column: 2; align-self: center; }
  .header-end { grid-column: 3; justify-content: flex-end; }
  .logo-img { width: 64px; height: 64px; }
}
@media (min-width: 900px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .menu { display: none; }
  /* A role row: the title and meta line left, centred against "Kies je stad" and the buttons right. */
  .role { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px clamp(32px, 4vw, 64px); }
}

/* ---------- bp-apply: 1024px ---------- */
@media (max-width: 1023px) {
  /* The main column's placement below this breakpoint is apply.css's (it takes the whole row). */
  .apply-aside { position: static; }
}
@media (min-width: 1024px) {
  .apply-main { grid-column: span 2; }
  .apply-aside { position: sticky; top: 120px; }
}

/* ---------- below 600px ---------- */
@media (max-width: 599px) {
  .steps > li:not(.current) .step-label { display: none; }

  /* The selling-point bar (else five stacked lines): one line at a time, centred, as on
   * thephonelab.nl. Every line sits in the same grid cell, so the bar is as tall as its tallest
   * line and never jumps; only the current one is visible. site.js moves `current` every 5
   * seconds; without it the first line stays. */
  .usp-inner { display: grid; justify-items: center; text-align: center; }
  .usp { grid-area: 1 / 1; visibility: hidden; }
  .usp-inner:not(.rotating) > .usp:first-child,
  .usp.current { visibility: visible; }

  /* The vacancy group tabs (else three rows): one row that scrolls sideways, never the page. It
   * snaps to a tab, shows no scrollbar and fades out over its last 32px to show there is more;
   * the empty ::after keeps room after the last tab so it can be scrolled clear of the fade (an
   * older Safari drops the end padding of a scroll container). No animation. */
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs::after { content: ""; flex: none; width: 24px; }
  .tab { flex: none; white-space: nowrap; scroll-snap-align: start; }
  /* Room inside the scroller for a focused tab's outline (2px, 2px out), so it is not cut off;
   * the negative margin keeps the tabs where they were. The end padding keeps a tab brought
   * into view (site.js) clear of the fade. */
  .tabs { padding: 4px; margin: -4px; scroll-padding-inline: 4px 32px; }
  /* The counter on its own line under the tab row, which keeps the full width to scroll in. */
  .list-bar { display: block; }
  .list-count { margin-top: 12px; text-align: right; }
  /* Role rows a little tighter; site.js shows a row's first 6 city buttons and "+N steden". */
  .role { padding: 24px 0; }
  .city-btn, .more-cities { min-height: 44px; padding: 10px 14px; font-size: 16px; }
  /* The travel fields stack, full width. */
  .list-tools { flex-direction: column; align-items: stretch; width: 100%; }
  .travel-field, .pc-box, .list-label:not([hidden]) + .city-select { width: 100%; }

  /* Fewer photos on a phone, as on thephonelab.nl. Every photo stays in the markup; the hidden
   * ones are lazy, so a phone never fetches them. A whole wrapper is hidden, never an empty
   * frame. The hero keeps a real photo, 240px high and cropped on the face, and its button moves
   * up under the heading (the lead and the stats follow it), so the button still sits in the
   * first screen with the bar and the sticky header. The atmosphere row keeps its first tile; the
   * values row, the growth photo (the person card keeps its round photo) and the repair photo go. */
  .hero-photo { min-height: 240px; }
  .hero-photo > img { object-position: 40% 20%; }
  .hero-text { padding-top: 32px; gap: 20px; }
  .hero-text > .lead-hero,
  .hero-text > .stats { order: 1; }
  .photo-grid > .photo-tile + .photo-tile { display: none; }
  .values-photo, .growth-photo, .repair-photo { display: none; }
}
