/* The shoulders and feet of uppercase Cyrillic extend beyond the cap height. */
.stage h1 {
  line-height: 1.01;
}

.arcade-text h2 {
  line-height: 1.1;
  margin-block: .18em clamp(20px, 1.6vw, 32px);
}

.rm-copy h1 {
  line-height: 1.05;
  margin-block-end: clamp(20px, 1.6vw, 32px);
}

.rm-room .fk-intro h2 {
  line-height: 1.05;
  margin-block-end: clamp(18px, 1.5vw, 28px);
}

.rm-shelf-head h2 {
  line-height: 1.04;
}

.rm-room .fk-sheet {
  scroll-margin-top: 74px;
}

.rm-find-copy h3,
.fk-sheet .fk-title {
  line-height: 1.1;
  margin-block-end: max(15px, .25em);
}

.opening-heading h1 {
  line-height: 1.07;
}

.job-body h2 {
  margin-block-end: .45em;
}

.footer .footer-top {
  width: min(calc(100% - 2 * var(--edge)), 1480px);
  row-gap: 22px;
}

.footer nav {
  gap: 0;
}

.footer nav a {
  min-height: 33px;
}

@media (min-width: 950px) and (max-width: 1120px) {
  .career-gate {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .8fr);
    column-gap: clamp(24px, 4vw, 44px);
  }

  .career-gate h1 {
    font-size: clamp(3.9rem, 7vw, 5rem);
  }
}

@media (max-width: 760px) {
  .rm-shelf-head {
    row-gap: 15px;
  }

  .rm-room .fk-intro h2 {
    margin-block-end: 14px;
  }
}

/* At the narrow tablet breakpoint both the HR actions and the featured job
   need a full row. Keeping the opening in flow clears long translated roles. */
@media (min-width: 601px) and (max-width: 700px) {
  .stage {
    grid-template-rows: auto auto;
  }

  .stage-inner {
    padding-block-end: 0;
  }

  .stage .spot-opening {
    position: relative;
    inset: auto;
    justify-self: end;
    align-self: end;
    margin: 14px var(--edge) 22px;
  }
}

@media (max-width: 700px) {
  .mobile-nav-trigger,
  .identity-actions .mini-link {
    min-height: 44px;
  }

  .mobile-nav-trigger {
    width: 44px;
  }

  .footer nav a {
    min-height: 44px;
    line-height: 1.35;
  }

  .catalog-list .catalog-row,
  .pass-track .opening-feature {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .opening-story .save-job,
  .deck-control button {
    min-width: 44px;
    min-height: 44px;
  }

  .opening-actions a,
  .deck-tools button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }

  .market-switch button {
    min-height: 44px;
  }

  .market-method summary {
    min-height: 36px;
  }
}

@media (max-width: 620px) {
  .rm-copy h1 {
    margin-block-end: 15px;
  }

  .rm-room .fk-sheet {
    scroll-margin-top: 58px;
  }
}

