/* Certa Logistics — site stylesheet.
   Light pages, full width with a 2.45% margin up to a 90rem page: a rounded photo hero with the first step of an offerte, the
   strengths as one strip, the dotted map beside a fan of service cards, a dark panel that closes each page;
   a short band with the title on the other pages; the contact page with its two forms; the vacancies with
   their filter; the legal pages. (The error pages have system.css, a small sheet of their own.) Archivo for headings, Urbanist for everything else. Certa orange is the one accent; ink is
   near-black.

   Sizes are in rem and match the 1440px design at a 16px root. Above 1440px the root grows gently with
   the window (about 10% at 1920px, at most 125%), so wide screens keep the proportions without the type
   becoming large; below 1440px sizes shrink fluidly towards a phone. Media queries stay in px. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Urbanist";
  src: url("/assets/fonts/urbanist-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* colour */
  --ink: #15171a;
  --text-2: #5f656d;              /* secondary text: 5.9:1 on white, 5.6:1 on --soft */
  --line: #e4e6e9;
  --line-strong: #c9cdd2;
  --soft: #f8f8f9;                /* panels and cards */
  --chip: #eef0f2;                /* icon circles */
  --orange: #f58d1a;              /* with ink text: 7.5:1 */
  --orange-hover: #e8800f;
  --orange-text: #a85300;         /* orange as text and focus ring on white: 5.4:1 */
  --orange-tint: #fff6ea;         /* fields that were filled in for the visitor */
  --open: #1f7a3d;
  --closed: #b3261e;
  --error-tint: #fcecea;
  --linkedin: #0a66c2;
  --map-dot: #5a4b38;             /* the map's dots on ink, until they light up */
  --map-dot-light: #c4c8cd;       /* the map's dots on white */
  --frame-hover: #2b2f34;         /* the Business Point item's frame under the pointer: dark, not black */

  /* type */
  --head: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Urbanist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-h1: clamp(2.125rem, 1.7rem + 1.7 * var(--vw), 3.25rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.15 * var(--vw), 2.4375rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.6 * var(--vw), 1.75rem);
  --fs-statement: clamp(1.375rem, 1.15rem + 0.9 * var(--vw), 1.9375rem);
  --fs-card: clamp(1.25rem, 1.12rem + 0.38 * var(--vw), 1.46875rem);
  --fs-body: clamp(1.03125rem, 0.98rem + 0.16 * var(--vw), 1.125rem);
  --fs-ui: clamp(1rem, 0.96rem + 0.12 * var(--vw), 1.0625rem);
  --fs-small: 0.96875rem;
  --fs-xs: 0.84375rem;

  /* layout: the page grows with the window up to --page-max (the 1440px design; a little more where the root
     grows above 1440px), then stands in the middle with white space beside it. --vw is a hundredth of the
     page's width, so everything that follows the width stops growing with the page. */
  --page-max: 90rem;
  --vw: min(1vw, calc(var(--page-max) / 100));
  --margin: max(1rem, 2.45 * var(--vw));
  --inset: clamp(0rem, 2 * var(--vw) - 0.75rem, 1.5rem);   /* text stands a little in from the boxes */
  --gap: 1rem;
  --section: clamp(3.75rem, 2.75rem + 3.1 * var(--vw), 5.625rem);
  --pad: clamp(1.1875rem, 0.95rem + 0.85 * var(--vw), 1.75rem);
  --panel-pad: clamp(1.5rem, 1rem + 2.2 * var(--vw), 3rem);
  --header-h: clamp(4rem, 3.4rem + 1.65 * var(--vw), 4.875rem);
  --band-h: clamp(13rem, 8rem + 14 * var(--vw), 19rem);    /* the bands under the menu, and the hero on phones */
  --control: clamp(3.25rem, 3rem + 0.56 * var(--vw), 3.5rem);   /* buttons, fields */

  /* corners: a fifth less round than the reference, in two steps of a tenth */
  --radius-xl: clamp(1.35rem, 1.035rem + 1.26 * var(--vw), 2.16rem);
  --radius-lg: clamp(1.035rem, 0.855rem + 0.675 * var(--vw), 1.4625rem);
  --radius-md: 1.2375rem;
  --radius-sm: 0.72rem;

  /* motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t1: 120ms;
  --t2: 200ms;
  --t3: 300ms;
  --t4: 500ms;

  color-scheme: light;
}

/* ---------- Base ---------- */

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

/* Wider than the design: everything grows a little with the window, never below the reader's own size */
@media (min-width: 1441px) {
  html {
    font-size: clamp(100%, 0.7rem + 0.3333vw, 125%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

address {
  font-style: normal;
}

fieldset {
  min-width: 0;
}

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

summary {
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--orange-text);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

.icon--back {
  transform: scaleX(-1);
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: #ffffff;
  border: 2px solid var(--orange-text);
  border-radius: 999px;
}

.skip-link:focus {
  top: 0.75rem;
}

/* The width of the window, minus the margin, up to the page's maximum; beyond it the page stands in the middle */
.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--margin);
}

/* Text that stands on the page without a box keeps a little distance from the boxes' edges */
.inset {
  padding-inline: var(--inset);
}

.section {
  padding-top: var(--section);
}

/* "Over ons" sits close under the hero */
.section--after-hero {
  padding-top: clamp(2.75rem, 2.1rem + 1.5 * var(--vw), 3.75rem);
}

/* ---------- Type and small parts ---------- */

.h2 {
  margin: 0;
  font-family: var(--head);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.h3 {
  margin: 0;
  font-family: var(--head);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* The outlined label above a title (the closing panel, the error pages' code) */
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 2.875rem;
  padding: 0 1.5rem;
  font-size: var(--fs-ui);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
}

.tag--light {
  border-color: #ffffff;
}

.icon-circle {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: clamp(3rem, 2.75rem + 0.7 * var(--vw), 3.375rem);
  height: clamp(3rem, 2.75rem + 0.7 * var(--vw), 3.375rem);
  color: var(--ink);
  background: var(--chip);
  border-radius: 50%;
}

/* Status: the dot is a signal, the text says it */
.status {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}

.status::before {
  content: "";
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--text-2);
  border-radius: 50%;
}

.status[data-state="open"]::before {
  background: var(--open);
}

.status[data-state="later"]::before {
  background: var(--orange);
}

.status[data-state="closed"]::before {
  background: var(--closed);
}

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

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: var(--control);
  padding: 0 1.5rem;
  font-family: var(--body);
  font-size: var(--fs-ui);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color var(--t2) var(--ease), border-color var(--t2) var(--ease), color var(--t2) var(--ease);
}

.pill-btn:hover {
  border-color: var(--ink);
}

.pill-btn:disabled {
  cursor: progress;
  opacity: 0.7;
}

.pill-btn .icon {
  width: 1.125rem;
  height: 1.125rem;
  transition: transform var(--t2) var(--ease);
}

.pill-btn:hover .icon {
  transform: translateX(2px);
}

/* Ink on orange: white on this orange would be 2.4:1 */
.pill-btn--accent {
  background: var(--orange);
  border-color: var(--orange);
}

.pill-btn--accent:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
}

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

.pill-btn--sm {
  min-height: 2.75rem;
  padding: 0 1.25rem;
  font-size: var(--fs-small);
}

