/* WorkFootball — floodlit masthead on the jobs page, quiet night bands elsewhere, white sheets on chalk. */

:root {
  --night: #070d0b;
  --night-2: #0e1814;
  --night-3: #15221d;
  --night-line: rgba(222, 240, 230, 0.14);
  --night-line-strong: rgba(222, 240, 230, 0.3);
  --chalk: #f1f5f2;
  --chalk-dim: #b9c7c0;
  --turf: #c6f36b;
  --turf-deep: #9cc744;
  --turf-ink: #0a1409;

  --paper: #edf0ea;
  --sheet: #ffffff;
  --ink: #0f1a16;
  --ink-2: #47544d;
  --ink-3: #5f6b64;
  --rule: #e2e6de;
  --rule-strong: #c8cec4;
  --green: #145a37;
  --green-ink: #0f4429;
  --green-wash: #e8f1e5;

  --focus: var(--ink);
  --radius: 14px;
  --radius-small: 8px;
  --wrap: 64rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header: 4.5rem;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "SF Pro Display", ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  background: var(--night);
}

a, button, summary, label, select, input { touch-action: manipulation; }

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; display: flex; flex-direction: column; }
.page-message main { background: var(--night); }

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { flex-shrink: 0; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Focus ---------- */

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
[tabindex="-1"]:focus { outline: none; }

.site-header, .stage, .site-footer {
  --focus: var(--turf);
  color-scheme: dark;
}
.paper { --focus: var(--green); color-scheme: light; }

.skip {
  position: absolute;
  z-index: 50;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-small);
  background: var(--turf);
  color: var(--turf-ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus-visible {
  transform: none;
  outline: 3px solid var(--chalk);
  outline-offset: 2px;
}

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

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  color: var(--chalk);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  text-decoration: none;
  color: var(--chalk);
  border-radius: 6px;
}
.brand-mark { color: var(--chalk); }
.brand-spot { fill: var(--turf); }
.brand-word {
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-word strong { font-weight: 800; }
.brand--small .brand-word { font-size: 1.0625rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 2vw, 1.25rem);
  min-width: 0;
  margin-inline: auto 0.5rem;
}
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.5rem;
  border-radius: 6px;
  color: var(--chalk-dim);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { color: var(--chalk); }
}
.site-nav a:active,
.site-nav a[aria-current="page"] { color: var(--chalk); }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset: auto 0.5rem 0.375rem;
  height: 2px;
  border-radius: 1px;
  background: var(--turf);
}

/* Language switcher: native <details>, works without JavaScript */
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.lang, .account-menu { position: relative; }
.lang summary, .account-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--night-line-strong);
  border-radius: 10px;
  background: rgba(7, 13, 11, 0.6);
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
  white-space: nowrap;
}
.lang summary::-webkit-details-marker,
.account-menu summary::-webkit-details-marker { display: none; }
.lang summary::marker, .account-menu summary::marker { content: ""; }
.lang summary:active, .account-menu summary:active { border-color: var(--chalk-dim); }
@media (hover: hover) and (pointer: fine) {
  .lang summary:hover, .account-menu summary:hover { border-color: var(--chalk-dim); }
}
.lang-flag { border-radius: 2px; box-shadow: 0 0 0 1px var(--night-line-strong); }
.lang-current { font-weight: 650; }
.lang-code { display: none; font-weight: 650; }
.lang-chevron { transition: transform 0.15s ease; }
.lang[open] .lang-chevron { transform: rotate(180deg); }

.lang-menu, .account-popover {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.375rem);
  right: 0;
  min-width: 12rem;
  padding: 0.375rem;
  border: 1px solid var(--night-line-strong);
  border-radius: var(--radius);
  background: var(--night-2);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}
.lang-menu a, .account-popover a, .account-popover button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.625rem;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-small);
  text-decoration: none;
  color: var(--chalk);
}
.lang-menu a:active, .account-popover a:active, .account-popover button:active { background: var(--night-3); }
@media (hover: hover) and (pointer: fine) {
  .lang-menu a:hover, .account-popover a:hover, .account-popover button:hover { background: var(--night-3); }
}
.lang-menu a[aria-current] { font-weight: 700; }
.lang-menu a[aria-current]::after {
  content: "";
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--turf);
  margin-inline-start: auto;
}
.lang-menu a:focus-visible { outline-offset: -3px; }
.account-menu summary { justify-content: center; min-width: 44px; padding: 0.25rem; border-radius: 50%; }
.account-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--turf);
  color: var(--turf-ink);
  font-weight: 750;
}
.account-popover { width: max-content; max-width: min(18rem, 85vw); }
.account-popover button { width: 100%; background: transparent; border: 0; font: inherit; text-align: left; cursor: pointer; }
.account-popover a:focus-visible, .account-popover button:focus-visible { outline-offset: -3px; }

