/* ═══════════════════════════════════════════
   Archive / Landing Pages – nrh-theme 0.39.0
   ═══════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────── */
.nrh-archive-hero {
  background: var(--nrh-primary);
  color: #fff;
  padding: 2.5rem 0 2rem;
}
.nrh-archive-hero .nrh-crumbs,
.nrh-archive-hero .nrh-crumbs a { color: rgba(255,255,255,.7); }
.nrh-archive-hero .nrh-crumbs a:hover { color: #fff; }
.nrh-archive-hero .nrh-crumbs span[aria-current] { color: #fff; } /* v0.51.1: was grey on navy */

.nrh-archive-title {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  margin: .5rem 0 .25rem;
  line-height: 1.2;
}
.nrh-archive-count {
  font-size: .95rem;
  opacity: .85;
  margin: 0 0 .75rem;
}
.nrh-archive-intro { max-width: 700px; }
.nrh-archive-intro p { font-size: .95rem; line-height: 1.6; opacity: .92; margin: 0; }

/* ── Grid shell ───────────────────────────── */
.nrh-archive-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0 3rem;
}
@media (min-width: 900px) {
  .nrh-archive-shell {
    grid-template-columns: 1fr 300px;
  }
}

/* ── Job card grid ────────────────────────── */
.nrh-job-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 600px) {
  .nrh-job-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Individual card ──────────────────────── */
.nrh-jcard {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.25rem;
  background: var(--nrh-surface, #fff);
  border: 1px solid var(--nrh-line, #e2e8f0);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, border-color .2s;
}
.nrh-jcard:hover {
  border-color: var(--nrh-secondary, #0056b3);
  box-shadow: 0 4px 16px rgba(11,61,145,.1);
  text-decoration: none;
}

.nrh-jcard-top { display: flex; gap: .75rem; align-items: flex-start; }

.nrh-jcard-logo {
  width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: var(--nrh-line-soft, #f1f5f9);
}
.nrh-jcard-logo { background: #fff; border: 1px solid var(--nrh-line, #e2e8f0); }
.nrh-jcard-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; box-sizing: border-box; } /* v0.51.1: never crop wide logos */
.nrh-jcard-logo--letter {
  font-weight: 700; font-size: 1.2rem;
  color: var(--nrh-primary, #0b3d91);
}

.nrh-jcard-body { min-width: 0; }
.nrh-jcard-title {
  display: block; font-weight: 700; font-size: .95rem;
  color: var(--nrh-ink, #0f172a); line-height: 1.3;
}
.nrh-jcard-company {
  display: block; font-size: .82rem;
  color: var(--nrh-ink-soft, #64748b); margin-top: 2px;
}

.nrh-jcard-meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.nrh-jcard-chip {
  font-size: .75rem; padding: .2rem .55rem;
  border-radius: 4px; background: var(--nrh-line-soft, #f1f5f9);
  color: var(--nrh-ink-soft, #64748b); white-space: nowrap;
}
.nrh-jcard-chip--deadline.is-urgent {
  background: #fef2f2; color: #b91c1c; font-weight: 600;
}

/* ── Empty state ──────────────────────────── */
.nrh-archive-empty {
  text-align: center; padding: 3rem 1rem;
}
.nrh-archive-empty h2 {
  font-size: 1.3rem; color: var(--nrh-ink, #0f172a);
}

/* ── Sidebar ──────────────────────────────── */
.nrh-archive-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }

.nrh-archive-related { display: flex; flex-wrap: wrap; gap: .5rem; }
.nrh-chip-count {
  font-size: .7rem; opacity: .65; margin-left: 3px;
}

/* ── FAQ ──────────────────────────────────── */
.nrh-archive-faq {
  background: var(--nrh-line-soft, #f1f5f9);
  padding: 2.5rem 0;
}
.nrh-archive-faq-title {
  text-align: center; margin: 0 0 1.5rem;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
}

.nrh-faq-list { max-width: 700px; margin: 0 auto; }

.nrh-faq-item {
  border-bottom: 1px solid var(--nrh-line, #e2e8f0);
}
.nrh-faq-q {
  padding: 1rem 0; cursor: pointer;
  font-weight: 600; font-size: .95rem;
  color: var(--nrh-ink, #0f172a);
  list-style: none; /* hide default marker */
}
.nrh-faq-q::-webkit-details-marker { display: none; }
.nrh-faq-q::before {
  content: '+'; display: inline-block; width: 1.4em;
  font-weight: 700; color: var(--nrh-primary);
}
details[open] > .nrh-faq-q::before { content: '−'; }

.nrh-faq-a {
  padding: 0 0 1rem 1.4em;
  font-size: .9rem; color: var(--nrh-ink-body, #334155);
  line-height: 1.6;
}
.nrh-faq-a p { margin: 0; }

/* ── Pagination ───────────────────────────── */
.nrh-archive-pagination .nav-links {
  display: flex; justify-content: center; gap: .5rem;
  padding: 2rem 0 0;
}
.nrh-archive-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.2rem; height: 2.2rem; padding: 0 .6rem;
  border-radius: 6px; font-size: .85rem; text-decoration: none;
  background: var(--nrh-surface); border: 1px solid var(--nrh-line);
  color: var(--nrh-ink-body);
}
.nrh-archive-pagination .page-numbers.current {
  background: var(--nrh-primary); color: #fff; border-color: var(--nrh-primary);
}

/* v0.52.0: guides on this topic */
.nrh-archive-guides { padding: 8px 0 32px; }
.nrh-archive-guides-title { margin: 0 0 12px; font-size: 22px; color: var(--nrh-primary); }
.nrh-archive-guides-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; max-width: 760px; }
.nrh-archive-guides-list li { padding: 14px 16px; border: 1px solid var(--nrh-line); border-radius: 12px; background: var(--nrh-surface); }
.nrh-archive-guides-list a { font-weight: 700; }
.nrh-archive-guides-list span { display: block; margin-top: 4px; font-size: 14px; color: var(--nrh-ink-muted); }

/* ── v0.58.24: share bar in the hero ─────── */
.nrh-archive-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: 1.1rem;
}
.nrh-archive-share-label {
  font-size: .9rem;
  font-weight: 700;
  margin-right: .25rem;
}
.nrh-share-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .45rem .9rem;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.nrh-share-btn:hover,
.nrh-share-btn:focus-visible { background: #fff; color: var(--nrh-primary); }
.nrh-share-btn--wa { background: #15803d; border-color: #15803d; }
.nrh-share-btn--wa:hover,
.nrh-share-btn--wa:focus-visible { background: #fff; color: #15803d; }
.nrh-share-btn[hidden] { display: none; }
