@font-face{font-family:"Golos Text";src:url("golos-latin.DaADdAaaEBDE.woff2") format("woff2");font-weight:400 900;font-display:swap;unicode-range:U+0000-024F,U+2000-206F}
@font-face{font-family:"Golos Text";src:url("golos-cyrillic.BBdAECcaAFcb.woff2") format("woff2");font-weight:400 900;font-display:swap;unicode-range:U+0400-052F}
/* Toza Ish — the tozaish.uz visual system.
   Taken from the mesto third pass: warm paper, graphite, ruled rows, square 4px
   controls, Golos Text, bottom filter sheet, sticky mobile contact bar, bottom nav.
   Toza's own: the green check-mark wordmark and one accent, #15803d (white text
   5.0:1), distinct from aren.uz jade #0b6b62 and homecare.uz amber #c98a2b.
   Order: tokens, base, chrome, lists, detail, sheet, responsive (640 / 1024). */

:root {
  color-scheme: light;
  --bg: #f6f7f2;
  --surface: #fffffc;
  --subtle: #eceee6;
  --text: #1c241e;
  --muted: #545e55;
  --line: #d9ddd2;
  --line-strong: #27302a;
  --control: #7d867a;
  --accent: #15803d;
  --accent-hover: #166534;
  --accent-ink: #ffffff;
  --accent-soft: #e4f3e8;
  --accent-mark: #a6e3ba;
  --focus: #0b3d1e;
  --backdrop: #161d17b3;

  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --text-display: clamp(1.875rem, 6.2vw, 3rem);
  --text-title: clamp(1.75rem, 5.4vw, 2.625rem);
  --text-section: clamp(1.25rem, 3.4vw, 1.5rem);
  --text-job: 1.125rem;
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-meta: 0.8125rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --gutter: var(--space-4);
  --page-max: 72rem;
  --reading: 42rem;
  --control-h: 3rem;
  --touch: 2.75rem;
  --radius: 0.25rem;
  --radius-sheet: 0.75rem;
  --nav-h: 4rem;
  --bar-h: 4.75rem;
  --fast: 140ms ease;
}

/* ---- base ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--space-6);
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--text);
  font: 400 var(--text-body) / 1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
body.has-action-bar {
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}
main {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding-bottom: var(--space-12);
}
a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h2 {
  font-size: var(--text-section);
}
ul {
  margin: 0;
  padding-left: var(--space-6);
}
li + li {
  margin-top: var(--space-2);
}
svg {
  vertical-align: middle;
}
::selection {
  background: var(--accent-mark);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
.container {
  width: min(var(--page-max), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
.icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.px {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

/* ---- controls ------------------------------------------------------------ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-h);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--text);
  border-radius: var(--radius);
  background: var(--text);
  color: var(--surface);
  font-size: var(--text-small);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  transition: background var(--fast), border-color var(--fast);
}
.button.accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}
.button.accent:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}
.button.outline {
  border-color: var(--control);
  background: transparent;
  color: var(--text);
}
.button.outline:hover {
  border-color: var(--line-strong);
  background: var(--subtle);
}
.button.outline:disabled {
  border-color: var(--line);
  color: var(--muted);
  cursor: default;
}
.button.small {
  min-height: var(--touch);
  padding-block: var(--space-2);
}
.button.wide {
  width: 100%;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--touch);
  height: var(--touch);
  border-radius: var(--radius);
  color: var(--text);
}
.icon-button:hover {
  background: var(--subtle);
}
[data-fav][aria-pressed="true"] {
  color: var(--accent-hover);
}
[data-fav][aria-pressed="true"] .icon {
  fill: currentColor;
}
.text-button {
  min-height: var(--touch);
  padding: 0;
  font-size: var(--text-small);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding-inline: var(--space-1);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tag-top {
  display: inline-flex;
  align-items: center;
  padding: 0 var(--space-2);
  border-radius: 3px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

/* ---- chrome: header, footer, bottom nav ----------------------------------- */
.site-header {
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 3.75rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--touch);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
}
.brand-mark {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}
.brand-mark rect {
  fill: var(--accent);
}
.brand-mark path {
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wordmark.small {
  font-size: 1.125rem;
}
.wordmark.small .brand-mark {
  width: 1.25rem;
  height: 1.25rem;
}
.desktop-nav {
  display: none;
}
.header-end {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-left: auto;
}
.header-post {
  display: none;
}
.lang {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-meta);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.lang a,
.lang-current {
  display: inline-grid;
  place-items: center;
  min-width: var(--touch);
  min-height: var(--touch);
  border-radius: var(--radius);
}
.lang-current {
  background: var(--subtle);
}
.lang a {
  color: var(--muted);
}
.lang a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.site-footer {
  border-top: 1px solid var(--line-strong);
  padding-block: var(--space-8);
  font-size: var(--text-small);
}
.footer-inner {
  display: grid;
  gap: var(--space-6);
}
.footer-brand p {
  margin-top: var(--space-2);
  max-width: 36ch;
  color: var(--muted);
}
.footer-nav {
  display: grid;
  gap: var(--space-2);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-6);
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  font-weight: 500;
}
.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.mobile-nav {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  min-height: var(--nav-h);
  padding: var(--space-1) var(--space-2) env(safe-area-inset-bottom);
  border-top: 1px solid var(--line-strong);
  background: var(--bg);
}
.mobile-nav a {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  min-height: var(--touch);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
}
.mobile-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}
.mobile-nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--space-1));
  width: var(--space-8);
  height: 2px;
  background: var(--accent);
}
.mobile-nav .count-badge {
  position: absolute;
  top: var(--space-1);
  left: calc(50% + var(--space-2));
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bar-h) + var(--space-4) + env(safe-area-inset-bottom));
  z-index: 60;
  max-width: calc(100% - 2 * var(--gutter));
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  background: var(--text);
  color: var(--surface);
  font-size: var(--text-small);
  transform: translateX(-50%);
}