.pill-btn--lg {
  min-height: 3.75rem;
  padding: 0 2rem;
  font-size: 1.0625rem;
}

/* A quiet way back, as a link or a button */
.back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0;
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.back:hover {
  text-decoration: underline;
}

/* ---------- Header ---------- */

.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  margin-right: auto;
  text-decoration: none;
}

/* The header's logo and the menu after it stand 2px in from the margin */
.site-header__bar > .logo {
  margin-left: 2px;
}

.logo__mark {
  flex: 0 0 auto;
  transform-origin: 54.8% 50.1%;   /* the centre of the ring, not of the box */
  transition: transform 800ms cubic-bezier(0.45, 0, 0.2, 1);
  width: clamp(2.02rem, 1.85rem + 0.285 * var(--vw), 2.256rem);
  height: auto;
  aspect-ratio: 376 / 358;
  fill: var(--orange);
}

.logo:hover .logo__mark {
  transform: rotate(360deg);
}

/* 320x44, the lettering a little taller than the menu's capitals */
.logo__word {
  width: auto;
  height: clamp(1.32rem, 1.21rem + 0.22 * var(--vw), 1.43rem);
}

.nav {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: var(--fs-ui);
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--t2) var(--ease);
}

/* A line that grows in from the left under the hovered item; the current page keeps it */
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.5rem;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t2) var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--ink);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* The PostNL Business Point as one more item of the menu: the logo and the word in their own colours, in a
   light-grey frame that darkens under the pointer; it opens a panel joined to its underside with the live
   status, the opening hours, the address with its routes, the next-day note and the services */
.bp {
  position: relative;
}

.bp__toggle {
  position: relative;
  z-index: 61;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 0.75rem 0 0.5rem;
  font-size: var(--fs-ui);
  font-weight: 500;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  user-select: none;
  -webkit-user-select: none;
  transition: border-color var(--t2) var(--ease);
}

.bp__toggle:hover {
  border-color: var(--frame-hover);
}

.bp__chevron {
  width: 1rem;
  height: 1rem;
  color: var(--text-2);
  transition: transform var(--t2) var(--ease);
}

.bp[open]:not(.is-closing) .bp__chevron {
  transform: rotate(180deg);
}

/* Open, the toggle and the panel share one frame: the toggle's lower corners go, its lower edge opens */
.bp[open]:not(.is-closing) .bp__toggle {
  border-color: var(--line-strong);
  border-bottom-color: #ffffff;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.bp__logo {
  width: 1.75rem;
  height: auto;
}

.bp__word {
  white-space: nowrap;
}

.menu__toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color var(--t2) var(--ease);
}

.menu__toggle:hover,
.menu[open] .menu__toggle {
  border-color: var(--ink);
}

.bp__panel {
  position: absolute;
  top: calc(100% - 1px);
  right: 0;
  z-index: 60;
  display: grid;
  gap: 0.75rem;
  width: min(22rem, calc(100vw - 2 * var(--margin)));
  padding: 1.125rem 1.25rem 1.25rem;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm) 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 1.5rem 3rem -1.25rem rgba(21, 23, 26, 0.24);
}

.bp[open] .bp__panel {
  animation: drop-in var(--t2) var(--ease);
}

.bp.is-closing .bp__panel {
  animation: drop-out var(--t1) ease-in forwards;
}

/* The panel's parts, each under a rule: the directions; the note with the services folded away under it */
.bp__block {
  display: grid;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.bp__block-title {
  margin: 0;
  font-family: var(--body);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.3;
}

/* The services: their title as the toggle, the note under it, the list unfolding under the note. The
   body's row grows from 0 to its content's height, so the list slides open instead of appearing. */
.bp__services-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 2rem;
  padding: 0;
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}

.bp__services-chevron {
  width: 1rem;
  height: 1rem;
  color: var(--text-2);
  transition: transform var(--t3) var(--ease);
}

.bp__services-toggle[aria-expanded="true"] .bp__services-chevron {
  transform: rotate(180deg);
}

.bp__services-body {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  visibility: hidden;
  transition: grid-template-rows var(--t4) var(--ease), visibility 0s linear var(--t4);
}

.bp__services-body.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows var(--t4) var(--ease), visibility 0s linear 0s;
}

.bp__services-body > * {
  min-height: 0;
  overflow: hidden;
}

.bp__services-list {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--text-2);
}

.bp__services-list li {
  padding-left: 0.875rem;
  text-indent: -0.875rem;
}

.bp__services-list li::before {
  content: "\2022";
  display: inline-block;
  width: 0.875rem;
  text-indent: 0;
  color: var(--orange);
}

.bp__title {
  font-family: var(--head);
  font-size: 1.125rem;
  line-height: 1.25;
}

.bp__status {
  font-size: var(--fs-small);
  font-weight: 500;
}

.bp__facts {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  font-size: var(--fs-small);
}

.bp__facts div {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 0.5rem;
}

.bp__facts dt {
  color: var(--text-2);
}

/* Where the hours need two lines (a phone's narrower panel) they break at the space, not inside the times */
.bp__facts dd {
  margin: 0;
  text-wrap: balance;
}

.bp__address {
  font-size: var(--fs-small);
}

.bp__note {
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--text-2);
}

/* Below 1024px: the menu is a sheet under the header */
.menu__bars {
  display: grid;
  gap: 5px;
}

.menu__bars span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--t2) var(--ease);
}

.menu[open]:not(.is-closing) .menu__bars span:nth-child(1) {
  transform: translateY(3.25px) rotate(45deg);
}

