/* ============================================================
   JOB PAGE — role description + application form (one page)
   Works together with contact.css (form, dropdown, side panel).
============================================================ */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── Role description ── */
.job__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.job__skills { display: flex; flex-wrap: wrap; gap: 8px; }

.job__section + .job__section { margin-top: 36px; }
.job__section h2 {
  margin-bottom: 16px; padding-bottom: 12px;
  font: 500 11px var(--font-mono); letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); border-bottom: 1px solid var(--line-dark);
}
.job__section p { font-size: 16px; line-height: 1.85; color: var(--muted); }
.job__section ul, .job__section ol { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.job__section li { position: relative; padding-left: 24px; font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.job__section ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1px; background: var(--accent); }
.job__section ol { counter-reset: jobstep; }
.job__section ol li { counter-increment: jobstep; padding-left: 36px; }
.job__section ol li::before { content: counter(jobstep, decimal-leading-zero); position: absolute; left: 0; top: .22em; font: 500 11px var(--font-mono); color: var(--accent); }

.job__apply {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px;
  margin-top: 44px; padding: clamp(20px, 3vw, 32px);
  background: var(--paper); border: 1px solid var(--line-dark); border-left: 3px solid var(--accent-blue);
}
.job__apply strong { display: block; margin-bottom: 6px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.job__apply p { max-width: 420px; font-size: 14.5px; line-height: 1.7; color: var(--muted); }

.job__back { margin-top: 28px; }
.job__back .link-arrow { display: inline-flex; align-items: center; gap: 8px; }

.job__alt { margin: 18px 0 0 !important; }
.job__alt a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }

/* ── Form section (same page) ── */
.job__form-section { scroll-margin-top: 90px; }
#apply { scroll-margin-top: 90px; }
.job__form { max-width: 880px; margin-inline: auto; }

/* ── Phone and link inputs (contact.css styles only text and email) ── */
.field input[type="tel"], .field input[type="url"] {
  width: 100%; height: var(--field-h); padding: 0 16px;
  font: 400 15px var(--font-body); color: var(--text);
  background: var(--white); border: 1px solid var(--field-border); border-radius: var(--radius);
  outline: 0; transition: border-color .25s, box-shadow .25s;
}
.field input[type="tel"]::placeholder, .field input[type="url"]::placeholder { color: var(--placeholder); }
.field input[type="tel"]:focus, .field input[type="url"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .14); }
.field.has-error input[type="tel"], .field.has-error input[type="url"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(var(--danger-rgb), .1); }

/* ── Application history ── */
.form__sep {
  margin: 6px 0 -6px; padding-top: 22px; border-top: 1px solid var(--line-dark);
  font: 500 11px var(--font-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}
.job__prior {
  display: flex; flex-direction: column; gap: 26px; padding: clamp(18px, 2.4vw, 26px);
  background: var(--paper); border: 1px solid var(--line-dark); border-left: 3px solid var(--accent-blue);
}
.job__prior[hidden] { display: none; }
.job__prior .field textarea { min-height: 110px; }

/* ── Resume upload ── */
.file { position: relative; }
.file__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.file__zone {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 28px 20px; text-align: center;
  background: var(--white); border: 1.5px dashed var(--field-border); border-radius: var(--radius);
  transition: border-color .25s, background .25s;
}
.file__zone[hidden] { display: none; }
.file__zone:hover, .file__zone.is-drag { border-color: var(--accent); background: rgba(var(--accent-rgb), .05); }
.file__icon { font-size: 28px; color: var(--accent); }
.file__text { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.file__text strong { color: var(--text); font-weight: 600; }
.file__pick {
  padding: 0; font: inherit; color: var(--accent); background: none; border: 0;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.file__pick:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }

.file__chosen {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: var(--white); border: 1px solid var(--field-border); border-left: 3px solid var(--accent); border-radius: var(--radius);
}
.file__chosen[hidden] { display: none; }
.file__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.file__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; color: var(--text); }
.file__size { font: 500 11px var(--font-mono); letter-spacing: .08em; color: var(--subtle); }
.file__remove {
  display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px;
  color: var(--text); background: none; border: 1px solid var(--line-dark); border-radius: var(--radius); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.file__remove:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.file__remove .material-icons-round { font-size: 18px; }

.field.has-error .file__zone { border-color: var(--danger); background: rgba(var(--danger-rgb), .04); }

/* ── Success message ── */
.form-success__sent { color: var(--text); word-break: break-all; }

@media (max-width: 480px) {
  .file__zone { flex-direction: column; padding: 24px 16px; }
  .job__apply .btn { width: 100%; justify-content: space-between; }
}