/* ---------- Stage ---------- */

.stage {
  position: relative;
  isolation: isolate;
  color: var(--chalk);
  background-color: var(--night);
}

/* The jobs page is the only surface that carries the stadium photograph:
   it frames the search and fades into the list. */
.stage--index,
.stage--message {
  background-image:
    linear-gradient(90deg, rgba(7, 13, 11, 0.96) 0%, rgba(7, 13, 11, 0.86) 38%, rgba(7, 13, 11, 0.42) 72%, rgba(7, 13, 11, 0.2) 100%),
    linear-gradient(180deg, rgba(7, 13, 11, 0.6) 0%, rgba(7, 13, 11, 0) 30%, rgba(7, 13, 11, 0) 70%, rgba(7, 13, 11, 0.7) 100%),
    url("/pitch.webp"),
    radial-gradient(130% 55% at 72% 112%, #2c7a3c 0%, #174d25 38%, rgba(12, 36, 20, 0.6) 62%, transparent 80%),
    linear-gradient(180deg, #0a1220 0%, #08100d 60%, #0b1a10 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%, cover, 100% 100%, 100% 100%;
  background-position: 0 0, 0 0, 72% 58%, 0 0, 0 0;
}

/* Detail, directory, profile and company-filtered pages: a compact night band. */
.stage--plain,
.stage--profile {
  background-image: radial-gradient(70% 140% at 100% 0%, rgba(44, 122, 60, 0.22), transparent 70%);
  border-bottom: 1px solid var(--night-line);
}

.stage-body {
  padding-top: calc(var(--header) + clamp(1.25rem, 4vw, 2.5rem));
  padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.stage--plain .stage-body,
.stage--profile .stage-body {
  padding-top: calc(var(--header) + clamp(0.75rem, 2.5vw, 1.5rem));
  padding-bottom: clamp(1.5rem, 3.5vw, 2.25rem);
}

.display {
  max-width: 20ch;
  font-family: var(--display);
  font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.stage--plain .display,
.stage--profile .display { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem); }

/* ---------- Search ---------- */

.finder {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  padding: 0.75rem;
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  background: rgba(7, 13, 11, 0.82);
}

.finder-query {
  position: relative;
  display: flex;
  gap: 0.5rem;
}
.finder-icon {
  position: absolute;
  left: 0.9375rem;
  top: 50%;
  transform: translateY(-50%);
  color: #4f5d56;
  pointer-events: none;
}
.finder-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 3.25rem;
  padding: 0 1rem 0 2.75rem;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--chalk);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  -webkit-appearance: none;
  appearance: none;
}
.finder-input::placeholder { color: #5d6a63; opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .finder-input:hover { border-color: var(--chalk-dim); }
}
.finder-input:focus-visible { border-color: var(--turf-ink); }
.finder-input::-webkit-search-cancel-button { cursor: pointer; }

.finder-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem 0.5rem;
  margin-top: 0.75rem;
}

.company-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 0.625rem 0.75rem;
  max-width: 46rem;
  margin-top: 1.5rem;
}
.company-filter-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.company-filter-actions a { color: var(--chalk); }
@media (min-width: 48rem) {
  .company-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .company-filter-actions { grid-column: auto; }
}

