/* Job page v2 (2026-10-06) — loaded only where lj_jobpage_v2() is on. Plain register: labelled
   list for the facts, one full-width Apply, no photo banner, no card chrome on phones. */

/* Header on one line on phones (the hero is not shown on this page) */
.jd2-page .site-header-inner { flex-wrap: nowrap; gap: 1rem; }
.jd2-page .top-nav ul { flex-wrap: nowrap; }
.jd2-page .top-nav a { white-space: nowrap; }

.jd2 {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
  background: #fff;
  color: #1f2937;
}
.jd2-crumbs { margin: 0 0 0.9rem; font-size: 0.9rem; color: #6b7280; line-height: 1.6; }
.jd2-crumbs a { color: #374151; }
.jd2-crumbs span { margin: 0 0.3rem; }
.jd2-head { display: flex; gap: 0.9rem; align-items: flex-start; }
.jd2-logo { width: 56px; height: 56px; object-fit: contain; flex: 0 0 auto; border: 1px solid #e5e7eb; border-radius: 4px; background: #fff; padding: 3px; }

.jd2-similar, .jd2-look { margin-top: 2.2rem; }
.jd2-similar h2, .jd2-look h2 { margin: 0 0 0.6rem; font-size: 1.2rem; }
.jd2-similar ul, .jd2-look ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid #e5e7eb; }
.jd2-similar li { padding: 0.7rem 0; border-bottom: 1px solid #e5e7eb; line-height: 1.4; }
.jd2-similar li a { font-weight: 700; color: var(--heading, #111827); }
.jd2-similar li span { display: block; color: #5b6472; font-size: 0.92rem; margin-top: 0.15rem; }
.jd2-look li { padding: 0.55rem 0; border-bottom: 1px solid #e5e7eb; }
.jd2-look li a { color: var(--accent); font-weight: 600; }

/* Links on this page: thin underline set off the text (Stephen 2026-10-06: the default
   thick underline "looks rubbish"); full underline on hover/focus. */
.jd2 a:not(.jd2-apply), .jd2-more .jd2-popular a {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
}
.jd2 a:not(.jd2-apply):hover, .jd2 a:not(.jd2-apply):focus-visible,
.jd2-more .jd2-popular a:hover { text-decoration-color: currentColor; }
.jd2-look li a { font-weight: 600; }

.jd2-popular { padding: 0.75rem 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: baseline; font-size: 0.95rem; }
.jd2-popular a { color: #374151; }
.jd2-head h1 { margin: 0 0 0.35rem; font-size: 1.65rem; line-height: 1.22; font-weight: 800; color: var(--heading, #111827); }
.jd2-employer { margin: 0 0 1rem; font-size: 1.05rem; font-weight: 600; color: #111827; }

.jd2-facts { margin: 0 0 1.1rem; border-top: 1px solid #e5e7eb; }
.jd2-facts div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid #e5e7eb; font-size: 1rem; line-height: 1.35; }
.jd2-facts dt { color: #5b6472; flex: 0 0 auto; }
.jd2-facts dd { margin: 0; text-align: right; font-weight: 600; color: #111827; }

.jd2 .jd2-apply,
.jd2-bar .jd2-apply {
  display: block;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  text-align: center;
  padding: 0.85rem 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 0.4rem;
  text-decoration: none;
}

.jd2-desc { margin-top: 1.6rem; font-size: 1.02rem; line-height: 1.65; overflow-wrap: anywhere; }
.jd2-desc h2 { margin: 0 0 0.8rem; font-size: 1.3rem; }
.jd2-desc img { max-width: 100%; height: auto; }
.jd2-ref { margin: 1.6rem 0 1rem; color: #6b7280; font-size: 0.9rem; }

.jd2 .related-jobs { margin-top: 2rem; }

.jd2-more { max-width: 1100px; margin: 1.5rem auto 0; padding: 0 0 1rem; }
.jd2-more h2 { margin: 0 1rem 0.5rem; font-size: 1.2rem; color: #111827; }

.jd2-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: #fff; border-top: 1px solid #d9dde3;
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
}
.jd2-bar[hidden] { display: none; }
.jd2-page { padding-bottom: 4.5rem; }

/* Desktop: description left, facts + Apply in a column that stays in view */
@media (min-width: 900px) {
  .jd2 { margin-top: 1.5rem; padding: 1.75rem 2rem 2.25rem; border: 1px solid #e5e7eb; border-radius: 6px; }
  .jd2-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-areas: "head side" "desc side";
    column-gap: 2.5rem;
    align-items: start;
  }
  .jd2-head { grid-area: head; }
  .jd2-side { grid-area: side; position: sticky; top: 1rem; }
  .jd2-desc { grid-area: desc; margin-top: 0.5rem; }
  .jd2-head h1 { font-size: 2rem; }
  /* the sidebar Apply is always in view on desktop — no second button at the foot */
  .jd2 .jd2-apply-end { display: none; }
  .jd2-logo { width: 64px; height: 64px; }
  .jd2-bar { display: none !important; }
  .jd2-page { padding-bottom: 0; }
}

@media (max-width: 420px) {
  .jd2-page .logo { font-size: 1.2rem; }
  .jd2-page .top-nav ul { gap: 0.7rem; }
  .jd2-page .top-nav a { font-size: 0.8rem; }
}
