/* ============================================================
   Life Science Jobs Pages: shared page UI, scoped under .lsj-page
   Reset, layout, type, buttons, cards, tags, stats, CTA, FAQ, reveal.
   The hero layout lives in art.css (only pages with hero art use it).

   Look: white page, near-black type, neutral greys, ONE highlight
   phrase per paragraph (.lsj-hl). Orange only on link hover and the
   hero badge glint. Cards: warm hairline, faint fill, 4px blur, no
   shadow, 14px radius. Solid button: top-right + bottom-left corners;
   outline button mirrored.

   Specificity: the reset is (0,1,2) so it beats theme element rules
   such as ".elementor-kit-5 h2" (0,1,1); every component rule is
   ".lsj-page .x" (0,2,0) so it beats the reset.
   ============================================================ */

.lsj-page *,
.lsj-page *::before,
.lsj-page *::after { box-sizing: border-box; }

.lsj-page {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  background: var(--lsj-bg);
  color: var(--lsj-fg);
  font-family: var(--lsj-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: light;
}

/* ── Theme-proof reset ───────────────────────────────────────── */
.lsj-page :is(h1, h2, h3, h4, p, ul, ol, li, dl, dt, dd):is(h1, h2, h3, h4, p, ul, ol, li, dl, dt, dd) {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
}
.lsj-page :is(ul, ol):is(ul, ol) { list-style: none; }
.lsj-page.lsj-page :is(a, button):is(a, button),
.lsj-page.lsj-page :is(a, button):is(a, button):is(:hover, :focus, :visited) { text-decoration: none; box-shadow: none; }
.lsj-page :is(a, button):is(a, button):focus-visible { outline: 2px solid var(--lsj-fg); outline-offset: 2px; }
.lsj-page img { display: block; max-width: 100%; height: auto; }

.lsj-page .lsj-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
}
.lsj-page .lsj-icon svg { display: block; width: 100%; height: 100%; }
.lsj-page .lsj-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Layout ───────────────────────────────────────────────────── */
.lsj-page .lsj-wrap { width: 100%; max-width: var(--lsj-wrap); margin-inline: auto; padding-inline: 24px; }
.lsj-page .lsj-sec { padding-top: 64px; }
.lsj-page .lsj-sec--last { padding-bottom: 96px; }
.lsj-page .lsj-grid { display: grid; gap: 16px; }
.lsj-page .lsj-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lsj-page .lsj-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lsj-page .lsj-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lsj-page .lsj-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }

/* ── Type ─────────────────────────────────────────────────────── */
.lsj-page .lsj-hl {
  font-family: var(--lsj-font-display);
  font-weight: 500;
  letter-spacing: -.025em;
  text-transform: capitalize;
  color: var(--lsj-hl);
}
.lsj-page .lsj-h2 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--lsj-fg);
  text-wrap: balance;
}
.lsj-page .lsj-lead { margin-top: 8px; max-width: 672px; font-size: 16px; line-height: 1.65; color: var(--lsj-muted); }
.lsj-page .lsj-text { margin-top: 14px; font-size: 15px; color: var(--lsj-muted); }
.lsj-page .lsj-head { margin-bottom: 32px; }
.lsj-page .lsj-head--center { text-align: center; }
.lsj-page .lsj-head--center .lsj-lead { margin-inline: auto; }

/* ── Buttons and links ────────────────────────────────────────── */
.lsj-page .lsj-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.lsj-page .lsj-actions :is(.lsj-link, .lsj-viewall) { margin-top: 0; }
.lsj-page .lsj-btn-solid,
.lsj-page .lsj-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding-inline: 16px;
  font-family: var(--lsj-font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.lsj-page .lsj-btn-solid { border-radius: 0 var(--lsj-radius) 0 var(--lsj-radius); background: var(--lsj-solid-bg); color: var(--lsj-solid-fg); }
.lsj-page .lsj-btn-solid:hover { background: var(--lsj-solid-hover); color: var(--lsj-solid-fg); }
.lsj-page .lsj-btn-solid .lsj-icon { margin-left: -4px; font-size: 16px; }
.lsj-page .lsj-btn-outline { border: 1px solid var(--lsj-border); border-radius: var(--lsj-radius) 0 var(--lsj-radius) 0; background: transparent; color: var(--lsj-fg); }
.lsj-page .lsj-btn-outline:hover { background: var(--lsj-ghost-hover); color: var(--lsj-fg); }

.lsj-page .lsj-btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 32px;
  padding-inline: 12px;
  border-radius: calc(var(--lsj-radius) - 2px);
  background: var(--lsj-primary);
  color: var(--lsj-primary-fg);
  font-size: 14px;
  font-weight: 600;
  transition: opacity .2s;
}
.lsj-page .lsj-btn-card:hover { opacity: .9; color: var(--lsj-primary-fg); }

.lsj-page .lsj-viewall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin-top: 24px;
  padding-inline: 24px;
  border-radius: calc(var(--lsj-radius) - 2px);
  background: var(--lsj-viewall-bg);
  color: var(--lsj-viewall-fg);
  font-family: var(--lsj-font-display);
  font-size: 14px;
  transition: color .2s;
}
.lsj-page .lsj-viewall:hover { color: var(--lsj-brand); }
.lsj-page .lsj-viewall .lsj-icon { margin-left: -4px; }

.lsj-page .lsj-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--lsj-fg);
  transition: color .2s;
}
.lsj-page .lsj-link .lsj-icon { font-size: 14px; }
.lsj-page .lsj-link:hover,
.lsj-page .lsj-card:hover .lsj-link { color: var(--lsj-brand); }

