/* Keep in sync with frontend/src/job-cards.css: independent static/Vue builds. */
.job-card.recruit-card {
  --jc-blue: #3867ed;
  --jc-ink: #202e49;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  height: 100%;
  padding: 22px;
  overflow: hidden;
  border: 1px solid #e3e9f4;
  border-radius: 20px;
  background: linear-gradient(155deg, #fff 68%, #f9fbff);
  box-shadow:
    0 2px 4px #20396803,
    0 8px 24px #20396805;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.job-card.recruit-card:hover {
  transform: translateY(-3px);
  border-color: #b9caf6;
  box-shadow:
    0 6px 12px #29457c06,
    0 16px 32px #29457c0d;
}
.recruit-card .jc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 24px;
}
.recruit-card .jc-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.recruit-card .jc-tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border: 1px solid #e8ecf4;
  border-radius: 7px;
  background: #f3f5f9;
  color: #65718a;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}
.recruit-card .jc-tag--season {
  color: #3d63cc;
  background: #eef3ff;
  border-color: #dfe8ff;
}
.recruit-card .jc-top-right {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
}
.recruit-card .jc-deadline {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  color: #7a8498;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 500;
  text-align: right;
}
.recruit-card .jc-deadline.urgent {
  color: #c77824;
}
.recruit-card .jc-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.recruit-card .jc-logo {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border: 1px solid #e0e8fd;
  border-radius: 14px;
  color: #466ccc;
  background: linear-gradient(135deg, #f0f5ff, #e6edff);
  box-shadow: inset 0 1px 0 #fff;
  font-size: 21px;
  font-weight: 700;
}
.recruit-card:nth-of-type(4n + 2) .jc-logo {
  color: #6f61ac;
  background: linear-gradient(135deg, #f5f2ff, #ece7fa);
  border-color: #e9e2f8;
}
.recruit-card:nth-of-type(4n + 3) .jc-logo {
  color: #398a85;
  background: linear-gradient(135deg, #eef9f7, #e1f1ed);
  border-color: #dfefea;
}
.recruit-card:nth-of-type(4n) .jc-logo {
  color: #ad8345;
  background: linear-gradient(135deg, #fffaef, #f8efdc);
  border-color: #f4ead4;
}
.recruit-card .jc-heading {
  flex: 1;
  min-width: 0;
}
.recruit-card .jc-co {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  color: var(--jc-ink);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.4px;
  overflow-wrap: anywhere;
}
.recruit-card .jc-company-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.recruit-card .jc-company-link:hover {
  color: var(--jc-blue);
}
.recruit-card .jc-new {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 2px 5px;
  border: 1px solid #f4dfb9;
  border-radius: 5px;
  background: #fff6e6;
  color: #b47a24;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: 0.5px;
}
.recruit-card .jc-subtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  margin-top: 5px;
  color: #7c879a;
  font-size: 11px;
  line-height: 1.5;
}
.recruit-card .jc-subtitle > span + span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 8px 3px 0;
  border-radius: 50%;
  background: #c3cad7;
}
.recruit-card .jc-meta {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  margin: 15px 0;
  font-size: 12px;
  line-height: 1.6;
  color: #66738c;
}
.recruit-card .jc-city {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.recruit-card .jc-city > i,
.recruit-card .jc-city > svg {
  display: inline;
  color: #8c9ab4;
  margin: 0 4px -2px 0;
}
.recruit-card .jc-pos {
  display: block;
  min-width: 0;
  min-height: 124px;
  padding: 13px 15px;
  margin: 0 0 15px;
  border: 1px solid #edf1f9;
  border-radius: 12px;
  background: #f5f7fc;
}
.recruit-card .jc-pos > .jdb-mask {
  display: inline-flex;
}
.recruit-card .jc-pos-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: #74819b;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.6px;
}
.recruit-card .jc-pos-label > i,
.recruit-card .jc-pos-label > svg {
  color: #6284dc;
  font-size: 14px;
  flex-shrink: 0;
}
.recruit-card .jc-pos > .jc-pos-text {
  display: -webkit-box;
  width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: #3c4b66;
  font-family: inherit;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.8;
  text-align: left;
}
.recruit-card .jc-position-link {
  border: 0;
  background: none;
  cursor: pointer;
}
.recruit-card .jc-position-link:hover {
  color: var(--jc-blue);
}
.recruit-card .jc-related {
  margin-left: auto;
  color: #8369b8;
  font-size: 9px;
  letter-spacing: 0;
}
.recruit-card .jc-info-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 17px;
  margin-top: auto;
  margin-bottom: 14px;
}
.recruit-card .jc-updated {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8a95a9;
  font-size: 10px;
  line-height: 1.5;
}
.recruit-card .jc-update-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #99b1e5;
}
.recruit-card .jc-tracked {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: #388b74;
}
.recruit-card .jc-score {
  color: #7261b1;
  font-size: 21px;
  font-weight: 650;
  text-align: right;
}
.recruit-card .jc-score small {
  display: block;
  color: #9487b2;
  font-size: 9px;
  font-weight: 400;
}
.recruit-card .jc-actions {
  display: flex;
  gap: 9px;
  padding-top: 15px;
  margin: 0;
  border-top: 1px solid #edf0f6;
}
.recruit-card .jc-actions .btn {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 40px;
  padding: 9px 8px;
  border: 1px solid #dfe6f2;
  border-radius: 10px;
  background: #fff;
  color: #53627d;
  box-shadow: 0 2px 3px #233b6704;
  font-family: inherit;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.18s,
    box-shadow 0.18s,
    border-color 0.18s;
}
.recruit-card .jc-actions .jc-apply:hover:not(:disabled) {
  color: var(--jc-blue);
  background: #f5f8ff;
  border-color: #bbcdf8;
}
.recruit-card .jc-actions .jc-add {
  color: #fff;
  background: linear-gradient(110deg, #477bf4, #315bd7);
  border-color: transparent;
  box-shadow: 0 4px 10px #3867ed24;
}
.recruit-card .jc-actions .jc-add:hover:not(:disabled) {
  background: linear-gradient(110deg, #386ce8, #284fc3);
  box-shadow: 0 5px 14px #3867ed35;
}
.recruit-card .jc-actions .jc-add:disabled,
.recruit-card .jc-actions .jc-add--tracked {
  opacity: 1;
  background: #ecf6f1;
  border-color: #d9ece3;
  color: #39816a;
  box-shadow: none;
}
.recruit-card .jc-actions .jc-add--tracked:hover {
  background: #e0f0e8;
  box-shadow: none;
}
.recruit-card .jc-actions .btn:disabled {
  cursor: default;
}
.recruit-card .jc-actions .jc-apply:disabled {
  opacity: 0.5;
}
.recruit-card .jc-quota {
  padding: 1px 4px;
  border-radius: 4px;
  background: #f0f3f8;
  color: #8993a5;
  font-size: 9px;
  font-weight: 400;
}
.recruit-card .jc-action-arrow {
  margin-left: auto;
  color: #9aa7bd;
}
.recruit-card button:focus-visible {
  outline: 3px solid #9bb6f5;
  outline-offset: 3px;
}
.job-card.recruit-card.job-card--expired,
.job-card.recruit-card.expired {
  opacity: 0.75;
  filter: grayscale(0.7);
  background: #f8f9fb;
}
.job-card.recruit-card.job-card--expired::after {
  content: none;
}
.job-card.recruit-card.job-card--expired:hover,
.job-card.recruit-card.expired:hover {
  transform: none;
  box-shadow: 0 2px 8px #20396806;
}
@media (max-width: 640px) {
  .job-card.recruit-card {
    padding: 18px !important;
    border-radius: 17px;
  }
  .recruit-card .jc-top {
    margin-bottom: 19px;
  }
  .recruit-card .jc-co {
    font-size: 17px;
  }
  .recruit-card .jc-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 19px;
  }
  .recruit-card .jc-meta {
    margin: 12px 0;
  }
  .recruit-card .jc-meta .jc-city {
    padding: 0 !important;
    font-size: 12px !important;
  }
  .recruit-card .jc-deadline {
    font-size: 11px;
  }
  .recruit-card .jc-pos {
    min-height: 0;
    padding: 12px 14px;
    margin-bottom: 12px;
  }
  .recruit-card .jc-pos > .jc-pos-text {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }
  .recruit-card .jc-actions {
    flex-direction: row !important;
    gap: 9px;
    padding-top: 13px;
  }
  .recruit-card .jc-actions .btn {
    min-height: 42px;
    padding: 9px 7px !important;
    font-size: 12px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .job-card.recruit-card,
  .recruit-card .jc-actions .btn {
    transition: none;
  }
  .job-card.recruit-card:hover {
    transform: none;
  }
}