.menu[open]:not(.is-closing) .menu__bars span:nth-child(2) {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* The sheet is as tall as what it holds, and scrolls only when that is taller than the screen */
.menu__sheet {
  position: fixed;
  inset: var(--header-h) 0 auto;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  padding: 0.5rem var(--margin) 1.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1.5rem 3rem -1.25rem rgba(21, 23, 26, 0.24);
}

.menu[open] .menu__sheet {
  animation: sheet-in var(--t3) var(--ease);
}

.menu.is-closing .menu__sheet {
  animation: sheet-out var(--t2) ease-in forwards;
}

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

.menu__list > li {
  border-bottom: 1px solid var(--line);
}

.menu__link {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  font-family: var(--head);
  font-size: 1.375rem;
  text-decoration: none;
}

.menu__link[aria-current="page"] {
  color: var(--orange-text);
}

/* Calling and mailing as round buttons at the left, as tall as the offerte's, which stands at the right */
.menu__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu__action {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: var(--control);
  height: var(--control);
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color var(--t2) var(--ease);
}

.menu__action:hover {
  border-color: var(--ink);
}

.menu__actions .pill-btn {
  margin-left: auto;
  padding-inline: 1.25rem;
  white-space: nowrap;
}

/* The narrowest phones: the offerte keeps its words and drops its arrow, and the Business Point's opening
   hours stand under their label */
@media (max-width: 359px) {
  .menu__actions .pill-btn {
    padding-inline: 1rem;
  }

  .menu__actions .pill-btn .icon {
    display: none;
  }

  .bp__facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

@media (max-width: 767px) {
  .bp__word {
    display: none;
  }
}

/* The narrowest phones: a slightly smaller logo, so it, the Business Point and the menu fit on one row */
@media (max-width: 379px) {
  .site-header__bar,
  .site-header__bar > .logo {
    gap: 0.375rem;
  }

  .site-header__bar .logo__mark {
    width: 1.625rem;
  }

  .site-header__bar .logo__word {
    height: 1.05rem;
  }
}

@media (max-width: 1023px) {
  html:has(.menu[open]) {
    overflow: hidden;
  }

  /* The menu's button stands right of the Business Point's: the panel, hanging from the Business Point's right
     edge, is narrower by that button and its gap, so it stays inside the page's margin */
  .bp__panel {
    width: min(22rem, calc(100vw - 2 * var(--margin) - 3.375rem));
  }
}

@media (min-width: 1024px) {
  .nav {
    display: block;
  }

  .logo {
    margin-right: 2.75rem;
  }

  .bp {
    margin-left: auto;
  }

  .menu {
    display: none;
  }
}

/* ---------- The language switch, top left on the hero and the bands ---------- */

.lang {
  position: absolute;
  top: 1rem;
  left: calc(1rem + 4px);
  z-index: 5;
}

.lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.5rem;
  padding: 0 0.625rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0.65625rem;
  transition: background-color var(--t2) var(--ease);
}

.lang__toggle:hover,
.lang[open] .lang__toggle {
  background: rgba(255, 255, 255, 0.95);
}

.lang__flag {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1rem;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.lang__chevron {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform var(--t2) var(--ease);
}

.lang[open]:not(.is-closing) .lang__chevron {
  transform: rotate(180deg);
}

.lang__list {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 11rem;
  margin: 0;
  padding: 0.375rem;
  list-style: none;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0.65625rem;
  box-shadow: 0 1.5rem 3rem -1.25rem rgba(21, 23, 26, 0.24);
}

.lang[open] .lang__list {
  animation: drop-in var(--t2) var(--ease);
}

.lang.is-closing .lang__list {
  animation: drop-out var(--t1) ease-in forwards;
}

.lang__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  font-size: var(--fs-small);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background-color var(--t2) var(--ease);
}

.lang__item:hover {
  background: var(--soft);
}

.lang__item.is-current {
  font-weight: 600;
  background: var(--soft);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.hero__media {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: var(--band-h);
  overflow: hidden;
  color: #ffffff;
  background: var(--ink);
  border-radius: var(--radius-xl);
  isolation: isolate;
}

.hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

/* The trucks are white: a shade from the bottom keeps the white title legible on them */
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(15, 17, 19, 0.82) 0%, rgba(15, 17, 19, 0.5) 34%, rgba(15, 17, 19, 0.12) 62%, rgba(15, 17, 19, 0) 100%);
}

.hero__text {
  padding: var(--pad) var(--pad) clamp(1.5rem, 1rem + 2 * var(--vw), 3rem);
}

.hero__title {
  max-width: 13em;
  margin: 0;
  font-family: var(--head);
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero :focus-visible {
  outline-color: var(--orange);
}

/* The white card: its title, a line about what happens next, the first step of an offerte */
.hero__card {
  display: grid;
  gap: 0.75rem;
  padding: 1.125rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.hero__card :focus-visible {
  outline-color: var(--orange-text);
}

.hero__card-title {
  margin: 0;
  padding: 0.25rem 0.5rem 0;
  font-family: var(--head);
  font-size: var(--fs-card);
  font-weight: 400;
  line-height: 1.2;
}

.hero__card-note {
  padding: 0 0.5rem;
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--text-2);
}

.request {
  display: grid;
  gap: 1rem;
  margin-top: 0.25rem;
}

/* From a tablet up the card lies on the photo, top right; the title keeps the room to its left */
@media (min-width: 1024px) {
  .hero .hero__media {
    min-height: clamp(46.5rem, 27rem + 24 * var(--vw), 63rem);
  }
}

@media (min-width: 768px) {
  .hero {
    --card-w: clamp(19.5rem, 12rem + 18.3 * var(--vw), 28.5rem);
    position: relative;
    display: block;
    margin-top: 0.5rem;
  }

  .hero__media {
    min-height: clamp(31rem, 18rem + 16 * var(--vw), 42rem);
  }

  .hero__text {
    width: calc(100% - var(--card-w) - 2rem);
    padding: 2.25rem 2.25rem 3rem;
  }

  .hero__card {
    position: absolute;
    top: 2.5rem;
    right: calc(var(--margin) + 2rem);
    width: var(--card-w);
    border-color: transparent;
  }
}

/* ---------- Fields and forms ---------- */

/* The fields: each a pill with its label inside, above the value */
.fields {
  display: grid;
  gap: 0.625rem;
}

.field {
  position: relative;
  display: grid;
  min-height: var(--control);
  padding: 0.5rem 1.25rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 1.3125rem;
  transition: border-color var(--t2) var(--ease), box-shadow var(--t2) var(--ease), background-color var(--t2) var(--ease);
}

.field:hover {
  border-color: var(--line-strong);
}

.field:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(245, 141, 26, 0.35);
}

.field__label {
  font-size: var(--fs-xs);
  line-height: 1.3;
  color: var(--text-2);
}

.field__req {
  color: var(--orange-text);
}

.field__opt {
  color: var(--text-2);
}

.field__input {
  width: 100%;
  min-height: 1.5rem;
  padding: 0;
  font-size: var(--fs-ui);
  line-height: 1.5rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: none;
}

/* The select fills its pill, so a click anywhere on the pill opens the list; the label lies over it */
.field--select .field__label {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.field--select select {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
  padding: 1.6rem 2.75rem 0 1.25rem;
  appearance: none;
  border-radius: inherit;
  cursor: pointer;
}

.field--select select:invalid {
  color: var(--text-2);
}

.field__chevron {
  position: absolute;
  right: 1.125rem;
  top: 1.1rem;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--text-2);
  pointer-events: none;
  transition: transform var(--t2) var(--ease);
}

/* Where the browser lets a page style the list of a select, it gets the look of the page's own panels;
   elsewhere the list stays the browser's */
@supports (appearance: base-select) {
  .field--select select,
  .field--select select::picker(select) {
    appearance: base-select;
  }

  .field--select select::picker-icon {
    display: none;
  }

  /* The list hangs from the pill, always below it: never flipped above (the browser's default picks the side
     with more room, and keeps that side while the page scrolls), where the pill's shape cannot meet it. It is as
     wide as the pill border to border (the select fills the pill inside its border) and covers the pill's bottom
     edge, so the two read as one shape. With too little room below it shrinks and scrolls; site.js scrolls the
     page first where it can. */
  .field--select select::picker(select) {
    position-area: block-end span-inline-end;
    position-try-order: normal;
    position-try-fallbacks: none;
    inline-size: calc(anchor-size(self-inline) + 2px);
    min-inline-size: 0;
    max-block-size: stretch;
    overflow-y: auto;
    margin: 0 0 0 -1px;
    padding: 0.375rem;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line-strong);
    border-top: 0;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: 0 1.5rem 3rem -1.25rem rgba(21, 23, 26, 0.24);
  }

  /* Open, the pill and its list are one shape: square where they meet, one border colour, and no focus ring
     between them (the focus is in the list then, on the option it marks) */
  .field--select:has(select:open) {
    border-color: var(--line-strong);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: none;
  }

  .field--select select option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.875rem;
    font-size: var(--fs-ui);
    border-radius: var(--radius-sm);
    cursor: pointer;
  }

  .field--select select option:hover,
  .field--select select option:focus-visible {
    background: var(--soft);
    outline: none;
  }

  .field--select select option:checked {
    font-weight: 500;
  }

  .field--select select option::checkmark {
    order: 2;
    margin-left: auto;
    color: var(--orange-text);
  }

  .field--select select:open ~ .field__chevron {
    transform: rotate(180deg);
  }
}

