/* Careers — job list, job detail, application form. */

.job-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.job-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--nw-line);
  border-radius: var(--nw-radius);
  background: #fff;
  transition: transform 0.35s var(--nw-ease), box-shadow 0.35s var(--nw-ease), border-color 0.35s ease;
}

.job-card:hover,
.job-card:focus-within {
  border-color: var(--nw-rose-300);
  box-shadow: var(--nw-shadow);
  transform: translateY(-3px);
}

.job-card__main {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.job-card__title {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  letter-spacing: -0.015em;
}

.job-card__link {
  color: var(--nw-ink);
  text-decoration: none;
}

/* Whole card is clickable; the heading link stays the accessible target. */
.job-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.job-card__link:focus-visible {
  outline: none;
}

.job-card:has(.job-card__link:focus-visible) {
  outline: 3px solid rgb(155 34 44 / 45%);
  outline-offset: 3px;
}

.job-card__excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--nw-muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.job-card__cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.25rem;
  border: 1.5px solid var(--nw-ink);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.job-card:hover .job-card__cta {
  background: var(--nw-ink);
  color: #fff;
}

@media (max-width: 767.98px) {
  .job-card { flex-direction: column; align-items: flex-start; }
}

.empty-state {
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  border: 1.5px dashed var(--nw-rose-300);
  border-radius: var(--nw-radius-lg);
  background: var(--nw-rose-50);
  text-align: center;
}

.empty-state__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: #fff;
  color: var(--nw-red);
  font-size: 1.5rem;
  box-shadow: var(--nw-shadow-sm);
}

.empty-state__title {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.empty-state__body {
  max-width: 480px;
  margin: 0 auto;
  color: var(--nw-muted);
}

.empty-state__body a {
  color: var(--nw-red);
  font-weight: 600;
}

/* Job detail */
.job-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.job-layout__main {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  min-width: 0;
}

.job-layout__aside {
  position: sticky;
  top: calc(var(--nw-header-h) + 1.5rem);
  display: grid;
  gap: 1rem;
}

@media (max-width: 991.98px) {
  .job-layout { grid-template-columns: minmax(0, 1fr); }
  .job-layout__aside { position: static; order: -1; }
}

.aside-card {
  padding: 1.75rem;
  border: 1px solid var(--nw-line);
  border-radius: var(--nw-radius-lg);
  background: var(--nw-smoke);
}

.aside-card__title {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
}

.aside-meta {
  display: grid;
  gap: 0.2rem;
  margin: 0 0 1.5rem;
}

.aside-meta dt {
  margin-top: 0.75rem;
  color: var(--nw-red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.aside-meta dt:first-child {
  margin-top: 0;
}

.aside-meta dd {
  margin: 0;
  color: var(--nw-ink);
  font-weight: 600;
}

.aside-card__note {
  margin: 1.25rem 0 0;
  color: var(--nw-muted);
  font-size: 0.88rem;
}

.aside-card__note a {
  color: var(--nw-red);
  font-weight: 600;
}

.link-back {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.25rem;
  color: var(--nw-ink-soft);
  font-weight: 600;
  text-decoration: none;
}

.link-back:hover {
  color: var(--nw-red);
}

.link-back .icon {
  transition: transform 0.25s var(--nw-ease);
}

.link-back:hover .icon {
  transform: translateX(-3px);
}

/* CV upload */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1.5rem 1rem;
  border: 1.5px dashed #d2c9c7;
  border-radius: 14px;
  background: var(--nw-smoke);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--nw-red);
  background: var(--nw-rose-50);
}

.field:has(.dropzone__input:focus-visible) .dropzone {
  outline: 3px solid rgb(155 34 44 / 45%);
  outline-offset: 2px;
}

.field.is-invalid .dropzone {
  border-color: #c0392b;
}

.dropzone__icon {
  color: var(--nw-red);
  font-size: 1.5rem;
}

.dropzone__cta {
  color: var(--nw-ink);
  font-weight: 600;
}

.dropzone__hint {
  color: var(--nw-muted);
  font-size: 0.84rem;
}

.dropzone__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.file-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--nw-rose-200);
  border-radius: 12px;
  background: var(--nw-rose-50);
}

.file-pill[hidden] {
  display: none;
}

.file-pill > .icon {
  color: var(--nw-red);
  font-size: 1.2rem;
}

.file-pill__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--nw-ink);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-pill__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--nw-muted);
  cursor: pointer;
}

.file-pill__remove:hover {
  background: #fff;
  color: var(--nw-red);
}
