:root {
  --jobs-navy: #0c1e35;
  --jobs-navy-soft: #173d62;
  --jobs-blue: #285486;
  --jobs-green: #5e9139;
  --jobs-green-dark: #3e6f2b;
  --jobs-gold: #e6bb49;
  --jobs-cream: #f7f9fc;
  --jobs-surface: #ffffff;
  --jobs-ink: #152942;
  --jobs-muted: #607084;
  --jobs-line: #dbe3ec;
  --jobs-shadow: 0 18px 55px rgba(12, 30, 53, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--jobs-ink);
  background: var(--jobs-cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.jobs-header {
  position: sticky;
  top: 0;
  z-index: 20;
  color: #f5f9ff;
  background: rgba(12, 30, 53, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.jobs-header-inner {
  display: flex;
  width: min(1200px, calc(100% - 36px));
  min-height: 72px;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
}

.jobs-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: #f5f9ff;
  text-decoration: none;
}

.jobs-brand-logo {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 11px;
  background: #ffffff;
}

.jobs-brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.jobs-brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.jobs-brand-copy strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jobs-brand-copy span {
  color: #bcd0e5;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jobs-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.jobs-nav a {
  color: #cfdae7;
  font-size: 13px;
  text-decoration: none;
}

.jobs-nav a:hover {
  color: #ffffff;
}

.jobs-nav .jobs-nav-cta {
  padding: 10px 14px;
  border: 1px solid rgba(230, 187, 73, 0.72);
  border-radius: 9px;
  color: #fffaf0;
  background: rgba(230, 187, 73, 0.14);
  font-weight: 600;
}

.jobs-hero {
  overflow: hidden;
  color: #f4f8fd;
  background:
    radial-gradient(circle at 80% 25%, rgba(94, 145, 57, 0.32), transparent 28%),
    linear-gradient(124deg, var(--jobs-navy), var(--jobs-navy-soft));
}

.jobs-hero-inner {
  display: grid;
  width: min(1200px, calc(100% - 36px));
  min-height: 410px;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 52px;
  margin: 0 auto;
  padding: 58px 0 82px;
}

.jobs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 17px;
  color: #dce8b9;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.jobs-kicker::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jobs-gold);
  content: "";
}

.jobs-hero h1 {
  max-width: 700px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 70px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.jobs-hero h1 span {
  color: #b9d96f;
}

.jobs-hero-copy {
  max-width: 610px;
  margin: 21px 0 0;
  color: #c8d7e8;
  font-size: clamp(15px, 2vw, 18px);
}

.jobs-hero-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 23px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #dbe7ef;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
}

.jobs-hero-note strong {
  color: #fff8dc;
  font-weight: 600;
}

.jobs-hero-mark {
  display: grid;
  min-height: 265px;
  place-items: center;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.2);
  transform: rotate(2deg);
}

.jobs-hero-mark img {
  display: block;
  width: min(100%, 280px);
  aspect-ratio: 1;
  object-fit: contain;
}

.jobs-search-shell {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 36px));
  margin: 28px auto 0;
  padding: 18px;
  border: 1px solid var(--jobs-line);
  border-top: 4px solid var(--jobs-green);
  border-radius: 18px;
  background: var(--jobs-surface);
  box-shadow: var(--jobs-shadow);
}

.jobs-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(190px, 0.75fr) auto;
  gap: 11px;
  align-items: end;
}

.jobs-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.jobs-field label {
  color: var(--jobs-muted);
  font-size: 12px;
  font-weight: 600;
}

.jobs-field input,
.jobs-field select,
.jobs-sort select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--jobs-line);
  border-radius: 10px;
  outline: none;
  color: var(--jobs-ink);
  background: #fbfcfe;
  font-size: 14px;
}

.jobs-field input:focus,
.jobs-field select:focus,
.jobs-sort select:focus {
  border-color: var(--jobs-green);
  box-shadow: 0 0 0 3px rgba(94, 145, 57, 0.18);
}

