/* Careers Page Styles */

.careers-section {
  padding: 42px 0;
}

.careers-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}

.careers-sidebar {
  position: sticky;
  top: 100px;
}

.careers-sidebar-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 24px 0;
  color: #0a0a0a;
  letter-spacing: -0.02em;
}

.careers-contact-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 6px;
}

.careers-contact-email {
  font-size: 0.875rem;
  font-weight: 500;
  color: #0a0a0a;
  text-decoration: none;
}

.careers-contact-email:hover {
  text-decoration: underline;
}

/* Filter Bar */
.careers-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.careers-filter-btn {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1.5px solid #d1d5db;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0a0a0a;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  font-family: inherit;
  line-height: 1.4;
}

.careers-filter-btn:hover {
  border-color: #0a0a0a;
}

.careers-filter-btn.active {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #ffffff;
}

/* Roles List */
.careers-roles-list {
  display: flex;
  flex-direction: column;
}

.careers-role-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid #e5e7eb;
}

.careers-role-item[data-hidden="true"] {
  display: none;
}

.careers-role-info {
  flex: 1;
  min-width: 0;
}

.careers-role-name {
  font-size: 1.625rem;
  font-weight: 600;
  color: #0a0a0a;
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.careers-role-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: #6b7280;
}

.careers-role-sep {
  color: #d1d5db;
  font-weight: 300;
}

/* Apply Button */
.careers-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: #0a0a0a;
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
}

.careers-apply-btn:hover {
  opacity: 0.8;
}

.careers-apply-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.careers-apply-arrow svg {
  display: block;
}

/* Empty state */
.careers-no-roles {
  padding: 48px 0;
  color: #6b7280;
  font-size: 0.9375rem;
  display: none;
}

.careers-no-roles.visible {
  display: block;
}

/* ─── Job Description Page ─── */

.jd-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 40px;
}

.jd-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0a0a0a;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.jd-back-btn:hover {
  opacity: 0.6;
}

.jd-header-divider {
  width: 1px;
  height: 16px;
  background: #d1d5db;
  flex-shrink: 0;
}

.jd-page-title {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #0a0a0a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.jd-sections {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Laptop — constrain content width */
@media (min-width: 1024px) {
  .careers-content {
    max-width: 800px;
  }
}

.jd-section-heading {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #0a0a0a;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.jd-section-body {
  font-size: 0.9375rem;
  color: #374151;
  line-height: 1.75;
  margin: 0;
}

.jd-section-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jd-section-list li {
  display: flex;
  gap: 10px;
  font-size: 0.9375rem;
  color: #374151;
  line-height: 1.65;
}

.jd-section-list li::before {
  content: '•';
  flex-shrink: 0;
  color: #0a0a0a;
  font-weight: 700;
  margin-top: 1px;
}

/* Mobile */
@media (max-width: 900px) {
  .careers-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .careers-sidebar {
    position: static;
  }

  .careers-sidebar-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .jd-page-title {
    font-size: 0.875rem;
  }
}

@media (max-width: 600px) {
  .careers-section {
    padding: 56px 0;
  }

  .careers-role-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 0;
  }

  .careers-role-name {
    font-size: 1.25rem;
  }

  .careers-filter-bar {
    gap: 6px;
  }

  .careers-filter-btn {
    padding: 7px 14px;
    font-size: 0.8125rem;
  }

  /* JD page — extra padding on mobile */
  .careers-content {
    padding: 0 4px;
  }

  /* JD page — two-row header on mobile */
  .jd-header {
    flex-wrap: wrap;
    gap: 12px 0;
    margin-bottom: 32px;
  }

  .jd-header-divider {
    display: none;
  }

  .jd-back-btn {
    flex: 0 0 auto;
  }

  .careers-apply-btn {
    margin-left: auto;
    padding: 9px 16px;
    font-size: 0.8125rem;
  }

  .jd-page-title {
    order: 3;
    flex: 1 1 100%;
    white-space: normal;
    font-size: 0.875rem;
    color: #6b7280;
  }

  .jd-section-heading {
    font-size: 1rem;
  }

  .jd-section-body,
  .jd-section-list li {
    font-size: 0.9rem;
  }

  .jd-sections {
    gap: 28px;
  }
}