/* ---- cover, toolbar, chips ------------------------------------------------ */
.cover {
  padding-block: var(--space-6) var(--space-4);
}
.cover h1 {
  max-width: 24ch;
  font-size: var(--text-display);
  text-decoration: underline solid var(--accent-mark) 0.16em;
  text-underline-offset: 0.1em;
  text-decoration-skip-ink: none;
}
.cover--landing h1 {
  font-size: var(--text-title);
}
.cover-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: var(--text-small);
}
.live-dot {
  width: var(--space-2);
  height: var(--space-2);
  border-radius: 50%;
  background: var(--accent);
}
.eyebrow {
  margin-bottom: var(--space-2);
  color: var(--muted);
  font-size: var(--text-meta);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.toolbar {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.search-field {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  padding-left: var(--space-3);
  border: 1px solid var(--control);
  border-radius: var(--radius);
  background: var(--surface);
}
.search-field:focus-within {
  border-color: var(--line-strong);
}
.search-field > .icon {
  color: var(--muted);
}
.search-field input {
  flex: 1;
  min-width: 0;
  min-height: var(--control-h);
  padding: 0;
  border: 0;
  background: transparent;
  font-size: var(--text-body);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.search-field input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.search-field .button {
  margin: var(--space-1);
  min-height: 2.5rem;
}
.filter-open {
  justify-self: start;
  min-height: var(--touch);
}
.chip-strip {
  display: flex;
  gap: var(--space-2);
  margin-inline: calc(-1 * var(--gutter));
  padding: var(--space-2) var(--gutter) var(--space-4);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.chip-strip + .chip-strip {
  padding-top: 0;
}
.chip-strip::-webkit-scrollbar {
  display: none;
}
.chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--touch);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: var(--text-small);
  font-weight: 500;
  white-space: nowrap;
}
.chip small {
  color: var(--muted);
  font-size: var(--text-meta);
  font-variant-numeric: tabular-nums;
}
.chip:hover,
.chip[aria-current="page"] {
  border-color: var(--line-strong);
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 var(--space-2);
  padding-top: var(--space-2);
  color: var(--muted);
  font-size: var(--text-small);
}
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--touch);
}
.breadcrumb a:hover {
  color: var(--text);
}
.breadcrumb .icon {
  width: 1rem;
  height: 1rem;
}

