/* The public career pages. They carry the tenant's brand rather than
   pitchr's: /theme.css sets --accent and --accent-text from the settings,
   data-style on <html> the style the tenant chose (see the end).
   They are light, or dark where the device or the visitor wants it. */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/space-grotesk.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --accent: #2a78d6;
  --accent-text: #ffffff;
  /* The accent as the colour of text, e.g. links; /theme.css sets a
     lighter one for dark backgrounds. */
  --link: var(--accent);
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1a1f36;
  --text-2: #414552;
  --muted: #687385;
  --border: #e3e6ea;
  --danger: var(--danger);
  --danger-text: #a3242a;
  --danger-bg: #fdecec;
  --danger-border: #f5c2c4;
  --drop-bg: #fafbfc;
  --drop-border: #b9c0ca;
  --radius: 10px;
  /* Fields and small boxes; chips like the branches are pills. */
  --radius-sm: 8px;
  --radius-pill: 999px;
  /* Between the sections of a page, e.g. the jobs and the job alert. */
  --section-gap: 2.5rem;
  --shadow: 0 1px 2px rgb(16 24 40 / 5%), 0 2px 8px rgb(16 24 40 / 4%);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --heading-font: var(--font);
  --heading-weight: 700;
  /* How much of the accent colours the page's background. */
  --bg-tint: 0%;
}

/* Dark colours follow the device unless the visitor chose light; the
   switch in the header sets data-theme (see theme.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --link: var(--accent-light, var(--accent));
    --bg: #0f1218;
    --surface: #171b23;
    --text: #e7e9ef;
    --text-2: #b7bdcb;
    --muted: #8b93a5;
    --border: #2a303c;
    --danger: #f0868b;
    --danger-text: #f6a9ad;
    --danger-bg: #3a1c20;
    --danger-border: #6b2a30;
    --drop-bg: #1c212b;
    --drop-border: #3a4150;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --link: var(--accent-light, var(--accent));
  --bg: #0f1218;
  --surface: #171b23;
  --text: #e7e9ef;
  --text-2: #b7bdcb;
  --muted: #8b93a5;
  --border: #2a303c;
  --danger: #f0868b;
  --danger-text: #f6a9ad;
  --danger-bg: #3a1c20;
  --danger-border: #6b2a30;
  --drop-bg: #1c212b;
  --drop-border: #3a4150;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%);
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, var(--accent) var(--bg-tint), var(--bg));
  color: var(--text);
  font: 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

/* main also is a .wrap, whose padding would win over an element rule. */
main.wrap { flex: 1; padding-bottom: 4rem; }
a { color: var(--link); }
h1, h2, h3 { font-family: var(--heading-font); font-weight: var(--heading-weight); line-height: 1.25; letter-spacing: -.015em; }

.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 1rem; }

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Header and footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.site-brand { display: inline-flex; align-items: center; color: var(--text); font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.site-brand img { display: block; max-height: 2.5rem; max-width: 12rem; }

/* Logos are made for light backgrounds: on dark colours they lie on a
   white plate, unless the tenant has one for them. */
.site-brand .logo-for-dark { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-brand img:only-child { padding: .25rem .5rem; border-radius: 6px; background: #ffffff; }
  :root:not([data-theme="light"]) .site-brand .logo-for-light { display: none; }
  :root:not([data-theme="light"]) .site-brand .logo-for-dark { display: block; }
}

:root[data-theme="dark"] .site-brand img:only-child { padding: .25rem .5rem; border-radius: 6px; background: #ffffff; }
:root[data-theme="dark"] .site-brand .logo-for-light { display: none; }
:root[data-theme="dark"] .site-brand .logo-for-dark { display: block; }

/* The switch between light and dark stays out of the way. */
button.theme-switch {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: none;
  color: var(--muted);
}

button.theme-switch:hover { filter: none; border-color: var(--border); color: var(--text); }
button.theme-switch[hidden] { display: none; }
.theme-switch .icon { width: 1.125rem; height: 1.125rem; }
/* The moon offers dark colours, the sun light ones. */
.theme-switch[aria-pressed="true"] .icon:first-child, .theme-switch:not([aria-pressed="true"]) .icon:last-child { display: none; }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .875rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1.25rem; }
.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* Job list */
.hero { padding: 2.5rem 0 1.5rem; }
.hero h1 { margin: 0; font-size: clamp(1.75rem, 5vw, 2.5rem); }
.intro { margin: .75rem 0 0; max-width: 40rem; color: var(--text-2); font-size: 1.0625rem; white-space: pre-line; }

/* The list's heading lies on the tenant's photo or on a picture drawn in
   the accent colour; /theme.css sets which. */
.hero-banner {
  margin: 1.5rem 0 1.5rem;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.25rem, 5vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--hero-shade, none), var(--hero, none) center / cover, var(--accent);
  color: var(--hero-text, var(--accent-text));
}

.hero-banner .intro { color: inherit; opacity: .92; }

.branches { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }

.branches a {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .375rem .875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-2);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
}

