/* EFILLIKS — Careers page. Uses the tokens and form styles from styles.css. */

.careers__title { font-family: var(--font-head); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 32px; }
.careers.section { padding-top: 72px; }

.jobs { display: grid; gap: 16px; }
.jobs__state { color: var(--muted); font-size: 16px; line-height: 26px; margin: 0; }
.jobs__state a { color: var(--primary-dark); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

.job { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 28px 32px; background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s, box-shadow .3s var(--ease); }
.job:hover { border-color: rgba(0, 136, 180, .45); box-shadow: 0 16px 28px -22px rgba(0, 59, 82, .5); }
.job__title { font-family: var(--font-head); font-size: 20px; line-height: 28px; margin: 0; }
.job__meta { font-size: 14px; line-height: 22px; color: var(--muted); margin: 4px 0 0; }
.job .btn { flex: none; }

.job-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 14px 0 0; padding: 0; }
.job-tags li { font-size: 12px; line-height: 18px; padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--primary-dark); font-weight: 500; }

.apply { width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 40px; border: 0; border-radius: 24px; color: var(--ink); box-shadow: var(--shadow-window); }
.apply::backdrop { background: rgba(11, 34, 48, .5); backdrop-filter: blur(4px); }
.apply__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; font-size: 24px; line-height: 1; color: var(--muted); }
.apply__close:hover { background: var(--soft); color: var(--ink); }
.apply__title { font-family: var(--font-head); font-size: 26px; line-height: 34px; letter-spacing: -0.01em; margin: 0; padding-right: 32px; }
.apply__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 20px; margin: 20px 0 0; padding: 18px 20px; background: var(--soft); border-radius: 12px; }
.apply__facts dt { font-size: 12px; line-height: 18px; color: var(--muted); }
.apply__facts dd { font-size: 14px; line-height: 20px; font-weight: 600; margin: 2px 0 0; overflow-wrap: anywhere; }
.apply__section { margin-top: 24px; }
.apply__section h3 { font-family: var(--font-head); font-size: 17px; line-height: 24px; margin: 0; }
.apply__section .job-tags { margin-top: 10px; }
.apply__text { white-space: pre-line; overflow-wrap: anywhere; font-size: 15px; line-height: 25px; color: var(--ink-80); margin: 8px 0 0; }
.apply__list { margin: 8px 0 0; padding-left: 20px; font-size: 15px; line-height: 25px; color: var(--ink-80); overflow-wrap: anywhere; }
.apply__list li + li { margin-top: 4px; }
.apply__cta { position: sticky; bottom: -40px; margin: 28px -40px -40px; padding: 16px 40px; background: #fff; border-top: 1px solid var(--line); }
.apply__cta .btn { width: 100%; }
.apply__back { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--primary-dark); margin-bottom: 14px; }
.apply__back:hover { text-decoration: underline; text-underline-offset: 3px; }
.apply__title { outline: none; }
.apply .form-grid { margin-top: 20px; }
.apply .field textarea { min-height: 104px; }
.apply .field input[type="file"] { height: auto; padding: 10px 12px; cursor: pointer; }
.apply .field input[type="file"]::file-selector-button { margin-right: 12px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--tint); color: var(--primary-dark); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.apply__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply__done h2 { font-family: var(--font-head); font-size: 24px; line-height: 32px; margin: 0; outline: none; }
.apply__done p { color: var(--muted); font-size: 16px; line-height: 26px; margin: 12px 0 24px; }

@media (max-width: 640px) {
  .job { flex-direction: column; align-items: flex-start; gap: 20px; padding: 22px; }
  .job .btn { width: 100%; }
  .apply { padding: 28px 20px; }
  .apply__facts { grid-template-columns: 1fr 1fr; }
  .apply__cta { bottom: -28px; margin: 24px -20px -28px; padding: 14px 20px; }
  .apply .form-grid { grid-template-columns: 1fr; }
  .apply .form-foot { flex-direction: column; align-items: stretch; }
}