/* A message: the pill becomes a rounded box */
.field--area {
  border-radius: var(--radius-md);
}

.field--area .field__input {
  min-height: 7.5rem;
  margin-top: 0.125rem;
  line-height: 1.5;
  resize: vertical;
}

.field__hint,
.field__error {
  margin: 0.25rem 0 0.125rem;
  font-size: var(--fs-xs);
  line-height: 1.4;
  color: var(--text-2);
}

/* What is wrong with a field, right under its frame, in line with the label inside it */
.field__error {
  margin: -0.25rem 0 0;
  padding: 0 1.25rem;
  color: var(--closed);
}

.field--invalid {
  border-color: var(--closed);
  background: #fff8f7;
}

.field--invalid:focus-within {
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.2);
}

/* Filled in from the homepage: tinted, with a small word that says so until the visitor edits it */
.field--carried {
  background: var(--orange-tint);
  border-color: #efc48f;
}

.field__badge {
  position: absolute;
  top: 0.5625rem;
  right: 1.125rem;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-text);
}

.field--select .field__badge {
  right: 2.75rem;
}

.fields__note {
  padding: 0.125rem 0.75rem 0;
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--text-2);
}

/* Two fields that belong together (first and last name): side by side where there is room, under each other on
   a phone. Each stands in a cell with its own message under it. */
.fields__pair,
.fields__cell {
  display: grid;
  gap: 0.625rem;
  align-content: start;
}

@media (min-width: 480px) {
  .fields__pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* A file (the CV): the browser's own control in the pill, its button in the look of the site's small buttons */
.field--file {
  row-gap: 0.25rem;
}

.field__file {
  min-height: 2.5rem;
  font-size: var(--fs-small);
  line-height: 2.5rem;
  color: var(--text-2);
  cursor: pointer;
}

.field__file::file-selector-button {
  min-height: 2.25rem;
  margin-right: 0.75rem;
  padding: 0 1rem;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color var(--t2) var(--ease);
}

.field__file:hover::file-selector-button {
  border-color: var(--ink);
}

.field__remove {
  justify-self: start;
  min-height: 2rem;
  padding: 0;
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  background: none;
  border: 0;
  cursor: pointer;
}

.form {
  display: grid;
  gap: 1rem;
}

/* The honeypot: present for a script, never for a person */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  padding: 0.75rem 1.125rem;
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.45;
  color: var(--closed);
  background: var(--error-tint);
  border-radius: var(--radius-md);
}

.form__noscript {
  padding: 0.75rem 1.125rem;
  font-size: var(--fs-small);
  line-height: 1.45;
  background: var(--soft);
  border-radius: var(--radius-md);
}

.form__foot {
  display: grid;
  gap: 0.75rem;
}

.form__consent {
  font-size: var(--fs-xs);
  line-height: 1.45;
  text-align: center;
  color: var(--text-2);
}

.form__result {
  display: grid;
  gap: 1rem;
  justify-items: start;
  padding: 1.25rem 1.5rem;
  background: var(--soft);
  border-radius: var(--radius-md);
}

.form__result--failed {
  background: var(--error-tint);
}

.form__result-title {
  font-family: var(--head);
  font-size: var(--fs-card);
  line-height: 1.3;
}

.form__result-reach a {
  font-weight: 500;
}

.form.is-done .fields,
.form.is-done .form__foot,
.form.is-done .form__status,
.form.is-done .form-turnstile {
  display: none;
}

/* Turnstile's box only takes room when it has something to ask */
.form-turnstile {
  display: none;
}

.form-turnstile.is-visible {
  display: block;
}

/* ---------- Over ons and the services ---------- */

.intro {
  display: grid;
  gap: 1rem var(--gap);
}

.intro__title {
  max-width: 16em;
}

.intro__text {
  max-width: 36rem;
  color: var(--text-2);
}

@media (min-width: 1024px) {
  .intro {
    grid-template-columns: minmax(0, 1fr) minmax(0, 36rem);
    align-items: start;
  }
}

/* The three strengths and the Business Point as one strip of joined cards: the hairlines between them are
   the strip's own background showing through a 1px gap */
.strip {
  display: grid;
  gap: 1px;
  margin: clamp(2rem, 1.5rem + 1.4 * var(--vw), 2.75rem) 0 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.strip__item {
  display: grid;
  gap: 0.75rem;
  padding: var(--pad);
  background: #ffffff;
}

.icon-circle--logo img {
  width: 1.625rem;
  height: auto;
  filter: brightness(0);
}

.strip__title {
  margin: 0;
  font-family: var(--head);
  font-size: var(--fs-card);
  font-weight: 400;
  line-height: 1.2;
}

.strip__text {
  max-width: 26em;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--text-2);
}

