:root {
  color-scheme: light;
  --ink: #12263e;
  --muted: #4d6076;
  --blue: #285884;
  --line: #d8e3ee;
  --paper: #fff;
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: #edf3fa;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  min-width: 280px;
  margin: 0;
  background: radial-gradient(ellipse at top left, #fff 0, #f2f7fc 45%, #e6eef8 100%);
}
a { color: inherit; }
button, input, select { font: inherit; }
button, input[type="file"]::file-selector-button { cursor: pointer; }
:focus-visible {
  outline: 2px solid #3879af;
  outline-offset: 4px;
}

.site-frame {
  width: min(100% - 5rem, 82rem);
  min-height: 100svh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}
.site-header {
  min-height: 5.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.brand, .home-link {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  font-weight: 650;
}
.brand { letter-spacing: -.025em; }
.brand img { display: block; border-radius: .65rem; }
.home-link {
  gap: .5rem;
  color: var(--muted);
  font-size: .85rem;
}
.home-link:hover { color: var(--ink); text-decoration: underline; }

.careers {
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  min-height: 42rem;
  border-radius: 1.75rem;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 1px 0 #172c4817, 0 24px 75px #1b3f6d1c;
}
.scenic {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  color: #f4f8ff;
  background:
    linear-gradient(175deg, #071828e6 0%, #0a1b2bbd 31%, #1020392e 68%, #091b33b3 100%),
    #11283c url("careers-aurora.webp") 54% center / cover no-repeat;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0;
  color: var(--blue);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .17em;
  line-height: 1.6;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 1.25rem;
  height: 1px;
  background: currentColor;
}
.scenic .eyebrow { color: #d1e3f8; }
.scenic h1, .scenic h2 {
  max-width: 6.4em;
  margin: 2rem 0 1.4rem;
  font-size: clamp(3.1rem, 6.3vw, 6.55rem);
  font-weight: 400;
  letter-spacing: -.083em;
  line-height: .91;
}
.scenic em {
  display: block;
  color: #dcdefe;
  font: italic 400 1.04em/.95 Georgia, serif;
  letter-spacing: -.08em;
}
.scenic-intro {
  max-width: 21rem;
  margin: 0;
  color: #e8f1ff;
  font-size: clamp(.94rem, 1.35vw, 1.07rem);
  line-height: 1.65;
}
.scenic-caption {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0;
  font-size: .65rem;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.scenic-caption span {
  flex: none;
  width: .42rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #cbe9ff;
  box-shadow: 0 0 14px #bbdfff;
}

.panel {
  min-width: 0;
  padding: clamp(2rem, 4.2vw, 3.75rem);
  background: linear-gradient(145deg, #fff 35%, #f8fbfe);
}
.panel-heading { margin-bottom: 1.6rem; }
.panel-heading h1, .panel-heading h2 {
  margin: .65rem 0 .5rem;
  font-size: clamp(1.85rem, 3.2vw, 2.85rem);
  font-weight: 560;
  letter-spacing: -.06em;
  line-height: 1.07;
  text-wrap: balance;
}
.panel-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}
.application { display: grid; gap: .94rem; }
.field, .field-row { display: grid; gap: .36rem; min-width: 0; }
.field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .9rem; }
.field label { font-size: .85rem; font-weight: 650; }
.field-note {
  margin-left: .25rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 400;
}
.field input:not([type="file"]), .field select {
  width: 100%;
  min-width: 0;
  min-height: 2.85rem;
  padding: .55rem .8rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  color: var(--ink);
  background: var(--paper);
}
.field input::placeholder, .field select:invalid { color: #54667d; opacity: 1; }
.field select { padding-right: 1.2rem; }
.upload {
  min-width: 0;
  border: 1px dashed #a7bed4;
  border-radius: .8rem;
  padding: .65rem .75rem .6rem;
  background: linear-gradient(130deg, #f0f7fd, #f9fbff);
}
.upload input {
  display: block;
  width: 100%;
  color: var(--muted);
  font-size: .85rem;
}
.upload input::file-selector-button, .upload-button {
  padding: .42rem .7rem;
  border: 1px solid #b4cae1;
  border-radius: .45rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 650;
}
.upload input::file-selector-button { margin-inline-end: .65rem; }
.upload-button, .upload-name { display: none; }
.upload-picker.is-enhanced {
  position: relative;
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .85rem;
}
.upload-picker.is-enhanced input {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.upload-picker.is-enhanced .upload-button,
.upload-picker.is-enhanced .upload-name { display: block; }
.upload-button { flex: none; }
.upload-name {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-picker:focus-within .upload-button {
  outline: 2px solid #3879af;
  outline-offset: 3px;
}
.upload-picker:hover .upload-button,
.upload input::file-selector-button:hover { background: #e9f3ff; }
.upload p, .form-note {
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: .76rem;
}
.form-note { margin: 0; }
.primary {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3rem;
  padding: .65rem 1rem;
  border: 1px solid #17314f;
  border-radius: .65rem;
  color: #fff;
  background: linear-gradient(110deg, #132c47, #284e77);
  box-shadow: inset 0 1px 0 #ffffff30, 0 6px 14px #153c6126;
  font-weight: 650;
  text-align: left;
  text-decoration: none;
  transition: background-color .2s, box-shadow .2s;
}
.primary:hover { box-shadow: inset 0 1px 0 #ffffff55, 0 7px 20px #153c6140; }
.primary span { font-size: 1.05rem; }
.site-footer {
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  color: var(--muted);
}
.site-footer small { font-size: .74rem; }

.result-panel { display: grid; align-content: center; }
.result-panel .panel-heading { margin-bottom: 1.8rem; }
.result-panel .panel-heading p { max-width: 32ch; }
.result-panel .primary { justify-self: start; min-width: 11rem; }
.status-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.6rem;
  border: 1px solid #c7d7e8;
  border-radius: 50%;
  color: var(--blue);
  background: #ecf5fe;
  font-size: 1.3rem;
}

@media (max-width: 960px) {
  .site-frame { width: calc(100% - 3rem); }
  .careers { min-height: 40rem; }
  .field-row { grid-template-columns: 1fr; gap: .94rem; }
}
@media (max-width: 720px) {
  .site-frame { width: calc(100% - 1.5rem); }
  .site-header { min-height: 4.25rem; }
  .careers { grid-template-columns: 1fr; min-height: auto; border-radius: 1.25rem; }
  .scenic {
    min-height: 20rem;
    gap: 1.45rem;
    padding: 1.65rem;
    background-position: center, center 58%;
  }
  .scenic h1, .scenic h2 { margin: 1rem 0 .8rem; }
  .panel { padding: 1.65rem; }
  .result-panel { min-height: 20rem; }
}
.site-header--policy {
  --header-surface: #ffffffca;
  --header-edge: #d8e3ee;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  width: 100%;
  min-height: 4.15rem;
  margin: 1.1rem auto .85rem;
  padding: .55rem 1rem;
  border: 1px solid var(--header-edge);
  border-radius: 1rem;
  background: var(--header-surface);
  box-shadow: 0 5px 22px #12345908;
  color: #10233b;
  font: 16px/1.65 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.site-header--policy :is(.brand, .home-link) { gap: .6rem; width: fit-content; }
.site-header--policy .brand { font-size: .93rem; font-weight: 700; }
.site-header--policy .brand img { border-radius: .55rem; }
.site-header--policy .home-link { justify-self: end; color: #354960; font-size: .82rem; }
.careers-language-slot { justify-self: end; }
.careers-language-slot .language-picker { margin: 0; }

@media (max-width: 720px) {
  .site-header--policy {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: .65rem .6rem;
    margin-block: .65rem;
    padding: .65rem .8rem;
  }
}
@media (max-width: 355px) {
  .site-header--policy { column-gap: .4rem; padding-inline: .6rem; }
  .site-header--policy :is(.brand, .home-link) { gap: .35rem; }
  .site-header--policy .brand { font-size: .75rem; }
  .site-header--policy .brand img { width: 30px; height: 30px; }
  .site-header--policy .home-link { font-size: .72rem; }
  .careers-language-slot .language-picker summary { width: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .primary { transition: none; }
}
