/* HealthcareNurseJobs.com — media-buying search results page.
   Shared Indeed-inspired design system (see search_sumo/style.css for the
   same system, rolled out to this brand 2026-08-19). Keep all brand
   style.css files in sync when changing shared rules. */
:root {
  --brand-blue:       #2557a7;
  --brand-blue-hover: #164081;

  --canvas-bg:      #f7f6f5;
  --card-bg:        #ffffff;
  --border-default: #e4e2e0;
  --border-hover:   #c9c6c3;
  --border-active:  var(--brand-blue);
  --text-primary:   #2d2d2d;
  --text-secondary: #595959;
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  background: var(--canvas-bg);
  color: var(--text-primary);
}

/* ── Header ── */
/* 2026-08-18: narrowed from 1280px — a single-column list stretched that
   wide read as sparse/empty rather than a focused Indeed-style job list. */
.header {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 12px;
}
.header h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
}
.header .subhead {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
}

/* ── Filters row (hidden for push/native traffic) ── */
.filters { display: none; }

/* ── Job list container ── */
#jobList {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 16px 16px;
}

/* ── Job card ── */
.job-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.job-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.job-card:focus-visible {
  outline: 2px solid var(--border-active);
  outline-offset: 2px;
}

.job-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0 0 4px;
}
.job-meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 10px;
}
.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}
.job-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 2px 5px rgba(45, 45, 45, .12);
}
.job-tag--blue {
  background: #dcebff;
  border-color: #8bb9ff;
  color: #064fb8;
}
.job-tag--yellow {
  background: #fff0a8;
  border-color: #f1c84a;
  color: #664800;
}
.job-tag--green {
  background: #d4f5dd;
  border-color: #72cf8b;
  color: #12642a;
}
.job-tag--pulse {
  animation: tag-pulse 1.6s ease-in-out infinite;
}
@keyframes tag-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 87, 167, .22), 0 2px 5px rgba(45, 45, 45, .12); }
  50% { box-shadow: 0 0 0 5px rgba(37, 87, 167, .10), 0 3px 9px rgba(37, 87, 167, .24); }
}
@media (prefers-reduced-motion: reduce) {
  .job-tag--pulse { animation: none; }
}
/* ── Empty / error / invalid states (2026-09-02) ──
   Replaces #jobList's contents only on the very first request for a filter
   combination (script.js showState()) — never overwrites cards already on
   screen. One neutral card-style block; the distinct copy per state (set via
   i18n.php) is what communicates the difference, not extra color coding. */
.state-message {
  max-width: 720px;
  margin: 8px auto 16px;
  padding: 32px 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
  background: var(--card-bg);
  border: 1px solid var(--border-default);
  border-radius: 12px;
}
.description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.description p  { margin: .3rem 0; }
.description strong, .description b { font-weight: 700; }
.description ul, .description ol { margin: .25rem 0; padding-left: 1.2rem; }
.description li { margin: .1rem 0; }

/* ── CTA button ── */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 100%;
  margin-top: 6px;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  border-radius: 8px;
  padding: 14px 20px;
  min-height: 50px;
  transition: background .12s ease;
}
.job-card:hover .cta,
.job-card:focus-visible .cta { background: var(--brand-blue-hover); }

/* ── Load More ── */
#loadMoreBtn {
  display: block;
  max-width: 280px;
  width: calc(100% - 32px);
  margin: 8px auto 32px;
  padding: 12px 24px;
  min-height: 44px;
  border: none;
  border-radius: 999px;
  background: var(--brand-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .12s ease;
}
#loadMoreBtn:hover    { background: var(--brand-blue-hover); }
#loadMoreBtn:disabled { opacity: .5; cursor: default; }

@media (max-width: 600px) {
  .header { padding: 16px 16px 10px; }
  .header h1 { font-size: 22px; }
  .header .subhead { font-size: 14px; }
  #jobList { padding: 6px 12px 12px; gap: 12px; }
  .job-card { padding: 14px; }
}
