.careers-hero,
.job-hero {
  padding: 76px 0;
  background: #eef3f8;
}

.careers-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.careers-hero-content,
.job-hero-content {
  min-width: 0;
  max-width: 780px;
}

.careers-hero h1,
.job-hero h1 {
  margin: 0;
  color: #172033;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1;
  overflow-wrap: break-word;
}

.careers-hero p,
.job-hero p {
  margin: 22px 0 0;
  color: #455268;
  font-size: 1.15rem;
  line-height: 1.65;
}

.careers-hero-actions,
.final-careers-actions,
.job-apply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.careers-hero-media {
  min-height: 360px;
  border-radius: 8px;
  background: #36454F;
  overflow: hidden;
}

.careers-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.positions-section,
.look-for-section,
.job-detail-section {
  padding: 72px 0;
  background: #ffffff;
}

.process-section {
  padding: 72px 0;
  background: #f7f8fa;
}

.section-heading {
  min-width: 0;
  max-width: 780px;
}

.section-heading h2,
.job-section h2,
.notice-box h2,
.final-careers-cta h2 {
  margin: 0;
  color: #172033;
  font-size: 2rem;
  line-height: 1.2;
}

.section-heading p,
.final-careers-cta p,
.job-section p {
  margin: 16px 0 0;
  color: #455268;
  font-size: 1.05rem;
  line-height: 1.65;
}

.position-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.position-card,
.job-info-card,
.notice-box {
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  background: #ffffff;
}

.position-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  padding: 24px;
}

.position-card h3 {
  margin: 0;
  color: #172033;
  font-size: 1.18rem;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.position-meta,
.job-meta {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  color: #536074;
  font-size: 0.95rem;
  line-height: 1.45;
  list-style: none;
}

.position-meta li,
.job-meta li {
  position: relative;
  padding-left: 16px;
}

.position-meta li::before,
.job-meta li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #5F9EA0;
  content: "";
}

.position-card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: auto;
  padding-top: 24px;
  color: #172033;
  font-weight: 700;
}

.position-card-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #ffffff;
  background: #5F9EA0;
  transition: background 160ms ease, transform 160ms ease;
}

.position-card-link:hover,
.position-card-link:focus {
  color: #111827;
  text-decoration: underline;
}

.position-card-link:hover span,
.position-card-link:focus span {
  background: #4f8f91;
  transform: translateX(2px);
}

.look-for-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.look-for-grid li {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  color: #172033;
  background: #ffffff;
  font-weight: 700;
  overflow-wrap: break-word;
}

.process-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  position: relative;
  min-width: 0;
  min-height: 54px;
  padding: 15px 18px 15px 62px;
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  color: #172033;
  background: #ffffff;
  font-weight: 700;
  overflow-wrap: break-word;
}

.process-list li::before {
  position: absolute;
  top: 12px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #ffffff;
  background: #5F9EA0;
  content: counter(process);
  counter-increment: process;
  font-size: 0.9rem;
  font-weight: 700;
}

.process-note,
.application-status-notice,
.fieldset-note {
  margin: 18px 0 0;
  color: #455268;
  font-size: 1rem;
  line-height: 1.6;
}

.process-note,
.application-status-notice {
  max-width: 860px;
  padding: 16px 18px;
  border-left: 4px solid #5F9EA0;
  border-radius: 8px;
  background: #ffffff;
}

.notice-section {
  padding: 0 0 72px;
  background: #ffffff;
}

.notice-box {
  padding: 24px;
  border-left: 4px solid #5F9EA0;
}

.notice-box p {
  margin: 12px 0 0;
  color: #455268;
  font-size: 1rem;
  line-height: 1.65;
}

.final-careers-cta {
  padding: 72px 0;
  background: #172033;
}

.final-careers-inner {
  max-width: 760px;
  text-align: center;
}

.final-careers-cta h2 {
  color: #ffffff;
}

.final-careers-cta p {
  max-width: 640px;
  margin-right: auto;
  margin-left: auto;
  color: #dce3ee;
}

.final-careers-actions {
  justify-content: center;
}

.final-careers-cta .button-secondary {
  color: #ffffff;
  background: transparent;
  border-color: #ffffff;
}

.final-careers-cta .button-secondary:hover,
.final-careers-cta .button-secondary:focus {
  color: #ffffff;
  background: #b90036;
  border-color: #b90036;
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: #5F9EA0;
  font-weight: 700;
}

.back-link:hover,
.back-link:focus {
  color: #172033;
  text-decoration: underline;
}

.job-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 18px 0 0;
  padding: 7px 12px;
  border: 1px solid rgba(95, 158, 160, 0.35);
  border-radius: 999px;
  color: #172033;
  background: rgba(95, 158, 160, 0.12);
  font-size: 0.92rem;
  font-weight: 700;
}

.job-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 34px;
  align-items: start;
}

.job-info-card {
  min-width: 0;
  padding: 24px;
  background: #f7f8fa;
}

.job-info-card h2 {
  margin: 0;
  color: #172033;
  font-size: 1.25rem;
  line-height: 1.25;
}

.job-info-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}

.job-info-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dfe3ea;
}

