:root {
  color-scheme: light;
  --ground: #f7faf5;
  --surface: #fff;
  --surface-hi: #fff;
  --ink: #152b2d;
  --ink-2: #4b5d5d;
  --ink-3: #606f6f;
  --rule: #ccd3cf;
  --rule-soft: #e2e6e2;
  --chip-ft-bg: #eceefb;
  --chip-ft-line: #252b3b;
  --chip-ft-ink: #252b3b;
  --chip-alt-bg: #e8f2e3;
  --chip-alt-line: #152b2d;
  --chip-alt-ink: #152b2d;
  --apply-bg: #252b3b;
  --apply-ink: #eceefb;
  --body: var(--font-body, "Medium LL", "Helvetica Neue", Helvetica, Arial, sans-serif);
  --display: var(--font-title, "Optima Web", Optima, Candara, sans-serif);
}

* { box-sizing: border-box; }

html { background: var(--ground); }

body.careers-page {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
}

.detail-shell {
  width: min(1160px, calc(100% - 48px));
  min-height: calc(100vh - 120px);
  margin: 0 auto;
  padding: 150px 0 80px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.back-link {
  display: inline-block;
  color: var(--ink-2);
  font-size: 14px;
  margin-bottom: 28px;
  text-decoration: none;
}

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

.job-heading {
  margin-bottom: 38px;
}

.job-heading h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: 400;
  line-height: 1.24;
  text-wrap: balance;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 14px;
  margin-top: 9px;
  color: var(--ink-2);
  font-size: 13.5px;
}

.chip {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid;
  border-radius: 999px;
  padding: 4px 10px;
}

.chip-ft {
  background: var(--chip-ft-bg);
  border-color: var(--chip-ft-line);
  color: var(--chip-ft-ink);
}

.chip-alt {
  background: var(--chip-alt-bg);
  border-color: var(--chip-alt-line);
  color: var(--chip-alt-ink);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 336px);
  gap: 40px;
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: 34px;
  max-width: 64ch;
}

.detail-section h2 {
  margin: 0 0 13px;
  font-family: "MediumLLWeb-SemiBold", var(--body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.detail-section p,
.detail-state p {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.7;
}

.detail-section p { margin: 0; }

.detail-section ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-section li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.64;
}

.detail-section li::before {
  content: "\00b7";
  position: absolute;
  left: 3px;
  top: 0;
  color: var(--ink-3);
  font-size: 1.15em;
  line-height: 1.64;
}

.detail-section .item-label {
  color: var(--ink);
  font-family: "MediumLLWeb-SemiBold", var(--body);
  font-weight: 400;
}

.detail-aside {
  position: sticky;
  top: 26px;
  align-self: start;
  max-height: calc(100vh - 52px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 20px;
}

.facts { margin: 0; }

.facts > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.facts > div:first-child { padding-top: 0; }
.facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt,
.panel-label {
  color: var(--ink-3);
  font-family: "MediumLLWeb-SemiBold", var(--body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.facts dt { white-space: nowrap; }
.facts dd {
  flex: 1 1 180px;
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  text-align: right;
}

.compensation-amount {
  margin: 4px 0 0;
  font-size: 25px;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

.compensation-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.compensation-list li {
  position: relative;
  padding-left: 14px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.compensation-list li::before {
  content: "\00b7";
  position: absolute;
  left: 1px;
  color: var(--ink-3);
}

.apply {
  display: block;
  width: 100%;
  background: var(--apply-bg);
  color: var(--apply-ink);
  border-radius: 8px;
  padding: 14px 18px;
  text-align: center;
  text-decoration: none;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  transition: opacity 140ms ease, transform 140ms ease;
}

.apply:hover { opacity: 0.88; }
.apply:active { transform: translateY(1px); }

.apply-note {
  margin: 12px 0 0;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: left;
}

.detail-state { max-width: 620px; padding: 60px 0; }
.detail-state h1 {
  max-width: 620px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}
.detail-state p { margin: 22px 0 0; }

.detail-loading {
  padding-top: 2px;
}

.loading-back,
.loading-line,
.loading-pill,
.loading-card {
  background: linear-gradient(
    100deg,
    var(--rule-soft) 20%,
    var(--surface) 42%,
    var(--rule-soft) 64%
  );
  background-size: 240% 100%;
  animation: loading-shimmer 1.5s ease-in-out infinite;
}

.loading-back {
  width: 112px;
  height: 12px;
  margin-bottom: 36px;
  border-radius: 999px;
}

.loading-heading {
  padding-bottom: 38px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 46px;
}

.loading-line {
  height: 14px;
  border-radius: 999px;
}

.loading-title {
  width: min(520px, 72%);
  height: 32px;
  border-radius: 6px;
}

.loading-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.loading-pill {
  width: 88px;
  height: 25px;
  border-radius: 999px;
}

.loading-meta .loading-line { width: 132px; }

.loading-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 336px);
  gap: 40px;
}

.loading-copy {
  display: grid;
  gap: 15px;
  max-width: 720px;
}

.loading-copy .loading-line:nth-child(1) {
  width: 148px;
  height: 22px;
  margin-bottom: 3px;
}

.loading-copy .loading-line:nth-child(2) { width: 96%; }
.loading-copy .loading-line:nth-child(3) { width: 88%; }
.loading-copy .loading-line:nth-child(4) { width: 64%; }

.loading-card {
  height: 126px;
  border: 1px solid var(--rule);
  border-radius: 10px;
}

@keyframes loading-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.retry {
  margin-top: 24px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface-hi);
  color: var(--ink);
  font: inherit;
  padding: 11px 17px;
  cursor: pointer;
}

.retry:hover { border-color: var(--ink); }

.header__menu-btn,
.header__menu-panel { display: none; }

@media (max-width: 960px) {
  .detail-layout { display: flex; flex-direction: column; gap: 38px; }
  .detail-aside { display: contents; }
  .facts-panel { order: 1; }
  .compensation { order: 2; }
  .detail-main { order: 3; }
  .apply-panel { order: 4; }
  .loading-heading { margin-bottom: 32px; }
  .loading-layout { display: flex; flex-direction: column; gap: 38px; }
  .loading-card { order: -1; }
}

@media (max-width: 768px) {
  .detail-shell {
    width: min(100% - 32px, 1160px);
    padding-top: 116px;
  }

  .job-heading { margin-bottom: 32px; }

  .careers-page .header__nav .header__link,
  .careers-page .header__nav .header__btn { display: none; }

  .careers-page .header__menu-btn {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    background: transparent;
    color: inherit;
  }

  .header__menu-icon { display: grid; gap: 4px; }
  .header__menu-icon span { width: 18px; height: 1px; background: currentColor; }

  .careers-page .header__menu-panel {
    position: absolute;
    display: grid;
    inset: 100% 0 auto;
    background: var(--ground);
    border-bottom: 1px solid var(--rule);
    padding: 12px 20px 18px;
  }

  .careers-page .header__menu-panel[hidden] { display: none; }
  .careers-page .header__menu-panel a {
    display: block;
    color: var(--ink);
    padding: 12px 0;
    text-decoration: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .loading-back,
  .loading-line,
  .loading-pill,
  .loading-card { animation: none; }
}
