/* Careers Pages Styles - Light Theme */

/* Override dark theme for both careers pages */
body.dark-theme:has(.careers-main),
body.dark-theme:has(.career-detail-main) {
  background-color: #efefef;
}

/* Shared container base */
.careers-main,
.career-detail-main {
  font-family: 'Inter', system-ui, sans-serif;
  margin: 0 auto;
  padding: 2rem 1rem;
  box-sizing: border-box;
  background-color: #efefef;
  min-height: 100vh;
  color: #111111;
}
@media (max-width: 639px) {
  .careers-main,
  .career-detail-main {
    padding-top: 80px;
  }
}
@media (min-width: 640px) {
  .careers-main,
  .career-detail-main {
    padding: 3rem 1.5rem;
    padding-top: 120px;
  }
}

/* Listing-specific width */
.careers-main {
  max-width: 64rem;
}

/* Detail-specific width */
.career-detail-main {
  max-width: 880px;
}

/* Headings */
.careers-title,
.career-detail-title {
  font-family: 'PT Sans', sans-serif;
  font-size: 32px;
  line-height: 119%;
  font-weight: 700;
  letter-spacing: -0.44px;
  margin: 0 0 0.5rem 0;
  color: #111111;
}
@media (min-width: 640px) {
  .careers-title,
  .career-detail-title {
    font-size: 44px;
  }
}

.careers-subtitle,
.career-detail-meta {
  color: #6b7280;
  margin: 0;
}

/* Listing page header */
.careers-header {
  margin-bottom: 2.5rem;
}

/* Role list */
.careers-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Role card */
.career-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e5e5e5;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 150ms ease, border-color 150ms ease;
}
.career-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #d4d4d4;
}

.career-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.career-card-title {
  font-family: 'PT Sans', sans-serif;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
  margin: 0;
  color: #111111;
}
@media (min-width: 640px) {
  .career-card-title { font-size: 1.5rem; }
}

.career-card-meta {
  color: #6b7280;
  font-size: 0.95rem;
  margin: 0;
}

.career-card-cta {
  flex-shrink: 0;
  color: #111111;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}
.career-card:hover .career-card-cta {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .career-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* Detail page back link */
.career-detail-back {
  display: inline-block;
  color: #6b7280;
  font-size: 0.95rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
}
.career-detail-back:hover {
  color: #111111;
  text-decoration: underline;
}

/* Detail header */
.career-detail-header {
  margin-bottom: 2rem;
}

/* Detail body */
.career-detail-body {
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e5e5e5;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
@media (min-width: 640px) {
  .career-detail-body { padding: 2.5rem; }
}

.career-detail-body h2 {
  font-family: 'PT Sans', sans-serif;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
  color: #111111;
  margin: 1.75rem 0 0.75rem 0;
}
.career-detail-body h2:first-child {
  margin-top: 0;
}

.career-detail-body p {
  color: #374151;
  line-height: 1.65;
  margin: 0 0 1rem 0;
}

.career-detail-body ul {
  color: #374151;
  line-height: 1.65;
  margin: 0 0 1rem 0;
  padding-left: 1.25rem;
}
.career-detail-body li {
  margin-bottom: 0.4rem;
}

/* Apply form section */
.career-apply-section {
  margin-top: 2rem;
}

.career-apply-card {
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e5e5e5;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
@media (min-width: 640px) {
  .career-apply-card { padding: 2.5rem; }
}

.career-apply-title {
  font-family: 'PT Sans', sans-serif;
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
  color: #111111;
  margin: 0 0 0.5rem 0;
}

.career-apply-intro {
  color: #6b7280;
  margin: 0 0 1.5rem 0;
}

.career-apply-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.career-apply-row {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .career-apply-row {
    grid-template-columns: 1fr 1fr;
  }
}

.career-apply-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.career-apply-field[hidden] {
  display: none;
}

.career-apply-label {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: #111111;
  font-size: 0.95rem;
  font-weight: 500;
}

.career-apply-hint {
  color: #6b7280;
  font-size: 0.8125rem;
  font-weight: 400;
}

.career-apply-prompt {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.career-apply-input,
.career-apply-textarea,
.career-apply-select {
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #111111;
  background-color: #ffffff;
  border: 1px solid #d4d4d8;
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.career-apply-input:focus,
.career-apply-textarea:focus,
.career-apply-select:focus {
  outline: none;
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}
.career-apply-textarea {
  resize: vertical;
  min-height: 6rem;
}

.career-apply-file {
  font-family: inherit;
  font-size: 0.95rem;
  color: #111111;
  padding: 0.5rem 0;
}
.career-apply-file::file-selector-button {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: #111111;
  background-color: #f4f4f5;
  border: 1px solid #d4d4d8;
  border-radius: 0.5rem;
  padding: 0.45rem 0.85rem;
  margin-right: 0.75rem;
  cursor: pointer;
  transition: background-color 150ms ease;
}
.career-apply-file::file-selector-button:hover {
  background-color: #e4e4e7;
}

.career-apply-submit {
  align-self: flex-start;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #111111;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  margin-top: 0.5rem;
  cursor: pointer;
  transition: background-color 150ms ease, opacity 150ms ease;
}
.career-apply-submit:hover {
  background-color: #1f2937;
}
.career-apply-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.career-apply-error {
  color: #b91c1c;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin: 0;
  font-size: 0.95rem;
}

.career-apply-success {
  text-align: center;
  padding: 1.5rem 0;
}
.career-apply-success-title {
  font-family: 'PT Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111111;
  margin: 0 0 0.5rem 0;
}
.career-apply-success-text {
  color: #374151;
  margin: 0;
}

/* Honeypot — must remain submittable but be off-screen and unfocusable visually */
.career-apply-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Native select dropdown — strip default chrome and draw a custom chevron */
.career-apply-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236b7280' stroke-width='1.5'%3e%3cpath d='M4 6l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}
/* Placeholder text color — applied via JS class so it works in every browser
   without depending on :invalid (which has flaky cross-browser quirks). */
.career-apply-select.is-empty {
  color: #6b7280;
}
