/* Favourite control — job detail hero, apply card, browse cards, My hive */
.job-detail-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.85rem 1rem;
}
.job-detail-hero-meta {
  flex: 1;
  min-width: 0;
}
.job-detail-hero-top .job-detail-logo,
.job-detail-hero-top .job-detail-logo-img {
  margin-bottom: 0;
}
.job-detail-hero-fav {
  flex-shrink: 0;
  align-self: flex-start;
}
.job-detail-hero-fav .job-fav-form {
  margin: 0;
}
.job-fav-form {
  margin: 0;
}
.job-fav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: var(--btn-radius, 10px);
}
.job-fav-btn:hover,
.job-fav-btn.is-saved,
.job-fav-btn.is-active {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--green-bg);
}
.job-fav-btn-hero {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.45rem 0.8rem;
  font-size: 14px;
  min-height: 2.35rem;
}
.job-fav-btn-hero .fa-heart {
  font-size: 15px;
}
.job-card-fav-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}
.job-card-fav-btn:hover,
.job-card-fav-btn.is-active,
.job-card-fav-btn.is-saved {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--green-bg);
}
.dashboard-unfav-btn {
  border: none;
  background: none;
  padding: 0;
  color: var(--primary);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dashboard-unfav-btn:hover {
  color: var(--text-dark);
}
.dashboard-fav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  justify-content: flex-end;
}
@media (max-width: 768px) {
  .job-detail-page .job-detail-back {
    display: none;
  }
  .job-detail-hero-top {
    gap: 0.7rem 0.75rem;
  }
  .job-detail-hero-top .job-detail-logo,
  .job-detail-hero-top .job-detail-logo-img {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  .job-detail-title {
    font-size: 1.28rem;
    line-height: 1.28;
  }
  .job-detail-hero-fav {
    flex: 1 1 100%;
    width: 100%;
    margin-top: 0.15rem;
  }
  .job-detail-hero-fav .job-fav-form,
  .job-detail-hero-fav .job-fav-btn-hero {
    width: 100%;
  }
  .job-detail-poster-row {
    align-items: flex-start;
  }
  .job-detail-poster-row .job-detail-view-profile-btn {
    margin-left: 0;
  }
}