/* ---- job rows --------------------------------------------------------------- */
.section-title {
  margin: var(--space-4) 0 var(--space-3);
}
.job-list {
  border-top: 1px solid var(--line-strong);
}
.job-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--touch);
  grid-template-areas: "title save" "money save" "context context" "perks perks" "employer employer" "meta meta";
  align-items: start;
  gap: var(--space-1) var(--space-3);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.job-row::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * var(--space-3));
  z-index: -1;
  transition: background var(--fast);
}
.job-row:hover::before,
.job-row:focus-within::before {
  background: var(--subtle);
}
.job-row--top::before {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}
.job-title {
  grid-area: title;
  font-size: var(--text-job);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.job-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.job-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.job-row .save {
  grid-area: save;
  position: relative;
  z-index: 1;
  margin-top: calc(-1 * var(--space-2));
}
.salary {
  grid-area: money;
  font-size: var(--text-job);
  font-weight: 700;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.job-context {
  grid-area: context;
  font-size: var(--text-small);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.job-context span + span {
  color: var(--muted);
}
.job-context span + span::before {
  content: "·";
  margin-inline: 0.4em;
  color: var(--muted);
}
.job-meta > * + *::before {
  content: "·";
  margin-right: var(--space-2);
  color: var(--muted);
}
.job-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
  color: var(--muted);
  font-size: var(--text-meta);
}
.job-meta .tag-top + *::before {
  content: none;
}
.empty-note {
  max-width: var(--reading);
  padding-block: var(--space-6);
  color: var(--muted);
}
.landing-channel {
  margin: var(--space-4) 0 var(--space-6);
  font-size: var(--text-small);
}
.landing-channel a,
.crosslink a {
  color: var(--accent-hover);
  text-underline-offset: 0.2em;
}
.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-6);
}
.pagination a[rel="next"] {
  justify-self: end;
}
.pagination a[rel="prev"] {
  justify-self: start;
}
.page-status {
  color: var(--muted);
  font-size: var(--text-small);
  font-variant-numeric: tabular-nums;
}
.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin: var(--space-4) 0 var(--space-3);
}
.results-head h2 {
  font-size: var(--text-job);
}
.results .button.wide {
  margin-top: var(--space-6);
}
/* Standalone text links get a 44 px tap height (walk 2026-10-24): the padding
   grows the hit area, the equal negative margin keeps the line where it was. */
.crosslink a,
.landing-channel a,
.cover-meta a,
.home-faq > p:last-child > a {
  display: inline-block;
  padding-block: 0.875rem;
  margin-block: -0.875rem;
}
/* Zero results: the newest vacancies under the empty message (walk 2026-10-24). */
.empty-fresh {
  margin-bottom: var(--space-6);
}
.empty-fresh h3 {
  margin: 0 0 var(--space-2);
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 600;
}
.submit-panel {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-12);
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-sheet);
  background: var(--surface);
}
.submit-panel p {
  margin-top: var(--space-2);
  color: var(--muted);
}
.submit-panel .button {
  justify-self: start;
}