.field { display: grid; gap: 0.25rem; min-width: 0; }
.field label {
  padding-left: 0.125rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--chalk-dim);
  overflow-wrap: anywhere;
}
.field select {
  width: 100%;
  min-width: 0;
  height: 2.75rem;
  padding: 0 2.125rem 0 0.75rem;
  border: 1px solid var(--night-line-strong);
  border-radius: 10px;
  background-color: var(--night-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23b9c7c0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.75rem;
  color: var(--chalk);
  font: inherit;
  font-size: 0.9375rem;
  text-overflow: ellipsis;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
@media (hover: hover) and (pointer: fine) {
  .field select:hover { border-color: var(--chalk-dim); }
}
/* iOS zooms into selects under 16px. */
@media (pointer: coarse) {
  .field select { font-size: 1rem; }
}
.field select.is-set {
  border-color: var(--turf);
  box-shadow: inset 0 0 0 1px var(--turf);
}
.field select option { background: var(--night-2); color: var(--chalk); }

.finder-reset {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
}
.finder-reset a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.125rem;
  color: var(--chalk);
  text-decoration: underline;
  text-decoration-color: var(--turf);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  border-radius: 4px;
}
.finder-reset a:active { color: var(--turf); }
@media (hover: hover) and (pointer: fine) {
  .finder-reset a:hover { color: var(--turf); }
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.125rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.button--primary {
  background: var(--turf);
  border-color: var(--turf);
  color: var(--turf-ink);
}
.button--primary:active { background: #d6fb86; border-color: #d6fb86; }
@media (hover: hover) and (pointer: fine) {
  .button--primary:hover { background: #d6fb86; border-color: #d6fb86; }
}
.paper .button--primary { border-color: var(--turf-deep); }
.button--large { min-height: 3.25rem; padding-inline: 1.5rem; font-size: 1.0625rem; }

.button--quiet {
  background: var(--sheet);
  border-color: var(--rule-strong);
  color: var(--ink);
}
.button--quiet:active { border-color: var(--ink); background: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .button--quiet:hover { border-color: var(--ink); }
}

.finder-submit {
  flex: 0 0 auto;
  height: 3.25rem;
  padding-inline: 1.375rem;
}

/* ---------- Paper + sheets ---------- */

.paper {
  flex: 1 0 auto;
  background: var(--paper);
  color: var(--ink);
  padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(3rem, 7vw, 4.5rem);
}

.sheet {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--sheet);
}

/* ---------- Results ---------- */

.results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.125rem 1.5rem;
  margin-bottom: 0.875rem;
  padding-inline: 0.25rem;
}
.results-head h2 {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.results-count {
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.results-count strong { color: var(--ink); font-weight: 750; }

/* Shared result row: jobs list, company-filtered list and employer profile. */
.jobs {
  --row-pad: clamp(0.875rem, 2.5vw, 1.25rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--sheet);
}

.job {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 1.125rem;
  grid-template-areas:
    "mark main go"
    "mark side go";
  column-gap: 0.875rem;
  align-items: start;
  padding: 0.9375rem var(--row-pad);
  touch-action: manipulation;
  transition: background-color 0.12s ease;
}
.job:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.job:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.job:only-child { border-radius: var(--radius); }
.job + .job { border-top: 1px solid var(--rule); }
.job:focus-within {
  z-index: 1;
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}
.job-title a:focus-visible { outline: none; }

.job-mark {
  grid-area: mark;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-small);
  background: #f6f7f4;
}
span.job-mark:empty { border-color: transparent; background: none; }
.job-mark--code {
  color: var(--ink-3);
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.08em;
}

.employer-logo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  padding: 0.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-small);
  background: var(--sheet);
  object-fit: contain;
}
.job-mark.employer-logo { width: 2.5rem; height: 2.5rem; }
.employer-logo[src="/employer-logo/regulator"] { background: var(--night-2); }

.job-main { grid-area: main; min-width: 0; }

.job-title {
  font-family: var(--display);
  font-size: 1.0938rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  hyphens: auto;
}
.job-title a {
  color: var(--ink);
  text-decoration: none;
}
/* The whole row is the link target; the title remains the accessible link. */
.job-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.job-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.125rem 0.875rem;
  margin-top: 0.3125rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.job-company { position: relative; z-index: 1; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.job-company:focus-visible { text-decoration: underline; }
@media (hover: hover) and (pointer: fine) {
  .job-company:hover { text-decoration: underline; }
}
.job-place { display: inline-flex; align-items: baseline; gap: 0.25rem; min-width: 0; overflow-wrap: anywhere; }
.job-place svg { color: var(--green); align-self: flex-start; margin-top: 0.22em; }
.jobs .more { margin-left: 0.25rem; color: var(--ink-3); }

.job-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem 0.75rem;
  margin-top: 0.4375rem;
  font-size: 0.8438rem;
  line-height: 1.45;
  color: var(--ink-3);
}
.job-category { font-weight: 600; color: var(--green); }

.job-side {
  grid-area: side;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.75rem;
  margin-top: 0.375rem;
  font-variant-numeric: tabular-nums;
}
.job-pay {
  font-size: 0.9688rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--green-ink);
  overflow-wrap: anywhere;
  min-width: 0;
}
.job-date {
  font-size: 0.8438rem;
  color: var(--ink-3);
  white-space: nowrap;
}

