.careers-fallback {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--muted);
}

.job-card .post-meta {
  color: var(--blue);
}

/* Apply button */
.apply-btn {
  appearance: none;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 13px 26px;
  font-family: "PP Neue Montreal", sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--ink);
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(0, 90, 230, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.apply-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 90, 230, 0.4);
}

.apply-btn:active {
  transform: translateY(0);
}

.article-hero .apply-btn {
  margin-top: 22px;
}

.apply-cta {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(238, 241, 246, 0.14);
}

.details-list {
  list-style: none;
  padding-left: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.details-list strong {
  color: var(--muted);
  font-weight: 500;
  margin-right: 6px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 20px;
  overflow-y: auto;
  background: rgba(5, 7, 15, 0.78);
  backdrop-filter: blur(6px);
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: auto;
  padding: 36px clamp(22px, 4vw, 40px) 32px;
  background: var(--navy);
  border: 1px solid rgba(238, 241, 246, 0.14);
  border-radius: 4px;
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.4);
}

.modal .post-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0;
}

.modal h2 {
  margin: 8px 0 0;
  font-family: "PP Neue Montreal", sans-serif;
  font-weight: 500;
  font-size: clamp(22px, 4vw, 26px);
  color: var(--ink);
  text-shadow: 0 0 30px rgba(0, 90, 230, 0.25);
}

.modal-sub {
  margin: 12px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(238, 241, 246, 0.14);
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.modal-sub strong {
  color: var(--ink);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
}

.modal-close:hover {
  color: var(--blue);
  background: rgba(0, 90, 230, 0.1);
}

#apply-form {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* Honeypot: hidden from real visitors, left for bots that fill every field */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
}

#apply-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#apply-form label span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

#apply-form label span em {
  color: var(--blue);
  font-style: normal;
  margin-left: 2px;
}

.label-row {
  display: inline-flex;
  align-items: center;
}

.info-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
}

.info-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  padding: 0;
  border: 1px solid rgba(238, 241, 246, 0.35);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
}

.info-btn:hover,
.info-btn:focus-visible,
.info-btn.is-active {
  color: var(--blue);
  border-color: var(--blue);
  outline: none;
}

#apply-form label span.info-tip {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 5;
  width: 220px;
  padding: 10px 12px;
  border: 1px solid rgba(238, 241, 246, 0.14);
  border-radius: 4px;
  background: var(--canvas);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  color: var(--muted);
  font-family: "PP Neue Montreal", sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

#apply-form .info-btn:hover + .info-tip,
#apply-form .info-btn:focus-visible + .info-tip,
#apply-form .info-btn.is-active + .info-tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#apply-form input {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(238, 241, 246, 0.2);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: "PP Neue Montreal", sans-serif;
  font-size: 15px;
  padding: 10px 2px 12px;
}

#apply-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 84px;
  border: 1px solid rgba(238, 241, 246, 0.14);
  border-radius: 2px;
  background: rgba(238, 241, 246, 0.03);
  color: var(--ink);
  font-family: "PP Neue Montreal", sans-serif;
  font-size: 15px;
  padding: 11px 13px;
}

#apply-form input::placeholder,
#apply-form textarea::placeholder {
  color: rgba(124, 139, 171, 0.6);
}

#apply-form input:focus {
  outline: none;
  border-bottom-color: var(--blue);
}

#apply-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(0, 90, 230, 0.05);
}

.apply-submit {
  margin-top: 6px;
  width: 100%;
}

.modal-note {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}

.modal-note--error {
  color: #ff8a80;
}

@media (max-width: 640px) {
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal {
    max-width: none;
    border-radius: 16px 16px 0 0;
    max-height: 92vh;
    overflow-y: auto;
  }
}
