/* ============================================================
   Public careers site — server-rendered pages only.

   The SPA does not use this file. Authored by hand; not synced.
   Everything here must work with no JavaScript.
   ============================================================ */

.careers-header {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: var(--white);
  border-bottom: 1px solid var(--border-subtle);
}

.careers-brand {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2);
  font-weight: var(--fw-black);
  font-size: var(--text-xl);
  color: var(--ink-900);
  text-decoration: none;
}

.careers-brand:hover { text-decoration: none; }
.careers-brand-pet { color: var(--green-500); }
.careers-brand-xi { color: var(--pink-500); }

.careers-brand-word {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--aqua-500);
}

.careers-hero {
  padding: var(--space-8) var(--space-5);
  max-width: var(--container-lg);
  margin-inline: auto;
}

.careers-lede {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 54ch;
}

.careers-body,
.vacancy {
  padding: 0 var(--space-5) var(--space-8);
  max-width: var(--container-lg);
  margin-inline: auto;
}

.vacancy { max-width: var(--container-md); }

.vacancy-list {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
  display: grid;
  gap: var(--space-4);
  /* auto-fit rather than a fixed column count — the prototype's
     repeat(2,1fr) could not survive a phone. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.vacancy-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
}

.vacancy-card h2 {
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-2);
}

.vacancy-card h2 a { color: var(--ink-900); }

.vacancy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

.vacancy-salary {
  font-weight: var(--fw-bold);
  color: var(--aqua-700);
  margin-bottom: 0;
}

.vacancy-openings {
  margin: var(--space-2) 0 0;
  font-size: var(--text-sm);
  color: var(--pink-600);
  font-weight: var(--fw-semibold);
}

.vacancy-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin: var(--space-5) 0;
  padding: var(--space-4) var(--space-5);
  background: var(--surface-sunken);
  border-radius: var(--radius-md);
}

.vacancy-facts dt {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
}

.vacancy-facts dd {
  margin: var(--space-1) 0 0;
  font-weight: var(--fw-semibold);
  color: var(--ink-900);
}

.vacancy-description h2 {
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  margin-top: var(--space-6);
}

.vacancy-description ul { padding-left: var(--space-5); }
.vacancy-description li { margin-bottom: var(--space-2); }

.vacancy-apply { margin-top: var(--space-7); }

.button-primary {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  background: var(--brand-primary);
  color: var(--text-on-brand);
  font-weight: var(--fw-bold);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-pink);
  transition: background var(--dur-fast) var(--ease-out);
}

.button-primary:hover {
  background: var(--brand-primary-hover);
  text-decoration: none;
}

.careers-footer {
  padding: var(--space-6) var(--space-5);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.careers-footer p { margin: 0; }