@media (min-width: 640px) {
  .strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* The map on the left, the fan of cards on the right */
.services {
  display: grid;
  gap: var(--gap);
  margin-top: clamp(2rem, 1.5rem + 1.4 * var(--vw), 2.75rem);
}

/* The map stands on the page, centred beside the cards and a third wider than its column, so a quarter
   of it lies behind the front card */
.services__map {
  position: relative;
  z-index: 0;
  align-self: center;
  padding: 0.5rem var(--inset) 0;
}

.map {
  width: 100%;
  height: auto;
}

.map__base,
.map__lit {
  fill: none;
  stroke: var(--map-dot);
  stroke-linecap: round;
}

.services__map .map__base {
  stroke: var(--map-dot-light);
}

/* The copy of the dots stroked with the gradient site.js moves with the pointer: they darken around it
   and fade back out towards its edge */
.map__lit {
  stroke: url(#map-glow);
}

.map__glow-stop {
  stop-color: var(--orange);
}

.services__map .map__glow-stop {
  stop-color: var(--ink);
}

.map__home {
  fill: var(--orange);
}

.statement {
  max-width: 18em;
  font-family: var(--head);
  font-size: var(--fs-statement);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.deck {
  display: grid;
  gap: 1rem;
}

.services__label {
  margin: 0;
  font-family: var(--body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* The cards: a row to swipe through on a phone, out to the edge of the page; a grid, or with JavaScript a
   fan, from 768px */
.deck__cards {
  display: flex;
  gap: 0.75rem;
  margin: 0 calc(-1 * var(--margin));
  padding: 0 var(--margin) 0.5rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

/* Positioned, so the visually hidden texts inside it (placed absolutely) stay inside the row that scrolls on
   a phone instead of widening the page */
.deck__card {
  position: relative;
  display: flex;
  flex: 0 0 82%;
  flex-direction: column;
  overflow: hidden;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.deck__select {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}

.deck__select:focus-visible {
  outline: 2px solid var(--orange-text);
  outline-offset: -4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* The picture of a service */
.deck__art {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--chip);
  border-bottom: 1px solid var(--line);
}

.deck__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deck__body {
  display: grid;
  gap: 0.5rem;
  padding: 1.125rem 1.25rem 1.25rem;
}

.deck__title {
  margin: 0;
  font-family: var(--head);
  font-size: var(--fs-card);
  font-weight: 400;
  line-height: 1.2;
}

.deck__text {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--text-2);
}

.deck__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.25rem;
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
}

.deck__link:hover {
  text-decoration: underline;
}

.deck__link .icon {
  width: 1.125rem;
  height: 1.125rem;
}

@media (min-width: 768px) {
  .deck__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap);
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .deck__card {
    flex: none;
  }

  /* The fan: the front card in full on the left, the others peeking out behind it to the right, each
     with its title in the part that shows. --i is the place in the fan (0 is the front), --n the number
     of cards (site.js); --w the front card's share of the width as a plain number, so that --peek, the
     share of a card that shows, can be worked out from it. */
  .deck--ready .deck__cards {
    position: relative;
    display: block;
    height: 34rem;
  }

  .deck--ready .deck__card {
    --w: 50;
    --peek: calc((100 - var(--w)) / (var(--n) - 1) / var(--w));
    position: absolute;
    top: 0;
    left: calc(var(--i) * (100 - var(--w)) / (var(--n) - 1) * 1%);
    width: calc(var(--w) * 1%);
    height: 100%;
    z-index: calc(10 - var(--i));
    box-shadow: -0.75rem 0 1.75rem -1rem rgba(21, 23, 26, 0.28);
    transition: left var(--t4) var(--ease), transform var(--t3) var(--ease), box-shadow var(--t3) var(--ease);
  }

  .deck--ready .deck__card:not(.is-active) {
    cursor: pointer;
  }

  /* Behind the front card the title, the text and the link stand in the strip that shows, smaller */
  .deck--ready .deck__card:not(.is-active) .deck__body {
    margin-left: calc(100% - 100% * var(--peek));
    padding-left: 0;
    gap: 0.375rem;
  }

  .deck--ready .deck__card:not(.is-active) .deck__title {
    font-size: var(--fs-ui);
  }

  .deck--ready .deck__card:not(.is-active) .deck__text,
  .deck--ready .deck__card:not(.is-active) .deck__link {
    font-size: var(--fs-xs);
  }

  /* In the strip the link runs on like text, its arrow after the last word */
  .deck--ready .deck__card:not(.is-active) .deck__link {
    display: inline;
  }

  .deck--ready .deck__card:not(.is-active) .deck__link .icon {
    display: inline-block;
    width: 0.875rem;
    height: 0.875rem;
    margin-left: 0.25rem;
    vertical-align: -0.125em;
  }

  .deck--ready .deck__card:not(.is-active):hover {
    transform: translateY(-0.75rem);
  }

  .deck--ready .deck__card.is-active {
    box-shadow: 0 1.5rem 3rem -1.5rem rgba(21, 23, 26, 0.35);
  }
}

@media (min-width: 1024px) {
  .services {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
  }

  .services__map .map {
    width: 200%;
    max-width: none;
  }

  .deck {
    position: relative;
    z-index: 1;
  }
}

/* ---------- The dark panel that closes a page ---------- */

.cta {
  margin-top: var(--section);
}

.cta__panel {
  display: grid;
  gap: 1.75rem;
  padding: var(--panel-pad);
  color: #ffffff;
  background: var(--ink);
  border-radius: var(--radius-xl);
}

.cta__text {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
}

.cta__lead {
  max-width: 30em;
  color: rgba(255, 255, 255, 0.72);
}

.cta__lead a {
  color: #ffffff;
}

.cta__actions {
  display: grid;
  justify-items: start;
  gap: 0.875rem;
}

.cta__direct {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.72);
}

.cta__direct a {
  color: #ffffff;
  font-weight: 500;
}

.cta :focus-visible {
  outline-color: var(--orange);
}

@media (min-width: 1024px) {
  .cta__panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 3rem;
  }

  .cta__actions {
    justify-items: end;
    text-align: right;
  }
}

/* ---------- The band under the menu on the other pages ---------- */

.band-wrap {
  margin-top: 0.25rem;
}

.band {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: var(--band-h);
  overflow: hidden;
  color: #ffffff;
  background: var(--ink);
  border-radius: var(--radius-xl);
  isolation: isolate;
}

.band__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}

.band--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(15, 17, 19, 0.84) 0%, rgba(15, 17, 19, 0.5) 45%, rgba(15, 17, 19, 0.15) 100%);
}

/* The map keeps to the right, behind the title */
.band__map {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem clamp(1rem, 4 * var(--vw), 4rem);
}

.band__map .map {
  width: auto;
  max-width: 62%;
  height: 100%;
}

.band__text {
  display: grid;
  gap: 0.625rem;
  max-width: 50rem;
  padding: var(--pad) var(--pad) clamp(1.25rem, 1rem + 1.2 * var(--vw), 2rem);
}

.band__status {
  font-size: var(--fs-small);
  font-weight: 500;
}

