/* Careers list (careers.html) + job pages (job/<slug>.html, generated by scripts/build-content.mjs). */

/* ── Open roles list ─────────────────────────────────────────── */
.jobs-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(26,10,34,0.14); }
.job-card { border-bottom: 1px solid rgba(26,10,34,0.14); }
.job-card a { display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; align-items: center; padding: 32px 0; color: inherit; text-decoration: none; }
.job-card h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em; line-height: 1.1; margin: 0; transition: color .15s ease; }
.job-card p { grid-column: 1; margin: 0; color: var(--muted); font-size: 16px; max-width: 70ch; }
.job-card .job-go { grid-column: 2; grid-row: 1 / span 3; font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.job-card .job-go .arrow { display: inline-block; transition: transform .25s ease; }
.job-card a:hover h3 { color: var(--accent); }
.job-card a:hover .job-go .arrow { transform: translateX(4px); }

.job-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 0; }
.job-meta span + span::before { content: "◆"; color: var(--accent); margin: 0 12px; font-size: 9px; }
.job-meta .dept { color: var(--accent); }

.jobs-empty { padding: 40px 0; border-top: 1px solid rgba(26,10,34,0.14); border-bottom: 1px solid rgba(26,10,34,0.14); }
.jobs-empty p { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; max-width: 40ch; }
.jobs-empty p + p { margin-top: 12px; font-family: var(--sans); font-size: 16px; color: var(--muted); }

/* Job page header meta (on the dark page-header) */
.page-header .job-meta { color: rgba(245,241,234,0.62); margin-top: 32px; }

/* Careers email + phone next to the application forms */
.careers-contact { margin: 20px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); line-height: 2; }
.careers-contact a { display: inline-block; color: var(--ink); text-transform: none; letter-spacing: 0.04em; font-size: 14px; line-height: 1.5; border-bottom: 1px solid var(--accent); white-space: nowrap; }
.careers-contact a:hover { color: var(--accent); }
.careers-contact .sep { display: inline-block; color: var(--accent); margin: 0 12px; font-size: 9px; }

/* ── Apply form (shared with contact.html field styling) ───────── */
.apply-wrap { max-width: 720px; margin: 0 auto; }
.apply-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.apply-form .full { grid-column: 1 / -1; }
.apply-form .field label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.apply-form .field input, .apply-form .field textarea, .apply-form .field select { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(26,10,34,0.25); border-radius: 0; padding: 10px 0; font-family: var(--sans); font-size: 17px; color: var(--ink); transition: border-color .15s ease; }
.apply-form .field input:focus, .apply-form .field textarea:focus, .apply-form .field select:focus { outline: none; border-bottom-color: var(--accent); }
.apply-form .field textarea { min-height: 120px; resize: vertical; }
.apply-form .consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.5; }
.apply-form .consent input { margin-top: 4px; accent-color: var(--accent); }
.apply-form .consent a { color: var(--ink); border-bottom: 1px solid var(--accent); }
.apply-error { color: #c0392b; display: none; font-size: 14px; margin-top: 8px; }
.apply-success { display: none; padding: 48px 0; text-align: center; }
.apply-success .check { width: 64px; height: 64px; margin: 0 auto 24px; background: var(--accent); display: grid; place-items: center; color: var(--cream); font-family: var(--serif); font-size: 32px; border-radius: 50%; }

@media (max-width: 720px) {
  .apply-form .form-grid { grid-template-columns: 1fr; }
  .job-card a { grid-template-columns: 1fr; }
  .job-card .job-go { grid-column: 1; grid-row: auto; margin-top: 8px; }
}
