:root {
  --ispa-ink: #001f3f;
  --ispa-muted: #6a7282;
  --ispa-cream: #f7f8fa;
  --ispa-cream-2: #eef1f5;
  --ispa-green: #001f3f;
  --ispa-green-2: #3b82c4;
  --ispa-blue: #bae5fa;
  --ispa-white: #fff;
  --ispa-line: rgba(0, 31, 63, .13);
  --ispa-shadow: 0 24px 70px rgba(0, 31, 63, .10);
}

.ispa-careers,
.ispa-job {
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  color: var(--ispa-ink);
  background: #fff;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.65;
  box-sizing: border-box;
}

.ispa-careers *, .ispa-job * { box-sizing: border-box; }
.ispa-careers h1, .ispa-careers h2, .ispa-careers h3,
.ispa-job h1, .ispa-job h2, .ispa-job h3 {
  margin-top: 0;
  color: var(--ispa-ink);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.ispa-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--ispa-green-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
}

.ispa-eyebrow:before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.ispa-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 54px;
  padding: 13px 27px;
  border: 1px solid var(--ispa-green);
  border-radius: 999px;
  background: var(--ispa-green);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.ispa-button:hover { background: var(--ispa-green-2); transform: translateY(-2px); }
.ispa-button--outline { background: transparent; color: var(--ispa-green) !important; }
.ispa-button--outline:hover { background: var(--ispa-green); color: #fff !important; }

/* Legacy shell styles remain available for old cached markup, but the unified
   platform uses the site's real header and footer. */
.ispa-shell-header,
.ispa-shell-footer {
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  box-sizing: border-box;
  font-family: inherit;
}

.ispa-shell-header *,.ispa-shell-footer * { box-sizing: border-box; }
.ispa-shell-header {
  position: sticky;
  z-index: 999;
  top: 0;
  border-bottom: 1px solid rgba(23,33,29,.1);
  background: rgba(250,249,246,.94);
  box-shadow: 0 6px 22px rgba(20,37,30,.04);
  backdrop-filter: blur(18px);
}
.admin-bar .ispa-shell-header { top: 32px; }
.ispa-shell-header__inner {
  display: grid;
  grid-template-columns: 190px minmax(0,1fr) 190px;
  gap: 30px;
  align-items: center;
  max-width: 1380px;
  min-height: 86px;
  margin: 0 auto;
  padding: 12px 38px;
}
.ispa-shell-logo {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  width: max-content;
  color: var(--ispa-green) !important;
  text-decoration: none !important;
}
.ispa-shell-logo img { display: block; width: 145px; max-height: 52px; object-fit: contain; object-position: right center; }
.ispa-shell-logo__word { font-family: Arial,sans-serif; font-size: 31px; font-weight: 400; line-height: .9; letter-spacing: -.07em; }
.ispa-shell-logo__wave { width: 70px; height: 8px; margin-top: 2px; color: #58a7bb; }
.ispa-shell-logo small { position: absolute; right: calc(100% + 11px); bottom: 2px; color: var(--ispa-muted); font-size: 10px; font-weight: 800; letter-spacing: .03em; }
.ispa-shell-nav { display: flex; justify-content: center; gap: 34px; }
.ispa-shell-nav a { position: relative; color: var(--ispa-ink) !important; text-decoration: none !important; font-size: 14px; font-weight: 700; }
.ispa-shell-nav a:after { content: ""; position: absolute; right: 0; bottom: -7px; width: 0; height: 1px; background: var(--ispa-green); transition: width .2s ease; }
.ispa-shell-nav a:hover:after { width: 100%; }
.ispa-shell-cta { display: inline-flex; justify-self: end; align-items: center; justify-content: center; gap: 11px; min-height: 46px; padding: 10px 20px; border-radius: 999px; background: var(--ispa-green); color: #fff !important; text-decoration: none !important; font-size: 13px; font-weight: 800; }
.ispa-shell-cta span { transition: transform .2s ease; }
.ispa-shell-cta:hover span { transform: translateX(-4px); }

.ispa-shell-footer { overflow: hidden; background: #001f3f; color: #fff; }
.ispa-shell-footer__top { display: grid; grid-template-columns: minmax(330px,1.5fr) repeat(3,minmax(150px,.55fr)); gap: clamp(35px,6vw,90px); max-width: 1380px; margin: 0 auto; padding: clamp(70px,8vw,110px) 42px; }
.ispa-shell-logo--footer { color: #fff !important; }
.ispa-shell-footer__brand h2 { max-width: 520px; margin: 38px 0 18px; color: #fff; font-size: clamp(34px,4vw,55px); line-height: 1.05; letter-spacing: -.04em; }
.ispa-shell-footer__brand p { max-width: 490px; margin: 0; color: rgba(255,255,255,.6); }
.ispa-shell-footer__column { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 6px; }
.ispa-shell-footer__column > span { margin-bottom: 13px; color: #9fcbbb; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.ispa-shell-footer__column a { color: #fff !important; text-decoration: none !important; font-size: 14px; }
.ispa-shell-footer__column a:hover { color: #b9dfe8 !important; }
.ispa-shell-footer__column p { margin: 0; color: rgba(255,255,255,.62); font-size: 14px; }
.ispa-shell-footer__bottom { display: flex; justify-content: space-between; gap: 25px; max-width: 1380px; margin: 0 auto; padding: 24px 42px 32px; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.48); font-size: 12px; }
.ispa-shell-footer__bottom a { color: rgba(255,255,255,.75) !important; text-decoration: none !important; }

/* Careers landing */
.ispa-careers-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr);
  gap: clamp(45px, 7vw, 110px);
  align-items: center;
  max-width: 1440px;
  min-height: 760px;
  margin: 0 auto;
  padding: clamp(70px, 9vw, 130px) 42px;
}

.ispa-careers-hero__copy { position: relative; z-index: 2; }
.ispa-careers-hero h1 {
  max-width: 650px;
  margin-bottom: 28px;
  font-size: clamp(54px, 6.2vw, 92px);
}

.ispa-careers-hero__copy > p {
  max-width: 620px;
  margin: 0 0 38px;
  color: var(--ispa-muted);
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.65;
}

.ispa-careers-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.ispa-careers-hero__actions > span { color: var(--ispa-muted); font-size: 14px; font-weight: 700; }
.ispa-careers-hero__visual { position: relative; min-height: 590px; }
.ispa-careers-hero__visual:before {
  content: "";
  position: absolute;
  inset: 36px -35px -35px 38px;
  border-radius: 240px 30px 30px 30px;
  background: var(--ispa-blue);
}
.ispa-careers-hero__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 240px 30px 30px 30px;
  object-fit: cover;
  box-shadow: var(--ispa-shadow);
}
.ispa-hero-stamp {
  position: absolute;
  right: -28px;
  bottom: 34px;
  display: flex;
  flex-direction: column;
  min-width: 190px;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--ispa-green);
  color: #fff;
  box-shadow: var(--ispa-shadow);
}
.ispa-hero-stamp strong { font-size: 24px; }
.ispa-hero-stamp span { opacity: .74; font-size: 12px; }

.ispa-work, .ispa-open-jobs, .ispa-process {
  padding: clamp(80px, 10vw, 145px) 42px;
}
.ispa-work { background: var(--ispa-ink); color: #fff; }
.ispa-work .ispa-eyebrow { color: #b6d9ca; }
.ispa-work h2, .ispa-work h3 { color: #fff; }
.ispa-section-heading { max-width: 1280px; margin: 0 auto 58px; }
.ispa-section-heading h2 { max-width: 820px; margin-bottom: 0; font-size: clamp(40px, 5.4vw, 72px); }
.ispa-work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.ispa-work-grid article { min-height: 300px; padding: 38px 34px 10px; border-left: 1px solid rgba(255,255,255,.2); }
.ispa-work-grid article:last-child { border-left: 0; }
.ispa-work-grid article > span { color: #b6d9ca; font-size: 13px; }
.ispa-work-grid h3 { margin: 65px 0 16px; font-size: 29px; }
.ispa-work-grid p { max-width: 330px; margin: 0; color: rgba(255,255,255,.7); }

.ispa-open-jobs { background: var(--ispa-cream); scroll-margin-top: 110px; }
.ispa-section-heading--jobs { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.ispa-section-heading--jobs h2 { max-width: 720px; }
.ispa-section-heading--jobs > p { margin: 0 0 7px; color: var(--ispa-muted); font-size: 14px; font-weight: 800; }
.ispa-jobs-list { max-width: 1280px; margin: 0 auto; border-top: 1px solid var(--ispa-line); }
.ispa-job-card {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr) 190px;
  gap: 28px;
  align-items: center;
  min-height: 250px;
  padding: 38px 10px;
  border-bottom: 1px solid var(--ispa-line);
  transition: padding .2s ease, background .2s ease;
}
.ispa-job-card:hover { padding-inline: 24px; background: rgba(255,255,255,.45); }
.ispa-job-card__number { align-self: start; color: var(--ispa-green-2); direction: ltr; font-size: 13px; font-weight: 800; }
.ispa-job-card__dept { color: var(--ispa-green-2); font-size: 13px; font-weight: 800; }
.ispa-job-card h3 { margin: 8px 0 15px; font-size: clamp(31px, 3.3vw, 48px); }
.ispa-job-card h3 a { color: inherit; text-decoration: none; }
.ispa-job-card p { max-width: 720px; margin: 18px 0 0; color: var(--ispa-muted); }
.ispa-job-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ispa-muted); font-size: 14px; }
.ispa-job-meta span { display: inline-flex; align-items: center; gap: 8px; }
.ispa-job-meta span:before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ispa-green-2); }
.ispa-job-card__link { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--ispa-green); text-decoration: none !important; font-weight: 800; }
.ispa-job-card__link b { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--ispa-green); border-radius: 50%; font-size: 20px; transition: .2s ease; }
.ispa-job-card:hover .ispa-job-card__link b { background: var(--ispa-green); color: #fff; transform: translateX(-4px); }
.ispa-empty { max-width: 1280px; margin: 0 auto; padding: clamp(45px, 7vw, 82px); border: 1px solid var(--ispa-line); border-radius: 30px; background: rgba(255,255,255,.5); }
.ispa-empty__mark { color: var(--ispa-green-2); font-size: 13px; font-weight: 800; }
.ispa-empty h3 { max-width: 780px; margin: 18px 0; font-size: clamp(32px, 4vw, 54px); }
.ispa-empty p { max-width: 720px; margin: 0 0 28px; color: var(--ispa-muted); }

.ispa-process { background: #faf9f6; }
.ispa-process ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1280px; margin: 0 auto; padding: 0; list-style: none; }
.ispa-process li { display: flex; gap: 20px; min-height: 190px; padding: 30px; border: 1px solid var(--ispa-line); border-radius: 22px; background: #fff; }
.ispa-process li > span { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ispa-blue); color: var(--ispa-ink); font-weight: 900; }
.ispa-process h3 { margin: 5px 0 12px; font-size: 23px; }
.ispa-process p { margin: 0; color: var(--ispa-muted); }

/* Single job */
.ispa-job-hero { background: var(--ispa-cream); padding: clamp(60px, 7vw, 100px) 42px; }
.ispa-job-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .72fr); gap: clamp(45px, 7vw, 100px); align-items: center; max-width: 1280px; margin: 0 auto; }
.ispa-job-hero__copy { padding-block: 25px; }
.ispa-back { display: block; margin-bottom: 55px; color: var(--ispa-green); text-decoration: none !important; font-size: 14px; font-weight: 800; }
.ispa-back:before { content: "←"; margin-left: 8px; }
.ispa-job-hero h1 { max-width: 760px; margin-bottom: 26px; font-size: clamp(50px, 6vw, 82px); }
.ispa-job-meta--hero { margin-bottom: 36px; font-size: 15px; }
.ispa-job-hero__image { height: 570px; }
.ispa-job-hero__image img { width: 100%; height: 100%; border-radius: 220px 28px 28px 28px; object-fit: cover; box-shadow: var(--ispa-shadow); }
.ispa-job-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(350px, .62fr); gap: clamp(50px, 8vw, 110px); align-items: start; max-width: 1180px; margin: 0 auto; padding: clamp(75px, 9vw, 125px) 32px; }
.ispa-job-content { font-size: 18px; }
.ispa-job-content .ispa-lead { margin: 0 0 42px; color: var(--ispa-green); font-size: clamp(25px, 2.6vw, 36px); line-height: 1.5; letter-spacing: -.02em; }
.ispa-job-description { margin-bottom: 45px; color: var(--ispa-muted); }
.ispa-content-section { padding: 38px 0; border-top: 1px solid var(--ispa-line); }
.ispa-content-section h2 { margin-bottom: 22px; font-size: clamp(29px, 3vw, 40px); }
.ispa-content-section ul { margin: 0; padding: 0 1.25em 0 0; }
.ispa-content-section li { margin-bottom: 11px; }
.ispa-job-aside { position: sticky; top: 30px; }
.ispa-application, .ispa-closed, .ispa-form-success { padding: clamp(28px, 4vw, 42px); border-radius: 26px; background: var(--ispa-ink); color: #fff; box-shadow: var(--ispa-shadow); scroll-margin-top: 110px; }
.ispa-application h2, .ispa-closed h2, .ispa-form-success h2 { margin-bottom: 9px; color: #fff; font-size: 36px; }
.ispa-form-kicker { display: block; margin-bottom: 12px; color: #b6d9ca; font-size: 12px; font-weight: 800; }
.ispa-application > p, .ispa-closed p { margin: 0 0 27px; color: rgba(255,255,255,.7); }
.ispa-application-form { display: grid; gap: 16px; }
.ispa-application-form label > span { display: block; margin-bottom: 6px; color: rgba(255,255,255,.88); font-size: 13px; font-weight: 700; }
.ispa-application-form input[type=text], .ispa-application-form input[type=tel], .ispa-application-form input[type=email], .ispa-application-form input[type=file], .ispa-application-form textarea { width: 100%; padding: 13px 14px; border: 1px solid rgba(255,255,255,.24); border-radius: 12px; outline: 0; background: rgba(255,255,255,.08); color: #fff; font: inherit; }
.ispa-application-form input[type=file] { font-size: 13px; }
.ispa-application-form input:focus, .ispa-application-form textarea:focus { border-color: #b6d9ca; box-shadow: 0 0 0 3px rgba(182,217,202,.14); }
.ispa-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ispa-file small { display: block; margin-top: 5px; color: rgba(255,255,255,.6); font-size: 11px; }
.ispa-consent { display: grid !important; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; color: rgba(255,255,255,.64); font-size: 11px; }
.ispa-consent span { margin: 0 !important; color: inherit !important; font-weight: 400 !important; }
.ispa-consent input { margin-top: 4px; }
.ispa-submit { width: 100%; margin-top: 4px; border-color: #fadfba; background: #fadfba; color: var(--ispa-ink) !important; }
.ispa-submit:hover { background: #f3cd94; }
.ispa-submit:disabled { opacity: .6; cursor: wait; }
.ispa-hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.ispa-form-error { padding: 11px 13px; border-radius: 10px; background: #fff0ef; color: #8c2921; font-size: 13px; }
.ispa-form-success { text-align: center; }
.ispa-form-success > span { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; background: #fff; color: var(--ispa-green); font-size: 24px; }
.ispa-form-success:focus { outline: none; }

@media (max-width: 980px) {
  .ispa-shell-header__inner { grid-template-columns: 150px minmax(0,1fr); }
  .ispa-shell-nav { display: none; }
  .ispa-shell-cta { grid-column: 2; grid-row: 1; }
  .ispa-shell-footer__top { grid-template-columns: repeat(2,1fr); }
  .ispa-shell-footer__brand { grid-column: 1 / -1; }
  .ispa-careers-hero, .ispa-job-hero__inner, .ispa-job-layout { grid-template-columns: 1fr; }
  .ispa-careers-hero { min-height: 0; }
  .ispa-careers-hero__visual { min-height: 520px; }
  .ispa-work-grid, .ispa-process ol { grid-template-columns: 1fr; }
  .ispa-work-grid article { min-height: 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .ispa-work-grid h3 { margin-top: 35px; }
  .ispa-job-card { grid-template-columns: 86px minmax(0,1fr); }
  .ispa-job-card__link { grid-column: 2; justify-content: flex-start; }
  .ispa-job-aside { position: static; }
  .ispa-job-hero__image { height: 470px; }
}

@media (max-width: 620px) {
  .admin-bar .ispa-shell-header { top: 46px; }
  .ispa-shell-header__inner { grid-template-columns: 120px minmax(0,1fr); min-height: 72px; padding-inline: 18px; }
  .ispa-shell-logo__word { font-size: 27px; }
  .ispa-shell-logo small { display: none; }
  .ispa-shell-cta { min-height: 42px; padding: 8px 15px; font-size: 12px; }
  .ispa-shell-footer__top { grid-template-columns: 1fr; padding-inline: 24px; }
  .ispa-shell-footer__brand { grid-column: auto; }
  .ispa-shell-footer__bottom { flex-direction: column; padding-inline: 24px; }
  .ispa-careers, .ispa-job { font-size: 16px; }
  .ispa-careers-hero, .ispa-work, .ispa-open-jobs, .ispa-process, .ispa-job-hero { padding-inline: 20px; }
  .ispa-careers-hero { padding-top: 58px; }
  .ispa-careers-hero h1 { font-size: clamp(38px, 12vw, 49px); }
  .ispa-careers-hero__visual { min-height: 410px; }
  .ispa-careers-hero__visual img, .ispa-careers-hero__visual:before { border-radius: 130px 20px 20px 20px; }
  .ispa-hero-stamp { right: 12px; bottom: 18px; }
  .ispa-section-heading--jobs { display: block; }
  .ispa-job-card { grid-template-columns: 1fr; gap: 10px; padding-block: 26px; }
  .ispa-job-card:hover { padding-inline: 10px; }
  .ispa-job-card__number{order:-1;}
  .ispa-job-card__link { grid-column: 1; justify-content:flex-start; }
  .ispa-job-layout { padding-inline: 20px; }
  .ispa-job-hero h1 { font-size: clamp(38px, 12vw, 48px); }
  .ispa-job-hero__image { height: 320px; }
  .ispa-job-hero__image img { border-radius: 130px 20px 20px 20px; }
  .ispa-form-row { grid-template-columns: 1fr; }
  .ispa-application, .ispa-closed, .ispa-form-success { padding: 25px; border-radius: 20px; }
  .ispa-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ispa-button, .ispa-job-card, .ispa-job-card__link b { transition: none; }
  .ispa-button:hover, .ispa-job-card:hover .ispa-job-card__link b { transform: none; }
}
