.job-board {
  --job-green: #19664f;
  --job-green-dark: #124c3b;
  --job-green-soft: #edf7f2;
  --job-ink: #18231e;
  --job-muted: #68746e;
  --job-line: #dce7e1;
  --job-paper: #ffffff;
  width: min(1180px, calc(100% - 36px));
  margin: 28px auto 64px;
  color: var(--job-ink);
  font-family: inherit;
}

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

.job-board--home {
  margin-top: 22px;
  margin-bottom: 28px;
  padding: clamp(14px, 2.5vw, 28px);
  border: 1px solid rgba(25, 102, 79, .10);
  border-radius: clamp(24px, 3vw, 34px);
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 234, 220, .42), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(245,250,247,.94));
  box-shadow: 0 18px 54px rgba(24, 67, 51, .08);
}

.job-board__poster {
  position: relative;
  overflow: hidden;
  margin: 0 0 24px;
  border: 1px solid rgba(25, 102, 79, .10);
  border-radius: clamp(18px, 2.4vw, 28px);
  background: #edf4f0;
  box-shadow: 0 18px 46px rgba(28, 62, 48, .08);
}

.job-board__poster figure {
  display: grid;
  place-items: center;
  min-height: 220px;
  margin: 0;
}

.job-board__poster img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(620px, 68vh);
  object-fit: contain;
  object-position: center;
}

.job-board__poster-actions {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.job-board__poster-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(18, 76, 59, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--job-green-dark);
  font: inherit;
  font-size: .84rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(18, 55, 42, .12);
  backdrop-filter: blur(10px);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.job-board__poster-action:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 10px 26px rgba(18, 55, 42, .16);
}

.job-board__poster-action svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.job-board__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.job-board__eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--job-green);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.job-board__title {
  margin: 0;
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -.035em;
}

.job-board__head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.job-board__count,
.job-board__all-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
}

.job-board__count {
  background: var(--job-green-soft);
  color: var(--job-green-dark);
}

.job-board__all-link {
  border: 1px solid rgba(25, 102, 79, .20);
  background: #fff;
  color: var(--job-green-dark);
  text-decoration: none;
}

.job-board__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.job-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 224px;
  padding: 19px;
  border: 1px solid var(--job-line);
  border-radius: 20px;
  background: var(--job-paper);
  box-shadow: 0 8px 26px rgba(27, 60, 47, .05);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.job-card:hover {
  transform: translateY(-3px);
  border-color: rgba(25, 102, 79, .34);
  box-shadow: 0 16px 36px rgba(27, 60, 47, .11);
}

.job-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.job-card__title {
  min-width: 0;
  margin: 0;
  font-size: 1.13rem;
  line-height: 1.35;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.job-card__openings {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eff7f3;
  color: var(--job-green-dark);
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}

.job-card__tags,
.job-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.job-card__tags {
  min-height: 25px;
  margin-top: 10px;
}

.job-tag {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 7px;
  background: #f3f7f5;
  color: #536059;
  font-size: .74rem;
  font-weight: 700;
}

.job-card__facts {
  display: grid;
  gap: 8px;
  margin: 15px 0 18px;
  padding: 0;
  list-style: none;
}

.job-card__facts li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  color: var(--job-muted);
  font-size: .84rem;
  line-height: 1.48;
}

.job-card__facts svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--job-green);
}

.job-card__facts span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.job-card__button {
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  border: 1px solid rgba(25, 102, 79, .25);
  border-radius: 12px;
  background: #fff;
  color: var(--job-green-dark);
  font: inherit;
  font-size: .88rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.job-card__button:hover {
  border-color: var(--job-green);
  background: var(--job-green-soft);
}

.job-board__empty {
  grid-column: 1 / -1;
  padding: 34px 20px;
  border: 1px dashed #cbdad2;
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  text-align: center;
}

.job-board__empty h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.job-board__empty p {
  margin: 0;
  color: var(--job-muted);
  font-size: .88rem;
}

.job-board__toast {
  position: fixed;
  top: 84px;
  left: 50%;
  z-index: 1700;
  width: min(420px, calc(100vw - 32px));
  transform: translate(-50%, -18px);
  padding: 13px 16px;
  border-radius: 14px;
  background: #153f32;
  color: #fff;
  text-align: center;
  font-size: .9rem;
  font-weight: 700;
  box-shadow: 0 18px 44px rgba(11, 43, 32, .24);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease, transform .24s ease;
}

.job-board__toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.job-modal-open {
  overflow: hidden;
}

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

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

.job-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 28, 21, .58);
  backdrop-filter: blur(7px);
  cursor: default;
}

.job-modal__card {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(88vh, 880px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(8, 35, 25, .34);
  animation: jobModalIn .2s ease both;
}

.job-modal__card--apply {
  width: min(820px, 100%);
}

@keyframes jobModalIn {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.job-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--job-line);
}

.job-modal__head h2 {
  min-width: 0;
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.job-modal__close {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f0f5f2;
  color: #425047;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.job-modal__scroll {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 20px;
}

.job-detail__tags {
  margin-bottom: 16px;
}

.job-detail__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.job-detail__fact {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--job-line);
  border-radius: 12px;
  background: #fbfdfc;
}

