.careers {
  --ink: #242222;
  --muted: #605b58;
  --rule: #d9d5d0;
  --red: #b41732;
  --paper: #f4f2ee;
  color: var(--ink);
  line-height: 1.5;
}
.career-wrap {
  width: min(90%, 1440px);
  margin-inline: auto;
}
.careers :where(h1, h2, p, figure, dl, dd) { margin: 0; }
.careers h1, .careers h2, .career-role-title { text-wrap: balance; }
.careers h2 {
  font-size: clamp(35px, 3.8vw, 58px);
  font-weight: 550;
  line-height: 1.07;
  letter-spacing: -.047em;
}
.career-skip {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 20000;
  padding: 10px 18px;
  transform: translateY(-160%);
  background: #fff;
  color: #242222;
}
.career-skip:focus { transform: none; }
.careers :is(a, summary):focus-visible, .career-skip:focus-visible {
  outline: 3px solid var(--red, #b41732);
  outline-offset: 4px;
}
body[data-shared-header="inner"] .careers [id] { scroll-margin-top: 0; }

.career-hero { background: var(--paper); }
.career-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: center;
  padding-block: clamp(35px, 4.5vw, 76px);
}
.career-location {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(19px, 2.15vw, 34px);
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}
.career-location::before { content: ""; width: 26px; height: 2px; background: var(--red); }
.careers h1 {
  font-size: clamp(50px, 6.2vw, 100px);
  font-weight: 550;
  line-height: .99;
  letter-spacing: -.062em;
}
.careers h1 em { display: block; font-style: normal; }
.career-lead {
  max-width: 41ch;
  margin-top: clamp(20px, 1.9vw, 30px);
  color: var(--muted);
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.55;
}
.career-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 24px; margin-top: 27px; }
.career-button, .career-text-link, .career-inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 650;
}
.career-button {
  gap: 20px;
  min-height: 48px;
  padding: 11px 21px;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  transition: background-color .18s ease;
}
.career-text-link { text-decoration: underline; text-decoration-color: #aaa29c; text-underline-offset: .32em; }
.career-inline-link { gap: 13px; color: var(--red); }
.career-arrow {
  display: inline-block;
  flex: none;
  position: relative;
  width: 17px;
  height: 2px;
  background: currentColor;
}
.career-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 2px solid;
  border-right: 2px solid;
  transform: translateY(-50%) rotate(45deg);
}
.career-arrow.down { transform: rotate(90deg); }
.career-arrow.diagonal { transform: rotate(-45deg); }
.career-hero-photo { position: relative; margin: 0; }
.career-hero-photo img, .career-life-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.career-hero-photo img { aspect-ratio: 1.48; object-position: 35% center; }
.career-hero-photo figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 32px 20px 13px;
  background: linear-gradient(transparent, rgb(17 15 14 / .82));
  color: #fff;
  font-size: 14px;
  font-weight: 550;
}

