/* ============================================================
   Life Science Jobs homepage: section-specific styles
   Shared UI (buttons, cards, hero, stats, CTA, FAQ) is in common.css,
   the SVG art in art.css and the carousel in carousel.css.
   Sections: Hero · Latest jobs · Roles · Countries · Career support ·
             Job alerts · Employers · FAQ · About
   ============================================================ */

/* ── Hero: the H1 is long, so it stays smaller than the main site's ── */
@media (min-width: 768px) {
  .lsj-home .lsj-hero__title { font-size: 52px; }
}
@media (min-width: 1024px) {
  .lsj-home .lsj-hero__title { font-size: 58px; }
}
.lsj-home .lsj-hero + .lsj-sec { padding-top: 40px; }

/* Search form */
.lsj-home .lsj-search {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
  max-width: 640px;
  margin-top: 20px;
  padding: 8px;
  border: 1px solid var(--lsj-edge);
  border-radius: calc(var(--lsj-radius) + 4px);
  background: #fff;
}
.lsj-home .lsj-search__field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 12px;
  border-radius: calc(var(--lsj-radius) - 2px);
  color: var(--lsj-subtle);
  font-size: 16px;
  transition: background-color .2s;
}
.lsj-home .lsj-search__field + .lsj-search__field { border-left: 1px solid var(--lsj-border); border-radius: 0; }
.lsj-home .lsj-search__field:focus-within { background: var(--lsj-ghost-hover); }
.lsj-home .lsj-search .lsj-search__field input {
  width: 100%;
  min-width: 0;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: var(--lsj-fg);
  font: 400 15px/1.4 var(--lsj-font);
}
.lsj-home .lsj-search input::placeholder { color: var(--lsj-subtle); opacity: 1; }
.lsj-home .lsj-search input::-webkit-search-cancel-button { display: none; }
.lsj-home .lsj-search__btn { height: 40px; border: 0; cursor: pointer; }

/* Popular links under the search */
.lsj-home .lsj-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.lsj-home .lsj-quick__label { margin-right: 4px; font-size: 13px; color: var(--lsj-subtle); }
.lsj-home .lsj-chip {
  display: inline-flex;
  padding: 3px 10px;
  border: 1px solid var(--lsj-tag);
  border-radius: 9999px;
  background: #fff;
  color: var(--lsj-muted);
  font-size: 13px;
  line-height: 1.5;
  transition: color .2s, border-color .2s;
}
.lsj-home .lsj-chip:hover { color: var(--lsj-brand); border-color: var(--lsj-edge-hover); }

/* ── Feature rows (section head + animated art) ───────────────── */
.lsj-home .lsj-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.lsj-home .lsj-feature .lsj-head { margin-bottom: 0; }
.lsj-home .lsj-feature--flip .lsj-art { order: -1; }
.lsj-home .lsj-feature + :is(.lsj-grid, .lsj-countries) { margin-top: 40px; }
.lsj-home .lsj-empty { margin-top: 32px; color: var(--lsj-muted); }

/* ── Latest jobs: job card ────────────────────────────────────── */
.lsj-home .lsj-jcard { height: 100%; }
.lsj-home .lsj-jcard__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 12px;
  color: var(--lsj-subtle);
}
.lsj-home .lsj-jcard__title {
  margin-top: 12px;
  font-family: var(--lsj-font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--lsj-fg);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lsj-home .lsj-jcard__facts { display: grid; gap: 6px; margin-top: 12px; font-size: 14px; color: var(--lsj-muted); }
.lsj-home .lsj-jcard__facts li { display: flex; align-items: flex-start; gap: 8px; }
.lsj-home .lsj-jcard__facts .lsj-icon { margin-top: 3px; font-size: 14px; color: var(--lsj-subtle); }
.lsj-home .lsj-jcard__facts span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lsj-home .lsj-jcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}
.lsj-home .lsj-jcard__foot .lsj-link { margin-top: 0; margin-left: auto; }

/* ── Roles ────────────────────────────────────────────────────── */
.lsj-home .lsj-role__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lsj-home .lsj-role .lsj-link { margin-top: auto; padding-top: 14px; }

/* ── Countries ────────────────────────────────────────────────── */
.lsj-home .lsj-countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 12px; }
.lsj-home .lsj-country { flex-direction: row; align-items: center; gap: 12px; padding: 14px 16px; }
.lsj-home .lsj-country__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--lsj-border);
  border-radius: var(--lsj-radius);
  background: var(--lsj-ico-bg);
  color: var(--lsj-hl);
  font-family: var(--lsj-font-mono);
  font-size: 13px;
  font-weight: 500;
}
.lsj-home .lsj-country__body { display: flex; flex-direction: column; min-width: 0; }
.lsj-home .lsj-country__name { font-family: var(--lsj-font-display); font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--lsj-fg); }
.lsj-home .lsj-country__note { font-size: 13px; color: var(--lsj-subtle); transition: color .2s; }
.lsj-home .lsj-country:not(.lsj-country--soon):hover .lsj-country__note { color: var(--lsj-brand); }
.lsj-home .lsj-country--soon,
.lsj-home .lsj-country--soon:hover { opacity: .6; border-color: var(--lsj-edge); }

/* ── Job alerts: WhatsApp channel card ────────────────────────── */
.lsj-home .lsj-channel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; }
.lsj-home .lsj-channel .lsj-card__title { margin-top: 0; }
.lsj-home .lsj-channel__body { display: flex; flex-direction: column; }
.lsj-home .lsj-channel__foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}
.lsj-home .lsj-channel__foot .lsj-link { margin-top: 0; }

/* ── Employers: panel with art ────────────────────────────────── */
.lsj-home .lsj-employer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 32px;
  align-items: center;
  padding: 32px;
  opacity: 1;
  background:
    radial-gradient(70% 90% at 100% 100%, rgb(253 186 116 / .12), transparent 70%),
    var(--lsj-fill);
}
.lsj-home .lsj-employer .lsj-head { margin-bottom: 0; }

/* ── FAQ ──────────────────────────────────────────────────────── */
.lsj-home #lsj-faq .lsj-head { margin-bottom: 32px; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 767px) {
  .lsj-home .lsj-feature,
  .lsj-home .lsj-employer { grid-template-columns: minmax(0, 1fr); }
  .lsj-home .lsj-feature--flip .lsj-art { order: 0; }
  .lsj-home .lsj-employer { padding: 24px; }
}
@media (max-width: 639px) {
  .lsj-home .lsj-search { grid-template-columns: minmax(0, 1fr); }
  .lsj-home .lsj-search__field + .lsj-search__field { border-left: 0; border-top: 1px solid var(--lsj-border); }
  .lsj-home .lsj-search__btn { justify-content: center; }
  .lsj-home .lsj-countries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lsj-home .lsj-country { padding: 12px; }
  .lsj-home .lsj-country__code { width: 34px; height: 34px; font-size: 12px; }
}