.job-go {
  grid-area: go;
  align-self: center;
  color: var(--ink-3);
  transition: color 0.12s ease, transform 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .job:hover { background: #f6f9f4; }
  .job:hover .job-title a {
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 0.2em;
    text-decoration-color: var(--green);
  }
  .job:hover .job-go { color: var(--green); transform: translateX(2px); }
}
.job:active { background: var(--green-wash); }
.job:focus-within .job-go { color: var(--green); }

.more {
  margin-left: 0.25rem;
  font-size: inherit;
  font-weight: 600;
  color: var(--ink-2);
}

/* ---------- Empty state ---------- */

.empty {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: clamp(2.5rem, 6vw, 3.5rem) 1.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--sheet);
  text-align: center;
}
.empty-mark { color: var(--rule-strong); }
.empty p { font-size: 1.0625rem; font-weight: 650; max-width: 32ch; }

/* ---------- Pagination ---------- */

.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}
.pager-prev { justify-self: start; }
.pager-next { justify-self: end; }
.pager-status {
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- Job detail ---------- */

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 44px;
  margin-bottom: 0.5rem;
  color: var(--chalk-dim);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}
.back:active { color: var(--chalk); }
@media (hover: hover) and (pointer: fine) {
  .back:hover { color: var(--chalk); text-decoration: underline; text-underline-offset: 0.2em; }
}

