.job-detail-placeholder {
  color: #686868;
}

#ashby_embed:not([hidden]) + #job-empty {
  display: none;
}

aside:has(#ashby_embed[hidden]) #job-close {
  visibility: hidden;
}

/* Below lg the details panel is a full-screen overlay: only show it while a role is open. */
@media (max-width: 1023.98px) {
  #job-overlay:has(#ashby_embed[hidden]) {
    display: none;
  }
}

#job-panel {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.375rem;
  padding: 1.25rem;
  max-width: 42rem;
  font-size: 0.875rem;
  line-height: 1.625;
}

@media (min-width: 768px) {
  #job-panel {
    padding: 1.75rem;
  }
}

.job-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.job-panel-title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0;
}

.job-panel-close {
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: transparent;
  border-radius: 0.25rem;
  width: 1.5rem;
  height: 1.5rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.job-panel-close:hover {
  background: rgba(0, 0, 0, 0.05);
}

#job-panel .job-desc p {
  margin: 0 0 0.875rem;
}

#job-panel .job-desc strong {
  font-weight: 600;
}

#job-panel .job-desc em {
  font-style: italic;
}

.job-panel-form {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.job-panel-form label {
  display: grid;
  gap: 0.25rem;
  font-weight: 600;
}

.job-panel-form input {
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 0.25rem;
  padding: 0.4rem 0.6rem;
  font: inherit;
  background: #fff;
}

.job-panel-form input:focus {
  outline: 2px solid rgba(0, 0, 0, 0.35);
  outline-offset: 1px;
}

.job-panel-submit {
  border: 1px solid #000;
  background: #000;
  color: #fff;
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
}

.job-panel-submit:hover {
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25);
}

.job-panel-status {
  margin: 0;
  color: #686868;
}