/* ---- vacancy page ---------------------------------------------------------- */
.job-layout {
  display: grid;
  gap: var(--space-6);
  padding-top: var(--space-2);
}
.detail-main {
  min-width: 0;
  max-width: var(--reading);
}
.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.detail-head .detail-topline {
  margin-bottom: 0;
}
.detail-tools {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--space-2);
}
.detail-topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
  margin-bottom: var(--space-3);
  color: var(--muted);
  font-size: var(--text-body);
}
.detail-topline > span:not(.tag-top) + *::before,
.detail-topline > span:not(.tag-top) ~ time::before {
  content: "·";
  margin-right: var(--space-2);
}
.detail-title {
  font-size: var(--text-title);
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.title-place {
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.detail-salary {
  margin-top: var(--space-4);
  color: var(--accent-hover);
  font-size: clamp(1.75rem, 6vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.detail-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-6);
  padding-block: var(--space-4);
  border-block: 1px solid var(--line-strong);
}
.detail-summary dt,
.facts dt {
  color: var(--muted);
  font-size: var(--text-meta);
}
.detail-summary dd {
  font-size: var(--text-body);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.detail-body {
  margin-top: var(--space-6);
}
.detail-body > * + * {
  margin-top: var(--space-6);
}
.lead {
  font-size: 1.0625rem;
  line-height: 1.6;
}
.facts {
  display: grid;
  gap: var(--space-3);
}
.facts div {
  display: grid;
  gap: 2px;
}
.facts dd {
  overflow-wrap: anywhere;
}
.detail-body > [data-employer-text] {
  margin-top: var(--space-6);
}
.detail-section {
  margin-top: var(--space-6);
}
.detail-section h2 {
  margin-bottom: var(--space-3);
  font-size: 1.1875rem;
}
.detail-note {
  overflow-wrap: anywhere;
}
.source-note {
  display: grid;
  gap: var(--space-1);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-body);
}
.source-note span:first-child:not(:last-child) {
  font-weight: 600;
}
.crosslink {
  margin-top: var(--space-4);
  font-size: var(--text-body);
}
.crosslink-host {
  color: var(--muted);
  white-space: nowrap;
}
.detail-aside {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  padding: var(--space-3) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-strong);
  background: var(--surface);
}
.action-salary {
  display: none;
}
.detail-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.detail-actions .contact,
.detail-actions .reveal {
  flex: 1 1 0;
  min-width: 0;
  min-height: var(--control-h);
  padding-inline: var(--space-2);
  white-space: nowrap;
}
.detail-actions {
  flex-wrap: wrap;
}
.detail-actions .reveal {
  order: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Feedback and revealed text ellipsize within their half of the row. */
.detail-actions button.reveal {
  display: block;
}
.detail-actions .reveal-contacts {
  order: 1;
  flex: 1 1 100%;
  display: grid;
  gap: var(--space-2);
}
.detail-actions .reveal-note {
  order: 2;
  flex: 1 1 100%;
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-small);
  white-space: normal;
  overflow-wrap: anywhere;
}
body:has(.detail-actions .reveal-contacts) {
  --bar-h: calc(4.75rem + var(--control-h) + var(--control-h) + var(--space-2) + var(--space-2));
}
body:has(.detail-actions .reveal-note:not([hidden])) {
  --bar-h: calc(4.75rem + 1.5rem + var(--space-2));
}
body:has(.detail-actions .reveal-contacts):has(.detail-actions .reveal-note:not([hidden])) {
  --bar-h: calc(4.75rem + var(--control-h) + var(--control-h) + 1.5rem + var(--space-2) + var(--space-2) + var(--space-2));
}
@media (max-width: 22.4375em) {
  .detail-actions .contact .icon {
    display: none;
  }
}
.status-badge {
  display: inline-block;
  margin-bottom: var(--space-3);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: var(--text-body);
  font-weight: 700;
}
.detail-closed {
  padding-block: var(--space-4) var(--space-2);
}
.detail-closed .detail-topline {
  margin-top: var(--space-3);
}
.detail-salary--old {
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 600;
}
.detail-closed > .button {
  width: 100%;
  font-size: var(--text-body);
}
.closed-text {
  max-width: 46ch;
  margin: var(--space-3) 0 var(--space-6);
  color: var(--muted);
}
/* Vacancy page text is 16 px: summary labels, facts, similar rows, breadcrumb. */
.detail-summary dt,
.detail-body .facts dt,
.related-section .job-context,
.related-section .job-meta {
  font-size: var(--text-body);
}
.detail-topline .tag-top {
  font-size: var(--text-small);
}
/* The vacancy breadcrumb stays one line: the role crumb is cut, never wrapped. */
main:has(.detail-main) .breadcrumb {
  flex-wrap: nowrap;
  font-size: var(--text-body);
  white-space: nowrap;
}
main:has(.detail-main) .breadcrumb > :last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
main:has(.detail-main) .breadcrumb > :last-child span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.related-section {
  margin-top: var(--space-12);
}
.related-section h2 {
  margin-bottom: var(--space-3);
}
.notfound {
  padding-block: var(--space-12) var(--space-6);
}

/* ---- filter sheet ---------------------------------------------------------- */
.sheet {
  position: fixed;
  inset: auto 0 0;
  width: 100%;
  max-width: none;
  max-height: calc(100dvh - var(--space-6));
  margin: auto 0 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1rem 4rem #161d1733;
  overflow: hidden;
}
.sheet[open] {
  display: flex;
}
.sheet::backdrop {
  background: var(--backdrop);
}
.sheet-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}
.sheet-head,
.sheet-foot {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--gutter);
}
.sheet-head {
  border-bottom: 1px solid var(--line);
}
.sheet-head h2 {
  font-size: var(--text-job);
}
.sheet-foot {
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.sheet-foot .button {
  flex: 1;
}
.sheet-body {
  display: grid;
  gap: var(--space-6);
  min-height: 0;
  padding: var(--space-4) var(--gutter) var(--space-6);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.field {
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-small);
  font-weight: 600;
}
.field select {
  width: 100%;
  min-height: var(--control-h);
  padding: 0 var(--space-3);
  border: 1px solid var(--control);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: var(--text-body);
  font-weight: 400;
}
.choice-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.choice-group legend {
  margin-bottom: var(--space-2);
  padding: 0;
  font-size: var(--text-small);
  font-weight: 600;
}
.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}
.choice {
  position: relative;
}
.choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
}
.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  padding: var(--space-2);
  border: 1px solid var(--control);
  border-radius: var(--radius);
  font-size: var(--text-small);
  text-align: center;
  cursor: pointer;
}
.choice input:checked + span {
  border-color: var(--text);
  background: var(--text);
  color: var(--surface);
}
.choice input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* ---- 640px: tablet ---------------------------------------------------------- */
@media (min-width: 40em) {
  :root {
    --gutter: var(--space-8);
  }
  .cover {
    padding-block: var(--space-8) var(--space-6);
  }
  .toolbar {
    grid-template-columns: minmax(0, 36rem) auto;
    align-items: center;
  }
  .filter-open {
    min-height: var(--control-h);
  }
  .choices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .detail-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .detail-aside .action-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    max-width: var(--page-max);
    margin-inline: auto;
  }
  .action-salary {
    display: block;
    font-size: var(--text-job);
    font-weight: 700;
    white-space: nowrap;
  }
  .detail-aside .detail-actions {
    flex: 1;
    justify-content: flex-end;
  }
  .submit-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .sheet {
    inset: 0;
    width: min(34rem, calc(100% - 2 * var(--gutter)));
    max-height: min(44rem, calc(100dvh - 2 * var(--space-8)));
    margin: auto;
    border-radius: var(--radius-sheet);
  }
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}

