/* Jobs board — serious listing */

.jobs-hero {
  position: relative;
  margin-top: 0;
  padding: 7rem 0 2.75rem;
  background:
    radial-gradient(ellipse 70% 80% at 90% 20%, rgba(135, 82, 0, 0.28), transparent 55%),
    linear-gradient(135deg, #041329 0%, #0a1f3d 55%, #041329 100%);
  color: #fff;
  overflow: hidden;
}

.jobs-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 19, 41, 0.15) 0%, rgba(4, 19, 41, 0.05) 100%);
  pointer-events: none;
}

.jobs-hero__inner {
  position: relative;
  z-index: 1;
  text-align: left;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.jobs-hero__kicker {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffb866;
  margin-bottom: 0.85rem;
  text-align: left;
}

.jobs-hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 0.85rem;
  text-align: left;
}

.jobs-hero__lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 36rem;
  text-align: left;
}

.jobs-hero--detail {
  padding: 5.25rem 0 1.35rem;
}

.jobs-page--detail .jobs-board {
  padding-top: 1.15rem;
}

.jobs-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.15s ease;
}

.jobs-hero__back:hover {
  color: #fff;
}

.jobs-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.35rem;
}

.jobs-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.jobs-hero__meta .material-symbols-outlined {
  font-size: 1.05rem;
  color: #ffb866;
}

.jobs-board {
  padding-top: 2rem;
}

.jobs-layout {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .jobs-layout {
    grid-template-columns: minmax(15rem, 17.5rem) minmax(0, 1fr);
    gap: 2rem;
  }
}

.jobs-filters__card {
  background: #fff;
  border: 1px solid rgba(4, 19, 41, 0.1);
  padding: 1.35rem 1.25rem 1.5rem;
}

@media (min-width: 1024px) {
  .jobs-filters__card {
    position: sticky;
    top: 6.5rem;
  }
}

.jobs-filters__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5a6578;
  margin-bottom: 1.15rem;
}

.jobs-filter-field {
  margin-bottom: 1rem;
}

.jobs-filter-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.jobs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 0.375rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.jobs-btn--primary {
  background: #041329;
  color: #fff;
  border-color: #041329;
}

.jobs-btn--primary:hover {
  background: #0c2447;
}

.jobs-btn--ghost {
  background: #fff;
  color: #041329;
  border-color: #041329;
}

.jobs-btn--ghost:hover {
  background: #f3f4f5;
}

.filter-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #515f78;
  margin-bottom: 0.45rem;
}

.filter-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(4, 19, 41, 0.14);
  background: #f8f9fa;
  font-size: 0.875rem;
  color: #041329;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-input:focus {
  border-color: #875200;
  box-shadow: 0 0 0 1px #875200;
  background: #fff;
}

.filter-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.jobs-results__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.jobs-count {
  font-size: 0.875rem;
  color: #5a6578;
  font-weight: 600;
}

.jobs-list {
  display: grid;
  gap: 0.75rem;
}

.job-card {
  display: block;
  background: #fff;
  border: 1px solid rgba(4, 19, 41, 0.1);
  border-radius: 0.375rem;
  padding: 1.2rem 1.35rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.job-card:hover {
  border-color: rgba(135, 82, 0, 0.4);
  box-shadow: 0 8px 24px rgba(4, 19, 41, 0.06);
}

.job-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.job-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #041329;
  margin: 0;
}

.job-card__cat {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #875200;
  background: rgba(255, 159, 0, 0.12);
  padding: 0.25rem 0.55rem;
  border-radius: 0.25rem;
}

.job-card__excerpt {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #5a6578;
}

.job-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.8rem;
  color: #515f78;
  margin-top: 0.85rem;
}

.job-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.jobs-skeleton {
  height: 7rem;
  border-radius: 0.375rem;
  background: linear-gradient(90deg, #f3f4f5 25%, #e7e8e9 50%, #f3f4f5 75%);
  background-size: 200% 100%;
  animation: jobsPulse 1.2s ease-in-out infinite;
}

@keyframes jobsPulse {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.jobs-empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border: 1px dashed rgba(4, 19, 41, 0.18);
  background: #f8f9fa;
}

.jobs-empty .material-symbols-outlined {
  font-size: 2.25rem;
  color: #5a6578;
  margin-bottom: 0.65rem;
}

.jobs-empty p {
  color: #5a6578;
  margin-bottom: 1.15rem;
  font-weight: 600;
}

.jobs-empty .jobs-btn {
  width: auto;
  margin: 0 auto;
  min-width: 10rem;
}

.jobs-list.hidden,
.jobs-empty.hidden,
.job-apply-feedback.hidden {
  display: none !important;
}

/* Detail */
.job-description {
  max-width: 65ch;
}

.job-description p {
  margin-bottom: 0.75rem;
}

.job-description p:last-child {
  margin-bottom: 0;
}

.job-description ul,
.job-description ol {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
}

.job-description li {
  margin-bottom: 0.35rem;
}

.job-description h2,
.job-description h3,
.job-description h4 {
  font-weight: 700;
  margin: 1rem 0 0.5rem;
  color: #041329;
}

.job-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .job-detail-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

@media (min-width: 1280px) {
  .job-detail-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}

.job-detail-main {
  min-width: 0;
}

.job-apply-panel {
  background: #fff;
  border: 1px solid rgba(4, 19, 41, 0.1);
  border-radius: 0.5rem;
  padding: 1.15rem 1.25rem 1.25rem;
}

.job-apply-panel-head {
  margin-bottom: 0.15rem;
}

.job-apply-panel-head .font-headline {
  font-size: 1.15rem;
  line-height: 1.3;
}

@media (min-width: 1024px) {
  .job-detail-sidebar {
    position: sticky;
    top: 5.25rem;
  }
}

.job-apply-summary {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0.9rem;
  display: grid;
  gap: 0.4rem;
}

.job-apply-summary li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  color: #515f78;
}