.detail-title {
  max-width: 28ch;
  font-family: var(--display);
  font-size: clamp(1.625rem, 1.2rem + 1.9vw, 2.625rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.detail-employer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  margin-top: 1rem;
}
.detail-employer .employer-logo { width: 2.5rem; }
.detail-company { font-size: 1.0625rem; font-weight: 700; overflow-wrap: anywhere; }
a.detail-company { text-decoration-color: var(--turf); text-underline-offset: 0.2em; }
.detail-domain { color: var(--chalk-dim); font-size: 0.9375rem; overflow-wrap: anywhere; }

.detail-places {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: 0.625rem;
  color: var(--chalk);
  font-size: 0.9375rem;
}
.detail-places li { display: inline-flex; align-items: center; gap: 0.375rem; min-width: 0; overflow-wrap: anywhere; }
.detail-places svg { color: var(--turf); }

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

.facts {
  display: grid;
  gap: 1rem;
  padding: clamp(1.125rem, 2.5vw, 1.375rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--sheet);
}
.facts-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}
.facts-key > div { flex: 1 1 9rem; min-width: 0; }
.facts-key > .facts-pay { flex-basis: 100%; }
.facts-key dt {
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 600;
}
.facts-key dd {
  margin-top: 0.0625rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.facts-pay dd { color: var(--green-ink); }
.facts-apply { width: 100%; }

.facts-more {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr));
  gap: 0.875rem 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  line-height: 1.4;
}
.facts-more dt { color: var(--ink-3); font-size: 0.8125rem; }
.facts-more dd {
  margin-top: 0.1875rem;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.facts-posted dd { font-variant-numeric: tabular-nums; }

.overview {
  min-width: 0;
  padding: clamp(1.25rem, 4vw, 2.25rem) clamp(1.125rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.5rem);
}
.overview h2 {
  margin-bottom: 0.875rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.role-section + .role-section {
  margin-top: 1.5rem;
  padding-top: 1.375rem;
  border-top: 1px solid var(--rule);
}
.related-roles { margin-top: clamp(2rem, 5vw, 3.5rem); }
.note {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-small);
  background: var(--paper);
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.prose {
  max-width: 66ch;
  font-size: 1.0625rem;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

/* ---------- Company directory ---------- */

.company-directory-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-inline: clamp(0.875rem, 2.5vw, 1.25rem);
}
.company-directory-list > li + li { border-top: 1px solid var(--rule); }
.company-link {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 1.125rem;
  align-items: center;
  gap: 0.875rem;
  padding-block: 0.8125rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 4px;
  touch-action: manipulation;
}
.company-link:focus-visible { outline-offset: 0; }
.company-entry { display: grid; min-width: 0; overflow-wrap: anywhere; }
.company-entry strong { font-weight: 650; line-height: 1.3; }
.company-entry > span { color: var(--ink-3); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.company-initials {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--rule);
  border-radius: var(--radius-small);
  background: #f6f7f4;
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}
.company-arrow { color: var(--rule-strong); transition: color 0.12s ease, transform 0.15s ease; }
@media (hover: hover) and (pointer: fine) {
  .company-link:hover .company-entry strong { text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 0.2em; }
  .company-link:hover .company-arrow { color: var(--green); transform: translateX(2px); }
}
.company-link:active { background: var(--green-wash); }
.company-link:focus-visible .company-arrow { color: var(--green); }

/* ---------- Employer profile ---------- */

/* Openings on the profile reuse .results › .jobs rows. */
.employer-profile .company-initials { width: clamp(3.25rem, 8vw, 4rem); font-size: 1rem; }

.employer-profile {
  display: flex;
  align-items: center;
  gap: clamp(0.875rem, 2.5vw, 1.25rem);
  min-width: 0;
}
.employer-profile .employer-logo { width: clamp(3.25rem, 8vw, 4rem); padding: 0.375rem; }
.employer-profile h1 {
  min-width: 0;
  font-family: var(--display);
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.employer-about {
  max-width: 62ch;
  margin-top: 1rem;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.65;
  white-space: pre-line;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
.stage .employer-about { color: var(--chalk-dim); }
.employer-homepage {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 44px;
  margin-top: 0.5rem;
  color: var(--green);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
  border-radius: 4px;
}
.employer-homepage span {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.25em;
}
.stage .employer-homepage { color: var(--chalk); }
.stage .employer-homepage span { text-decoration-color: var(--turf); }
.employer-homepage:active { color: var(--ink); }
.stage .employer-homepage:active { color: var(--turf); }
@media (hover: hover) and (pointer: fine) {
  .employer-homepage:hover { color: var(--ink); }
  .stage .employer-homepage:hover { color: var(--turf); }
}

/* ---------- Message ---------- */

.stage--message { flex: 1 0 auto; display: flex; align-items: center; }
.stage--message .stage-body { padding-bottom: clamp(4rem, 10vw, 7rem); }
.message-mark { color: var(--turf); margin-bottom: 1.5rem; }
.message-title {
  max-width: 22ch;
  margin-bottom: 2rem;
  font-family: var(--display);
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

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

.site-footer {
  border-top: 1px solid var(--night-line);
  background: var(--night);
  color: var(--chalk);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.25rem max(1.25rem, env(safe-area-inset-bottom, 0px));
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--chalk-dim);
  font-size: 0.8125rem;
  text-decoration: none;
  text-underline-offset: 0.2em;
  border-radius: 4px;
}
.footer-legal a:is(:active, :focus-visible) { color: var(--chalk); text-decoration: underline; }
@media (hover: hover) and (pointer: fine) {
  .footer-legal a:hover { color: var(--chalk); text-decoration: underline; }
}

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

@media (max-width: 40rem) {
  .stage--index,
  .stage--message {
    background-image:
      linear-gradient(180deg, rgba(7, 13, 11, 0.7) 0%, rgba(7, 13, 11, 0.82) 35%, rgba(7, 13, 11, 0.94) 100%),
      linear-gradient(0deg, transparent, transparent),
      url("/pitch.webp"),
      radial-gradient(150% 45% at 70% 108%, #2c7a3c 0%, #174d25 38%, transparent 78%),
      linear-gradient(180deg, #0a1220 0%, #08100d 60%, #0b1a10 100%);
    background-position: 0 0, 0 0, 78% 30%, 0 0, 0 0;
  }
  .finder { padding: 0.625rem; }
  .finder-submit { padding-inline: 1rem; }
  .pager .button { padding-inline: 0.875rem; }
}

/* Below tablet width: brand + language on row one, nav on its own row so long DE/FR labels never collide. */
@media (max-width: 48rem) {
  :root { --header: 6.25rem; }
  .bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0.625rem;
    row-gap: 0;
    padding-block: 0.375rem;
  }
  .site-nav { grid-row: 2; grid-column: 1 / -1; margin: 0 0 0 -0.5rem; flex-wrap: wrap; }
  .header-actions { grid-row: 1; grid-column: 2; justify-self: end; }
}

@media (max-width: 36rem) {
  .lang-current { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .lang-code { display: inline; }
  .lang summary { padding-inline: 0.5rem; }
  .header-actions { gap: 0.375rem; }
}

@media (max-width: 30rem) {
  .job { column-gap: 0.75rem; }
  .job-go { align-self: start; margin-top: 0.125rem; }
}

@media (max-width: 22.5rem) {
  .brand-word { font-size: 1.0625rem; }
  .finder-query { flex-wrap: wrap; }
  .finder-input { flex-basis: 100%; }
  .finder-icon { top: 1.625rem; }
  .finder-submit { flex: 1 1 100%; }
  .job { grid-template-columns: 2.25rem minmax(0, 1fr) 1rem; column-gap: 0.625rem; }
  .job-mark, .job-mark.employer-logo { width: 2.25rem; height: 2.25rem; }
}

@media (min-width: 48rem) {
  .finder-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .job {
    grid-template-columns: 2.5rem minmax(0, 1fr) minmax(8rem, 12.5rem) 1.125rem;
    grid-template-areas: "mark main side go";
    column-gap: 1.125rem;
    padding-block: 1.125rem;
  }
  .job-side {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.125rem;
    margin-top: 0.0625rem;
    text-align: right;
  }
  .job-pay { text-wrap: balance; }

  .company-directory-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
  }
  .company-directory-list > li + li { border-top: 0; }
  .company-directory-list > li:nth-child(n + 3) { border-top: 1px solid var(--rule); }
}

@media (min-width: 62rem) {
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 20rem;
    grid-template-areas: "overview facts";
    column-gap: 1.5rem;
  }
  .overview { grid-area: overview; }
  .facts { grid-area: facts; position: sticky; top: 1.5rem; }
}

.page-company .job {
  grid-template-columns: minmax(0, 1fr) 1.125rem;
  grid-template-areas: "main go" "side go";
}

@media (min-width: 48rem) {
  .page-company .job {
    grid-template-columns: minmax(0, 1fr) minmax(8rem, 12.5rem) 1.125rem;
    grid-template-areas: "main side go";
  }
}

/* ---------- Preferences & modes ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media (prefers-contrast: more) {
  :root { --ink-2: #26302b; --ink-3: #333d38; --chalk-dim: #dbe4df; --rule: #9ea398; --rule-strong: #6f766c; }
  .stage--index, .stage--message { background-image: linear-gradient(rgba(7, 13, 11, 0.94), rgba(7, 13, 11, 0.94)), url("/pitch.webp"); background-size: 100% 100%, cover; }
}

@media (forced-colors: active) {
  .button, .lang summary, .field select, .finder-input, .job-mark, .facts, .empty, .sheet, .jobs { border: 1px solid CanvasText; }
  .job:focus-within, :focus-visible { outline-color: Highlight; }
  .field select { background-image: none; }
  .site-nav a[aria-current="page"]::after, .lang-menu a[aria-current]::after { background: Highlight; forced-color-adjust: none; }
}

@media print {
  .site-header, .site-footer, .finder, .pager, .facts-apply, .skip { display: none !important; }
  .stage { background: none; color: #000; border: 0; }
  .stage-body { padding-top: 1rem; }
  .paper { padding: 0; }
  .sheet, .jobs { border: 0; }
}

.message-description { max-width: 48ch; color: var(--chalk-dim); }
.finder-submit[aria-busy="true"] { cursor: progress; }
.legal-copy { max-width: 70ch; padding-block: 2rem 3rem; line-height: 1.65; }
.legal-copy h2 { margin-block: 1.75rem 0.5rem; }
.legal-copy p { margin-block: 0.5rem; overflow-wrap: anywhere; }

@media (max-width: 47.99rem) {
  .page-job { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
  .apply-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 20;
    padding: 0.625rem max(1rem, env(safe-area-inset-right, 0px))
      calc(0.625rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
    border-top: 1px solid var(--rule);
    background: var(--sheet);
  }
  .apply-bar .facts-apply { min-height: 3rem; }
}

@media print {
  .page-job { padding-bottom: 0; }
  .apply-bar { display: none; }
}

/* ---------- Candidate ---------- */

.candidate-access {
  flex: 1 0 auto;
  padding-block: calc(var(--header) + clamp(0.75rem, 4vw, 3rem)) clamp(2.5rem, 7vw, 5rem);
  background-image: radial-gradient(70% 90% at 100% 0%, rgba(44, 122, 60, 0.2), transparent 70%);
  border-bottom: 1px solid var(--night-line);
}
.candidate-access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}
.candidate-card {
  --focus: var(--green);
  color-scheme: light;
  display: grid;
  align-content: start;
  gap: 1.125rem;
  width: 100%;
  max-width: 28rem;
  padding: clamp(1.25rem, 5vw, 2.25rem);
  border-color: transparent;
  color: var(--ink);
}
.candidate-title {
  max-width: none;
  color: var(--ink);
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.125rem);
  hyphens: auto;
}
.candidate-title + .candidate-intro { margin-top: -0.375rem; }
.candidate-intro { color: var(--ink-2); font-size: 1rem; }
.candidate-card .button { width: 100%; min-height: 3.25rem; font-size: 1.0625rem; }
.candidate-card-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-block: -0.5rem -0.75rem;
  color: var(--green-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  border-radius: 4px;
}
.candidate-card-link:active { text-decoration-thickness: 2px; }
@media (hover: hover) and (pointer: fine) {
  .candidate-card-link:hover { text-decoration-thickness: 2px; }
}
.candidate-access-visual { display: none; }

@media (min-width: 56rem) {
  .candidate-access { display: flex; align-items: center; }
  .candidate-access-grid {
    --candidate-panel-height: 28rem;
    grid-template-columns: minmax(0, 27rem) minmax(0, 1fr);
    align-items: stretch;
    gap: 1.5rem;
  }
  .candidate-card { max-width: none; min-height: var(--candidate-panel-height); align-content: center; }
  .candidate-access-visual {
    display: block;
    width: 100%;
    height: var(--candidate-panel-height);
    border: 1px solid var(--night-line);
    border-radius: var(--radius);
    background-color: var(--night-2);
    background-image:
      linear-gradient(180deg, rgba(7, 13, 11, 0.2) 0%, rgba(7, 13, 11, 0) 40%, rgba(7, 13, 11, 0.55) 100%),
      url("/pitch.webp");
    background-repeat: no-repeat;
    background-size: 100% 100%, cover;
    background-position: 0 0, 62% 58%;
  }
}

.candidate-field { display: grid; gap: 0.375rem; min-width: 0; }
.candidate-field label { font-weight: 650; color: var(--ink); }
.candidate-field input,
.candidate-field select {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}
@media (hover: hover) and (pointer: fine) {
  .candidate-field input:hover,
  .candidate-field select:hover { border-color: var(--ink-3); }
}
.candidate-field select {
  height: 3rem;
  padding-inline-end: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23405048' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 0.75rem;
  color-scheme: light;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.candidate-field input:focus-visible,
.candidate-field select:focus-visible { border-color: var(--green); outline-offset: 1px; }
.candidate-field input[aria-invalid="true"] { border-color: #a12c23; box-shadow: inset 0 0 0 1px #a12c23; }
.candidate-field--code input {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.35em;
}
.candidate-error {
  padding: 0.625rem 0.875rem;
  border: 1px solid #e6aaa3;
  border-radius: var(--radius-small);
  background: #fbeeec;
  color: #8f251d;
  font-size: 0.9375rem;
  font-weight: 600;
}

.candidate-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.candidate-head-text { min-width: 0; }
.candidate-identity { margin-top: 0.5rem; color: var(--chalk-dim); overflow-wrap: anywhere; }

.candidate-prefs { --pad: clamp(1rem, 4vw, 1.75rem); }
.candidate-group { min-width: 0; margin: 0; padding: var(--pad); border: 0; }
.candidate-group > legend {
  float: left;
  width: 100%;
  padding: 0;
  font-family: var(--display);
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.candidate-group > legend + * { clear: both; }
.candidate-countries { padding-top: 0.875rem; }
.candidate-countries summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
}
.candidate-countries summary::-webkit-details-marker { display: none; }
.candidate-countries summary::after {
  content: "";
  position: absolute;
  inset-inline-end: 1rem;
  inset-block-start: 50%;
  width: 0.45rem;
  height: 0.45rem;
  margin-inline-end: 0.25rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-75%) rotate(45deg);
}
.candidate-countries summary:active { background: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .candidate-countries summary:hover { background: var(--paper); }
}
.candidate-countries[open] summary::after { transform: translateY(-25%) rotate(225deg); }
.candidate-hint { margin-top: 0.875rem; color: var(--ink-2); font-size: 0.9375rem; }

#candidate-country-group ui-combobox:not([hidden]) {
  display: block;
  clear: both;
  padding-top: 0.875rem;
}
.candidate-country-field,
#candidate-country-group [data-slot="combobox-chips"] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  min-height: 3rem;
  padding: 0.3125rem 0.625rem;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
}
#candidate-country-group [data-slot="combobox-chips"]:focus-within { outline: 2px solid var(--green); outline-offset: 1px; }
.candidate-country-prompt,
#candidate-country-group [data-slot="combobox-chips"] input {
  flex: 1 1 12rem;
  min-width: 0;
  min-height: 2.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.candidate-country-prompt { display: flex; align-items: center; padding-inline-end: 1.5rem; }
#candidate-country-group [data-slot="combobox-chips"] input:focus { outline: 0; }
#candidate-country-group [data-slot="combobox-chips"] input::placeholder { color: var(--ink-2); }
.candidate-country-preview,
#candidate-country-group [data-slot="combobox-chips"] ui-combobox-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding-inline-start: 0.625rem;
  border-radius: var(--radius-small);
  background: var(--green-wash);
  color: var(--green-ink);
  font-size: 0.9375rem;
}
.candidate-country-preview::after,
#candidate-country-group [data-slot="combobox-chips"] ui-combobox-chip button {
  width: 2rem;
  min-height: 2rem;
}
.candidate-country-preview::after { content: ""; }
#candidate-country-group [data-slot="combobox-chips"] ui-combobox-chip button {
  color: inherit;
  cursor: pointer;
}
.candidate-country-results {
  margin: 0;
  padding: 0.25rem;
  min-width: min(15rem, 85vw);
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  background: var(--sheet);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(17, 26, 22, 0.12);
}
.candidate-country-results:not([data-country-query]) { visibility: hidden; }
.candidate-country-results ui-combobox-item,
.candidate-country-results ui-combobox-empty { padding: 0.5rem 0.75rem; }
.candidate-country-results ui-combobox-item { border-radius: var(--radius-small); cursor: pointer; }
.candidate-country-results ui-combobox-item:is([data-highlighted], [data-selected]) { background: var(--green-wash); }

