/* ============================================================
   Astra Origins — Cosmic Portal · single career listing detail
   Ported from newdesign_reference/css/interactive-cosmic-portal-listing.css.
   The .art-* / .org-side-h base layout classes come from
   space-hub-article.css (loaded globally); this adds the .li-* hero
   and .job-* detail styling. Loaded globally in master.blade.php.
   ============================================================ */
.li-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800; color: var(--ink-2);
  letter-spacing: 0.1em; padding: 4px 8px; border-radius: 6px;
  margin-bottom: 14px; text-decoration: none;
}
.li-back:hover { background: var(--surface-2); color: var(--ink); }

.li-hero { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.li-hero-cover { position: relative; height: 120px; background: linear-gradient(135deg, oklch(0.15 0.05 270), oklch(0.08 0.02 250)); overflow: hidden; }
.li-hero-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 30%, white 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 30% 65%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 25%, white 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 55%, white 50%, transparent 51%);
  opacity: 0.7;
}
.li-hero-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 50%, oklch(from var(--accent) calc(l + 0.1) c h / 0.35), transparent 60%); mix-blend-mode: screen; }
.li-hero-body { position: relative; padding: 0 22px 20px; display: flex; gap: 18px; align-items: flex-start; }
.li-avatar {
  position: relative; overflow: hidden;
  width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; color: white; font-size: 22px; font-weight: 800; letter-spacing: 0.02em;
  border: 4px solid var(--surface); box-shadow: 0 6px 18px oklch(0 0 0 / 0.2);
  margin-top: -46px; flex-shrink: 0;
}
.li-avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Org cover image fills the hero banner (over the gradient/stars). */
.li-hero-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.li-hero-main { flex: 1; min-width: 0; padding-top: 14px; }
.li-name-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.li-name { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; margin: 0; }
.li-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.li-save, .li-apply { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 7px; font-size: 10px; font-weight: 800; letter-spacing: 0.09em; cursor: pointer; text-decoration: none; }
.li-save { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.li-save:hover { background: var(--surface-3); color: var(--ink); }
.li-save.is-on { background: var(--accent); color: white; border-color: var(--accent); }
.li-delete { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 7px; font-size: 10px; font-weight: 800; letter-spacing: 0.09em; cursor: pointer; text-decoration: none; background: var(--surface-2); border: 1px solid oklch(0.62 0.2 25 / 0.35); color: oklch(0.55 0.2 25); }
.li-delete:hover { background: oklch(0.58 0.2 25); border-color: oklch(0.58 0.2 25); color: #fff; }
.li-feature { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 7px; font-size: 10px; font-weight: 800; letter-spacing: 0.09em; cursor: pointer; text-decoration: none; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.li-feature:hover { background: var(--surface-3); color: var(--ink); }
.li-feature.is-featured { background: oklch(0.6 0.16 210); border-color: oklch(0.6 0.16 210); color: #fff; }
.li-apply { background: var(--accent); color: white; border: 1px solid var(--accent); }
.li-apply:hover { filter: brightness(1.08); }
.li-meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.li-meta li { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: var(--ink-3); letter-spacing: 0.08em; }
.li-meta li .bi { font-size: 12px; color: var(--ink-2); }

.li-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.li-facts li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: baseline; padding: 5px 0; border-bottom: 1px solid var(--line); }
.li-facts li:last-child { border-bottom: none; }
.li-facts li .mono { font-size: 9px; color: var(--ink-3); letter-spacing: 0.12em; font-weight: 800; }
.li-facts li span:last-child { font-size: 12px; font-weight: 700; color: var(--ink); }

@media (max-width: 768px) {
  .li-hero-body { flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 14px 16px; }
  .li-avatar { width: 76px; height: 76px; font-size: 18px; margin-top: -38px; }
  .li-name { font-size: 20px; }
  .li-facts li { grid-template-columns: 1fr; gap: 2px; }
}

/* ═══════════════════ JOB DETAIL ═══════════════════ */
.job-corp-row { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-2); letter-spacing: 0.06em; margin-bottom: 4px; }
.job-corp-row .bi { color: var(--accent); font-size: 12px; }

/* Job detail has no sidebar (Similar Roles removed) — span full width. */
.job-detail .art-grid { grid-template-columns: 1fr; }
.job-body { display: flex; flex-direction: column; gap: 0; }
.job-sec { padding: 18px 0; border-bottom: 1px solid var(--line); }
.job-sec:first-child { padding-top: 4px; }
.job-sec:last-child { border-bottom: 0; }
.job-sec h2 { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.job-sec p { font-size: 14px; line-height: 1.7; color: var(--ink-2); margin: 0; }

.job-note { background: oklch(0.7 0.15 60 / 0.06); border: 1px solid oklch(0.7 0.15 60 / 0.25); border-radius: 12px; padding: 14px 16px; margin: 6px 0; }
.job-note h2 .bi { color: oklch(0.62 0.15 60); }

.job-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.job-benefits li { padding-left: 0; display: flex; align-items: center; gap: 9px; }
.job-benefits li::before { display: none; }
.job-benefits li .bi { color: var(--accent); font-size: 15px; flex-shrink: 0; }

.job-legal p { font-size: 12px; color: var(--ink-3); line-height: 1.65; }

/* top cards above role overview */
.job-topcards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.job-topcards-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.job-glance-sq, .job-about-sq, .job-contact-sq { border-radius: 12px; border: 1px solid var(--line); padding: 13px 14px; flex: 1 1 0; width: auto; max-width: none; min-width: 180px; }
.job-glance-sq .li-facts { gap: 4px; }
.job-glance-sq .li-facts li { grid-template-columns: 72px 1fr; gap: 8px; padding: 3px 0; }
.job-contact-sq { display: flex; flex-direction: column; gap: 10px; }
.job-contact-inline { display: flex; flex-direction: column; gap: 8px; }
.job-contact-inline .job-c-row { display: flex; flex-direction: column; gap: 2px; }
.job-c-lbl { font-size: 9px; letter-spacing: 0.1em; color: var(--ink-3); font-weight: 800; }
.job-c-val { font-size: 13px; font-weight: 700; color: var(--ink); }
.job-c-link { text-decoration: none; color: var(--accent); }
.job-c-link:hover { text-decoration: underline; }

/* org mini */
.job-org-mini { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.job-org-logo { position: relative; overflow: hidden; width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 13px; color: #fff; }
.job-org-logo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.job-org-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.job-org-meta { font-size: 9px; letter-spacing: 0.08em; color: var(--ink-3); margin-top: 2px; }
.job-org-blurb { font-size: 12px; line-height: 1.55; color: var(--ink-2); margin: 0 0 10px; }
.job-org-link { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; color: var(--accent); text-decoration: none; }

@media (max-width: 768px) {
  .job-topcards-row { flex-direction: column; }
  .job-glance-sq, .job-about-sq, .job-contact-sq { width: 100%; max-width: 100%; }
  .job-benefits { grid-template-columns: 1fr; }
}