.band__title {
  margin: 0;
  font-family: var(--head);
  font-size: clamp(1.875rem, 1.5rem + 1.4 * var(--vw), 2.75rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.band__lead {
  max-width: 46em;
  color: rgba(255, 255, 255, 0.8);
}

/* What a page puts bottom right on its band: the tabs of the contact and privacy pages */
.band__corner {
  position: absolute;
  right: var(--pad);
  bottom: var(--pad);
  z-index: 5;
}

.band :focus-visible {
  outline-color: var(--orange);
}

/* A light side panel: the ways to reach Certa, or the summary of a vacancy */
.aside {
  display: grid;
  align-content: start;
  gap: 1.5rem;
  padding: var(--pad);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.aside__block {
  display: grid;
  gap: 0.875rem;
}

.aside__title {
  margin: 0;
  font-family: var(--body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.aside__note {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--text-2);
}

/* Facts as plain rows: the ways to reach Certa, the company's numbers */
.facts {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  font-size: var(--fs-small);
}

.facts div {
  display: grid;
  grid-template-columns: 7em minmax(0, 1fr);
  gap: 0.5rem;
}

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

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

.facts a {
  text-decoration: none;
}

.facts a:hover {
  text-decoration: underline;
}

.facts__row dd {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.facts__address .maps {
  margin-top: 0.375rem;
}

/* Copies the number beside it; says so for a moment, to its right */
.copy {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  color: var(--text-2);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--t2) var(--ease), border-color var(--t2) var(--ease);
}

.copy:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.copy .icon {
  width: 1rem;
  height: 1rem;
}

.copy[data-done]::after {
  content: attr(data-done);
  position: absolute;
  top: 50%;
  left: calc(100% + 0.5rem);
  font-size: var(--fs-xs);
  font-weight: 500;
  white-space: nowrap;
  color: var(--open);
  transform: translateY(-50%);
}

/* The two maps the address opens in, side by side, and the note about Google's pin */
.maps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.maps__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 1.75rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  text-decoration: none;
}

.maps__link:hover {
  text-decoration: underline;
}

.maps__icon {
  width: 1.125rem;
  height: 1.125rem;
  stroke: none;
}

.maps__icon--apple {
  width: 1rem;
  height: 1rem;
  color: var(--ink);
}

/* The PostNL note: their mark, the words, a button to their service */
.notice {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding: 1rem 1.125rem;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--text-2);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.notice__logo {
  flex: 0 0 auto;
  width: 2.25rem;
  height: auto;
  margin-top: 0.125rem;
}

.notice__body {
  display: grid;
  justify-items: start;
  gap: 0.5rem;
}

.notice__title {
  margin: 0;
  font-size: var(--fs-ui);
  font-weight: 600;
  color: var(--ink);
}

.notice .pill-btn {
  margin-top: 0.25rem;
}

/* ---------- Contact page: an offerte or a message ---------- */

/* Below 1024px the chosen form comes first, under the band, the side panel after it (without JavaScript
   both forms, then the side panel) */
.contactpage {
  display: grid;
  grid-template-areas: "offerte" "other" "aside";
  gap: var(--gap);
  margin-top: var(--gap);
}

[data-mode="offerte"] .contactpage {
  grid-template-areas: "offerte" "aside";
}

[data-mode="overig"] .contactpage {
  grid-template-areas: "other" "aside";
}

/* The choice between two parts of a page: two joined buttons with an icon each, on the band */
.tabs {
  display: flex;
}

.tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  font-size: var(--fs-small);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(21, 23, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background-color var(--t2) var(--ease), color var(--t2) var(--ease), border-color var(--t2) var(--ease);
}

.tabs__tab .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.tabs__tab:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.tabs__tab:last-child {
  margin-left: -1px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.tabs__tab:hover {
  color: #ffffff;
  background: rgba(21, 23, 26, 0.8);
  border-color: rgba(255, 255, 255, 0.7);
  z-index: 1;
}

.tabs__tab[aria-selected="true"] {
  color: var(--ink);
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.85);
  z-index: 1;
}

.contactpage__form--offerte {
  grid-area: offerte;
}

/* On a switch the form and the side panel trade places (a view transition, site.js): the two forms share one
   name, so the form moves as one piece, its content changing on the way, over the side panel moving the other
   way; neither covers the other halfway. Only one form is shown at a time, so the name stays unique. Where the
   browser has no view transitions the chosen form fades in. */
.contactpage__form {
  view-transition-name: contact-form;
}

.contact-aside {
  grid-area: aside;
  display: grid;
  align-content: start;
  gap: var(--gap);
  view-transition-name: contact-aside;
}

.contact-aside .aside {
  background: #ffffff;
}

::view-transition-group(*) {
  animation-duration: 380ms;
  animation-timing-function: var(--ease);
}

::view-transition-group(contact-aside) {
  z-index: 1;
}

::view-transition-group(contact-form) {
  z-index: 2;
}

/* The form's old content is nearly gone before its new content fades in, so the two barely show through each
   other and the form never disappears */
::view-transition-old(contact-form) {
  animation-duration: 180ms;
}

::view-transition-new(contact-form) {
  animation-delay: 90ms;
  animation-duration: 290ms;
  animation-fill-mode: both;
}

.contactpage__form.is-entering {
  animation: fade-in var(--t3) var(--ease);
}

.contactpage__form--other {
  grid-area: other;
}

.offerte__form {
  display: grid;
  gap: 1.25rem;
  padding: var(--pad);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.offerte__head {
  display: grid;
  gap: 0.375rem;
}

.offerte__lead {
  font-size: var(--fs-small);
  color: var(--text-2);
}

@media (min-width: 1024px) {
  .contactpage {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas: "offerte aside" "other other";
    align-items: start;
  }

  /* The side panel is as tall as the form beside it */
  [data-mode] .contact-aside {
    align-self: stretch;
  }

  [data-mode="offerte"] .contactpage {
    grid-template-areas: "offerte aside";
  }

  /* The question form on the right, the side panel on the left */
  [data-mode="overig"] .contactpage {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "aside other";
  }
}

/* ---------- Vacancies ---------- */

.jobs {
  display: grid;
  gap: var(--gap);
  margin-top: clamp(1.75rem, 1.25rem + 2 * var(--vw), 3rem);
}

.jobs__empty {
  display: grid;
  gap: 0.75rem;
  padding: var(--pad);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.jobs__empty p {
  max-width: 40em;
  color: var(--text-2);
}

/* The filter: every option a row with its count, the chosen one marked by an orange dot */
.filters {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.filters__inner {
  display: grid;
  gap: 1.25rem;
}

/* The toggle exists for phones and tablets; on wide screens the title stands and the options show */
.filters__toggle {
  display: none;
}

.filters__body {
  display: grid;
}

.filters__body > * {
  min-height: 0;
}

.filters__title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--head);
  font-size: var(--fs-card);
  line-height: 1.2;
}

.filters__title .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--orange-text);
}

.filters__group {
  display: grid;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.filters__legend {
  margin-bottom: 0.5rem;
  padding: 0;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}

.filters__opt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.5rem;
  padding: 0 0.75rem;
  font-size: var(--fs-small);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--t2) var(--ease);
}

.filters__opt:hover,
.filters__opt:has(input:checked) {
  background: #ffffff;
}

.filters__opt:has(input:checked) {
  font-weight: 500;
}

.filters__opt input {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  appearance: none;
  background: #ffffff;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color var(--t2) var(--ease);
}

.filters__opt input::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: var(--orange);
  border-radius: 50%;
  transform: scale(0);
  transition: transform var(--t2) var(--ease);
}

.filters__opt input:checked {
  border-color: var(--ink);
}

.filters__opt input:checked::before {
  transform: scale(1);
}

.filters__opt input:focus-visible {
  outline: 2px solid var(--orange-text);
  outline-offset: 2px;
}

.filters__name {
  flex: 1 1 auto;
}

.filters__count {
  min-width: 1.5rem;
  font-size: var(--fs-xs);
  text-align: right;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.filters__summary {
  padding-top: 0.875rem;
  font-size: var(--fs-small);
  font-weight: 500;
  border-top: 1px solid var(--line);
}

.jobs__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1rem;
}

/* The past roles follow the open ones under a rule, with their own title and the line about an open
   application */
.roles__past {
  display: grid;
  gap: 0.375rem;
  margin-top: 0.75rem;
  padding: 1.5rem var(--inset) 0.25rem;
  border-top: 1px solid var(--line);
}

.roles__past-title {
  margin: 0;
  font-family: var(--head);
  font-size: var(--fs-card);
  font-weight: 400;
  line-height: 1.2;
}

.roles__past-lead {
  font-size: var(--fs-small);
  color: var(--text-2);
}

/* A role's facts, each with its icon */
.jobfacts {
  display: grid;
  gap: 0.375rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
  color: var(--text-2);
}

.jobfacts li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.jobfacts .icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--ink);
}

.aside .jobfacts {
  margin-top: -0.25rem;
  color: var(--ink);
}

/* The chosen filters, right of the title; each chip drops its filter */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.25rem;
  padding: 0 0.625rem 0 0.875rem;
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--t2) var(--ease), background-color var(--t2) var(--ease);
}

