/* Approved job-card tokens. Decorative only; does not change access or actions. */
.jh-premium-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 8px;
}
.jh-premium-fact {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.jh-premium-fact .jh-fact-ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 8px;
  background: var(--jh-fact-bg);
  color: var(--jh-fact-ink);
}
.jh-premium-fact svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.jh-premium-fact small { display: block; color: #64748b; font-size: 11px; }
.jh-premium-fact strong { display: block; font-size: 13px; overflow-wrap: anywhere; color: #172b49; }
.jh-premium-fact[data-fact="location"] { --jh-fact-ink: #2563eb; --jh-fact-bg: #e8f0fd; }
.jh-premium-fact[data-fact="work"] { --jh-fact-ink: #8654c7; --jh-fact-bg: #f0eafe; }
.jh-premium-fact[data-fact="salary"] { --jh-fact-ink: #956b0c; --jh-fact-bg: #fff3d8; }
.jh-premium-fact[data-fact="seniority"] { --jh-fact-ink: #a65a08; --jh-fact-bg: #fceadb; }
.jh-premium-fact[data-fact="employment"] { --jh-fact-ink: #08777c; --jh-fact-bg: #e1f4f3; }
.jh-premium-fact[data-fact="experience"] { --jh-fact-ink: #a14083; --jh-fact-bg: #f8eaf4; }
.jh-premium-fact[data-fact="languages"] { --jh-fact-ink: #287c98; --jh-fact-bg: #e6f3f8; }
.jh-premium-fact[data-fact="freshness"] { --jh-fact-ink: #64748b; --jh-fact-bg: #e9edf2; }
.jh-job-headline h4, .jh-job-dialog-identity h3 { color: #173e80; }
.premium-access-card .jh-match-block,
.jh-job-detail-dialog .jh-match-block {
  margin: 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: #edf0f4;
  color: #475569;
}
.premium-access-card[data-match="positive"] .jh-match-block,
.jh-job-detail-dialog[data-match="positive"] .jh-match-block { background: #eaf6ef; color: #16683c; }
.premium-access-card[data-match="review"] .jh-match-block,
.jh-job-detail-dialog[data-match="review"] .jh-match-block { background: #fff3d8; color: #805600; }
.premium-access-card[data-match="low"] .jh-match-block,
.jh-job-detail-dialog[data-match="low"] .jh-match-block { background: #fceaea; color: #9c3636; }
.jh-future-item.jh-premium-future {
  border-inline-start: 4px solid #8654c7;
}
.jh-future-item .jh-future-kind {
  display: inline-block;
  margin: 8px 0;
  color: #69439d;
  font-weight: 700;
}
.jh-job-detail-dialog .jh-premium-facts .jh-premium-fact {
  background: var(--jh-fact-bg);
  padding: 8px;
  border-radius: 8px;
}
.jh-job-detail-dialog .jh-premium-fact .jh-fact-ico { background: transparent; }
@media (max-width: 760px) {
  .jh-premium-fact .jh-fact-ico { width: 28px; height: 28px; }
  .premium-access-card .btn, .jh-future-item a { min-height: 44px; }
}

/* Visual finish. Uses existing records, tones, and actions only. */
.premium-access-card {
  position: relative;
  border: 1px solid #d7e2ef;
  border-inline-start: 4px solid #94a3b8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px #0f1e360d;
}
.premium-access-card[data-match="positive"] { border-inline-start-color: #168a4a; }
.premium-access-card[data-match="review"] { border-inline-start-color: #d39214; }
.premium-access-card[data-match="low"] { border-inline-start-color: #c45a5a; }
.jh-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.jh-card-head .jh-job-identity { flex: 1; min-width: 0; }
.jh-card-head .jh-employer-logo,
.jh-job-dialog-identity .jh-employer-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(160deg, #f8fbff, #e7eef8);
  color: #0d397d;
  font-weight: 750;
}
.jh-company-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px; }
.jh-verified-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f6ee;
  color: #14663a;
  font-size: 12px;
  font-weight: 700;
}
.jh-verified-chip::before { content: "✓"; }
.jh-match-meter {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 118px;
}
.jh-match-score { color: #14663a; font-size: 18px; font-weight: 750; line-height: 1; }
.premium-access-card[data-match="review"] .jh-match-score,
.jh-job-detail-dialog[data-match="review"] .jh-match-score { color: #8a5a00; }
.premium-access-card[data-match="low"] .jh-match-score,
.jh-job-detail-dialog[data-match="low"] .jh-match-score { color: #9c3636; }
.jh-match-bar {
  display: block;
  width: 108px;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6edf5;
}
.jh-match-bar > span { display: block; height: 100%; border-radius: inherit; background: currentColor; }
.premium-access-card[data-match="positive"] .jh-match-bar,
.jh-job-detail-dialog[data-match="positive"] .jh-match-bar { color: #168a4a; }
.premium-access-card[data-match="review"] .jh-match-bar,
.jh-job-detail-dialog[data-match="review"] .jh-match-bar { color: #d39214; }
.premium-access-card[data-match="low"] .jh-match-bar,
.jh-job-detail-dialog[data-match="low"] .jh-match-bar { color: #c45a5a; }
.premium-access-card .jh-premium-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.premium-access-card .jh-premium-fact .jh-fact-ico {
  width: 18px;
  height: 18px;
  background: transparent;
}
.premium-access-card .jh-premium-fact small { display: none; }
.premium-access-card .jh-premium-fact strong { font-size: 13px; font-weight: 650; }
.jh-skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.jh-skill-tags span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f4f7fb;
  color: #334e6e;
  font-size: 12px;
}
.premium-access-card .closure-card-actions .btn:last-child,
.jh-detail-actions .btn:last-child {
  margin-inline-start: auto;
  border-radius: 999px;
  background: #0d397d;
  color: #fff;
}
.jh-future-item.jh-premium-future {
  display: grid;
  align-content: start;
  align-self: start;
  gap: 6px;
  height: auto;
  padding: 14px;
  border: 1px solid #ddd0f3;
  border-inline-start: 4px solid #8654c7;
  border-radius: 16px;
  background: #fff;
}
.jh-future-item.jh-premium-future .jh-future-kind {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 4px 8px;
  border-radius: 8px;
  background: #f3eaff;
  line-height: 1.35;
}
.jh-job-detail-dialog {
  width: min(920px, calc(100vw - 24px));
}
.jh-job-dialog-header { align-items: center; background: #fff; }
.jh-job-dialog-body {
  display: grid;
  gap: 14px;
  padding: 16px 20px 20px;
}
.jh-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}
@media (max-width: 760px) {
  .jh-card-head, .jh-job-dialog-header { flex-wrap: wrap; }
  .jh-match-meter { align-items: flex-start; min-width: 0; }
  .premium-access-card .closure-card-actions .btn:last-child,
  .jh-detail-actions .btn:last-child { margin-inline-start: 0; }
}

/* Reference layout shared by Candidate Jobs and the fixture. */
.premium-access-panel .premium-access-records { display: block; }
.jh-jobs-board {
  display: grid;
  grid-template-columns: minmax(360px, 2fr) minmax(420px, 3fr);
  gap: 20px;
  align-items: start;
}
.jh-jobs-list, .jh-jobs-detail { display: grid; gap: 12px; min-width: 0; }
.jh-ref-card, .jh-ref-detail, .jh-ref-future {
  background: #fff;
  border: 1px solid #e4ebf4;
  border-radius: 18px;
  box-shadow: 0 10px 28px #0f1e360e;
}
.jh-ref-card { padding: 16px 16px 14px; border-inline-start: 4px solid #94a3b8; }
.jh-ref-card[data-match="positive"] { border-inline-start-color: #168a4a; }
.jh-ref-card[data-match="review"] { border-inline-start-color: #d39214; }
.jh-ref-card[data-match="low"] { border-inline-start-color: #c45a5a; }
.jh-ref-card[data-selected="true"] { border-block-start: 3px solid #eab957; }
.jh-ref-head, .jh-ref-detail-head { display: flex; align-items: flex-start; gap: 12px; }
.jh-ref-card .jh-job-identity, .jh-ref-detail .jh-job-headline { flex: 1; min-width: 0; }
.jh-ref-card .jh-employer-logo, .jh-ref-detail .jh-employer-logo {
  width: 52px; height: 52px; border-radius: 14px; background: #fff; border: 1px solid #e4ebf4;
  box-shadow: 0 4px 12px #0f1e3610;
}
.jh-ref-title { margin: 0; color: #173e80; font-size: 18px; line-height: 1.25; font-weight: 750; }
.jh-ref-card .jh-company-row, .jh-ref-detail .jh-company-row { justify-content: flex-start; }
.jh-ref-card .jh-company-row p, .jh-ref-detail .jh-company-row p { margin: 2px 0 0; color: #5b6f88; font-weight: 600; }
.jh-match-meter { align-items: flex-end; min-width: 108px; }
.jh-match-label {
  padding: 3px 8px; border-radius: 999px; background: #eef2f6; color: #475569; font-size: 12px; font-weight: 750;
}
.jh-ref-card[data-match="positive"] .jh-match-label, .jh-ref-detail[data-match="positive"] .jh-match-label { background: #e7f6ee; color: #14663a; }
.jh-ref-card[data-match="review"] .jh-match-label, .jh-ref-detail[data-match="review"] .jh-match-label { background: #fff4dc; color: #8a5a00; }
.jh-ref-card[data-match="low"] .jh-match-label, .jh-ref-detail[data-match="low"] .jh-match-label { background: #fdecec; color: #9c3636; }
.jh-ref-card .jh-premium-facts, .jh-ref-detail-head .jh-premium-facts { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; }
.jh-ref-card .jh-premium-fact .jh-fact-ico, .jh-ref-detail-head .jh-premium-fact .jh-fact-ico { width: 16px; height: 16px; background: transparent; }
.jh-ref-card .jh-premium-fact {
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  background: var(--jh-fact-bg, #f3f6fb);
  color: var(--jh-fact-ink, #334e6e);
}
.jh-ref-card .jh-premium-fact strong { color: inherit; font-size: 12.5px; }
.jh-ref-actions, .jh-detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.jh-ref-actions .btn, .jh-detail-actions .btn, .jh-ref-actions .jh-ref-primary {
  min-height: 40px; border-radius: 999px; padding-inline: 14px;
}
.jh-ref-primary {
  border: 0; background: #0d397d; color: #fff; font-weight: 700;
}
.jh-ref-detail { padding: 18px; }
.jh-ref-detail-head { padding-bottom: 12px; border-bottom: 1px solid #e8eef6; }
.jh-ref-tabs { display: flex; gap: 18px; margin: 8px 0 14px; border-bottom: 1px solid #e6edf5; }
.jh-ref-tabs button {
  border: 0; border-bottom: 3px solid transparent; background: transparent; color: #64748b;
  min-height: 40px; padding: 8px 0; font-weight: 700;
}
.jh-ref-tabs button.is-active { color: #0d397d; border-bottom-color: #eab957; }
.jh-ref-pane { display: grid; gap: 12px; }
.jh-ref-pane[hidden] { display: none; }
.jh-ref-placeholder { margin: 0; padding: 28px 8px; color: #64748b; }
.jh-ref-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 320px;
  padding: 56px 28px;
  text-align: center;
  border: 1px solid #e4ebf4;
  border-radius: 18px;
  box-shadow: 0 10px 28px #0f1e360e;
  background:
    radial-gradient(ellipse at 50% 0%, #fff6df 0, transparent 46%),
    linear-gradient(180deg, #f8fbff, #fff);
}
.jh-ref-empty-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #0d397d;
  color: #eab957;
}
.jh-ref-empty-mark svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.jh-ref-empty h2 { margin: 4px 0 0; color: #173e80; font-size: 22px; }
.jh-ref-empty p { max-width: 36ch; margin: 0; color: #5b6f88; }
.jh-ref-future {
  display: grid; align-content: start; gap: 8px; padding: 16px; border-inline-start: 4px solid #8654c7;
}
.jh-future-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #f3eaff; color: #8654c7;
}
.jh-future-mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.jh-ref-back { display: none; }
@media (max-width: 1040px) {
  .jh-jobs-board { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}
@media (max-width: 760px) {
  .jh-jobs-board { grid-template-columns: 1fr; }
  .jh-jobs-board.is-detail .jh-jobs-list { display: none; }
  .jh-jobs-board:not(.is-detail) .jh-jobs-detail { display: none; }
  .jh-ref-detail-head { flex-wrap: wrap; }
  .jh-ref-detail-head .jh-premium-facts { display: none; }
  .jh-match-meter { align-items: flex-start; }
  .jh-ref-card .jh-ref-actions { display: grid; width: 100%; grid-template-columns: 1fr; justify-content: stretch; }
  .jh-ref-card .jh-ref-actions .btn { width: 100% !important; justify-self: stretch; }
  .jh-ref-back { display: inline-flex; margin-inline-start: auto; }
}

/* Issue #60 card repair: source + publisher status facts, sort control, compact mobile. */
.jh-premium-fact[data-fact="source"] { --jh-fact-ink: #1e3a8a; --jh-fact-bg: #e7ecf8; }
.jh-premium-fact[data-fact="status"] { --jh-fact-ink: #8a6a12; --jh-fact-bg: #fbf3dc; }
.jh-jobs-sort { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 10px; font-size: .9rem; color: #1e3a8a; }
.jh-jobs-sort-select { border: 1px solid #c7d2ea; border-radius: 8px; padding: 4px 8px; background: #fff; color: #102a5c; font: inherit; }
@media (max-width: 760px) {
  .jh-ref-card .jh-premium-facts { gap: 6px 10px; }
  .jh-ref-card .jh-premium-fact strong { font-size: .86rem; overflow-wrap: anywhere; }
  .jh-ref-card .jh-ref-actions { flex-wrap: wrap; }
}