/* ---- 1024px: desktop -------------------------------------------------------- */
@media (min-width: 64em) {
  body,
  body.has-action-bar {
    padding-bottom: 0;
  }
  .mobile-nav {
    display: none;
  }
  .header-inner {
    min-height: 4.25rem;
  }
  .wordmark {
    font-size: 1.5rem;
  }
  .desktop-nav {
    display: flex;
    gap: var(--space-6);
    font-size: var(--text-small);
    font-weight: 500;
  }
  .desktop-nav a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: var(--touch);
    color: var(--muted);
  }
  .desktop-nav a:hover,
  .desktop-nav a[aria-current="page"] {
    color: var(--text);
  }
  .desktop-nav a[aria-current="page"] {
    box-shadow: inset 0 -2px 0 var(--accent);
  }
  .header-post {
    display: inline-flex;
  }
  .cover {
    padding-block: var(--space-12) var(--space-6);
  }
  .chip-strip {
    flex-wrap: wrap;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
  .job-row {
    grid-template-columns: minmax(0, 1fr) 13rem 12rem var(--touch);
    grid-template-areas: "title meta money save" "context meta money save" "perks perks perks perks" "employer employer employer employer";
    gap: var(--space-1) var(--space-6);
    padding-block: var(--space-4);
  }
  .job-row .save {
    margin-top: calc(-1 * var(--space-3));
  }
  .job-meta {
    align-self: start;
    padding-top: 0.2rem;
  }
  .salary {
    text-align: right;
  }
  .job-layout {
    grid-template-columns: minmax(0, 1fr) 22rem;
    gap: var(--space-12);
    align-items: start;
    padding-top: var(--space-6);
  }
  .detail-aside {
    position: sticky;
    inset: auto;
    top: var(--space-6);
    padding: var(--space-6);
    border: 1px solid var(--line);
    border-radius: var(--radius-sheet);
  }
  .detail-aside .action-card {
    display: grid;
    gap: var(--space-4);
  }
  .action-salary {
    font-size: 1.375rem;
    white-space: normal;
  }
  .detail-aside .detail-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .toast {
    bottom: var(--space-8);
  }
}