/* Editorial guides share a narrower, more readable title scale than the home cover. */
.guide-page .guide-hero h1 {
  font-size: clamp(2.4rem, calc(1.2rem + 3.85vw), 5.05rem);
  line-height: 1.055;
  letter-spacing: -.037em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.guide-page .guide-hero h1 em { line-height: 1.12; }
.guide-page .guide-breadcrumb { flex-wrap: wrap; }
.guide-page .guide-breadcrumb a,
.guide-page .guide-rail a,
.detail-page .job-crumb a,
.detail-page .my-saves,
.catalog-page .catalog-publish {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.guide-page .guide-hero .guide-cta:focus-visible {
  outline: 2px solid white;
  outline-offset: 4px;
}

/* Keep native list semantics and the employer's original punctuation. */
.detail-page .job-body li[data-authored-bullet] { text-indent: -.77em; }
.detail-page .job-body li[data-authored-bullet]::marker { content: ""; }

@media (max-width: 800px) {
  .catalog-page .filter-toggle { min-height: 44px; }
}

@media (max-width: 760px), (pointer: coarse) {
  .guide-page .guide-breadcrumb a,
  .guide-page .guide-rail a,
  .guide-page .guide-index-foot a,
  .guide-page .guide-note a,
  .detail-page .job-crumb a,
  .detail-page .my-saves,
  .catalog-page .catalog-publish,
  .catalog-page .reset-filters,
  .catalog-page .salary-check,
  .edition-career .career-saved,
  .edition-career .tool-line .ink-link,
  .edition-employers .hr-brief {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .edition-employers .hr-gate .edition-button,
  .edition-employers .faq summary { min-height: 44px; }
}

@media (max-width: 760px) {
  .guide-page { padding-block-start: 10px; }
  .guide-page .guide-hero { margin-block-start: 5px; }
  .guide-page .guide-hero h1 {
    font-size: clamp(2.1rem, 8.8vw, 3.55rem);
    margin-block: 14px 16px;
  }
  .guide-page .guide-layout { gap: 20px; margin-block-start: 20px; }
  .guide-page .guide-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 6px;
    padding-block: 6px;
  }
  .guide-page .guide-rail > p { margin: 0; }
  .guide-page .guide-rail a { font-size: .8rem; line-height: 1.28; }
  .detail-page .job-crumb { margin-block-end: 16px; }
  .catalog-page .catalog-publish { margin-block-start: 3px; }
  .edition-employers .faq summary { padding-block: 10px; }
}

/* The guide covers use the same printed mark as the site's wordmark. */
.guide-wrap { container-type: inline-size; }
.guide-page .guide-eyebrow,
.guide-page .guide-updated { color: #e7ecff; }
.guide-hero::after {
  content: "";
  inset: auto -16px -26px auto;
  width: clamp(96px, 15%, 174px);
  aspect-ratio: 1;
  background: #fff;
  mask: url("brand/q-mark-v4.svg") center / contain no-repeat;
  opacity: .09;
  transform: none;
  pointer-events: none;
}
.guide-index-item { position: relative; }
.guide-index-item:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: -4px;
}
.guide-index-item:is(:hover,:focus-visible) {
  transform: none;
  background: #eaf0ff;
}
.guide-index-item:is(:hover,:focus-visible) h2,
.guide-index-item:is(:hover,:focus-visible) b { color: #1d41bb; }

@container (min-width: 720px) {
  .guide-hero:has(.guide-cta) { padding-inline-end: 33%; }
  .guide-hero:has(.guide-cta)::after {
    mask: none;
    opacity: 1;
    inset: 50% 8% auto auto;
    width: clamp(120px, 16cqi, 188px);
    aspect-ratio: .76;
    box-sizing: border-box;
    border: 1px solid #151c38;
    border-left: 7px solid #152251;
    border-radius: 2px 5px 4px 1px;
    background:
      url("brand/q-mark-v4.svg") center 37% / 62% auto no-repeat,
      linear-gradient(#172757, #172757) center 81% / 63% 2px no-repeat,
      linear-gradient(#172757, #172757) 26% 85% / 24% 2px no-repeat,
      linear-gradient(90deg, #d3d2c9 0, #faf6e8 10%, #f4f0e3 100%);
    box-shadow: 1px 2px #aaa99c, 2px 4px #e9e6d9, 3px 6px #152251, 12px 16px 0 #132d9d;
    transform: translateY(-50%) rotate(9deg);
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .guide-index-item b i { transition: transform .24s var(--swing); }
  .guide-index-item:is(:hover,:focus-visible) b i { transform: translate(2px,-2px); }
  @container (min-width: 720px) {
    .guide-hero:has(.guide-cta)::after { transition: transform .32s var(--swing); }
    .guide-hero:has(.guide-cta:is(:hover,:focus-visible))::after { transform: translateY(-52%) rotate(6deg); }
  }
}
