/* recruit/hero — A+ opening: full-bleed photo under a scrim, copy left, signup panel right, ticker strip. */
.rc-hero {
  position: relative; isolation: isolate; overflow: clip;
  padding-top: var(--header-h);
  background: var(--rc-bg); border-bottom: 1px solid var(--rc-line);
}
.rc-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--hero-image, none) var(--hero-position, center) / cover no-repeat, var(--rc-surface-2);
  filter: var(--rc-photo-filter);
}
.rc-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--rc-hero-scrim); }
.rc-hero__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center;
  min-height: 680px; padding-block: 72px;
}
.rc-hero__copy { min-width: 0; }
.rc-hero__eyebrow { max-width: 520px; margin-bottom: 24px; font: 600 14px/1.6 var(--rc-font-mono); color: var(--rc-accent); }
.rc-hero h1 { max-width: 18ch; }
.rc-hero__answer {
  max-width: 640px; margin-top: 32px; padding-left: 24px; border-left: 2px solid var(--rc-accent);
  font-size: 18px; line-height: 1.6; color: var(--rc-text);
}
.rc-hero__note { max-width: 590px; margin-top: 24px; font-size: 16px; color: var(--rc-muted); }
.rc-hero .rc-signup { align-self: center; }

/* Ticker: the hero's key points in a monospace strip along the bottom edge. */
.rc-facts--hero {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding-block: 22px; font: 500 14px/1.4 var(--rc-font-mono); color: var(--rc-text);
}
.rc-facts--hero::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 100vw; height: 1px; transform: translateX(-50%);
  background: var(--rc-glass-line);
}
.rc-facts--hero .rc-facts__point { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.rc-facts--hero .rc-icon { width: 14px; height: 14px; color: var(--rc-accent); }

/* Breadcrumbs (inner pages). */
.rc-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 24px; font: 500 13px/1.4 var(--rc-font-mono); color: var(--rc-muted); }
.rc-breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; }
.rc-breadcrumb a:hover { color: var(--rc-accent); }
.rc-breadcrumb a[aria-current] { color: var(--rc-text); }