.branches a:hover { border-color: var(--accent); color: var(--link); }
.branches a[aria-current="page"] { border-color: var(--accent); background: var(--accent); color: var(--accent-text); }
.branches .count { opacity: .7; font-variant-numeric: tabular-nums; }

.search { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }

.search input, .search select {
  flex: 1;
  min-width: 0;
  height: 2.875rem;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  box-shadow: var(--shadow);
}

.search .search-what { flex: 3 1 14rem; }
/* The place and its radius stay on one line. */
.search-where { flex: 2 1 16rem; display: flex; gap: .5rem; min-width: 0; }
.search select { flex: 0 0 auto; padding: 0 .75rem; cursor: pointer; }

.search-note { margin: 0 0 .75rem; color: var(--text); font-size: .9375rem; }
.job-meta .distance { color: var(--muted); }

.search input:focus, .search select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.875rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

button:hover, .button:hover { filter: brightness(1.08); }
button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 2px; }

.result-count { margin: 0; color: var(--muted); font-size: .875rem; }
.result-bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin: 0 0 1rem; }
.result-unsolicited { font-size: .875rem; font-weight: 500; }
.empty { padding: 3rem 1rem; text-align: center; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }

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

.job-card {
  display: grid;
  gap: .5rem;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s;
}

.job-card:hover { border-color: var(--accent); }
.job-card:hover h2 { color: var(--link); }
.job-card-title { display: flex; align-items: center; gap: .625rem; flex-wrap: wrap; }
.job-card h2 { margin: 0; font-size: 1.125rem; }

.tag {
  padding: .0625rem .5rem;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 600;
}

.tag-new { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--link); }

.job-meta { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; color: var(--muted); font-size: .9375rem; }
.job-meta > span { display: inline-flex; align-items: center; gap: .375rem; }

/* Job page */
.back { margin: 1.5rem 0 0; font-size: .9375rem; }
.back a { text-decoration: none; }
.job-header { padding: 1rem 0 1.5rem; }
.job-header h1 { margin: 0 0 .5rem; font-size: clamp(1.625rem, 4.5vw, 2.25rem); }

.job-body {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) 20rem;
  align-items: start;
}