.job-detail__fact small {
  display: block;
  margin-bottom: 3px;
  color: var(--job-muted);
  font-size: .72rem;
}

.job-detail__fact strong {
  display: block;
  font-size: .88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.job-detail__section + .job-detail__section {
  margin-top: 18px;
}

.job-detail__section h3 {
  margin: 0 0 7px;
  color: var(--job-green-dark);
  font-size: .94rem;
}

.job-detail__section p {
  margin: 0;
  color: #4d5953;
  font-size: .9rem;
  line-height: 1.75;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.job-detail__action {
  position: sticky;
  bottom: -20px;
  margin: 22px -20px -20px;
  padding: 14px 20px 20px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 28%);
}

.job-primary-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 13px;
  background: var(--job-green);
  color: #fff;
  font: inherit;
  font-size: .94rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(25, 102, 79, .20);
  transition: transform .18s ease, background .18s ease;
}

.job-primary-button:hover {
  transform: translateY(-1px);
  background: var(--job-green-dark);
}

.job-form-error {
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid #f1c8c3;
  border-radius: 11px;
  background: #fff4f2;
  color: #8a2f27;
  font-size: .86rem;
  font-weight: 650;
}

.job-apply-form {
  display: grid;
  gap: 14px;
}

.job-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.job-form-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  color: #33413a;
  font-size: .82rem;
  font-weight: 750;
}

.job-form-field--full {
  grid-column: 1 / -1;
}

.job-form-field input,
.job-form-field select,
.job-form-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d8e3dd;
  border-radius: 11px;
  background: #fff;
  color: var(--job-ink);
  font: inherit;
  font-size: .92rem;
  font-weight: 500;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.job-form-field input,
.job-form-field select {
  min-height: 44px;
  padding: 9px 11px;
}

.job-form-field textarea {
  min-height: 96px;
  padding: 10px 11px;
  resize: vertical;
  line-height: 1.55;
}

.job-form-field input:focus,
.job-form-field select:focus,
.job-form-field textarea:focus {
  border-color: rgba(25, 102, 79, .70);
  box-shadow: 0 0 0 3px rgba(25, 102, 79, .10);
}

.job-checkline {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  color: #405048;
  font-size: .86rem;
  line-height: 1.45;
  cursor: pointer;
}

.job-checkline input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--job-green);
}

.job-file-input {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 12px;
  border: 1px dashed #bdcec5;
  border-radius: 12px;
  background: #f9fcfa;
  text-align: center;
  cursor: pointer;
}

.job-file-input input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.job-file-input strong {
  color: var(--job-green-dark);
  font-size: .85rem;
}

.job-file-input span {
  display: block;
  max-width: 100%;
  margin-top: 4px;
  overflow: hidden;
  color: var(--job-muted);
  font-size: .75rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-form-submit {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.job-form-submit .job-primary-button {
  width: auto;
  min-width: 190px;
  padding-inline: 24px;
}

@media (max-width: 900px) {
  .job-board__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .job-board {
    width: calc(100% - 22px);
    margin-top: 18px;
    margin-bottom: 42px;
  }

  .job-board--home {
    padding: 11px;
    border-radius: 24px;
  }

  .job-board__poster {
    margin-bottom: 19px;
    border-radius: 18px;
  }

  .job-board__poster figure {
    min-height: 170px;
  }

  .job-board__poster img {
    max-height: 52vh;
  }

  .job-board__poster-actions {
    right: 9px;
    bottom: 9px;
  }

  .job-board__poster-action {
    min-height: 34px;
    padding: 7px 10px;
    font-size: .76rem;
  }

  .job-board__head {
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }

  .job-board__eyebrow {
    margin-bottom: 3px;
    font-size: .65rem;
  }

  .job-board__title {
    font-size: 1.32rem;
  }

  .job-board__head-actions {
    gap: 5px;
  }

  .job-board__count,
  .job-board__all-link {
    min-height: 30px;
    padding: 5px 9px;
    font-size: .72rem;
  }

  .job-board__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .job-card {
    min-height: 0;
    padding: 16px;
    border-radius: 17px;
  }

  .job-card__facts {
    margin: 13px 0 15px;
  }

  .job-modal {
    align-items: end;
    padding: 0;
  }

  .job-modal__card,
  .job-modal__card--apply {
    width: 100%;
    max-height: 94vh;
    border-radius: 22px 22px 0 0;
    animation-name: jobSheetIn;
  }

  @keyframes jobSheetIn {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .job-modal__head {
    padding: 15px 16px;
  }

  .job-modal__scroll {
    padding: 16px;
  }

  .job-detail__facts,
  .job-form-grid {
    grid-template-columns: 1fr;
  }

  .job-form-field--full {
    grid-column: auto;
  }

  .job-detail__action {
    bottom: -16px;
    margin: 19px -16px -16px;
    padding: 13px 16px 16px;
  }

  .job-form-submit .job-primary-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .job-card,
  .job-card__button,
  .job-primary-button,
  .job-board__poster-action,
  .job-board__toast,
  .job-modal__card {
    transition: none !important;
    animation: none !important;
  }
}
