/* Jobs directory: compact, utility-led controls that stay within the existing site system. */
body.jobs-page {
  --ink: #2d4775;
  --blue: var(--_teamworthy-colors---teamworthy-light-blue);
  --blue-deep: #2352ae;
  --blue-soft: #e8f0ff;
  --blue-soft-strong: #d7e5ff;
  --paper: #f3f1ef;
  --mist: #eef2f8;
  --line: #cdd5e1;
  --muted: #63718a;
  color: var(--ink);
  background: #fff;
  font-family: Inter, "Avenir Next", "Segoe UI", sans-serif;
}

body.jobs-page *,
body.jobs-page *::before,
body.jobs-page *::after { box-sizing: border-box; }

body.jobs-page .navbar { position: relative !important; background: var(--ink); }
body.jobs-page .brand { margin-left: max(24px, calc((100% - 1100px) / 2)); }
body.jobs-page .brand img,
body.jobs-page .menu-button-2 img { filter: brightness(0) invert(1); }

body.jobs-page .skip-link {
  position: absolute; z-index: 9; top: -60px; left: 12px; padding: 10px 12px;
  background: var(--blue); color: #fff; font-size: 13px; font-weight: 700;
}
body.jobs-page .skip-link:focus { top: 12px; }

body.jobs-page button,
body.jobs-page input,
body.jobs-page select { font: inherit; }
body.jobs-page button,
body.jobs-page .job-card { cursor: pointer; }
body.jobs-page button:focus-visible,
body.jobs-page a:focus-visible,
body.jobs-page input:focus-visible,
body.jobs-page select:focus-visible,
body.jobs-page [role="combobox"]:focus-visible,
body.jobs-page [role="option"]:focus-visible {
  outline: 3px solid #336ddf;
  outline-offset: 3px;
}
body.jobs-page button:disabled,
body.jobs-page input:disabled,
body.jobs-page [role="combobox"][aria-disabled="true"] {
  cursor: not-allowed; opacity: .52;
}