/* Inner pages: a shorter photographic header; the "light" layout stays dark in A+. */
.rc-hero--compact .rc-hero__grid { min-height: 520px; padding-block: 56px; }
.rc-hero--compact h1 { font-size: clamp(34px, 4vw, 56px); }
.rc-hero__card {
  padding: 24px; border: 1px solid var(--rc-glass-line); border-left: 2px solid var(--rc-accent); border-radius: var(--radius);
  background: var(--rc-glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.rc-hero__card h3 { font-size: 20px; }
.rc-hero__card p { margin-top: 12px; }

@media (min-width: 1440px) {
  .rc-hero__grid { min-height: 760px; }
}
@media (max-width: 1023px) {
  .rc-hero__grid { grid-template-columns: 1fr; gap: 40px; min-height: 0; padding-block: 56px; }
  .rc-hero .rc-signup { max-width: 640px; }
}
/* Phones: the photo becomes a band under the header, the copy sits on the plain background. */
@media (max-width: 767px) {
  .rc-hero { padding-top: calc(var(--header-h) + 232px); }
  .rc-hero::before {
    inset: var(--header-h) 0 auto; height: 232px;
    background-image: var(--hero-image-mobile, var(--hero-image, none));
    background-position: var(--hero-mobile-position, var(--hero-position, center));
  }
  .rc-hero::after { inset: var(--header-h) 0 auto; height: 232px; background: var(--rc-photo-scrim); }
  .rc-hero:not([style*="--hero-image"])::before { height: 0; }
  .rc-hero:not([style*="--hero-image"]) { padding-top: var(--header-h); }
  .rc-hero:not([style*="--hero-image"])::after { display: none; }
  .rc-hero__grid { padding-block: 32px 40px; gap: 32px; }
  .rc-hero__answer { padding-left: 16px; font-size: 16px; }
  .rc-hero .rc-signup { padding: 24px; background: var(--rc-surface); }
  .rc-facts--hero { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; font-size: 13px; }
  .rc-hero--compact .rc-hero__grid { min-height: 0; }
}

/* Guide header: byline under the answer. */
.rc-hero__byline { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; font: 500 14px/1.6 var(--rc-font-mono); color: var(--rc-muted); }
.rc-hero__byline > span:first-child { color: var(--rc-text); }
.rc-hero--compact .rc-hero__answer { max-width: 80ch; }

/* Review (Codex, 2026-12-02). Guide header: an editorial title block, then the photograph as its own framed image. */
.rc-hero:has(.rc-hero__byline) {
  display: flex; flex-direction: column; max-width: var(--wrap); margin-inline: auto;
  padding: calc(var(--header-h) + 32px) var(--gutter) 0; border: 0; background: transparent; overflow: visible;
}
.rc-hero:has(.rc-hero__byline) > .rc-wrap { width: 100%; padding: 0; }
.rc-hero:has(.rc-hero__byline) .rc-hero__grid { display: block; min-height: 0; padding: 0; }
.rc-hero:has(.rc-hero__byline) h1 { max-width: 1080px; font-size: clamp(36px, 4.5vw, 64px); line-height: 1.1; }
.rc-hero:has(.rc-hero__byline)::before {
  position: relative; inset: auto; order: 2; z-index: auto; height: 400px; margin-top: 40px;
  border: 1px solid var(--rc-line); border-radius: var(--radius-lg);
}
.rc-hero:has(.rc-hero__byline)::after { display: none; }
@media (max-width: 767px) {
  .rc-hero:has(.rc-hero__byline) { padding-top: calc(var(--header-h) + 24px); }
  .rc-hero:has(.rc-hero__byline)::before { inset: auto; height: 220px; margin-top: 24px; background-image: var(--hero-image-mobile, var(--hero-image, none)); }
}

/* Inner page with a side card (guides hub): one column, the card becomes a glass strip under the copy. */
.rc-hero--compact:has(.rc-hero__card) .rc-hero__grid { grid-template-columns: 1fr; gap: 32px; }
.rc-hero--compact:has(.rc-hero__card) h1 { max-width: 880px; }
.rc-hero--compact:has(.rc-hero__card) .rc-hero__card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; max-width: 780px; }
.rc-hero--compact:has(.rc-hero__card) .rc-hero__card p { margin-top: 0; }
.rc-hero--compact:has(.rc-hero__card) .rc-hero__card .rc-button { margin-left: auto; }

/* Home hero: the mockup's vertical breathing room on wide screens. */
@media (min-width: 1440px) {
  .home .rc-hero:not(.rc-hero--compact) .rc-hero__grid { min-height: 848px; padding-block: 104px; }
}
/* Pages without a dark hero already reserve the header height (recruit-core structure.css). */
body:not(.has-dark-hero) .rc-hero:has(.rc-hero__byline) { padding-top: 32px; }
@media (max-width: 767px) {
  body:not(.has-dark-hero) .rc-hero:has(.rc-hero__byline) { padding-top: 24px; }
}

/* Desk layout (a3 inner pages): copy beside a photo, ledger, text or ticket. No background photo. */
.rc-hero--desk { padding-top: 0; border-bottom: 1px solid var(--rc-line); background: var(--rc-bg); overflow: visible; }
.rc-hero--desk::before, .rc-hero--desk::after { content: none; }
.rc-hero--desk .rc-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; min-height: 0; padding-block: 64px 48px; }
.rc-hero--aside-none .rc-hero__grid { grid-template-columns: minmax(0, 1fr); }
.rc-hero--aside-none h1 { max-width: 24ch; }
.rc-hero--aside-ledger .rc-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.rc-hero--desk .rc-hero__eyebrow { font: 500 12px/1.6 var(--rc-font-mono); letter-spacing: .04em; margin-bottom: 20px; }
.rc-hero--desk h1 { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.08; max-width: 20ch; }
.rc-hero--desk .rc-hero__answer { margin-top: 24px; padding-left: 0; border-left: 0; max-width: 680px; font-size: 18px; color: var(--rc-body-text); }
.rc-hero--desk .rc-hero__note { margin-top: 16px; max-width: 680px; font-size: 16px; color: var(--rc-body-text); }
.rc-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.rc-hero__actions .rc-button--text { border-bottom: 0; }
.rc-hero__trust { margin-top: 16px; font: 500 12px/1.7 var(--rc-font-mono); color: var(--rc-muted); }
.rc-hero--desk .rc-hero__aside.rc-photo { min-height: 410px; }
.rc-hero__aside--copy .rc-hero__answer { margin-top: 0; }
.rc-hero--desk .rc-facts--hero { margin-top: 0; }
/* Ledger: an illustrative account statement. */
.rc-ledger { overflow: hidden; border: 1px solid var(--rc-panel-line); border-radius: var(--radius); background: var(--rc-surface); }
.rc-ledger__head { padding: 28px; border-bottom: 1px dashed var(--rc-line); }
.rc-ledger__label { font: 500 12px/1.6 var(--rc-font-mono); letter-spacing: .04em; color: var(--rc-accent); }
.rc-ledger__head h2 { margin-top: 12px; font-size: 24px; }
.rc-ledger__row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 24px 28px; border-bottom: 1px solid var(--rc-line); }
.rc-ledger__mark { font: 500 28px/1 var(--rc-font-mono); color: var(--rc-accent); }
.rc-ledger__row h3 { font-size: 18px; }
.rc-ledger__row p { margin-top: 6px; font-size: 14px; }
.rc-ledger__tag { font: 500 12px/1.8 var(--rc-font-mono); color: var(--rc-muted); white-space: nowrap; }
.rc-ledger__note { padding: 20px 28px; font-size: 13px; color: var(--rc-muted); }
@media (max-width: 1023px) {
  .rc-hero--desk .rc-hero__grid, .rc-hero--aside-ledger .rc-hero__grid { grid-template-columns: 1fr; gap: 32px; padding-block: 40px; }
  .rc-hero--desk .rc-hero__aside.rc-photo { min-height: 300px; }
}
@media (max-width: 767px) {
  .rc-hero--desk { padding-top: 0; }
  .rc-hero--desk h1 { font-size: 40px; }
  .rc-hero--desk .rc-hero__answer { font-size: 16px; }
  .rc-ledger__row { grid-template-columns: 32px minmax(0, 1fr); padding: 20px; }
  .rc-ledger__tag { grid-column: 2; }
  .rc-ledger__head, .rc-ledger__note { padding-inline: 20px; }
}
/* Pages without a dark hero already reserve the header height (structure.css): keep the desk hero tight under it. */

/* Pages without a dark photo hero: .rc-main already reserves the header height (structure.css), so the hero must not add it again
   (it did on phones for desk heroes and everywhere for light heroes: legal, search, 404). Bylines keep their own rule above. */
body:not(.has-dark-hero) .rc-hero:not(:has(.rc-hero__byline)) { padding-top: 0; }
body:not(.has-dark-hero) .rc-hero--light .rc-hero__grid { min-height: 0; }
