.application-dialog {
  border: 0;
  border-radius: 1.2rem;
  padding: 3rem;
  max-width: 620px;
  width: calc(100% - 2rem);
  max-height: calc(100dvh - 3rem);
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
}

.application-dialog::backdrop {
  background: #13172299;
  backdrop-filter: blur(5px);
}

@media (max-width: 600px) {
  .application-dialog {
    padding: 2.8rem 1.5rem 1.5rem;
  }
}

.careers-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  padding: 5.5rem 4.1% 6rem;
  overflow: hidden;
}

.careers-hero h1 {
  font-size: clamp(3.5rem, 6.2vw, 6.8rem);
  line-height: 1.04;
  margin: 1.5rem 0 1.75rem;
}

.careers-hero > div > p:not(.eyebrow) {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: #5e6a80;
  max-width: 400px;
  margin-bottom: 1.8rem;
}

.careers-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
}

.careers-asterisk {
  font-size: 26rem;
  line-height: 0.9;
  color: var(--accent);
  transform: rotate(-12deg);
  text-shadow:
    1px 2px #a1b7f4,
    4px 6px #2e3444,
    7px 12px #2e3444;
  letter-spacing: -0.06em;
}

.careers-art-label {
  position: absolute;
  bottom: 0;
  right: 10%;
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  color: #5e6a80;
  line-height: 1.8;
}

.careers-art-id {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: #5e6a80;
}

.work-principles {
  background: #fbfcfe;
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
}

.work-principles > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  margin-top: 2.5rem;
}

.work-principles article {
  border-top: 1px solid #dbe4fb;
  padding-top: 1.25rem;
}

.work-principles article > span {
  font-size: 0.625rem;
  color: #5e6a80;
}

