/* Careers list, detail, and apply form — public design system only. */

.careers-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 20px;
}

#jobs-grid {
  display: grid;
  gap: 16px;
}

.job-card {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 24px;
  align-items: flex-start;
  justify-content: space-between;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  padding: clamp(20px, 3vw, 28px);
}

.job-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.job-meta {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}

.job-meta strong { color: var(--text); font-weight: 500; }

.job-cta,
.apply-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 2px;
  background: var(--teal);
  color: #fff;
  font: 500 16px/1 var(--ff);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.job-cta:hover,
.apply-btn:hover { background: var(--teal-dark); color: #fff; }

.careers-empty,
.empty {
  margin: 8px 0 0;
  padding: 28px 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.55;
}

#detail[hidden],
#list[hidden] { display: none !important; }

.careers-back {
  display: inline-flex;
  margin-bottom: 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--rule-strong);
}

.careers-back:hover { text-decoration-color: var(--gold); }

.detail-head {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink);
}

.detail-head h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.facts { display: grid; gap: 10px; font-size: 15px; color: var(--text-2); }
.facts b { color: var(--text); font-weight: 500; min-width: 140px; display: inline-block; }

.section { margin: 28px 0; }
.section h2 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}

.section-body { font-size: 16px; line-height: 1.65; color: var(--text); }
.section-body ul,
.section-body ol { padding-left: 1.2em; margin: 10px 0; }
.section-body li { margin: 6px 0; }
.section-body p { margin: 0 0 12px; }
.section-body a { color: var(--teal-dark); }

.footer-meta {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--text-2);
}

.footer-meta b { color: var(--text); min-width: 140px; display: inline-block; }

.job-banner {
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: 28px;
}

.job-banner .label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.job-banner h2,
.job-banner h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.job-banner .meta { font-size: 15px; color: var(--text-2); }

.careers-apply form { display: grid; gap: 8px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin-bottom: 8px;
}
.full { grid-column: 1 / -1; }

.careers-apply label,
.careers-apply .section-label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 8px;
}

.careers-apply .section-label {
  margin: 22px 0 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}

.careers-apply input,
.careers-apply textarea,
.careers-apply select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font: 400 17px/1.3 var(--ff);
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
}

.careers-apply textarea { min-height: 96px; resize: vertical; }

.careers-apply input:focus,
.careers-apply textarea:focus,
.careers-apply select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 0;
  border-color: var(--ink);
}

.careers-apply .hint { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.err-msg { color: #6E2418; font-size: 14px; margin-top: 6px; }
.submit-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; }

.careers-apply .btn {
  background: var(--teal);
  color: #fff;
  border-color: transparent;
}
.careers-apply .btn:hover { background: var(--teal-dark); color: #fff; }

.careers-apply .btn.ghost,
.careers-apply a.btn.ghost {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.careers-apply .btn.ghost:hover { background: var(--ink); color: #fff; }

.confirm { text-align: left; padding: 8px 0 24px; }
.confirm h2 { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 16px; }
.confirm .app-id { font-family: var(--ff-num, "Space Grotesk", sans-serif); font-size: 20px; color: var(--teal-dark); margin: 18px 0; font-weight: 500; }
.confirm p { color: var(--text-2); line-height: 1.55; }
.empty-state { padding: 12px 0 24px; }
.empty-state p { font-size: 16px; color: var(--text-2); line-height: 1.55; margin-bottom: 18px; max-width: 36em; }

.apply-panel {
  margin-top: 28px;
  padding: clamp(22px, 3vw, 36px);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
}
.apply-panel h2 {
  margin: 0 0 18px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.privacy-note {
  margin: 18px 0 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 42em;
}
.upload-progress {
  height: 4px;
  background: var(--dust);
  margin-top: 14px;
}
.upload-progress-bar {
  height: 100%;
  width: 0;
  background: var(--teal);
  transition: width 0.2s ease;
}
.unavailable { padding: 12px 0; max-width: 36rem; }
.unavailable h2 { margin: 0 0 12px; font-size: 1.25rem; }
.unavailable p { margin: 0 0 20px; line-height: 1.5; }
.careers-apply input[readonly] { background: var(--dust); color: var(--text-2); }

@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
  .job-cta,
  .apply-btn { width: 100%; }
}
