/* K Resourcing — job page with application form. Shares tokens and components with styles.css (+ .cr-open from careers.css). */

.tp-wrap { display: block; max-width: 1120px; margin: 0 auto; padding: clamp(20px, 3vw, 36px) var(--pad-x) var(--section-y); }
.tp-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; font-size: 15px; color: var(--muted); }
.tp-back:hover { color: var(--blue); }

.tp-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
@media (max-width: 900px) { .tp-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- job card ---------- */
.tp-job {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 28px;
  background: var(--white);
  border: 1px solid var(--line-2);
  box-shadow: 0 8px 30px rgba(10, 20, 80, .05);
}
.tp-badge { line-height: 1.3; }
.tp-job h1 { margin: 0; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.08; letter-spacing: -.03em; font-weight: 500; text-wrap: balance; }
.tp-meta { display: flex; flex-wrap: wrap; gap: 10px 40px; font-size: 15px; color: var(--muted); }
.tp-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.tp-meta svg, .tp-drop svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* ---------- application form ---------- */
.tp-apply { position: sticky; top: 104px; }
@media (max-width: 900px) { .tp-apply { position: static; } }
.tp-form { border-radius: 28px; gap: 16px; box-shadow: 0 8px 30px rgba(10, 20, 80, .05); }
.tp-form h2 { margin: 0 0 4px; font-size: 22px; font-weight: 500; letter-spacing: -.015em; }
.tp-pair { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.tp-form .field textarea { min-height: 120px; }

.tp-drop {
  position: relative;
  display: block;
  padding: 16px;
  border-radius: 12px;
  border: 1.5px dashed var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.tp-drop:hover, .tp-drop.is-drag { border-color: var(--blue); background: var(--white); }
.tp-drop:focus-within { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 2px; }
.tp-drop.is-invalid { border-color: #C2334D; background: #FDF3F4; }
/* the real input covers nothing visible but stays focusable and in the form */
.tp-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.tp-drop-empty { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.tp-drop-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); }
.tp-file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.tp-file-remove {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 13px;
  cursor: pointer;
  flex: 0 0 auto;
}
.tp-file-remove:hover { border-color: var(--ink); color: var(--ink); }
.tp-hint { font-size: 12.5px; color: var(--muted); }
.tp-hint.is-error { color: #9F1D35; }
