/* job-detail.css — read-only / in-app job listing view.
   Loads after public.css (shares its tokens + chrome). Scoped under `.jpub`. */

.jpub .band-slim { padding-bottom: 96px; }
.jpub-detail #app-content {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
.jpub-detail #app-content > main { flex: 1 0 auto; }
.jpub .back {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 14px;
  color: rgba(255, 255, 255, 0.8); text-decoration: none;
  padding: 8px 0; margin-top: 14px;
}
.jpub .back:hover { color: #fff; }
.jpub .back svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.jpub .back-dark {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 14px;
  color: var(--slate-700); text-decoration: none;
  padding: 8px 0; margin-top: 14px;
}
.jpub .back-dark:hover { color: var(--navy); }
.jpub .back-dark svg { flex: none; width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- layout ---------- */
.jpub .detail {
  position: relative; z-index: 2;
  margin-top: -64px;
  display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 22px;
  align-items: start;
  padding-bottom: 8px;
}
/* In-app (authenticated) view has the app nav instead of the navy band,
   so the card should not pull up over a band that isn't there. */
.jpub .detail.detail-inapp { margin-top: 18px; }

/* ---------- main card ---------- */
.jpub .post {
  background: #fff; border: 1px solid var(--slate-200); border-radius: 18px;
  padding: clamp(24px, 3.4vw, 34px);
  box-shadow: 0 1px 2px rgba(15, 29, 43, 0.04), 0 24px 48px -28px rgba(6, 36, 59, 0.28);
}
.jpub .post .chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.jpub .post h1 {
  font-weight: 700; font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.022em; line-height: 1.18; color: var(--navy); text-wrap: balance;
}
.jpub .post .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; }
.jpub .post .meta .m {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--slate-500);
}
.jpub .post .meta .m svg { width: 14px; height: 14px; stroke: var(--slate-400); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.jpub .post .meta .ref {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12.5px; font-weight: 500; color: var(--slate-500);
  background: var(--slate-100); border-radius: 7px; padding: 4px 8px;
}

.jpub .post .sect { border-top: 1px solid var(--slate-100); margin-top: 24px; padding-top: 22px; }
.jpub .post .sect h2 {
  font-weight: 600; font-size: 12px;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--slate-400);
  margin-bottom: 13px;
}
.jpub .post .sect > p { font-size: 15px; line-height: 1.65; color: var(--slate-700); text-wrap: pretty; }
/* note is rendered with |safe and may contain block markup */
.jpub .post .sect .note-body { font-size: 15px; line-height: 1.65; color: var(--slate-700); }
.jpub .post .sect .note-body p { margin-bottom: 10px; }
.jpub .post .sect .note-body p:last-child { margin-bottom: 0; }

.jpub .post .reqs { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.jpub .post .reqs li {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 15px; line-height: 1.55; color: var(--slate-700); text-wrap: pretty;
}
.jpub .post .reqs svg {
  flex: none; width: 17px; height: 17px; margin-top: 3px;
  stroke: var(--blue); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.jpub .post .skills { display: flex; flex-wrap: wrap; gap: 7px; }
.jpub .post .skills .chip { text-transform: none; letter-spacing: 0; font-size: 12.5px; padding: 5px 10px; }

/* ---------- apply rail ---------- */
.jpub .rail { position: sticky; top: 22px; display: flex; flex-direction: column; gap: 14px; }
.jpub .rail-card {
  background: #fff; border: 1px solid var(--slate-200); border-radius: 18px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(15, 29, 43, 0.04), 0 24px 48px -28px rgba(6, 36, 59, 0.28);
}

.jpub .salary { border-bottom: 1px solid var(--slate-100); padding-bottom: 18px; margin-bottom: 18px; }
.jpub .salary .lbl { font-weight: 600; font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--slate-400); }
.jpub .salary .amt { font-weight: 700; font-size: 27px; letter-spacing: -0.02em; color: var(--navy); margin-top: 6px; }
.jpub .salary .amt span { font-weight: 500; font-size: 13.5px; letter-spacing: 0; color: var(--slate-500); margin-left: 6px; }

.jpub .facts { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.jpub .facts li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: 14px; }
.jpub .facts .k { color: var(--slate-500); flex: none; }
.jpub .facts .v { font-weight: 600; color: var(--slate-900); text-align: right; }
.jpub .facts .v.closes { font-size: 12.5px; }

.jpub .docs { border-top: 1px solid var(--slate-100); margin-top: 18px; padding-top: 18px; }
.jpub .docs h3 { font-weight: 600; font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--slate-400); margin-bottom: 12px; }
.jpub .docs .chips { display: flex; flex-wrap: wrap; gap: 7px; }
.jpub .docs .chip { text-transform: none; letter-spacing: 0; font-size: 12.5px; padding: 5px 10px; }

.jpub .btn-apply {
  display: block; width: 100%; margin-top: 20px;
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
  text-align: center; text-decoration: none;
  color: #fff; background: var(--navy); border: none; border-radius: 12px;
  padding: 15px 16px; cursor: pointer;
  box-shadow: 0 14px 26px -14px rgba(6, 36, 59, 0.5);
  transition: background .14s ease, transform .12s ease, box-shadow .14s ease;
}
.jpub .btn-apply:hover { background: var(--navy-2); box-shadow: 0 18px 30px -14px rgba(6, 36, 59, 0.55); }
.jpub .btn-apply:active { transform: translateY(1px); }
.jpub .btn-apply.submitted { background: var(--blue); }
.jpub .btn-apply.progress { background: var(--warn); }
.jpub .rail .note { font-size: 12.5px; color: var(--slate-400); text-align: center; margin-top: 11px; }
.jpub .rail .note a { color: var(--blue-link); font-weight: 600; text-decoration: none; }
.jpub .rail .note a:hover { text-decoration: underline; }

/* ---------- unavailable-listing card ---------- */
.jpub .notice {
  background: #fff; border: 1px solid var(--slate-200); border-radius: 18px;
  padding: clamp(28px, 4vw, 40px); text-align: center;
  box-shadow: 0 1px 2px rgba(15, 29, 43, 0.04), 0 24px 48px -28px rgba(6, 36, 59, 0.28);
}
.jpub .notice h1 { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--navy); }
.jpub .notice p { font-size: 15px; line-height: 1.6; color: var(--slate-500); margin-top: 10px; }
.jpub .notice a { color: var(--blue-link); font-weight: 600; text-decoration: none; }
.jpub .notice a:hover { text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .jpub .detail { grid-template-columns: 1fr; }
  .jpub .rail { position: static; }
}