.job-apply-summary .material-symbols-outlined {
  font-size: 1.05rem;
  color: #875200;
}

.job-apply-note {
  font-size: 0.8125rem;
  color: #5a6578;
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

.job-apply-btn,
a.job-apply-btn,
a.job-apply-btn:visited,
a.job-apply-btn:hover,
a.job-apply-btn:focus,
button.job-apply-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  background: #041329;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.9rem;
  border: 0;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.15s ease;
  margin-top: 0.55rem;
}

.job-apply-btn:hover,
a.job-apply-btn:hover {
  background: #0c2447;
  color: #ffffff !important;
}

.job-apply-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.job-apply-link {
  display: block;
  text-align: center;
  margin-top: 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #875200;
  text-decoration: none;
}

.job-apply-link:hover {
  text-decoration: underline;
}

.job-apply-footnote {
  margin-top: 0.55rem;
  font-size: 0.75rem;
  color: #5a6578;
  text-align: center;
}

.job-apply-user {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: #515f78;
  padding: 0.5rem 0.65rem;
  background: #f8f9fa;
  border-radius: 0.375rem;
  margin-bottom: 0.55rem;
}

.job-cover-letter {
  resize: vertical;
  min-height: 3.25rem;
  max-height: 9rem;
  margin-bottom: 0.35rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.job-apply-success {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.job-apply-success .material-symbols-outlined {
  color: #1f7a4d;
}

.job-status-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border-radius: 0.25rem;
  margin-bottom: 0.75rem;
}

.job-status-pending {
  background: rgba(135, 82, 0, 0.12);
  color: #875200;
}

.job-status-accepted {
  background: rgba(31, 122, 77, 0.12);
  color: #1f7a4d;
}

.job-status-rejected {
  background: rgba(186, 26, 26, 0.1);
  color: #ba1a1a;
}

.job-apply-feedback {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.375rem;
}

.job-apply-feedback--ok {
  background: rgba(31, 122, 77, 0.1);
  color: #1f7a4d;
}

.job-apply-feedback--err {
  background: rgba(186, 26, 26, 0.08);
  color: #ba1a1a;
}

.job-card-wrap {
  position: relative;
}

.job-card-wrap .job-card {
  padding-right: 3.25rem;
}

.job-card-save {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(4, 19, 41, 0.12);
  border-radius: 0.375rem;
  background: #fff;
  color: #5a6578;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.job-card-save:hover,
.job-card-save.is-saved {
  border-color: rgba(135, 82, 0, 0.45);
  color: #875200;
  background: rgba(255, 159, 0, 0.1);
}

.job-card-save .material-symbols-outlined {
  font-size: 1.15rem;
}

.job-save-btn,
a.job-save-btn {
  margin-top: 0.55rem;
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(4, 19, 41, 0.14);
  background: #fff;
  color: #041329;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.job-save-btn:hover,
a.job-save-btn:hover,
.job-save-btn.is-saved {
  border-color: rgba(135, 82, 0, 0.45);
  background: rgba(255, 159, 0, 0.1);
  color: #875200;
}

.job-save-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.job-back-to-jobs {
  display: block;
  text-align: center;
  margin-top: 0.35rem;
}

.jobs-modality-filters {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.jobs-modality-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(4, 19, 41, 0.12);
  background: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  color: #041329;
  cursor: pointer;
  user-select: none;
}

.jobs-modality-chip:has(input:checked) {
  border-color: rgba(31, 122, 77, 0.35);
  background: rgba(31, 122, 77, 0.08);
  color: #1f7a4d;
}

.jobs-modality-chip input {
  margin: 0;
  accent-color: #1f7a4d;
}

.career-list {
  display: grid;
  gap: 0.85rem;
}

.career-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(4, 19, 41, 0.1);
  border-radius: 0.75rem;
  padding: 1.15rem 1.25rem;
}

.career-card__main {
  flex: 1 1 16rem;
  min-width: 0;
}

.career-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.career-card__title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #041329;
}

.career-card__title a {
  color: inherit;
  text-decoration: none;
}

.career-card__title a:hover {
  color: #875200;
}

.career-card__excerpt {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #5a6578;
}

.career-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #515f78;
}

.career-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.career-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.career-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(4, 19, 41, 0.12);
  background: #041329;
  color: #fff;
  cursor: pointer;
}

.career-card__btn--ghost {
  background: #fff;
  color: #041329;
}

.career-card__btn:hover {
  opacity: 0.92;
}

.career-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
  padding: 3.5rem 1.5rem;
  border: 1px dashed rgba(4, 19, 41, 0.15);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.7);
}

.career-empty .material-symbols-outlined {
  font-size: 2rem;
  color: #875200;
}