.career-roles, .career-life-grid {
  display: grid;
  gap: clamp(28px, 6vw, 100px);
  padding-block: clamp(56px, 6vw, 100px);
}
.career-roles { grid-template-columns: minmax(0, .8fr) minmax(0, 1.45fr); }
.career-section-intro > p, .career-contact p {
  max-width: 39ch;
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}
.career-role-list { border-top: 2px solid var(--ink); }
.career-role { border-bottom: 1px solid var(--rule); }
.career-role summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(84px, 100px) auto;
  gap: 2px clamp(12px, 2vw, 32px);
  align-items: center;
  min-height: 81px;
  padding: 16px 8px;
  cursor: pointer;
  list-style: none;
}
.career-role summary::-webkit-details-marker { display: none; }
.career-role-title { font-size: clamp(21px, 2.05vw, 32px); font-weight: 550; line-height: 1.18; letter-spacing: -.035em; }
.career-team { color: var(--muted); font-size: 14px; }
.career-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--red);
  transition: border-color .18s ease, background-color .18s ease;
}
.career-toggle::before, .career-toggle::after {
  content: "";
  grid-area: 1 / 1;
  width: 12px;
  height: 2px;
  background: currentColor;
}
.career-toggle::after { transform: rotate(90deg); transition: transform .18s ease; }
.career-role[open] .career-toggle { background: var(--red); color: #fff; border-color: var(--red); }
.career-role[open] .career-toggle::after { transform: none; }
.career-role-details { padding: 0 8px 23px; max-width: 60ch; }
.career-role-details p, .career-benefits dd { color: var(--muted); font-size: 17px; line-height: 1.6; }
.career-role-details .career-posted { margin-top: 12px; font-size: 14px; }

.career-life { background: var(--paper); }
.career-life-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; }
.career-life-copy { grid-column: 2; }
.career-life-photo { grid-area: 1 / 1; }
.career-life-photo img { aspect-ratio: 1.36; object-position: center; }
.career-life-photo figcaption { margin-top: 9px; color: var(--muted); font-size: 14px; }
.career-benefits dt { margin-top: 20px; font-size: clamp(18px, 1.5vw, 23px); font-weight: 600; letter-spacing: -.02em; }
.career-benefits dd { margin: 4px 0 0; }
.career-contact { background: #282424; color: #fff; }
.career-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding-block: clamp(40px, 5.5vw, 82px);
}
.career-contact h2 { max-width: 16ch; }
.career-contact p { max-width: 50ch; color: #e3dcda; margin-bottom: 0; }
.career-contact-actions { display: flex; flex-direction: column; align-items: flex-start; justify-self: end; gap: 2px; }
.career-phone { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; font-size: clamp(23px, 2.5vw, 38px); font-weight: 550; letter-spacing: -.035em; }
.career-contact :is(a, summary):focus-visible { outline-color: #fff; }
.career-contact .career-text-link { color: #e3dcda; }
html[lang="zh-CN"] .careers :is(h1, h2, .career-role-title, .career-benefits dt) { letter-spacing: -.015em; }
html[lang="zh-CN"] .careers h1 { line-height: 1.1; }

@media (hover: hover) {
  .career-button:hover { background: #911027; }
  .career-text-link:hover, .career-inline-link:hover { text-decoration: underline; text-underline-offset: .32em; text-decoration-color: currentColor; }
  .career-role summary:hover .career-role-title { color: var(--red); }
  .career-role summary:hover .career-toggle { border-color: var(--red); }
  .career-phone:hover { text-decoration: underline; text-underline-offset: .15em; }
}
@media (max-width: 900px) {
  .career-role summary { grid-template-columns: 1fr auto; }
  .career-team { grid-column: 1; grid-row: 2; }
  .career-toggle { grid-column: 2; grid-row: 1 / 3; }
}
@media (max-width: 760px) {
  .career-wrap { width: min(92%, 620px); }
  .career-hero-grid, .career-roles, .career-life-grid, .career-contact-grid { grid-template-columns: minmax(0, 1fr); }
  .career-hero-grid { gap: 24px; padding-block: 31px 20px; }
  .career-location { font-size: 14px; margin-bottom: 16px; }
  .careers h1 { font-size: clamp(46px, 11.5vw, 69px); }
  html[lang="zh-CN"] .careers h1 em { display: inline; }
  .career-lead { margin-top: 14px; }
  .career-actions { margin-top: 18px; }
  .career-hero-photo img { aspect-ratio: 1.8; }
  .career-hero-photo figcaption { padding: 26px 12px 9px; }
  .career-roles, .career-life-grid { padding-block: 46px; gap: 23px; }
  .career-section-intro > p { margin: 12px 0 0; }
  .career-role summary { min-height: 78px; padding-inline: 2px; }
  .career-role-details { padding-inline: 2px; }
  .career-life-copy, .career-life-photo { grid-area: auto; }
  .career-life-photo img { aspect-ratio: 1.65; }
  .career-contact-grid { gap: 18px; }
  .career-contact-actions { justify-self: start; }
  .career-contact p { margin-top: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.careers) { scroll-behavior: auto; }
  .careers *, .careers *::after { transition: none; }
}
