/* Styles for the generated job pages (/jobs and /jobs/{slug}-{id}).
   Layered on top of seo-pages.css, which supplies .nav and footer chrome. */

.job-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 96px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.job-page--index {
  grid-template-columns: minmax(0, 1fr);
  max-width: 860px;
}

.crumbs {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: #8a8a9a;
  margin-bottom: 4px;
}
.crumbs a { color: #6C63FF; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 2px; }

/* ── Job detail ─────────────────────────────────────────────────────────── */

.job-card {
  background: #fff;
  border: 1px solid rgba(108, 99, 255, 0.14);
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 4px 24px rgba(108, 99, 255, 0.07);
}

.job-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.job-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(108, 99, 255, 0.14);
  flex-shrink: 0;
}

.job-head h1 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1.2;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.job-company {
  font-size: 0.98rem;
  color: #666;
  font-weight: 600;
  margin: 0;
}

.job-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.job-chip {
  font-size: 0.78rem;
  font-weight: 700;
  color: #6C63FF;
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.16);
  padding: 5px 13px;
  border-radius: 20px;
}

.job-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  padding: 22px;
  background: #f8f7ff;
  border-radius: 16px;
  margin-bottom: 26px;
}
.job-facts dt {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9a9ab0;
  margin-bottom: 4px;
}
.job-facts dd {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0;
}

.job-apply {
  display: inline-block;
  background: linear-gradient(135deg, #6C63FF, #7c3aed);
  color: #fff;
  padding: 15px 34px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}
.job-apply:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(108, 99, 255, 0.34);
}

.job-section { margin-top: 34px; }
.job-section h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.job-section p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.75;
  margin-bottom: 14px;
}

.job-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.job-list li {
  font-size: 0.93rem;
  color: #555;
  padding: 7px 0 7px 24px;
  position: relative;
  line-height: 1.6;
}
.job-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 7px;
  color: #6C63FF;
  font-weight: 800;
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */

.job-aside {
  background: #f8f7ff;
  border: 1px solid rgba(108, 99, 255, 0.12);
  border-radius: 20px;
  padding: 26px;
  position: sticky;
  top: 96px;
}
.job-aside h2 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #1a1a2e;
}
.job-aside .job-list li::before { content: '→'; }
.job-aside a { color: #6C63FF; text-decoration: none; }
.job-aside a:hover { text-decoration: underline; }

/* ── Index listing ──────────────────────────────────────────────────────── */

.job-page--index h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.8px;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.jobs-lede {
  font-size: 1rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 620px;
}

.jobs-list { list-style: none; padding: 0; margin: 0; }

.jobs-row { margin-bottom: 12px; }

.jobs-row-link {
  display: block;
  background: #fff;
  border: 1px solid rgba(108, 99, 255, 0.14);
  border-radius: 16px;
  padding: 20px 24px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.jobs-row-link:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(108, 99, 255, 0.4);
  box-shadow: 0 10px 30px rgba(108, 99, 255, 0.12);
}

.jobs-row-title {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.jobs-row-meta {
  display: block;
  font-size: 0.86rem;
  color: #777;
}

.jobs-empty {
  background: #f8f7ff;
  border: 1px solid rgba(108, 99, 255, 0.12);
  border-radius: 16px;
  padding: 28px;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .job-page {
    grid-template-columns: minmax(0, 1fr);
    padding: 88px 20px 56px;
  }
  .job-aside { position: static; }
  .job-card { padding: 26px 22px; }
}