body.jobs-page .jobs-hero {
  display: flex; align-items: end; justify-content: space-between;
  min-height: 294px; padding: 55px 24px 46px; overflow: hidden;
  background: var(--ink); color: #fff;
}
body.jobs-page .jobs-hero > div:first-child { width: 100%; max-width: 1100px; margin: 0 auto; }
body.jobs-page .jobs-hero h1 {
  margin: 31px 0 10px; font-size: 32px; font-weight: 700;
  letter-spacing: -.04em; line-height: 1.15;
}
body.jobs-page .jobs-hero p { margin: 0 0 13px; color: #d7e1f6; font-size: 18px; }
body.jobs-page .hero-subtitle { font-size: 24px !important; }

body.jobs-page .jobs-shell {
  position: relative; max-width: 1100px; min-width: 0; margin: 0 auto;
  padding: 0 24px 72px;
}
body.jobs-page .demo-note {
  display: flex; align-items: center; gap: 20px; min-width: 0;
  margin: 20px 0 14px; color: var(--muted); font-size: 12px;
}
body.jobs-page .demo-note strong {
  flex: 0 0 auto; font-size: 10px; letter-spacing: .12em; white-space: nowrap;
}
body.jobs-page .demo-note span { min-width: 0; overflow-wrap: anywhere; }

body.jobs-page .filters {
  display: grid; grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(108px, 1fr));
  align-items: end; gap: 13px; min-width: 0; padding: 10px 0; background: #fff;
}
body.jobs-page .filters[hidden],
body.jobs-page #jobs-main [hidden] { display: none !important; }
body.jobs-page .filters > * { min-width: 0; }
body.jobs-page .filters label {
  display: grid; gap: 6px; min-width: 0; color: var(--ink);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
/* Custom controls use a div wrapper and an explicit direct-child label span. */
body.jobs-page .filters > .jobs-filter-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
body.jobs-page .filters > .jobs-filter-field > .filter-label {
  display: block;
  min-width: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
}
body.jobs-page .filters input:not([type="hidden"]),
body.jobs-page .filters select,
body.jobs-page .filters button { width: 100%; min-width: 0; max-width: 100%; }
body.jobs-page .filters input:not([type="hidden"]),
body.jobs-page .filters select,
body.jobs-page .sort-label select {
  min-height: 42px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 2px;
  background: #fff; color: var(--ink); font-size: 13px; letter-spacing: 0; text-transform: none;
}
body.jobs-page .filters input:not([type="hidden"])::placeholder { color: #7d8aa0; opacity: 1; }
body.jobs-page .filters input:not([type="hidden"]):hover,
body.jobs-page .filters select:hover { border-color: #99a9c4; }
body.jobs-page .filters input:not([type="hidden"]):focus,
body.jobs-page .filters select:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 2px var(--blue-soft); }

/* The original select values are deliberately hidden by the jobs script. */
body.jobs-page .filters input[type="hidden"] { display: none !important; }
body.jobs-page .jobs-combobox { position: relative; min-width: 0; text-transform: none; }
body.jobs-page .combo-trigger {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; min-height: 42px; padding: 9px 29px 9px 10px; border: 1px solid var(--line);
  border-radius: 2px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 400;
  letter-spacing: 0; line-height: 1.25; text-align: left; text-transform: none; transition: border-color .15s, background-color .15s;
}
body.jobs-page .combo-trigger::after {
  position: absolute; right: 11px; top: 50%; width: 7px; height: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  content: ""; transform: translateY(-70%) rotate(45deg); transition: transform .15s;
}
body.jobs-page .combo-trigger:hover { border-color: #99a9c4; background: #fafbfe; }
body.jobs-page .combo-trigger[aria-expanded="true"] { border-color: var(--blue); background: #f5f8ff; box-shadow: 0 0 0 2px var(--blue-soft); }
body.jobs-page .combo-trigger[aria-expanded="true"]::after { transform: translateY(-28%) rotate(225deg); }
body.jobs-page .combo-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.jobs-page .combo-trigger:disabled { border-color: var(--line); background: var(--mist); color: #78869e; }

/* Fixed positioning is calculated in JS; never constrain this popup to its grid cell. */
body.jobs-page .combo-menu {
  position: fixed; z-index: 50; display: grid; gap: 7px; min-width: 180px;
  max-width: min(420px, calc(100vw - 20px)); max-height: min(340px, calc(100dvh - 24px));
  padding: 7px; overflow: hidden; border: 1px solid #aab8d0; border-radius: 3px;
  background: #fff; box-shadow: 0 14px 30px rgba(31, 53, 92, .18); color: var(--ink);
}
body.jobs-page .combo-menu[hidden] { display: none !important; }
body.jobs-page .combo-search {
  width: 100%; min-width: 0; min-height: 35px; padding: 7px 9px; border: 1px solid var(--line);
  border-radius: 2px; background: #f8faff; color: var(--ink); font-size: 12px; text-transform: none;
}
body.jobs-page .combo-search::placeholder { color: #77859d; }
body.jobs-page .combo-search:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 2px var(--blue-soft); }
body.jobs-page .combo-list {
  display: grid; gap: 1px; min-height: 0; max-height: 245px; margin: 0; padding: 0;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #aab8d0 transparent;
}
body.jobs-page .combo-option {
  display: block; width: 100%; min-width: 0; padding: 8px 9px; border: 0; border-radius: 2px;
  background: transparent; color: var(--ink); font-size: 13px; font-weight: 400; letter-spacing: 0;
  line-height: 1.3; text-align: left; text-transform: none; overflow-wrap: anywhere;
}
body.jobs-page .combo-option:hover,
body.jobs-page .combo-option:focus-visible { background: #edf1fa; outline: 0; }
/* Roving keyboard focus and selection use coordinated blue emphasis. */
body.jobs-page .combo-option.is-active,
body.jobs-page .combo-option[data-active="true"] {
  background: #dce8fb;
  box-shadow: inset 3px 0 0 #4d72bd;
  color: #243f70;
}
body.jobs-page .combo-option[aria-selected="true"] { background: var(--blue-soft); color: var(--blue-deep); font-weight: 700; }
body.jobs-page .combo-option[aria-selected="true"].is-active,
body.jobs-page .combo-option[aria-selected="true"][data-active="true"] {
  background: var(--blue-soft-strong);
  box-shadow: inset 3px 0 0 var(--blue-deep);
}
body.jobs-page .combo-option[aria-selected="true"]::after { float: right; margin-left: 8px; content: "Selected"; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
body.jobs-page .combo-empty { padding: 12px 9px; color: var(--muted); font-size: 12px; line-height: 1.4; text-transform: none; }

body.jobs-page .search-button,
body.jobs-page .state button {
  min-height: 42px; padding: 9px 14px; border: 0; background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 700; transition: background-color .15s, transform .15s;
}
body.jobs-page .search-button:hover,
body.jobs-page .state button:hover { background: var(--blue-deep); }
body.jobs-page .search-button:active,
body.jobs-page .state button:active { transform: translateY(1px); }
body.jobs-page .clear-button {
  justify-self: start; width: auto !important; min-height: 42px; padding: 0; border: 0;
  background: none; color: var(--blue); font-size: 12px; font-weight: 600; text-decoration: underline;
  text-underline-offset: 2px;
}
body.jobs-page .clear-button:hover { color: var(--blue-deep); }

body.jobs-page .active-filters {
  display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 4px 0 10px;
}
body.jobs-page .active-filters[hidden] { display: none !important; }
body.jobs-page .active-filters h2 {
  flex: 0 0 auto; margin: 7px 0 0; color: var(--muted); font-size: 10px;
  letter-spacing: .08em; line-height: 1.3; text-transform: uppercase;
}
body.jobs-page .active-filter-list {
  display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 6px; min-width: 0;
}
body.jobs-page .active-filter {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-height: 28px;
  padding: 5px 8px; border: 1px solid #b8c4d8; border-radius: 2px; background: #f5f7fb;
  color: var(--ink); font: inherit; font-size: 11px; line-height: 1.3; text-align: left;
}
body.jobs-page .active-filter:hover { border-color: var(--blue); background: #edf1fa; }
body.jobs-page .active-filter:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
body.jobs-page .active-filter-text {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
body.jobs-page .active-filter-category { color: var(--muted); font-weight: 700; }
body.jobs-page .active-filter-remove { flex: 0 0 auto; color: var(--blue); font-size: 16px; line-height: .8; }

body.jobs-page .results-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0;
  margin: 35px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
body.jobs-page .results-bar p { min-width: 0; margin: 0; font-size: 16px; overflow-wrap: anywhere; }
body.jobs-page .sort-label { display: flex; align-items: center; flex: 0 1 auto; gap: 5px; min-width: 0; font-size: 12px; font-weight: 600; }
body.jobs-page .sort-label select { width: auto; min-height: auto; padding: 3px; border: 0; background: transparent; }

body.jobs-page #view,
body.jobs-page .jobs-list { min-width: 0; }
body.jobs-page .jobs-list { display: grid; gap: 11px; }
body.jobs-page .job-card {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(120px, .8fr) minmax(120px, .7fr) minmax(190px, .95fr);
  grid-template-areas:
    "company location team salary"
    "demo demo demo demo";
  align-items: center; gap: 20px;
  width: 100%; min-width: 0; padding: 23px 25px; border: 0; border-left: 4px solid transparent;
  background: #fff; color: var(--ink); text-align: left; text-decoration: none;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
body.jobs-page .job-card > * { min-width: 0; }
body.jobs-page .job-card:hover { border-left-color: var(--blue); transform: translateX(4px); box-shadow: 0 8px 20px rgba(48, 71, 116, .09); }
body.jobs-page .job-card:focus-visible { outline-offset: 2px; }
body.jobs-page .job-card-company {
  grid-area: company; display: flex; align-items: center; gap: 13px; min-width: 0;
}
body.jobs-page .job-card-company > * { min-width: 0; }
body.jobs-page .job-card-company > .company-logo { flex: 0 0 auto; }
body.jobs-page .job-location { grid-area: location; }
body.jobs-page .job-team { grid-area: team; }
body.jobs-page .job-title,
body.jobs-page .company-name,
body.jobs-page .meta { overflow-wrap: anywhere; word-break: break-word; }
body.jobs-page .job-title { display: block; margin-bottom: 6px; font-size: 22px; line-height: 1.13; }
body.jobs-page .company-name { display: block; color: var(--blue); font-size: 13px; font-weight: 600; }
body.jobs-page .meta { min-width: 0; font-size: 12px; line-height: 1.55; }
body.jobs-page .meta b { display: block; color: #78869e; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
body.jobs-page .workplace-inline { display: block; margin-top: 3px; color: var(--muted); }
body.jobs-page .salary { grid-area: salary; color: var(--ink); font-weight: 600; }
body.jobs-page .detail-meta .salary { grid-area: auto; }
body.jobs-page .demo-tag { grid-area: demo; min-width: 0; padding: 5px 7px; border: 1px solid #a7b9dc; font-size: 9px; letter-spacing: .12em; overflow-wrap: anywhere; }
body.jobs-page .load-more {
  display: block; max-width: 100%; margin: 28px auto 0; padding: 11px 25px; border: 1px solid var(--ink);
  background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; overflow-wrap: anywhere;
}
body.jobs-page .load-more:hover { background: var(--ink); color: #fff; }

body.jobs-page .state { min-width: 0; padding: 55px 25px; background: #fff; text-align: center; }
body.jobs-page .state h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.03em; overflow-wrap: anywhere; }
body.jobs-page .state p { max-width: 440px; margin: 0 auto 18px; color: var(--muted); overflow-wrap: anywhere; }
body.jobs-page .skeleton { height: 100px; background: linear-gradient(90deg, #e8edf6, #f8f9fb, #e8edf6); background-size: 200% 100%; animation: jobs-shine 1.2s infinite; }
@keyframes jobs-shine { to { background-position: -200% 0; } }

body.jobs-page .detail { max-width: 860px; min-width: 0; margin: 0 auto; padding: clamp(25px, 6vw, 65px); background: #fff; }
body.jobs-page .detail h2 { min-width: 0; margin: 14px 0; font-size: clamp(34px, 5vw, 54px); letter-spacing: -.045em; line-height: 1; overflow-wrap: anywhere; word-break: break-word; }
body.jobs-page .detail-company {
  display: grid; width: 160px; max-width: 40%; min-width: 0;
}
body.jobs-page .detail-company .company-logo--detail { width: 100%; max-width: 100%; }
body.jobs-page .detail .apply-top { margin: 0 0 20px; }
body.jobs-page .detail-meta { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 25px 0; }
body.jobs-page .pill { max-width: 100%; padding: 6px 10px; border: 1px solid var(--line); font-size: 11px; overflow-wrap: anywhere; word-break: break-word; }
body.jobs-page .description { min-width: 0; color: #45536b; line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; word-break: break-word; }
body.jobs-page .apply {
  display: inline-block; max-width: 100%; margin-top: 25px; padding: 13px 21px;
  border: 0; background: var(--_teamworthy-colors---teamworthy-dark-blue);
  color: #fff; font-size: 14px; font-weight: 700; line-height: 1.4;
  text-align: center; text-decoration: none; white-space: normal; overflow-wrap: anywhere;
}
body.jobs-page .apply:visited,
body.jobs-page .apply:hover,
body.jobs-page .apply:focus,
body.jobs-page .apply:active { color: #fff; text-decoration: none; }
body.jobs-page .apply:hover { background: #243759; }
body.jobs-page .apply-note { margin-top: 9px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
body.jobs-page .application-panel {
  position: relative; margin: 0 0 30px; padding: clamp(22px, 3vw, 32px);
  border: 1px solid #c6d1e2; border-top: 3px solid var(--blue);
  background: #f5f8fc; box-shadow: 0 8px 22px rgba(45, 71, 117, .06);
}
body.jobs-page .application-panel[hidden] { display: none; }
body.jobs-page .application-panel h3 { margin: 0 0 7px; color: var(--ink); font-size: clamp(21px, 2.5vw, 25px); letter-spacing: -.02em; }
body.jobs-page .application-panel > p { max-width: 610px; margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.6; }
body.jobs-page .application-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px 13px; }
body.jobs-page .application-field { display: grid; gap: 7px; min-width: 0; }
body.jobs-page .application-field label {
  color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .055em; line-height: 1.2;
  text-transform: uppercase;
}
body.jobs-page .application-field input {
  width: 100%; min-width: 0; min-height: 46px; padding: 11px 12px;
  border: 1px solid #aeb9ca; border-radius: 2px; background: #fff; color: var(--ink); font: inherit;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
body.jobs-page .application-field input::placeholder { color: #8996aa; opacity: .72; }
body.jobs-page .application-field input:hover { border-color: #8798b3; }
body.jobs-page .application-field input:focus { outline: 0; border-color: var(--blue); background: #fcfdff; box-shadow: 0 0 0 3px var(--blue-soft); }
body.jobs-page .application-field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(167, 43, 43, .14); }
body.jobs-page .application-field input[aria-invalid="true"] { border-color: #a72b2b; }
body.jobs-page .field-error { min-height: 15px; margin: -1px 0 0; color: #8e2020; font-size: 12px; line-height: 1.25; }
body.jobs-page .application-status { grid-column: 1 / -1; min-height: 20px; margin: 0; color: #45536b; font-size: 13px; overflow-wrap: anywhere; }
body.jobs-page .application-form > .apply { grid-column: 1 / -1; justify-self: start; margin-top: 0; }
body.jobs-page .application-cancel { min-height: 44px; padding: 10px 16px; border: 1px solid #758198; background: #fff; color: #243759; font-weight: 700; }
body.jobs-page .application-form button:disabled { opacity: .65; cursor: wait; }
body.jobs-page .noscript { padding: 18px; background: #fff3cf; text-align: center; }
body.jobs-page .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

@media (max-width: 1000px) {
  body.jobs-page .filters { grid-template-columns: minmax(220px, 1.7fr) repeat(2, minmax(130px, 1fr)); }
  body.jobs-page .search-field { grid-column: span 2; }
  body.jobs-page .clear-button { justify-self: end; }
}
@media (max-width: 800px) {
  body.jobs-page .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.jobs-page .search-field { grid-column: 1 / -1; }
  body.jobs-page .application-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.jobs-page .job-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "company company"
      "location team"
      "salary salary"
      "demo demo";
  }
  body.jobs-page .job-card .demo-tag { justify-self: start; }
  body.jobs-page .jobs-hero { min-height: 285px; }
  body.jobs-page .footer { margin-top: 30px !important; }
}
@media (max-width: 520px) {
  body.jobs-page { overflow-x: clip; }
  body.jobs-page .jobs-shell { padding: 0 16px calc(48px + env(safe-area-inset-bottom)); }
  body.jobs-page .filters { grid-template-columns: 1fr; gap: 12px; padding: 16px 0; }
  body.jobs-page .search-field { grid-column: auto; }
  body.jobs-page .clear-button { justify-self: start; min-height: 44px; padding: 0 8px; }
  body.jobs-page .filters input:not([type="hidden"]),
  body.jobs-page .combo-trigger,
  body.jobs-page .search-button { min-height: 44px; }
  body.jobs-page .filters input:not([type="hidden"]) { font-size: 16px; }
  body.jobs-page .job-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "company" "location" "team" "salary" "demo";
    gap: 13px; padding: 20px;
  }
  body.jobs-page .results-bar { flex-direction: column; align-items: flex-start; }
  body.jobs-page .demo-note { flex-direction: column; align-items: flex-start; gap: 5px; }
  body.jobs-page .combo-menu { max-width: calc(100vw - 16px); }
  body.jobs-page .active-filters { display: grid; gap: 7px; }
  body.jobs-page .active-filters h2 { margin-top: 0; }
  body.jobs-page .detail .apply,
  body.jobs-page .state button { width: 100%; min-height: 48px; text-align: center; }
  body.jobs-page .application-panel { padding: 18px; }
  body.jobs-page .application-form { grid-template-columns: 1fr; gap: 14px; }
  body.jobs-page .application-form-actions { display: grid; grid-template-columns: 1fr; }
  body.jobs-page .application-form-actions .application-cancel { width: 100%; }
  body.jobs-page .application-form > .apply { width: 100%; }
  body.jobs-page .detail h2 { font-size: clamp(32px, 10vw, 44px); }
}
@media (max-width: 330px) {
  body.jobs-page .jobs-hero { padding-right: 16px; padding-left: 16px; }
  body.jobs-page .jobs-shell { padding-right: 10px; padding-left: 10px; }
  body.jobs-page .job-title { font-size: 20px; }
  body.jobs-page .state, body.jobs-page .detail { padding-right: 18px; padding-left: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  body.jobs-page *, body.jobs-page *::before, body.jobs-page *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    scroll-behavior: auto !important; transition-duration: .01ms !important;
  }
}