/* /careers and /careers/:slug (2026-11-20). Layered on preview/home-redesign.css (tokens, .btn),
   css/info-pages.css (.info-hero, .info-section, .qa, .info-cta) and css/location-pages.css
   (.loc-hero, .loc-link, .loc-facts). Only the job cards, the job page lists and the form live here.
   Type scale (px): 13 / 16 / 20 / 25 / 31 / 39 / 49 / 61
   Spacing scale (px): 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 96 / 128
   Teal only on the primary button, text links, focus rings and the closing CTA band. */

/* ---------- Index: job cards ---------- */

.careers-jobs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

/* The whole card is the tap target: the "See the job" link stretches over it. */
.careers-job {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--ease), border-color var(--ease);
}

.careers-job:hover {
  border-color: var(--input-line);
  box-shadow: var(--shadow-hover);
}

.careers-job p {
  flex: 0 0 auto;
}

.careers-job .careers-job__type {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.careers-job__link {
  margin-top: auto;
  padding-top: 16px;
}

.careers-job__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.careers-job__link:focus-visible {
  outline: none;
}

.careers-job__link:focus-visible::after {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.careers-empty {
  max-width: 65ch;
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Job page ---------- */

.info-hero .careers-back {
  margin-bottom: 16px;
}

.careers-hero h1 {
  max-width: 20ch;
}

.careers-facts {
  max-width: 560px;
  margin-top: 24px;
}

.info-hero .careers-season {
  margin-top: 16px;
  font-size: 16px;
}

.careers-hero .loc-hero__actions {
  margin-top: 32px;
}

.careers-detail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}

.careers-detail h2 {
  margin: 0;
  font-family: "Barlow Condensed", "Barlow Condensed Fallback", "Barlow Condensed Fallback 2", sans-serif;
  font-size: 31px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.careers-list {
  max-width: 65ch;
  margin: 16px 0 0;
  padding-left: 24px;
  color: var(--ink);
  line-height: 1.55;
}

.careers-list li + li {
  margin-top: 8px;
}

/* ---------- Form ---------- */

.careers-apply__body {
  max-width: 640px;
  margin-top: 32px;
}

.careers-form {
  display: grid;
  gap: 24px;
}

.careers-field {
  display: grid;
  gap: 8px;
}

.careers-field label {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.careers-field__help {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.careers-field input,
.careers-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--input-line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color var(--ease);
}

.careers-field textarea {
  min-height: 160px;
  resize: vertical;
}

.careers-field input[type="file"] {
  padding: 8px;
  cursor: pointer;
}

.careers-field input[type="file"]::file-selector-button {
  min-height: 32px;
  margin-right: 12px;
  padding: 4px 12px;
  border: 1px solid var(--input-line);
  border-radius: var(--radius);
  background: var(--snow);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.careers-field input:focus-visible,
.careers-field textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.careers-field [aria-invalid="true"] {
  border-color: var(--error);
}

.careers-field__error,
.careers-form__error {
  margin: 0;
  color: var(--error);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.careers-form__error a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.careers-submit {
  justify-self: start;
}

.careers-submit:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.careers-submit[disabled] {
  cursor: progress;
  opacity: 0.7;
}

.careers-form__small {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.careers-form__small a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Honeypot: off-screen for people, still in the form for bots. */
.careers-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.careers-done {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--snow);
  color: var(--ink);
  font-size: 20px;
  line-height: 1.5;
}

.careers-done:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .careers-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .careers-jobs,
  .careers-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .careers-detail {
    gap: 32px;
  }

  .careers-hero .loc-hero__actions .btn,
  .careers-submit {
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 640px) {
  .careers-detail h2 {
    font-size: 25px;
  }

  .careers-done {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .careers-job,
  .careers-field input,
  .careers-field textarea {
    transition: none;
  }
}