.work-principles h2 {
  font-size: 1.6rem;
  margin: 1.5rem 0 1rem;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.work-principles p {
  font-size: 0.875rem;
  line-height: 1.85;
  color: #5e6a80;
}

.roles-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.roles-heading .eyebrow {
  margin-bottom: 1.5rem;
}

.roles-heading h2 {
  font-size: clamp(2.5rem, 3.8vw, 4rem);
}

.role-total {
  font-size: 6rem;
  letter-spacing: -0.08em;
  font-weight: 500;
  text-align: right;
  line-height: 1;
  color: var(--accent);
}

.role-total > span {
  display: block;
  font-size: 0.5625rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  margin-top: 1rem;
  color: #5e6a80;
}

.job-filters {
  display: flex;
  gap: 0.5rem;
  overflow: auto;
  padding: 0 0.2rem 1.75rem;
  scrollbar-width: thin;
}

.job-filters > button {
  background: transparent;
  padding: 0.7rem 1rem;
  border: 1px solid #becef8;
  border-radius: 30px;
  white-space: nowrap;
  font-size: 0.75rem;
  color: #5e6a80;
  font-weight: 500;
  transition: background 0.2s;
}

.job-filters > button > span {
  font-size: 0.5625rem;
  margin-left: 0.5rem;
  opacity: 0.75;
}

.job-filters > button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.job-list {
  border-top: 1px solid var(--ink);
}

.job-row {
  display: flex;
  gap: 1.8rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 1.8rem 0;
  transition:
    background 0.2s,
    color 0.2s;
}

.job-row[hidden] {
  display: none;
}

.job-row:hover {
  color: var(--accent);
  background: #e8eefc;
}

.job-index {
  font-size: 0.625rem;
  color: #5e6a80;
  align-self: flex-start;
  padding-top: 0.35rem;
  min-width: 20px;
}

.job-title {
  flex: 1;
}

.job-title > strong {
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
  line-height: 1.5;
}

.job-title > strong > small {
  font-size: 0.8125rem;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: #5e6a80;
  margin-left: 0.3rem;
}

.job-title > span {
  display: block;
  font-size: 0.6875rem;
  color: #5e6a80;
  line-height: 1.8;
  margin-top: 0.4rem;
}

.job-title i {
  font-style: normal;
  margin: 0 0.4rem;
  color: #687392;
}

.job-salary {
  text-align: right;
  font-size: 0.875rem;
  font-weight: 550;
  white-space: nowrap;
  line-height: 1.8;
}

.job-salary > small {
  display: block;
  font-size: 0.5625rem;
  font-weight: 400;
  color: #5e6a80;
  margin-top: 0.4rem;
}

.job-arrow {
  font-size: 1.4rem;
  font-weight: 400;
  margin-left: 1.5rem;
}

.salary-context {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem 5rem;
  margin-top: 3rem;
}

.salary-context > div {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.salary-context > div > span {
  font-size: 2.5rem;
  color: #5e6a80;
}

.salary-context > div > p {
  font-size: 0.875rem;
  line-height: 1.8;
  color: #5e6a80;
}

.salary-context strong {
  color: var(--ink);
  font-weight: 550;
}

.salary-context > p {
  font-size: 0.8125rem;
  line-height: 1.8;
  color: #5e6a80;
}

.salary-context details {
  grid-column: 1/-1;
  max-width: 760px;
  font-size: 0.75rem;
}

.salary-context summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0.3rem 0;
}

.salary-context summary > span {
  font-size: 1.25rem;
}

.salary-context details p {
  font-size: 0.8125rem;
  line-height: 1.85;
  color: #5e6a80;
  margin-top: 1rem;
}

.salary-context details a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.career-advisor {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 6rem;
  background: var(--accent);
  color: white;
  margin: 0 1.25rem;
  border-radius: 1rem;
}

.career-advisor .eyebrow {
  font-size: 0.5625rem;
  color: #becef8;
  margin-bottom: 1.5rem;
}

.career-advisor h2 {
  font-size: clamp(2.5rem, 3.8vw, 4rem);
}

.career-advisor > div:last-child {
  align-self: end;
}

.career-advisor > div:last-child > p {
  font-size: 0.9375rem;
  color: #dbe4fb;
  line-height: 1.85;
  margin-bottom: 1.5rem;
  max-width: 420px;
}

.career-advisor > div:last-child > span {
  font-size: 0.75rem;
  color: #dbe4fb;
}

.career-advisor .text-link {
  border-color: #ffffff44;
  font-size: 0.875rem;
  margin-top: 1.5rem;
}

.job-hero {
  padding-top: 2.5rem;
  padding-bottom: 0;
}

.back-link {
  font-size: 0.75rem;
  display: inline-block;
  color: #5e6a80;
  margin-bottom: 3rem;
}

.back-link:hover {
  color: var(--accent);
}

.job-hero .eyebrow {
  color: #5e6a80;
}

.job-hero h1 {
  font-size: clamp(3rem, 5.5vw, 6rem);
  max-width: 1000px;
  line-height: 1.07;
  margin: 1.5rem 0;
  letter-spacing: -0.06em;
}

.job-subtitle {
  display: block;
  font-size: 0.6em;
  line-height: 1.5;
}

.job-intro {
  max-width: 700px;
  font-size: 1rem;
  line-height: 1.9;
  color: #5e6a80;
  margin-top: 2rem;
}

.job-hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  margin-top: 2rem;
  padding-bottom: 2rem;
}

.job-hero-bottom > span {
  font-size: 0.75rem;
  color: #5e6a80;
}

.job-detail {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 7rem;
  padding-top: 4rem;
}

.job-description > article {
  margin-bottom: 3.5rem;
}

.job-description h2 {
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 1rem 0 1.5rem;
}

.job-description .eyebrow {
  font-size: 0.5625rem;
  color: #5e6a80;
}

.job-description ul {
  padding-left: 1.1rem;
  margin: 0;
}

.job-description li {
  padding-left: 0.35rem;
  font-size: 0.9375rem;
  line-height: 1.9;
  color: #5e6a80;
  margin: 1rem 0;
}

.job-description li::marker {
  color: #687392;
  font-size: 0.65rem;
}

.job-description p {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: #5e6a80;
  margin: 1rem 0;
}

.job-summary {
  align-self: start;
  position: sticky;
  top: 2rem;
  border: 1px solid #dbe4fb;
  border-radius: 0.8rem;
  padding: 2rem;
  background: #fbfcfe;
}

.job-summary > .eyebrow {
  font-size: 0.5625rem;
  color: #5e6a80;
  margin-bottom: 1rem;
}

.job-summary dl {
  margin: 0;
}

.job-summary dl > div {
  padding: 1rem 0;
  border-bottom: 1px solid #dbe4fb;
}