.job-info-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.job-info-list dt {
  color: #172033;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}

.job-info-list dd {
  margin: 0;
  color: #536074;
  font-size: 0.95rem;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.job-content {
  display: grid;
  min-width: 0;
  gap: 30px;
}

.job-section ul {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding-left: 20px;
  color: #455268;
  font-size: 1rem;
  line-height: 1.55;
}

.job-apply {
  min-width: 0;
  padding: 24px;
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  background: #f7f8fa;
}

.job-apply h2 {
  margin: 0;
  color: #172033;
  font-size: 1.45rem;
  line-height: 1.2;
}

.job-apply p {
  margin: 12px 0 0;
  color: #455268;
  font-size: 1rem;
  line-height: 1.6;
}

.job-apply .button {
  margin-top: 22px;
}

.application-section {
  padding: 72px 0;
  background: #ffffff;
}

.careers-form {
  display: grid;
  gap: 22px;
  max-width: 980px;
  margin-top: 34px;
}

.careers-form fieldset,
.voluntary-section {
  min-width: 0;
  margin: 0;
  padding: 24px;
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  background: #ffffff;
}

.careers-form legend,
.voluntary-section h2 {
  margin: 0;
  padding: 0;
  color: #172033;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.voluntary-section h2 {
  margin-bottom: 12px;
}

.voluntary-section p {
  margin: 0 0 12px;
  color: #455268;
  font-size: 0.98rem;
  line-height: 1.6;
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.application-grid-full {
  grid-column: 1 / -1;
}

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

.careers-form label,
.careers-form .field-label {
  color: #172033;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.careers-form input,
.careers-form select,
.careers-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #c8d0dc;
  border-radius: 6px;
  color: #172033;
  background: #ffffff;
  font: inherit;
}

.careers-form textarea {
  min-height: 120px;
  resize: vertical;
}

.careers-form input:focus,
.careers-form select:focus,
.careers-form textarea:focus {
  border-color: #5F9EA0;
  outline: 3px solid rgba(95, 158, 160, 0.18);
}

.careers-form input[aria-invalid="true"],
.careers-form select[aria-invalid="true"],
.careers-form textarea[aria-invalid="true"] {
  border-color: #b42318;
}

.choice-grid,
.statement-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.choice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-grid label,
.statement-list label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dfe3ea;
  border-radius: 6px;
  color: #455268;
  background: #f7f8fa;
  font-size: 0.92rem;
  font-weight: 600;
}

.choice-grid input,
.statement-list input {
  width: auto;
  min-height: 0;
  margin-top: 3px;
  flex: 0 0 auto;
}

.employment-history {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #dfe3ea;
}

.employment-history:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.employment-history h3 {
  margin: 0;
  color: #172033;
  font-size: 1rem;
  line-height: 1.25;
}

@media (max-width: 900px) {
  .careers-hero-grid,
  .job-layout {
    grid-template-columns: 1fr;
  }

  .careers-hero-media {
    min-height: 300px;
  }

  .position-grid {
    grid-template-columns: 1fr;
  }

  .look-for-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 699px) {
  .careers-hero,
  .job-hero {
    padding: 42px 0;
  }

  .careers-hero h1,
  .job-hero h1 {
    max-width: 10em;
    font-size: clamp(1.55rem, 7vw, 1.7rem);
    line-height: 1.18;
  }

  .careers-hero p,
  .job-hero p,
  .section-heading p,
  .final-careers-cta p,
  .job-section p {
    max-width: min(100%, 20rem);
    margin-top: 14px;
    font-size: 0.9rem;
    line-height: 1.55;
    overflow-wrap: break-word;
  }

  .careers-hero-actions,
  .final-careers-actions,
  .job-apply-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
  }

  .careers-hero-actions .button,
  .final-careers-actions .button,
  .job-apply-actions .button {
    width: 100%;
    min-height: 44px;
    padding: 12px 20px;
    font-size: 0.92rem;
  }

  .careers-hero-media {
    min-height: 230px;
    border-radius: 6px;
  }

  .positions-section,
  .look-for-section,
  .process-section,
  .job-detail-section,
  .final-careers-cta,
  .application-section {
    padding: 42px 0;
  }

  .notice-section {
    padding-bottom: 42px;
  }

  .section-heading h2,
  .job-section h2,
  .notice-box h2,
  .final-careers-cta h2 {
    font-size: 1.45rem;
    line-height: 1.2;
  }

  .position-grid {
    gap: 10px;
    margin-top: 22px;
  }

  .position-card,
  .job-info-card,
  .notice-box,
  .job-apply,
  .careers-form fieldset,
  .voluntary-section {
    padding: 16px;
  }

  .position-card h3 {
    font-size: 1rem;
  }

  .position-meta,
  .job-meta,
  .job-info-list dd,
  .job-section ul,
  .notice-box p,
  .job-apply p {
    font-size: 0.86rem;
  }

  .look-for-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  .application-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .look-for-grid li,
  .process-list li {
    padding-top: 13px;
    padding-bottom: 13px;
    font-size: 0.9rem;
  }

  .job-status {
    font-size: 0.84rem;
  }

  .careers-form {
    gap: 16px;
    margin-top: 24px;
  }

  .careers-form legend,
  .voluntary-section h2 {
    font-size: 1.08rem;
  }

  .careers-form label,
  .careers-form .field-label,
  .choice-grid label,
  .statement-list label,
  .process-note,
  .application-status-notice,
  .fieldset-note,
  .voluntary-section p {
    font-size: 0.86rem;
  }
}