/* ── Cards, icons, tags ───────────────────────────────────────── */
.lsj-page .lsj-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--lsj-edge);
  border-radius: calc(var(--lsj-radius) + 4px);
  background: var(--lsj-fill);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  transition: border-color .3s, opacity .3s;
}
.lsj-page .lsj-card:hover { border-color: var(--lsj-edge-hover); opacity: 1; }
.lsj-page .lsj-card__title {
  margin-top: 16px;
  font-family: var(--lsj-font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--lsj-fg);
}
.lsj-page .lsj-card__text { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--lsj-muted); }
.lsj-page .lsj-card > .lsj-link:last-child { margin-top: auto; padding-top: 14px; }
.lsj-page .lsj-stretch,
.lsj-page .lsj-stretch:hover { color: inherit; }
.lsj-page .lsj-stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.lsj-page .lsj-ico {
  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-fg);
  font-size: 20px;
}
.lsj-page .lsj-ico--wa { color: var(--lsj-ok); }

.lsj-page .lsj-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid var(--lsj-tag);
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--lsj-muted);
  white-space: nowrap;
}

/* Diamond bullet list */
.lsj-page .lsj-points { display: grid; gap: 8px; margin-top: 20px; }
.lsj-page .lsj-points li { position: relative; padding-left: 24px; font-size: 15px; color: var(--lsj-fg); }
.lsj-page .lsj-points li::before {
  content: "";
  position: absolute;
  top: .55em;
  left: 4px;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--lsj-subtle);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* Stat strip */
.lsj-page .lsj-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 40px; }
.lsj-page .lsj-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lsj-page .lsj-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 16px; text-align: center; }
.lsj-page .lsj-stat + .lsj-stat { border-left: 1px solid var(--lsj-border); }
.lsj-page .lsj-stat__value {
  font-family: var(--lsj-font-display);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--lsj-fg);
  font-variant-numeric: tabular-nums;
}
.lsj-page .lsj-stat__label { font-size: 14px; color: var(--lsj-muted); }

/* Values (icon + title + text, no card) */
.lsj-page .lsj-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.lsj-page .lsj-value .lsj-card__title { margin-top: 14px; }

/* ── CTA panel ────────────────────────────────────────────────── */
.lsj-page .lsj-cta { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px 32px; margin-top: 24px; padding: 28px; }
.lsj-page .lsj-cta__title { font-family: var(--lsj-font-display); font-size: 22px; font-weight: 600; line-height: 1.3; color: var(--lsj-fg); }
.lsj-page .lsj-cta__text { margin-top: 6px; }
.lsj-page .lsj-cta .lsj-actions { flex-shrink: 0; margin-top: 0; }

/* ── FAQ (components/faq.php) ─────────────────────────────────── */
.lsj-page .lsj-faq { display: grid; gap: 12px; max-width: 880px; }
.lsj-page .lsj-faq--center { margin-inline: auto; }
.lsj-page .lsj-faq__item { border: 1px solid var(--lsj-edge); border-radius: calc(var(--lsj-radius) + 4px); background: var(--lsj-fill); transition: border-color .3s; }
.lsj-page .lsj-faq__item:hover,
.lsj-page .lsj-faq__item[open] { border-color: var(--lsj-edge-hover); }
.lsj-page .lsj-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-family: var(--lsj-font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--lsj-fg);
  list-style: none;
  cursor: pointer;
}
.lsj-page .lsj-faq__q::-webkit-details-marker { display: none; }
.lsj-page .lsj-faq__q .lsj-icon { font-size: 18px; color: var(--lsj-subtle); transition: transform .2s; }
.lsj-page .lsj-faq__item[open] .lsj-faq__q .lsj-icon { transform: rotate(180deg); }
.lsj-page .lsj-faq__q:focus-visible { outline: 2px solid var(--lsj-fg); outline-offset: -2px; border-radius: inherit; }
.lsj-page .lsj-faq__a { padding: 0 20px 20px; font-size: 15px; line-height: 1.7; color: var(--lsj-muted); }

/* In-page anchors land below the sticky header */
.lsj-page [id] { scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--lsj-header-h) + 16px); }

/* ── Reveal on scroll, once (content visible without JS) ──────── */
.lsj-page .lsj-reveal {
  transition:
    opacity .5s var(--lsj-ease) calc(var(--i, 0) * 60ms),
    transform .5s var(--lsj-ease) calc(var(--i, 0) * 60ms),
    border-color .3s;
}
.lsj-page .lsj-reveal.is-settled { --i: 0; }
.lsj-reveal-ready .lsj-reveal:not(.is-visible) { opacity: 0; transform: translateY(16px); }

.lsj-error {
  padding: 16px 20px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 14px;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (min-width: 640px) {
  .lsj-page .lsj-wrap { padding-inline: 48px; }
  .lsj-page .lsj-sec { padding-top: 80px; }
  .lsj-page .lsj-h2 { font-size: 30px; }
  .lsj-page .lsj-lead { font-size: 18px; }
  .lsj-page .lsj-card { opacity: .9; }
}
@media (max-width: 1024px) {
  .lsj-page .lsj-grid--4,
  .lsj-page .lsj-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .lsj-page .lsj-split { grid-template-columns: minmax(0, 1fr); }
  .lsj-page .lsj-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .lsj-page .lsj-stat:nth-child(3) { border-left: 0; }
  .lsj-page .lsj-grid--2 { grid-template-columns: minmax(0, 1fr); }
  .lsj-page .lsj-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 639px) {
  .lsj-page .lsj-grid--4,
  .lsj-page .lsj-grid--3,
  .lsj-page .lsj-values { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .lsj-page *,
  .lsj-page *::before,
  .lsj-page *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .lsj-reveal-ready .lsj-reveal:not(.is-visible) { opacity: 1; transform: none; }
}