.candidate-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr));
  gap: 0.125rem 0.5rem;
  padding-top: 0.625rem;
}
.candidate-options--countries {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.candidate-options label,
.candidate-alert {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-small);
  background: var(--sheet);
  font-size: 0.9375rem;
  line-height: 1.35;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.candidate-alert { min-height: 3rem; }
.candidate-options label span,
.candidate-alert span { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.candidate-options label:active,
.candidate-alert:active { background: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .candidate-options label:hover,
  .candidate-alert:hover { background: var(--paper); }
}
.candidate-options input,
.candidate-alert input {
  flex: 0 0 auto;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  accent-color: var(--green);
  cursor: pointer;
}
.candidate-options label:has(input:checked) {
  background: var(--green-wash);
  color: var(--green-ink);
}
.candidate-options label:has(input:focus-visible),
.candidate-alert:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: -2px; }

.candidate-split { display: grid; border-top: 1px solid var(--rule); }
.candidate-split > .candidate-group + .candidate-group { padding-top: 0.25rem; }

.candidate-delivery {
  display: grid;
  gap: 1rem;
  align-items: end;
  padding: var(--pad);
  border-top: 1px solid var(--rule);
}

.candidate-actions {
  position: sticky;
  bottom: 0;
  z-index: 1;
  padding: 0.875rem var(--pad) calc(0.875rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--rule);
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(255, 255, 255, 0.97);
}
.candidate-actions .button { width: 100%; min-height: 3.25rem; font-size: 1.0625rem; }

.candidate-matches { margin-top: clamp(2rem, 5vw, 3rem); }
.candidate-matches .empty a { min-height: 2.75rem; }

@media (max-width: 22.5rem) {
  .page-candidate { --header: 8.5rem; }
  .candidate-options--countries { column-gap: 0.25rem; }
  .candidate-options--countries label { gap: 0.5rem; padding: 0.5rem; font-size: 0.875rem; }
}

@media (min-width: 36rem) {
  .candidate-options--countries { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .candidate-actions .button { width: auto; min-width: 12rem; }
}

@media (min-width: 48rem) {
  .candidate-split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .candidate-split > .candidate-group + .candidate-group { padding-top: var(--pad); border-left: 1px solid var(--rule); }
  .candidate-split .candidate-options { grid-template-columns: minmax(0, 1fr); }
  .candidate-split > .candidate-group + .candidate-group .candidate-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .candidate-delivery { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); }
}

@media (min-width: 56rem) {
  .candidate-options--countries { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (forced-colors: active) {
  .candidate-card, .candidate-countries summary, .candidate-field input, .candidate-field select { border: 1px solid CanvasText; }
  .candidate-field select { appearance: auto; background-image: none; }
  .candidate-access-visual { display: none; }
}

@media print {
  .account-menu, .candidate-actions, .candidate-access-visual { display: none; }
}