.jobs-query-wrap {
  position: relative;
}

.jobs-query-wrap::before {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--jobs-blue);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: translateY(-60%);
}

.jobs-query-wrap::after {
  position: absolute;
  top: calc(50% + 7px);
  left: 27px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--jobs-blue);
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
}

.jobs-query-wrap input {
  padding-left: 40px;
}

.jobs-search-button,
.jobs-apply-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 18px;
  border: 1px solid var(--jobs-green);
  border-radius: 10px;
  color: #ffffff;
  background: var(--jobs-green-dark);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.jobs-search-button:hover,
.jobs-apply-button:hover {
  background: var(--jobs-green);
}

.jobs-filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 11px;
  margin-top: 12px;
}

.jobs-filter-row .jobs-field label {
  color: #7a8796;
}

.jobs-clear-button {
  align-self: end;
  min-height: 46px;
  padding: 0 11px;
  border: 0;
  color: var(--jobs-blue);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.jobs-clear-button:hover {
  color: var(--jobs-green-dark);
  text-decoration: underline;
}

.jobs-main {
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.jobs-main-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.jobs-main-heading h2 {
  margin: 0;
  color: var(--jobs-ink);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.jobs-main-heading p {
  margin: 6px 0 0;
  color: var(--jobs-muted);
  font-size: 13px;
}

.jobs-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--jobs-muted);
  font-size: 13px;
  white-space: nowrap;
}

.jobs-sort select {
  width: auto;
  min-height: 38px;
  padding-right: 30px;
  font-size: 13px;
}

.jobs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.jobs-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.jobs-card {
  display: block;
  width: 100%;
  padding: 19px;
  border: 1px solid var(--jobs-line);
  border-radius: 15px;
  color: var(--jobs-ink);
  background: var(--jobs-surface);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.jobs-card:hover,
.jobs-card:focus-visible {
  border-color: rgba(94, 145, 57, 0.7);
  outline: none;
  box-shadow: 0 13px 28px rgba(12, 30, 53, 0.09);
  transform: translateY(-2px);
}

.jobs-card-top,
.jobs-company-line,
.jobs-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.jobs-company-line {
  justify-content: flex-start;
  min-width: 0;
}

.jobs-company-avatar {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  place-items: center;
  border-radius: 11px;
  color: #ffffff;
  background: var(--jobs-blue);
  font-size: 14px;
  font-weight: 700;
}

.jobs-company-name {
  overflow: hidden;
  color: var(--jobs-ink);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jobs-source {
  margin-top: 2px;
  color: var(--jobs-muted);
  font-size: 11px;
}

.jobs-preview-label {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border-radius: 999px;
  color: #806414;
  background: #fff6d8;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.jobs-card h3 {
  margin: 17px 0 5px;
  color: var(--jobs-ink);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.jobs-location {
  margin: 0;
  color: var(--jobs-muted);
  font-size: 13px;
}

.jobs-location::before {
  margin-right: 5px;
  color: var(--jobs-green);
  content: "•";
}

.jobs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.jobs-tag {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 8px;
  border-radius: 7px;
  color: var(--jobs-muted);
  background: #f0f4f8;
  font-size: 12px;
}

.jobs-tag:first-child {
  color: var(--jobs-green-dark);
  background: #e9f2dd;
}

.jobs-summary {
  display: -webkit-box;
  overflow: hidden;
  margin: 14px 0 16px;
  color: var(--jobs-muted);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.jobs-card-footer {
  padding-top: 12px;
  border-top: 1px solid var(--jobs-line);
}

.jobs-card-footer span {
  color: var(--jobs-muted);
  font-size: 11px;
}

.jobs-card-footer strong {
  color: var(--jobs-blue);
  font-size: 12px;
  font-weight: 600;
}

.jobs-sidebar {
  display: grid;
  gap: 15px;
}

.jobs-side-panel,
.jobs-employer-panel {
  padding: 21px;
  border: 1px solid var(--jobs-line);
  border-radius: 17px;
  background: var(--jobs-surface);
}

.jobs-side-panel h2,
.jobs-employer-panel h2 {
  margin: 0;
  color: var(--jobs-ink);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.jobs-eyebrow {
  margin: 0 0 9px;
  color: var(--jobs-green-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.jobs-side-copy,
.jobs-employer-panel p {
  margin: 11px 0 0;
  color: var(--jobs-muted);
  font-size: 13px;
}

.jobs-steps {
  display: grid;
  gap: 16px;
  margin: 23px 0 0;
  padding: 0;
  list-style: none;
}

.jobs-step {
  display: grid;
  grid-template-columns: 31px 1fr;
  gap: 11px;
  align-items: start;
}

.jobs-step-number {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 10px;
  color: var(--jobs-navy);
  background: var(--jobs-gold);
  font-size: 12px;
  font-weight: 700;
}

.jobs-step h3 {
  margin: 1px 0 3px;
  color: var(--jobs-ink);
  font-size: 14px;
  font-weight: 600;
}

.jobs-step p {
  margin: 0;
  color: var(--jobs-muted);
  font-size: 12px;
}

.jobs-employer-panel {
  color: #ffffff;
  background: var(--jobs-navy);
}

.jobs-employer-panel h2 {
  color: #ffffff;
}

.jobs-employer-panel p {
  color: #c2d2e5;
}

.jobs-employer-panel a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
  color: #fff4c8;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.jobs-employer-panel a:hover {
  text-decoration: underline;
}

.jobs-employer-panel a::after {
  content: "↗";
}

.jobs-empty {
  padding: 35px 18px;
  border: 1px dashed #b8c6d5;
  border-radius: 15px;
  color: var(--jobs-muted);
  background: var(--jobs-surface);
  text-align: center;
}

.jobs-empty strong {
  display: block;
  margin-bottom: 5px;
  color: var(--jobs-ink);
  font-weight: 600;
}

.jobs-employer-strip {
  color: #eaf1f9;
  background: var(--jobs-navy-soft);
}

.jobs-employer-inner {
  display: flex;
  width: min(1200px, calc(100% - 36px));
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto;
  padding: 32px 0;
}

.jobs-employer-inner h2 {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.jobs-employer-inner p {
  max-width: 620px;
  margin: 7px 0 0;
  color: #c9d8e9;
  font-size: 13px;
}

.jobs-apply-button {
  flex: 0 0 auto;
  color: var(--jobs-navy);
  background: var(--jobs-gold);
  border-color: var(--jobs-gold);
}

.jobs-apply-button:hover {
  color: var(--jobs-navy);
  background: #f0cc63;
}

.jobs-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 0;
  color: var(--jobs-muted);
  font-size: 12px;
}

.jobs-pagination[hidden] {
  display: none;
}

.jobs-page-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--jobs-line);
  border-radius: 9px;
  color: var(--jobs-blue);
  background: var(--jobs-surface);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.jobs-page-button:hover:not(:disabled) {
  border-color: var(--jobs-blue);
  background: #f1f5fa;
}

.jobs-page-button:disabled {
  color: #9aa7b6;
  background: #f3f5f8;
  cursor: not-allowed;
}

#jobs-page-status {
  min-width: 92px;
  text-align: center;
}

.jobs-footer {
  display: flex;
  width: min(1200px, calc(100% - 36px));
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 22px 0 28px;
  color: var(--jobs-muted);
  font-size: 12px;
}

.jobs-footer strong {
  color: var(--jobs-ink);
  font-weight: 600;
}

.jobs-footer a {
  color: var(--jobs-blue);
  text-decoration: none;
}

.jobs-footer a:hover {
  text-decoration: underline;
}

.job-modal[hidden] {
  display: none;
}

.job-modal {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.job-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 19, 34, 0.72);
}

.job-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(780px, calc(100vh - 44px));
  overflow: auto;
  padding: 27px;
  border-radius: 20px;
  background: var(--jobs-surface);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.job-dialog-close {
  position: absolute;
  top: 14px;
  right: 15px;
  width: 35px;
  height: 35px;
  border: 1px solid var(--jobs-line);
  border-radius: 50%;
  color: var(--jobs-muted);
  background: var(--jobs-surface);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.job-dialog-close:hover {
  color: var(--jobs-ink);
  border-color: var(--jobs-blue);
}

.job-detail-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding-right: 42px;
}

.job-detail-heading .jobs-company-avatar {
  width: 47px;
  height: 47px;
  flex-basis: 47px;
  font-size: 16px;
}

.job-detail-heading h2 {
  margin: 2px 0 5px;
  color: var(--jobs-ink);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.job-detail-company {
  margin: 0;
  color: var(--jobs-muted);
  font-size: 13px;
}

.job-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0;
}

.job-detail-section {
  padding-top: 17px;
  border-top: 1px solid var(--jobs-line);
}

.job-detail-section + .job-detail-section {
  margin-top: 17px;
}

.job-detail-section h3 {
  margin: 0 0 8px;
  color: var(--jobs-ink);
  font-size: 14px;
  font-weight: 600;
}

.job-detail-section p,
.job-detail-section li {
  color: var(--jobs-muted);
  font-size: 13px;
}

.job-detail-section p {
  margin: 0;
}

.job-detail-section ul,
.job-detail-section ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 19px;
}

.job-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.job-detail-actions a {
  flex: 1 1 220px;
}

.job-source-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--jobs-line);
  border-radius: 10px;
  color: var(--jobs-blue);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.job-source-link:hover {
  border-color: var(--jobs-blue);
  background: #f1f5fa;
}

.job-detail-disclaimer {
  margin: 15px 0 0;
  color: var(--jobs-muted);
  font-size: 11px;
}

@media (max-width: 880px) {
  .jobs-nav a:not(.jobs-nav-cta) {
    display: none;
  }

  .jobs-hero-inner {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 28px;
  }

  .jobs-hero-mark {
    min-height: 210px;
    padding: 14px;
  }

  .jobs-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .jobs-sidebar {
    grid-row: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .jobs-header-inner {
    width: min(100% - 28px, 1200px);
    min-height: 64px;
    gap: 13px;
  }

  .jobs-brand-logo {
    width: 37px;
    height: 37px;
    flex-basis: 37px;
  }

  .jobs-brand-copy strong {
    font-size: 13px;
  }

  .jobs-brand-copy span {
    font-size: 9px;
  }

  .jobs-nav .jobs-nav-cta {
    padding: 8px 10px;
    font-size: 12px;
  }

  .jobs-hero-inner {
    display: block;
    width: min(100% - 28px, 1200px);
    padding: 42px 0 95px;
  }

  .jobs-hero h1 {
    font-size: 43px;
  }

  .jobs-hero-mark {
    display: none;
  }

  .jobs-search-shell {
    width: calc(100% - 28px);
    margin-top: 16px;
    padding: 14px;
  }

  .jobs-search-row,
  .jobs-filter-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .jobs-clear-button {
    justify-self: start;
    min-height: 32px;
  }

  .jobs-main {
    width: calc(100% - 28px);
    padding-top: 32px;
  }

  .jobs-main-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .jobs-sort {
    width: 100%;
    justify-content: space-between;
  }

  .jobs-sort select {
    width: 61%;
  }

  .jobs-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .jobs-card-top,
  .jobs-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .jobs-employer-inner,
  .jobs-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .jobs-employer-inner {
    width: calc(100% - 28px);
    padding: 30px 0;
  }

  .jobs-footer {
    width: calc(100% - 28px);
  }

  .job-dialog {
    padding: 22px 17px;
  }

  .job-detail-heading h2 {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .jobs-card {
    transition: none;
  }
}