.chip:hover {
  background: #ffffff;
  border-color: var(--ink);
}

.chip .icon {
  width: 0.875rem;
  height: 0.875rem;
  stroke-width: 2;
}

.jobs__back {
  margin-bottom: 0.75rem;
}

.roles {
  display: grid;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.role {
  display: grid;
  gap: 1rem;
  padding: var(--pad);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color var(--t2) var(--ease);
}

.role:hover {
  border-color: var(--line-strong);
}

.role.is-entering {
  animation: fade-in var(--t3) var(--ease);
}

/* A closed role is only the box: a shade quieter, its button greyed out */
.role--closed {
  background: #f9f9fa;
}

.pill-btn--off:disabled {
  color: var(--text-2);
  background: var(--chip);
  border-color: var(--chip);
  cursor: not-allowed;
  opacity: 1;
}

.pill-btn:disabled:hover .icon {
  transform: none;
}

.role--closed:hover {
  border-color: var(--line);
}

.role--closed .role__title {
  color: #3c4249;
}

.role__status {
  margin-bottom: 0.625rem;
  font-size: var(--fs-xs);
  font-weight: 500;
}

.role__title {
  margin: 0;
  font-family: var(--head);
  font-size: calc(var(--fs-card) * 1.1);
  font-weight: 400;
  line-height: 1.2;
}

.role__link {
  text-decoration: none;
}

.role__link:hover {
  text-decoration: underline;
}

.role.is-open .role__title {
  font-size: var(--fs-h3);
}

.role__lead {
  max-width: 40em;
  margin-top: 0.75rem;
}

/* The whole vacancy, shown in place by site.js */
.role__full {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.role__apply {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  margin-top: 1.5rem;
}

/* The application in the role's box (site.js): the role's own content steps aside for it */
.role__form {
  display: grid;
  gap: 1.25rem;
  max-width: 44rem;
}

.role__form-kicker {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-text);
}

.role.is-applying .role__main,
.role.is-applying .role__action {
  display: none;
}

.check-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.check-list .icon {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.2em;
  color: var(--orange-text);
}

/* What you do and what a role asks: the same rows as the ticked list, a dot where the tick would be, centred in
   the tick's column and on the first line of the text */
.bullet-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.bullet-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 0.375rem;
  height: 0.375rem;
  margin: calc(0.775em - 0.1875rem) 0.375rem 0;
  background: var(--orange-text);
  border-radius: 50%;
}

.check-list--large {
  gap: 0.875rem;
  font-size: var(--fs-body);
}

.role__action {
  display: grid;
  justify-items: start;
}

