/* ==========================================================================
   AUTHIFY — Careers
   Stat row under the hero + a job-listing board. Perk cards and the
   bottom CTA reuse the existing .card-grid / .cta components as-is.
   ========================================================================== */

.careers-stats{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  max-width: 900px;
  margin: var(--space-xl) auto 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}
.careers-stat{ text-align: center; }
.careers-stat__value{
  display: block;
  font-size: var(--text-2xl);
  font-weight: 200;
  letter-spacing: var(--tracking-tight);
}
.careers-stat__label{ font-size: var(--text-xs); color: var(--color-text-muted); }

/* ---- Job board --------------------------------------------------------- */
.job-list{
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 860px;
  margin-inline: auto;
}

.job-card{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  transition: transform var(--dur-mid) var(--ease-glass), box-shadow var(--dur-mid) var(--ease-glass), border-color var(--dur-mid) var(--ease-smooth);
}
.job-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-float); border-color: var(--gold-400); }

.job-card__body h3{ font-size: var(--text-md); margin-bottom: 0.35em; }
.job-card__meta{
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}
.job-card__meta span{ display: inline-flex; align-items: center; gap: 0.35em; }
.job-card__meta .icon{ width: 1em; height: 1em; color: var(--gold-500); flex-shrink: 0; }
.job-card__desc{ font-size: 0.8125rem; color: var(--color-text-muted); margin-top: var(--space-2xs); max-width: 52ch; }

.job-card__apply{ flex-shrink: 0; }

@media (max-width: 620px){
  .job-card{ flex-direction: column; align-items: flex-start; }
  .job-card__apply{ align-self: stretch; }
  .job-card__apply .btn{ width: 100%; justify-content: center; }
  .careers-stats{ grid-template-columns: repeat(2, 1fr); }
}

/* ---- Application modal ------------------------------------------------- */
.apply-modal{
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
.apply-modal.is-open{ display: block; }

.apply-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.6);
  backdrop-filter: blur(4px);
}

.apply-modal__panel{
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 2rem));
  max-height: min(88vh, 900px);
  overflow-y: auto;
  margin: 6vh auto;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-float);
}

.apply-modal__close{
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-smooth), border-color var(--dur-fast) var(--ease-smooth);
}
.apply-modal__close:hover{ color: var(--color-text); border-color: var(--gold-400); }
.apply-modal__close .icon{ width: 1rem; height: 1rem; }

.apply-modal__panel h3{
  font-size: var(--text-lg);
  padding-right: 2.5rem;
  margin-bottom: 0.35em;
}
.apply-modal__note{ font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: var(--space-md); }
.apply-modal__note .req{ color: var(--gold-400); }

#apply-form{ display: flex; flex-direction: column; gap: var(--space-sm); }

.apply-file-field .apply-file-actions{ display: flex; gap: var(--space-2xs); }

.apply-pill{
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  color: var(--color-text);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-smooth), background var(--dur-fast) var(--ease-smooth);
}
.apply-pill:hover{ border-color: var(--gold-400); }
.apply-pill.is-active{ background: var(--gold-400); border-color: var(--gold-400); color: #1a1a1a; }

.apply-file-name{
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  min-height: 1em;
}
.apply-file-name:empty{ display: none; }

.apply-manual{
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  color: var(--color-text);
  min-height: 100px;
  resize: vertical;
}
.apply-manual[hidden]{ display: none; }

@media (max-width: 620px){
  .apply-modal__panel{ margin: 0; max-height: 100vh; height: 100%; border-radius: 0; }
  .apply-file-field .apply-file-actions{ flex-direction: column; }
}