.job-description, .job-facts {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.prose { color: var(--text-2); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose strong { color: var(--text); }

.job-facts { position: sticky; top: 1.5rem; }
.job-facts h2 { margin: 0 0 1rem; font-size: 1rem; }
.job-facts dl { display: grid; gap: .875rem; margin: 0; }
.job-facts dt { color: var(--muted); font-size: .8125rem; }
.job-facts dd { margin: 0; font-weight: 500; }

@media (max-width: 44rem) {
  .job-body { grid-template-columns: minmax(0, 1fr); }
  .job-facts { position: static; order: -1; }
  .hero { padding-top: 1.75rem; }
  .search button { flex: 1 1 100%; }
}

/* Application form */
.lead { margin: 0; max-width: 40rem; color: var(--text-2); }

.apply-form {
  display: grid;
  gap: 1.125rem;
  max-width: 40rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.125rem; }
.form-field { display: grid; gap: .375rem; align-content: start; }
.form-field > label { font-weight: 600; font-size: .9375rem; }
.optional { color: var(--muted); font-weight: 400; }
.hint { margin: 0; color: var(--muted); font-size: .875rem; }
.field-error { margin: 0; color: var(--danger); font-size: .875rem; }

.apply-form input:not([type="checkbox"], [type="file"]), .apply-form select, .apply-form textarea {
  width: 100%;
  padding: .625rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.apply-form textarea { resize: vertical; }
.apply-form input:focus, .apply-form select:focus, .apply-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

.apply-form [aria-invalid="true"] { border-color: var(--danger); }

.check { display: flex; gap: .625rem; align-items: flex-start; font-size: .9375rem; color: var(--text-2); }
.check input { flex: none; width: 1.125rem; height: 1.125rem; margin-top: .1875rem; accent-color: var(--accent); }
.consents { gap: .75rem; }
.submit { justify-self: start; }

.notice { padding: .75rem 1rem; border-radius: var(--radius-sm); font-size: .9375rem; }
.notice p { margin: 0 0 .25rem; }
.notice ul { margin: 0; padding-left: 1.25rem; }
.notice a { color: inherit; }
.notice-error { background: var(--danger-bg); color: var(--danger-text); border: 1px solid var(--danger-border); }

/* Bots fill in fields that people cannot see. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* The file input lies invisibly over the whole zone and takes clicks and
   dropped files itself; careers.js shows the chosen file's name. */
.filedrop {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem;
  border: 1px dashed var(--drop-border);
  border-radius: var(--radius-sm);
  background: var(--drop-bg);
  color: var(--muted);
}

.filedrop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.filedrop > .icon { width: 1.5rem; height: 1.5rem; }
.filedrop-text { display: grid; gap: .125rem; min-width: 0; }
.filedrop-prompt { color: var(--text-2); }
.filedrop-prompt strong { color: var(--link); }
.filedrop-name { display: none; color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filedrop:hover, .filedrop.dragover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.filedrop:has(input:focus-visible) { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.filedrop:has(input[aria-invalid="true"]) { border-color: var(--danger); }
.filedrop.chosen { border-style: solid; border-color: var(--accent); color: var(--link); }
.filedrop.chosen .filedrop-prompt { display: none; }
.filedrop.chosen .filedrop-name { display: block; }

/* Calls to apply */
.apply-cta { display: grid; gap: .5rem; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.apply-cta .button { width: 100%; }
.apply-note { margin: 0; color: var(--muted); font-size: .8125rem; text-align: center; }
/* On wide screens the facts with their button stay in view next to the
   description; on narrow ones they come first, so the description ends
   with a button of its own. */
.job-end { display: none; margin-top: 1.25rem; }
.unsolicited {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  margin-top: var(--section-gap);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

.unsolicited p { margin: 0; color: var(--text-2); }
.unsolicited strong { display: block; color: var(--text); }
.thanks p:last-child { margin-top: 1.5rem; }

@media (max-width: 44rem) {
  .job-end { display: block; }
  .job-end .button { width: 100%; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .apply-form { padding: 1.125rem; }
  .submit { justify-self: stretch; }
}

/* Talent pool reminder */
.talent-pool-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.talent-pool-actions form { margin: 0; }
button.secondary { background: var(--surface); color: var(--text-2); border: 1px solid var(--border); }
button.secondary:hover { filter: none; border-color: var(--accent); color: var(--link); }

/* Contacts: whom to ask about a job, and how to reach a branch */
.job-contact { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.job-contact h2 { margin: 0 0 .875rem; font-size: 1rem; }
.contact { display: grid; gap: .75rem; }
.contact-person { display: flex; align-items: center; gap: .75rem; }
.contact-person p { margin: 0; }

.contact-photo {
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
}

.contact-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--link);
  font-weight: 700;
}

.contact-name { font-weight: 600; line-height: 1.3; }
.contact-role { color: var(--muted); font-size: .875rem; line-height: 1.3; }
.contact-ways { display: grid; gap: .375rem; margin: 0; padding: 0; list-style: none; font-size: .9375rem; }
.contact-ways:empty { display: none; }
.contact-ways a { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; overflow-wrap: anywhere; text-decoration: none; }
.contact-ways a:hover { text-decoration: underline; }

.branch-contact { margin-top: var(--section-gap); }
.branch-contact > h2 { margin: 0 0 1rem; font-size: 1.25rem; }
.branch-contact-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }

.branch-contact-card, .branch-team {
  display: grid;
  gap: .875rem;
  align-content: start;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.branch-address, .branch-hours { display: flex; gap: .5rem; margin: 0; color: var(--text-2); }
.branch-address .icon, .branch-hours .icon { margin-top: .3rem; color: var(--muted); }
.branch-hours span { white-space: pre-line; }
.branch-team h3 { margin: 0; font-size: 1rem; }
.branch-team ul { display: grid; gap: .875rem; margin: 0; padding: 0; list-style: none; }

/* Jobs like the one on the page, or like one that is gone */
.similar-jobs { margin-top: var(--section-gap); }
.similar-jobs > h2 { margin: 0 0 1rem; font-size: 1.25rem; }
.all-jobs { margin-top: 1.5rem; }

/* Working time filters, like the branches but smaller */
.time-filters { display: flex; flex-wrap: wrap; gap: .375rem; margin-bottom: .875rem; }

.time-filters a {
  display: inline-flex;
  align-items: center;
  gap: .3125rem;
  padding: .25rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-2);
  font-size: .8125rem;
  font-weight: 500;
  text-decoration: none;
}

.time-filters a:hover { border-color: var(--accent); color: var(--link); }
.time-filters a[aria-current] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--link); }
.time-filters .count { opacity: .7; font-variant-numeric: tabular-nums; }

/* Job alerts */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.job-alert {
  display: grid;
  gap: 1rem;
  margin-top: var(--section-gap);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.job-alert p { margin: 0; color: var(--text-2); }
.job-alert strong { color: var(--text); }
.job-alert-form { display: grid; gap: .625rem; }
.job-alert-row { display: flex; flex-wrap: wrap; gap: .5rem; }

.job-alert-row input {
  flex: 1 1 14rem;
  min-width: 0;
  height: 2.875rem;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.job-alert-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.job-alert-row input[aria-invalid="true"] { border-color: var(--danger); }
.job-alert .check { font-size: .875rem; }
.job-alert-page { max-width: 40rem; }
.job-alert-status form { margin-top: 1.5rem; }
.job-alert-status p:last-child { margin-top: 1.5rem; }

/* Why to work for the tenant, and questions about temporary work */
.why-us, .faq { margin-top: var(--section-gap); }
.why-us h2, .faq h2 { margin: 0 0 1rem; font-size: 1.25rem; }
.benefits { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .625rem; margin: 0; padding: 0; list-style: none; }

.benefits li {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  padding: .875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-2);
  font-size: .9375rem;
  line-height: 1.4;
}

.benefits .icon { margin-top: .125rem; color: var(--link); stroke-width: 2.4; }

.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.faq details + details { margin-top: .5rem; }
.faq summary { padding: .875rem 1rem; font-weight: 600; cursor: pointer; }
.faq summary:hover { color: var(--link); }
.faq details p { margin: 0; padding: 0 1rem 1rem; color: var(--text-2); }

/* Commute by public transport on a job's page */
/* The commute card lays itself out by the column's width. */
.job-main { display: grid; gap: 1.5rem; min-width: 0; container-type: inline-size; }

/* A card of its own below the description; where there is room, the
   result and the form stand side by side. */
.job-commute {
  display: grid;
  gap: .75rem 1.25rem;
  align-items: start;
  padding: 1.125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.job-commute h2 { margin: 0; font-size: 1.0625rem; }

@container (min-width: 34rem) {
  .job-commute { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); padding: 1.5rem; }
  .job-commute > * { grid-column: 1 / -1; }
  .job-commute:has(.commute-card) > .commute-card { grid-column: 1; grid-row: span 3; }
  .job-commute:has(.commute-card) > :is(.commute-form, .commute-locate-error, .commute-source) { grid-column: 2; }
}

.commute-note, .commute-none { margin: 0; color: var(--text-2); font-size: .9375rem; }

.commute-card {
  display: grid;
  gap: .625rem;
  padding: .875rem 1rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}

.commute-time { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .625rem; margin: 0; }
.commute-time strong { color: var(--text); font-size: 1.5rem; line-height: 1.2; letter-spacing: -.01em; }
.commute-time span { color: var(--text-2); font-size: .875rem; }

/* The legs as a chain of small chips. */
.commute-legs { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.commute-legs li { display: inline-flex; align-items: center; gap: .25rem; }
.commute-legs li + li::before { content: "›"; margin-right: .125rem; color: var(--muted); }

.leg > span {
  display: inline-flex;
  align-items: center;
  padding: .0625rem .4375rem;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}

.leg .icon { width: 1.125rem; height: 1.125rem; color: var(--text-2); }
.leg-walk > span { padding: 0; background: none; color: var(--text-2); font-weight: 500; }
.commute-when { margin: 0; color: var(--text-2); font-size: .875rem; }
.commute-maps { display: inline-flex; align-items: center; gap: .3125rem; justify-self: start; font-size: .875rem; font-weight: 600; text-decoration: none; }
.commute-maps:hover { text-decoration: underline; }
.commute-maps .icon { width: .875rem; height: .875rem; }

/* The field takes the whole width, the buttons share the line below. */
.commute-form { display: flex; flex-wrap: wrap; gap: .375rem; }

/* The pin sits inside the field. */
.commute-input { position: relative; flex: 1 1 100%; min-width: 0; }
.commute-input > .icon { position: absolute; left: .625rem; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }

.commute-input input {
  width: 100%;
  height: 2.5rem;
  padding: 0 .625rem 0 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.commute-input input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.commute-form button { flex: 1 1 0; gap: .375rem; height: 2.5rem; padding: 0 .75rem; font-size: .9375rem; white-space: nowrap; }
.commute-form .commute-locate[hidden] { display: none; }
.commute-locate-error { margin: 0; color: var(--danger-text); font-size: .8125rem; }
.commute-source { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.4; overflow-wrap: anywhere; }

/* The stops near a job, above the commute. */
.job-stops { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; font-size: .9375rem; }
.job-stops li { display: flex; gap: .5rem; align-items: flex-start; color: var(--text-2); }
.job-stops .icon { flex: none; margin-top: .2rem; color: var(--accent); }
.job-stops strong { color: var(--text); font-weight: 600; }
.job-stops .muted { color: var(--muted); font-size: .875rem; }

/* Styles. Modern is the look above; the others change its shapes, fonts
   and shadows, and keep the tenant's colour. */

/* Professionell: calm and sober, with a serif for headings, square
   corners and no shadows. */
:root[data-style="professionell"] {
  --radius: 3px;
  --radius-sm: 3px;
  --radius-pill: 3px;
  --shadow: none;
  --heading-font: "Iowan Old Style", Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --heading-weight: 600;
}

[data-style="professionell"] h1, [data-style="professionell"] h2, [data-style="professionell"] h3 { letter-spacing: 0; }
[data-style="professionell"] .site-header { border-top: 4px solid var(--accent); }
[data-style="professionell"] :is(.why-us, .faq, .similar-jobs, .branch-contact) > h2 { padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
[data-style="professionell"] .hero-banner { border-radius: 0; }
[data-style="professionell"] .tag { text-transform: uppercase; letter-spacing: .04em; font-size: .6875rem; }

/* Locker: friendly, with round shapes, soft shadows and a background in
   a touch of the accent. */
:root[data-style="locker"] {
  --radius: 20px;
  --radius-sm: 14px;
  --bg-tint: 6%;
  --shadow: 0 2px 4px rgb(16 24 40 / 4%), 0 8px 24px rgb(16 24 40 / 6%);
  --heading-font: "Space Grotesk", var(--font);
}

[data-style="locker"] :is(button, .button) { border-radius: var(--radius-pill); }
[data-style="locker"] :is(.job-card, .benefits li, .branch-contact-card, .branch-team) { border-color: transparent; }
[data-style="locker"] .job-card { transition: border-color .15s, translate .15s; }
[data-style="locker"] .job-card:hover { border-color: var(--accent); translate: 0 -2px; }
[data-style="locker"] .hero-banner { padding-block: clamp(2.5rem, 8vw, 4.5rem); }
[data-style="locker"] .hero-banner h1 { font-size: clamp(2rem, 6vw, 3rem); }

[data-style="locker"] .benefits .icon {
  box-sizing: content-box;
  padding: .3125rem;
  margin-top: -.1875rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}

/* Kräftig: bold, with thick lines in the colour of the text and hard
   shadows, as on a poster. */
:root[data-style="kraeftig"] {
  --radius: 4px;
  --radius-sm: 4px;
  --radius-pill: 4px;
  --shadow: 4px 4px 0 var(--text);
  --heading-font: "Space Grotesk", var(--font);
  --border: var(--text);
}

[data-style="kraeftig"] :is(.site-header, .site-footer) { border-width: 2px; }
[data-style="kraeftig"] :is(
  .hero-banner, .job-card, .job-description, .job-facts, .apply-form, .branch-contact-card, .branch-team,
  .job-alert, .job-commute, .empty, .unsolicited, .benefits li, .faq details, .branches a, .time-filters a,
  .search input, .search select, .job-alert-row input, .apply-form input:not([type="checkbox"], [type="file"]),
  .apply-form select, .apply-form textarea, .commute-input input, .filedrop) { border-width: 2px; border-style: solid; }
[data-style="kraeftig"] .filedrop:not(.chosen) { border-style: dashed; }
[data-style="kraeftig"] :is(.hero-banner, .unsolicited) { box-shadow: var(--shadow); }
[data-style="kraeftig"] :is(.benefits li, .faq details) { box-shadow: 3px 3px 0 var(--text); }

[data-style="kraeftig"] :is(button, .button) {
  border: 2px solid var(--text);
  box-shadow: 3px 3px 0 var(--text);
  text-transform: uppercase;
  letter-spacing: .03em;
  transition: translate .1s, box-shadow .1s;
}

[data-style="kraeftig"] :is(button, .button):hover { filter: none; translate: -1px -1px; box-shadow: 4px 4px 0 var(--text); }
[data-style="kraeftig"] :is(button, .button):active { translate: 2px 2px; box-shadow: 1px 1px 0 var(--text); }
[data-style="kraeftig"] :is(button.theme-switch, button.theme-switch:hover) { border-color: transparent; box-shadow: none; translate: none; }
[data-style="kraeftig"] .job-card { transition: translate .1s, box-shadow .1s; }
[data-style="kraeftig"] .job-card:hover { border-color: var(--text); translate: -2px -2px; box-shadow: 6px 6px 0 var(--text); }
[data-style="kraeftig"] .job-card:hover h2 { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
[data-style="kraeftig"] .tag-new { background: var(--accent); color: var(--accent-text); }
[data-style="kraeftig"] .hero-banner h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -.03em; }