.roles-empty {
  display: grid;
  gap: 1rem;
  justify-items: start;
  padding: var(--pad);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

@media (min-width: 768px) {
  .role {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .role.is-open,
  .role.is-applying {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1024px) {
  .jobs {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
  }
}

/* What Certa offers, beside the vacancies */
.offer {
  margin-top: var(--section);
}

.offer__panel {
  display: grid;
  gap: 2rem;
  padding: var(--panel-pad);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.offer__text {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.offer__lead {
  max-width: 30em;
  color: var(--text-2);
}

@media (min-width: 1024px) {
  .offer__panel {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 3rem;
  }
}

/* One vacancy, and its application page */
.job {
  display: grid;
  gap: var(--gap);
  margin-top: clamp(1.75rem, 1.25rem + 2 * var(--vw), 3rem);
}

.job__main {
  padding: var(--pad);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.job__intro {
  max-width: 36rem;
  font-size: calc(var(--fs-body) * 1.04);
}

.job__h {
  margin: 1.75rem 0 0.75rem;
}

.job__main .check-list,
.job__main .bullet-list,
.role__full .check-list,
.role__full .bullet-list {
  max-width: 40em;
}

.job__closing {
  max-width: 28em;
  margin-top: 1.75rem;
  font-family: var(--head);
  font-size: var(--fs-card);
  line-height: 1.3;
}

@media (min-width: 1024px) {
  .job {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    align-items: start;
  }
}

/* ---------- The error pages (403, 404, 500) ----------
   The header and footer of every page, without a band: the language switch stands where the band has it, framed
   by a hairline on the white, and the message in the middle of the space between header and footer. */

.error-page {
  display: flex;
  flex-direction: column;
}

.error-page__frame {
  position: relative;
  display: grid;
  flex: 1 0 auto;
  place-items: center;
  min-height: clamp(24rem, 58vh, 40rem);
  margin-top: 0.25rem;
  padding-top: 4.5rem;
}

.error-page .lang__toggle,
.error-page .lang__list {
  border-color: var(--line);
}

.error-page__body {
  display: grid;
  justify-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 36rem;
  text-align: center;
}

.error-page__code {
  margin-bottom: 0.25rem;
}

.error-page__text {
  max-width: 32em;
  color: var(--text-2);
  text-wrap: pretty;
}

.error-page__text a {
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  text-underline-offset: 0.18em;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-top: 0.75rem;
}

.error-page__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: var(--fs-ui);
  font-weight: 500;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.error-page__link:hover {
  text-decoration-thickness: 2px;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: var(--section);
  padding-bottom: 1.75rem;
}

/* The logo and the registration mark stand between two rules: this one above, the bottom line's below */
.site-footer__grid {
  display: grid;
  gap: 2rem var(--gap);
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
}

/* The logo and, behind a rule as tall as the button, LinkedIn as a round button (named "profiles", not
   "socials": content blockers hide .site-footer__socials and .site-footer__social) */
.site-footer__lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-footer__lockup .logo {
  margin-right: 0;
}

.site-footer__profiles {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0 0 0 1rem;
  list-style: none;
  border-left: 1px solid var(--line);
}

.site-footer__profile {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: var(--ink);
  background: #ffffff;
  border: 2px solid transparent;
  border-radius: 50%;
  transition: color var(--t2) var(--ease);
}

.site-footer__profile .icon {
  width: 2.5rem;
  height: 2.5rem;
}

.site-footer__profile:hover,
.site-footer__profile:active {
  color: var(--linkedin);
}

.site-footer__tagline {
  max-width: 22em;
  margin-top: 0.5rem;
  font-size: var(--fs-small);
  color: var(--text-2);
}

/* The registration mark, a link to the public register, at the right, nudged a little down and to the left;
   it comes forward a little under the pointer */
.site-footer__certs {
  display: grid;
  align-self: start;
  justify-self: end;
}

.site-footer__cert {
  display: block;
  transform: translate(-3px, 5px);
  transition: transform var(--t2) var(--ease);
}

.site-footer__cert:hover {
  transform: translate(-3px, 5px) scale(1.04);
}

.site-footer__cert img {
  width: auto;
  height: 7.6rem;
}

/* The copyright line and, at the right, the legal pages */
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  font-size: var(--fs-xs);
  color: var(--text-2);
  border-top: 1px solid var(--line);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__legal a {
  text-decoration: none;
}

.site-footer__legal a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* The brand at the left, the mark at the right */
@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}

/* ---------- Legal pages ---------- */

.legal {
  margin-top: clamp(1.75rem, 1.25rem + 2 * var(--vw), 3rem);
}

.legal {
  display: grid;
  gap: 2.5rem;
}

/* A long address in the text (developers.cloudflare.com/...) breaks rather than widening the column past a
   phone's screen; such an overflow also made WebKit's view transition between the two parts fail */
.legal__text {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  max-width: 44rem;
  padding-inline: var(--inset);
  overflow-wrap: break-word;
}

.legal__draft,
.legal__updated {
  color: var(--text-2);
}

.legal__updated {
  font-size: var(--fs-small);
}

.legal__text p,
.legal__list {
  max-width: 40em;
}

.legal__h {
  margin: 1rem 0 0;
  font-family: var(--head);
  font-size: var(--fs-card);
  font-weight: 400;
  line-height: 1.25;
}

.legal__list {
  display: grid;
  gap: 0.625rem;
  margin: 0;
  padding-left: 1.25rem;
}

.legal__list li::marker {
  color: var(--orange-text);
}

/* ---------- Phones and tablets ----------
   After rijschoolaysem.nl: the header stays at the top, decoration that only fills space goes, controls
   that fill a screen fold away, and the footer keeps what a visitor on a phone needs. */

@media (max-width: 1023px) {
  html {
    scroll-padding-top: calc(var(--header-h) + 0.5rem);
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;
  }

  /* A vacancy's summary and its apply button come before the text once they no longer stand beside it */
  .job__side {
    order: -1;
  }

  /* The dotted map is decoration beside the cards; without room beside them it goes */
  .services__map {
    display: none;
  }

  /* The filter folds away into a small button right of the list's title, the funnel and a chevron in a
     light frame; it opens the options as a panel joined to its underside, like the Business Point's. The
     title's row leaves room for it. */
  .jobs {
    position: relative;
  }

  .jobs__filter {
    position: absolute;
    top: 0;
    right: var(--margin);
    z-index: 20;
  }

  .jobs__head {
    align-items: center;
    min-height: 2.75rem;
    padding-right: 5.5rem;
  }

  .filters {
    position: relative;
    display: block;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
  }

  .filters__title {
    display: none;
  }

  .filters__toggle {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 2.75rem;
    padding: 0 0.625rem 0 0.75rem;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color var(--t2) var(--ease);
  }

  .filters__toggle:hover {
    border-color: var(--frame-hover);
  }

  .filters__toggle .icon:first-child {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--orange-text);
  }

  .filters__chevron {
    width: 1rem;
    height: 1rem;
    color: var(--text-2);
    transition: transform var(--t2) var(--ease);
  }

  .filters__toggle[aria-expanded="true"] .filters__chevron {
    transform: rotate(180deg);
  }

  /* Open, the button and the panel share one frame: the button's lower corners go, its lower edge opens */
  .filters__toggle[aria-expanded="true"] {
    border-color: var(--line-strong);
    border-bottom-color: #ffffff;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .filters__body {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    z-index: 1;
    display: block;
    width: min(20rem, calc(100vw - 2 * var(--margin)));
    padding: 1.125rem 1.25rem 1.25rem;
    background: #ffffff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm) 0 var(--radius-sm) var(--radius-sm);
    box-shadow: 0 1.5rem 3rem -1.25rem rgba(21, 23, 26, 0.24);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity var(--t1) ease-in, transform var(--t1) ease-in, visibility 0s linear var(--t1);
  }

  .filters__body.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity var(--t2) var(--ease), transform var(--t2) var(--ease), visibility 0s linear 0s;
  }

  .filters__opt:hover,
  .filters__opt:has(input:checked) {
    background: var(--soft);
  }
}

/* The narrowest phones: the list's title keeps to one line beside the filter's button (it needs about 245px at
   its full size), so the panel the button opens hangs below the title instead of over its second line */
@media (max-width: 399px) {
  .jobs__head {
    padding-right: 5rem;
  }

  .jobs__head .h3 {
    font-size: min(var(--fs-h3), 5.5vw);
  }
}

@media (max-width: 767px) {
  :root {
    --section: 3rem;
  }

  /* What a page puts bottom right on its band stands under the text instead, across the band; the band
     leaves room at its top for the language switch */
  .band {
    padding-top: 4.25rem;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
  }

  /* The hero is as tall as the bands, with the same room at its top for the language switch */
  .hero__media {
    padding-top: 4.25rem;
  }

  .band__corner {
    position: static;
    padding: 0 var(--pad) var(--pad);
  }

  .band__corner .tabs__tab {
    flex: 1 1 0;
    justify-content: center;
    padding: 0 0.75rem;
  }

  .band__text + .band__corner {
    margin-top: -0.5rem;
  }

  /* The strengths: the icon beside the title and text, so four of them take half the height */
  .strip__item {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 1rem;
    row-gap: 0.25rem;
    padding: 1rem var(--pad);
  }

  .strip__item .icon-circle {
    grid-row: span 2;
    width: 2.75rem;
    height: 2.75rem;
  }

  .strip__title {
    align-self: end;
  }

  /* The cards to swipe through: a little narrower, so the next one shows */
  .deck__card {
    flex-basis: min(80vw, 21rem);
  }

  .role__action .pill-btn {
    width: 100%;
  }

  /* The footer: the logo, LinkedIn and the registration mark as one row in the middle, the mark as tall as
     LinkedIn's square (18 of the icon's 24 units); then the line with the legal pages */
  .site-footer__grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding-block: 1.75rem;
  }

  .site-footer__tagline {
    display: none;
  }

  .site-footer__certs {
    align-self: center;
  }

  .site-footer__cert {
    transform: none;
  }

  .site-footer__cert:hover {
    transform: scale(1.04);
  }

  .site-footer__cert img {
    height: 1.875rem;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer__legal {
    justify-content: center;
  }
}

/* A finger needs more room than a pointer */
@media (pointer: coarse) {
  .filters__opt {
    min-height: 2.75rem;
  }

  .site-footer__legal a,
  .maps__link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }
}

/* ---------- Motion ---------- */

@keyframes drop-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes drop-out {
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes sheet-out {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .pill-btn .icon,
  .logo:hover .logo__mark,
  .site-footer__cert:hover,
  .deck--ready .deck__card:not(.is-active):hover {
    transform: none !important;
  }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

@media (forced-colors: active) {
  .status::before,
  .icon-circle,
  .filters__opt input::before,
  .map__home {
    forced-color-adjust: none;
  }

  .strip,
  .strip__item,
  .deck__card,
  .band,
  .cta__panel,
  .aside,
  .offerte__form,
  .filters,
  .role,
  .roles-empty,
  .jobs__empty,
  .offer__panel,
  .job__main,
  .fields,
  .field,
  .notice,
  .form__result,
  .tabs__tab,
  .chip,
  .copy,
  .bp__toggle,
  .lang__list {
    border: 1px solid CanvasText;
  }

  .filters__opt input {
    border: 1.5px solid CanvasText;
  }
}

@media print {
  .site-header .nav,
  .bp,
  .menu,
  .lang,
  .skip-link,
  .hero__card,
  .form,
  .tabs,
  .filters,
  .pill-btn {
    display: none !important;
  }

  .hero__media,
  .band,
  .cta__panel {
    color: #000000;
    background: none;
  }

  .hero__media::before,
  .band::before,
  .hero__img,
  .band__img {
    display: none;
  }
}