/* Stage 6 editorial pages: readable measure and the answer box. */
.prose {
  max-width: 68ch;
}
.prose .lead {
  margin: 0 0 20px;
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
  font-weight: 600;
}

/* First-screen layout since readout 2026-10-31 (B won); no split. :root keeps the old
   arm-B specificity, so the cascade is unchanged.
   Listings fit the first phone screen; chips and submit panels follow the list. */
:root main[data-page-type] {
  display: flex;
  flex-direction: column;
}
:root main[data-page-type] > .chip-strip {
  order: 1;
}
:root main[data-page-type] > .landing-channel,
:root main[data-page-type] > .submit-panel {
  order: 2;
}
/* Reserve the toolbar space until app.js enables it, without a layout shift. */
:root main[data-page-type] .toolbar[hidden] {
  display: grid !important;
  visibility: hidden;
}
:root main[data-page-type] > .chip-strip:first-of-type {
  padding-top: var(--space-4);
}
@media (max-width: 39.9375em) {
  :root main[data-page-type] .breadcrumb {
    padding-top: 0;
  }
  :root main[data-page-type] .cover {
    padding-block: var(--space-3) var(--space-1);
  }
  /* One line: the size follows the H1's own length (--h1-ch, set by the build). */
  :root main[data-page-type] .cover h1 {
    max-width: none;
    font-size: clamp(0.9375rem, calc((100vw - 2 * var(--gutter)) / (var(--h1-ch, 20) * 0.56)), 1.75rem);
  }
  :root main[data-page-type] .cover-meta {
    margin-top: var(--space-1);
  }
  :root main[data-page-type] .toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: var(--space-3);
  }
  :root main[data-page-type] .search-field .button {
    padding-inline: var(--space-3);
  }
  :root main[data-page-type] .filter-open {
    position: relative;
    width: var(--control-h);
    min-height: var(--control-h);
    padding: 0;
  }
  :root main[data-page-type] .filter-open > span:not(.count-badge) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  :root main[data-page-type] .filter-open .count-badge {
    position: absolute;
    top: calc(-1 * var(--space-2));
    right: calc(-1 * var(--space-2));
  }
  :root main[data-page-type] .section-title {
    margin-top: var(--space-2);
    font-size: var(--text-job);
  }
}
@media (max-width: 22.4375em) {
  :root main[data-page-type] .search-field > .icon {
    display: none;
  }
}

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

/* Published benefits stay on one line on phones; rows are complete before paint. */
.job-perks {
  grid-area: perks;
  position: relative;
  z-index: 1;
  display: flex;
  gap: var(--space-3);
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  font-size: var(--text-meta);
  color: var(--muted);
}
.job-perks > span { flex: 0 0 auto; }
.perk { display: inline-flex; align-items: center; gap: 0.25rem; }
.perk .icon { width: 0.875rem; height: 0.875rem; }
.employer-other {
  grid-area: employer;
  position: relative;
  z-index: 1;
  width: fit-content;
  font-size: var(--text-meta);
  color: var(--accent-hover);
}
.listing-controls { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-block: var(--space-3); }
.facet-chips { display: flex; gap: var(--space-2); max-width: 100%; overflow-x: auto; }
.facet-chips .chip { flex: 0 0 auto; }
.facet-chips .chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.sort-control { margin-left: auto; }
.sort-control select { font: inherit; font-size: var(--text-small); padding: 0.5rem; max-width: 100%; }
.post-vacancy { margin-top: var(--space-2); }
@media (max-width: 39.9375em) {
  main[data-page-type] > .submit-panel {
    padding-inline: 0;
    border-inline: 0;
  }
}
.mobile-nav[data-listing-nav] { grid-template-columns: repeat(2, 1fr); }
/* Reserve enhancement controls so enabling JavaScript does not move the cards. */
.listing-controls[hidden] { display: flex !important; visibility: hidden; }
