/* ── JOBS PAGE ── */

/* ── JOB HEADER ── */
.job-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-bottom: 32px;
}

.job-title {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.job-meta li {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  border: 1px solid var(--grey-rule);
  border-radius: 2px;
  padding: 5px 10px;
  white-space: nowrap;
}

/* ── JOB BODY COPY ── */
.job-body {
  max-width: 640px;
}

.job-body p {
  font-size: 1.05rem;
  color: #aaa;
  line-height: 1.7;
  margin-bottom: 20px;
}

.job-body p:last-child {
  margin-bottom: 0;
}

.job-lede {
  font-size: 1.3rem !important;
  color: var(--white) !important;
  line-height: 1.55 !important;
}

/* ── JOB LISTS ── */
.job-list {
  max-width: 720px;
  list-style: none;
}

.job-list li {
  position: relative;
  padding-left: 26px;
  font-size: 1rem;
  color: #aaa;
  line-height: 1.65;
  margin-bottom: 14px;
}

.job-list li:last-child {
  margin-bottom: 0;
}

.job-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
}

/* ── APPLY ── */
.job-apply-intro {
  max-width: 640px;
  font-size: 1.05rem;
  color: #aaa;
  line-height: 1.7;
  margin-bottom: 40px;
}

.job-form {
  max-width: 560px;
}

.job-field {
  margin-bottom: 26px;
}

.job-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.5;
}

.job-hint-inline {
  display: inline;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--grey-light);
}

.job-field input[type="text"],
.job-field input[type="email"],
.job-field input[type="url"],
.job-field select,
.job-field textarea {
  width: 100%;
  background: var(--darker);
  border: 1px solid var(--grey-rule);
  border-radius: 2px;
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white);
  transition: border-color 0.2s ease;
}

.job-field textarea {
  resize: vertical;
  line-height: 1.6;
}

.job-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 11px;
  padding-right: 38px;
}

.job-field input:focus,
.job-field select:focus,
.job-field textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.job-field input::placeholder,
.job-field textarea::placeholder {
  color: #555;
}

/* Invalid state — only after a submit attempt */
.job-form.validated .job-field input:invalid,
.job-form.validated .job-field select:invalid,
.job-form.validated .job-field textarea:invalid {
  border-color: #c0504d;
}

/* ── FILE INPUT ── */
.job-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.job-file-button {
  display: inline-block !important;
  background: var(--darker);
  border: 1px solid var(--grey-rule);
  border-radius: 2px;
  padding: 12px 20px;
  font-size: 0.75rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  cursor: pointer;
  margin-bottom: 0 !important;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.job-file-button:hover {
  border-color: var(--blue);
  color: var(--blue-light);
}

.job-file-input:focus-visible + .job-file-button {
  border-color: var(--blue);
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.job-file-name {
  display: inline-block;
  margin-left: 14px;
  font-size: 0.9rem;
  color: var(--grey-light);
  vertical-align: middle;
  word-break: break-all;
}

.job-file-name.has-file {
  color: var(--blue-light);
}

.job-file-name.file-error {
  color: #e07b78;
}

/* ── COUNTER ── */
.job-counter {
  margin-top: 8px;
  font-size: 0.75rem;
  color: #555;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ── DIVIDER ── */
.job-divider {
  height: 1px;
  background: var(--grey-rule);
  margin: 36px 0 32px;
}

/* ── CHECKBOXES ── */
.job-checks {
  border: none;
  margin-bottom: 30px;
}

.job-checks legend {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
  padding: 0;
}

.job-check {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: #aaa !important;
  line-height: 1.55 !important;
}

.job-check:last-child {
  margin-bottom: 0;
}

.job-check input[type="checkbox"] {
  appearance: none;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background: var(--darker);
  border: 1px solid var(--grey-rule);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.job-check input[type="checkbox"]:checked {
  background: var(--blue);
  border-color: var(--blue);
}

.job-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.job-check input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.job-form.validated .job-check input[type="checkbox"]:invalid {
  border-color: #c0504d;
}

/* ── ERROR ── */
.job-error {
  display: none;
  background: rgba(192, 80, 77, 0.12);
  border: 1px solid #c0504d;
  border-radius: 2px;
  padding: 14px 16px;
  font-size: 0.95rem;
  color: #e8a9a7;
  line-height: 1.6;
  margin-bottom: 24px;
}

.job-error.visible {
  display: block;
}

.job-error a {
  color: var(--blue-light);
  text-decoration: underline;
}

/* ── SUBMIT ── */
.job-submit {
  background: var(--blue);
  border: none;
  border-radius: 2px;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.job-submit:hover:not(:disabled) {
  background: var(--blue-light);
}

.job-submit:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
}

.job-submit:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ── SUCCESS ── */
.job-success {
  max-width: 560px;
  border-left: 3px solid var(--blue);
  padding-left: 24px;
}

.job-success-heading {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 16px;
}

.job-success p {
  font-size: 1.05rem;
  color: #aaa;
  line-height: 1.7;
  margin-bottom: 12px;
}

.job-success-note {
  color: var(--grey-light) !important;
  font-size: 0.95rem !important;
  margin-bottom: 0 !important;
}

/* ── HONEYPOT ── */
.job-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .job-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .job-lede {
    font-size: 1.15rem !important;
  }

  .job-file-name {
    display: block;
    margin-left: 0;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .job-meta li {
    font-size: 0.65rem;
    padding: 4px 8px;
  }

  .job-submit {
    width: 100%;
  }

  .job-success {
    padding-left: 18px;
  }
}

/* ── OPENINGS / EMPTY STATE ── */
.job-opening + .job-opening {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--grey-rule);
}

.job-subsection {
  margin-top: 36px;
}

.job-subsection .section-label {
  margin-bottom: 18px;
}

.job-anchor-link {
  display: inline-block;
  margin-top: 36px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.job-anchor-link:hover {
  border-bottom-color: var(--blue-light);
}

.job-empty-lede {
  max-width: 640px;
  font-size: 1.3rem;
  color: var(--white);
  line-height: 1.55;
  margin-bottom: 18px;
}

.job-empty-note {
  max-width: 640px;
  font-size: 1.05rem;
  color: #aaa;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .job-empty-lede { font-size: 1.15rem; }
}