.job-summary dt {
  font-size: 0.625rem;
  color: #5e6a80;
  margin-bottom: 0.6rem;
}

.job-summary dd {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #2e3444;
}

.job-summary dd.summary-pay {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.job-summary dl small {
  font-size: 0.5625rem;
  color: #5e6a80;
}

.job-summary .button {
  width: 100%;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  gap: 1rem;
}

.summary-note {
  font-size: 0.625rem;
  line-height: 1.8;
  color: #5e6a80;
  margin-top: 1rem;
  max-width: 250px;
}

.advisor-terms {
  font-size: 0.75rem;
  line-height: 1.8;
  color: #5e6a80;
  margin-top: 1rem;
}

.job-closing {
  background: var(--accent);
  color: white;
  margin: 0 1.25rem;
  border-radius: 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.job-closing > .eyebrow {
  grid-column: 1/-1;
  color: #dbe4fb;
}

.job-closing h2 {
  font-size: clamp(2.5rem, 4vw, 4.5rem);
}

.job-closing > a:last-child {
  grid-column: 1/-1;
  justify-self: start;
  font-size: 0.75rem;
  color: #becef8;
}

.application-dialog {
  max-width: 660px;
}

.application-dialog > .eyebrow {
  font-size: 0.5625rem;
  color: #5e6a80;
}

.application-dialog h2 {
  font-size: 2.3rem;
  margin: 1rem 0;
  line-height: 1.12;
}

.application-role {
  font-size: 0.8125rem;
  color: var(--accent);
  margin-bottom: 1.75rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-grid label {
  font-size: 0.75rem;
  color: #2e3444;
  line-height: 1.6;
}

.form-grid .full-width {
  grid-column: 1/-1;
}

.form-grid input,
.form-grid textarea {
  display: block;
  width: 100%;
  padding: 0.85rem;
  border: 1px solid #dbe4fb;
  border-radius: 7px;
  background: #fbfcfe;
  color: var(--ink);
  margin-top: 0.4rem;
  outline-offset: 2px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: #5e6a80;
}

.form-grid input:focus,
.form-grid textarea:focus {
  outline: 2px solid var(--accent);
}

.form-grid textarea {
  resize: vertical;
  min-height: 100px;
}

.form-grid [aria-invalid="true"] {
  border-color: #1e3f9a;
}

.application-submit {
  margin-top: 1.5rem;
  width: 100%;
}

.form-note {
  font-size: 0.625rem;
  line-height: 1.8;
  color: #5e6a80;
  margin-top: 0.8rem;
}

.form-error {
  background: #dbe4fb;
  color: #2e3444;
  padding: 1rem;
  border-radius: 7px;
  font-size: 0.8125rem;
  line-height: 1.75;
  margin-top: 1.25rem;
}

.form-error[hidden] {
  display: none;
}

.not-found {
  min-height: 70vh;
  padding-top: 5rem;
}

.not-found h1 {
  font-size: clamp(4rem, 7vw, 7rem);
}

.not-found > p:not(.eyebrow) {
  font-size: 1rem;
  line-height: 1.8;
  color: #5e6a80;
  margin: 2rem 0;
}

@media (max-width: 1100px) {
  .careers-hero {
    grid-template-columns: 1.5fr 1fr;
  }

  .careers-asterisk {
    font-size: 23rem;
  }

  .work-principles > div {
    gap: 2rem;
  }

  .job-row {
    gap: 1rem;
  }

  .job-title > strong {
    font-size: 1.1rem;
  }

  .job-arrow {
    margin-left: 0.5rem;
  }

  .career-advisor {
    gap: 3rem;
  }

  .job-detail {
    gap: 3rem;
  }

  .job-summary {
    padding: 1.5rem;
  }

  .job-summary dd.summary-pay {
    font-size: 0.9375rem;
  }
}

@media (max-width: 800px) {
  .careers-hero {
    padding-top: 4rem;
    grid-template-columns: 1fr;
    position: relative;
  }

  .careers-hero h1 {
    font-size: 4.3rem;
  }

  .careers-art {
    position: absolute;
    right: -40px;
    top: 65px;
    opacity: 0.12;
    z-index: -1;
  }

  .careers-art-label,
  .careers-art-id {
    display: none;
  }

  .careers-hero > div > p:not(.eyebrow) {
    max-width: 420px;
  }

  .work-principles > div {
    gap: 1.5rem;
  }

  .work-principles h2 {
    font-size: 1.35rem;
  }

  .work-principles p {
    font-size: 0.8125rem;
  }

  .role-total {
    font-size: 4.5rem;
  }

  .job-row {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 1.5rem 0;
  }

  .job-title {
    flex: 1;
    min-width: 75%;
  }

  .job-arrow {
    position: absolute;
    right: 0;
    top: 1.5rem;
  }

  .job-row {
    position: relative;
    padding-right: 2rem;
  }

  .job-salary {
    text-align: left;
    margin-left: 36px;
    font-size: 0.8125rem;
  }

  .job-salary > small {
    display: inline;
    margin-left: 0.5rem;
    font-size: 0.5rem;
  }

  .salary-context {
    gap: 1.5rem 2rem;
  }

  .career-advisor {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem;
  }

  .job-detail {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .job-summary {
    position: static;
    grid-row: 1;
    max-width: none;
    padding: 1.5rem;
    margin-bottom: 3rem;
  }

  .job-summary dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
  }

  .job-summary .button {
    max-width: 320px;
  }

  .job-summary .summary-note {
    max-width: none;
  }

  .job-hero h1 {
    font-size: 3.5rem;
  }

  .job-description > article {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 600px) {
  .careers-hero {
    padding: 3rem 6% 4rem;
  }

  .careers-hero .eyebrow {
    font-size: 0.5rem;
  }

  .careers-hero h1 {
    font-size: clamp(2.9rem, 10.9vw, 4rem);
    letter-spacing: -0.065em;
    margin: 1.5rem 0;
  }

  .careers-hero > div > p:not(.eyebrow) {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
  }

  .careers-art {
    top: 45px;
    right: -90px;
  }

  .careers-asterisk {
    font-size: 23rem;
  }

  .work-principles {
    padding: 3rem 6%;
  }

  .work-principles > div {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-top: 1.5rem;
  }

  .work-principles article {
    padding-top: 1rem;
  }

  .work-principles article > span {
    float: right;
    margin-top: 0.5rem;
  }

  .work-principles h2 {
    font-size: 1.75rem;
    margin: 0.75rem 0;
  }

  .work-principles p {
    font-size: 0.875rem;
    max-width: 370px;
  }

  .roles-heading {
    gap: 1rem;
    align-items: start;
    margin-bottom: 2rem;
  }

  .roles-heading h2 {
    font-size: 2.2rem;
  }

  .roles-heading .eyebrow {
    font-size: 0.5625rem;
    margin-bottom: 1rem;
  }

  .role-total {
    font-size: 3rem;
    margin-top: 2rem;
  }

  .role-total > span {
    font-size: 0.4375rem;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
    white-space: nowrap;
  }

  .job-filters {
    gap: 0.4rem;
    padding-bottom: 1.2rem;
  }

  .job-filters > button {
    font-size: 0.6875rem;
    padding: 0.6rem 0.85rem;
  }

  .job-row {
    gap: 0.4rem 0.65rem;
    padding: 1.35rem 1.5rem 1.35rem 0;
  }

  .job-title > strong {
    font-size: 1.05rem;
    line-height: 1.45;
    display: block;
  }

  .job-title > strong > small {
    font-size: 0.75rem;
    display: block;
    margin: 0.2rem 0 0;
  }

  .job-title > span {
    font-size: 0.5625rem;
    margin-top: 0.5rem;
    line-height: 1.8;
  }

  .job-title i {
    margin: 0 0.2rem;
  }

  .job-index {
    min-width: 15px;
    font-size: 0.5rem;
    padding-top: 0.3rem;
  }

  .job-salary {
    font-size: 0.75rem;
    margin-left: 25px;
    margin-top: 0.3rem;
  }

  .job-salary > small {
    font-size: 0.4375rem;
    display: block;
    margin: 0.25rem 0 0;
  }

  .job-arrow {
    font-size: 1.2rem;
    top: 1.2rem;
  }

  .salary-context {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-top: 2rem;
  }

  .salary-context > p {
    font-size: 0.8125rem;
  }

  .salary-context details {
    grid-column: auto;
  }

  .salary-context details p {
    font-size: 0.8125rem;
  }

  .career-advisor {
    padding: 2.5rem 1.5rem;
    margin: 0 0.75rem;
    gap: 1.7rem;
  }

  .career-advisor .eyebrow {
    font-size: 0.5rem;
    max-width: 240px;
  }

  .career-advisor h2 {
    font-size: 2.3rem;
  }

  .career-advisor > div:last-child > p {
    font-size: 0.875rem;
  }

  .career-advisor > div:last-child > span {
    font-size: 0.6875rem;
  }

  .career-advisor .text-link {
    font-size: 0.75rem;
  }

  .job-hero {
    padding-top: 1.75rem;
    padding-bottom: 0;
  }

  .back-link {
    margin-bottom: 2rem;
    font-size: 0.6875rem;
  }

  .job-hero .eyebrow {
    font-size: 0.5625rem;
  }

  .job-hero h1 {
    font-size: 2.7rem;
    overflow-wrap: break-word;
    line-height: 1.1;
    margin-top: 1.2rem;
  }

  .job-subtitle {
    font-size: 0.65em;
  }

  .job-intro {
    font-size: 0.9375rem;
    margin-top: 1.5rem;
    line-height: 1.85;
  }

  .job-hero-bottom {
    flex-direction: column;
    align-items: start;
    gap: 1.5rem;
    padding-bottom: 1.8rem;
  }

  .job-hero-bottom > span {
    font-size: 0.6875rem;
    line-height: 1.8;
  }

  .job-hero-bottom .button {
    font-size: 0.8125rem;
  }

  .job-detail {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .job-summary {
    padding: 1.25rem;
    margin-bottom: 2rem;
  }

  .job-summary dl {
    gap: 0 1rem;
  }

  .job-summary dl > div:first-child {
    grid-column: 1/-1;
  }

  .job-summary dd.summary-pay {
    font-size: 1.2rem;
  }

  .job-summary dt {
    font-size: 0.625rem;
  }

  .job-summary dd {
    font-size: 0.75rem;
  }

  .job-description h2 {
    font-size: 1.75rem;
  }

  .job-description li,
  .job-description p {
    font-size: 0.875rem;
    line-height: 1.9;
  }

  .job-description > article {
    margin-bottom: 2.5rem;
  }

  .job-closing {
    margin: 0 0.75rem;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2.5rem 1.5rem;
  }

  .job-closing h2 {
    font-size: 2.5rem;
  }

  .job-closing .button {
    justify-self: start;
    font-size: 0.8125rem;
  }

  .job-closing > a:last-child {
    font-size: 0.6875rem;
  }

  .application-dialog h2 {
    font-size: 1.9rem;
  }

  .application-role {
    font-size: 0.75rem;
    line-height: 1.7;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-grid .full-width {
    grid-column: auto;
  }

  .form-grid label {
    font-size: 0.75rem;
  }

  .form-grid input,
  .form-grid textarea {
    font-size: 1rem;
  }

  .form-error {
    font-size: 0.8125rem;
  }

  .not-found {
    padding-top: 3rem;
  }

  .not-found h1 {
    font-size: 4rem;
  }

  .not-found > p:not(.eyebrow) {
    font-size: 0.875rem;
  }
}

.work-principles p {
  font-size: 0.9375rem;
}

.application-dialog .dialog-close {
  position: sticky;
  top: -1rem;
  float: right;
  right: auto;
  z-index: 2;
  margin: -1rem -1rem 0 0;
}

.job-title > span {
  font-size: 0.75rem;
}

.job-salary > small {
  font-size: 0.625rem;
}

.job-summary dt {
  font-size: 0.75rem;
}

.job-summary dl small,
.summary-note {
  font-size: 0.6875rem;
}

@media (max-width: 800px) {
  .job-salary > small {
    font-size: 0.5625rem;
  }
}

@media (max-width: 600px) {
  .work-principles p {
    font-size: 0.9375rem;
  }

  .job-title > span {
    font-size: 0.625rem;
  }

  .job-salary {
    font-size: 0.875rem;
  }

  .job-salary > small {
    font-size: 0.5625rem;
  }

  .job-summary dt {
    font-size: 0.6875rem;
  }

  .job-summary dl small,
  .summary-note {
    font-size: 0.625rem;
  }
}
