/*
 * Foundire Resume Fit
 * Faithful, page-scoped recreation of the PIO resume-fit composition.
 * The shared header, footer and the legacy resume analysis scripts remain intact.
 */

body.ax-resumeparser {
  --fit-navy: #132440;
  --fit-header: #062b49;
  --fit-ink: #0d263e;
  --fit-muted: #4b5d70;
  --fit-line: #e4e8ed;
  --fit-blue: #28519a;
  --fit-blue-hover: #1e3e77;
  --fit-mint: #bff6d9;
  --fit-lavender: #ddd0ff;
  --fit-peach: #ffd8b8;
  margin: 0;
  color: var(--fit-ink);
  background: #fff;
  font-family: "Geist", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.ax-resumeparser *,
body.ax-resumeparser *::before,
body.ax-resumeparser *::after {
  box-sizing: border-box;
}

body.ax-resumeparser .aixunren-nav-shell {
  background: var(--fit-header) !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

body.ax-resumeparser .yoojober-detail-page,
body.ax-resumeparser .yoojober-detail-page .yoo-main {
  min-height: 0 !important;
}

body.ax-resumeparser .ax-parser-story[hidden] {
  display: none !important;
}

body.ax-resumeparser .yoojober-detail-page .yoo-main {
  display: block !important;
  min-height: 0 !important;
  background: #fff !important;
}

body.ax-resumeparser .yoo-main > .page-banner {
  display: none !important;
}

body.ax-resumeparser .yoo-main > .page-1 {
  padding-top: 96px !important;
}

/* Resume parser detail: keep the original feature sections below the new hero. */
body.ax-resumeparser .yoo-main > :where(.page-1, .page-2, .page-3) {
  color: #52647c !important;
  background: #fff !important;
}

body.ax-resumeparser .page-1 > .title,
body.ax-resumeparser .page-2 > .title {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 0 64px !important;
  text-align: center !important;
}

body.ax-resumeparser :where(.page-1, .page-2) > .title h3 {
  width: auto !important;
  color: #10233f !important;
  font-size: clamp(32px, 3vw, 40px) !important;
  line-height: 1.25 !important;
}

body.ax-resumeparser .page-1 > .list {
  overflow: hidden !important;
  padding: 42px 48px !important;
  border: 1px solid #e5ebf3 !important;
  border-radius: 24px !important;
  background: #fff !important;
  box-shadow: 0 22px 60px rgba(16, 35, 63, 0.08) !important;
}

body.ax-resumeparser .page-1 .text h5 {
  color: #10233f !important;
}

body.ax-resumeparser .page-1 .text h6 {
  color: #1769e0 !important;
}

body.ax-resumeparser .page-1 .text li {
  color: #52647c !important;
}

body.ax-resumeparser .page-1 :where(.image, .yoo-sprites-analyse),
body.ax-resumeparser .page-3 .image {
  filter: none !important;
}

body.ax-resumeparser .page-2 {
  background: #f7f9fc !important;
}

body.ax-resumeparser .page-3 > .content {
  border-color: #dce6f2 !important;
  background: linear-gradient(110deg, #f7faff 0%, #edf4fb 100%) !important;
  box-shadow: 0 22px 60px rgba(16, 35, 63, 0.08) !important;
}

body.ax-resumeparser .page-3 :where(h3, .line-text, .public_title) {
  color: #10233f !important;
}

/* Hero */
body.ax-resumeparser .ax-fit-hero {
  position: relative;
  z-index: 2;
  min-height: 1108px;
  padding: 88px 32px 48px;
  overflow: hidden;
  color: #fff;
  background: var(--fit-navy);
}

.ax-fit-hero__inner {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  max-width: 1231px;
  height: 316px;
  margin: 0 auto;
}

.ax-fit-copy {
  position: relative;
  z-index: 2;
  width: min(770px, 64%);
  padding: 0 0 31px;
  text-align: left;
}

.ax-fit-copy h1,
.ax-fit-copy p {
  text-align: left !important;
}

.ax-fit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin: 0 0 24px;
  padding: 6px 16px;
  border-radius: 999px;
  color: #312e81;
  background: #e0e7ff;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
}

.ax-fit-copy h1 {
  margin: 0 0 24px;
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.ax-fit-copy p {
  max-width: 720px;
  margin: 0;
  color: #d1d5db;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  text-wrap: pretty;
}

.ax-fit-visual {
  position: absolute;
  right: 35px;
  bottom: 0;
  width: 385px;
  height: 316px;
  overflow: hidden;
  pointer-events: none;
}

.ax-fit-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

/* Interactive white panel */
.ax-fit-chat {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1231px;
  height: 656px;
  margin: 0 auto;
  padding: 48px 48px 24px;
  border: 1px solid #d8dde4;
  border-radius: 10px;
  color: var(--fit-ink);
  background: #fff;
  box-shadow: 0 2px 4px rgba(13, 38, 62, 0.08);
}

/*
 * Keep the resume parser hero and white workspace on the same responsive
 * container scale as the job parser detail page.
 */
@media (min-width: 640px) {
  .ax-fit-hero__inner,
  .ax-fit-chat {
    max-width: 576px;
  }
}

@media (min-width: 768px) {
  .ax-fit-hero__inner,
  .ax-fit-chat {
    max-width: 704px;
  }
}

@media (min-width: 1024px) {
  .ax-fit-hero__inner,
  .ax-fit-chat {
    max-width: 960px;
  }
}

@media (min-width: 1280px) {
  .ax-fit-hero__inner,
  .ax-fit-chat {
    max-width: 1216px;
  }
}

@media (min-width: 1536px) {
  .ax-fit-hero__inner,
  .ax-fit-chat {
    max-width: 1472px;
  }
}

.ax-fit-chat__content {
  min-height: 0;
  overflow: auto;
  scrollbar-color: #cbd3dc transparent;
  scrollbar-width: thin;
}

.ax-fit-job-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

body.ax-resumeparser .yoojober-detail-page .ax-fit-job-card {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 246px !important;
  height: auto !important;
  padding: 22px 22px 20px !important;
  border: 1px solid #e2e6eb !important;
  border-radius: 10px !important;
  color: var(--fit-ink) !important;
  background: #fff !important;
  box-shadow: 0 2px 5px rgba(13, 38, 62, 0.08) !important;
  font: inherit !important;
  text-align: left !important;
  transform: none !important;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease !important;
}

body.ax-resumeparser .yoojober-detail-page .ax-fit-job-card:hover {
  border-color: #cbd4df !important;
  box-shadow: 0 4px 8px rgba(13, 38, 62, 0.1) !important;
  transform: translateY(-2px) !important;
}

body.ax-resumeparser .yoojober-detail-page .ax-fit-job-card:focus-visible {
  outline: 3px solid rgba(40, 81, 154, 0.24);
  outline-offset: 3px;
}

.ax-fit-job-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-bottom: 13px;
}

.ax-fit-job-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ax-fit-job-card--account .ax-fit-job-icon {
  color: #3478f6;
}

.ax-fit-job-card--product .ax-fit-job-icon {
  color: #d59a17;
}

.ax-fit-job-card--sales .ax-fit-job-icon {
  color: #27ae60;
}

.ax-fit-job-card--operations .ax-fit-job-icon {
  color: #9a4cf0;
}

body.ax-resumeparser .yoojober-detail-page .ax-fit-job-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--fit-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}

body.ax-resumeparser .yoojober-detail-page .ax-fit-job-card > span:last-child {
  color: #263c51;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
}

.ax-fit-chat__content.is-conversation {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 4px 16px;
}

.ax-fit-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--fit-ink);
  font-size: 16px;
  line-height: 1.65;
}

.ax-fit-message--user {
  justify-content: flex-end;
  padding-left: 18%;
}

.ax-fit-avatar {
  display: grid;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: 3px;
  border-radius: 50%;
  color: #fff;
  background: var(--fit-navy);
  font-size: 12px;
  font-weight: 700;
}

.ax-fit-bubble {
  max-width: 900px;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--fit-ink);
  background: #f2f5f8;
}

.ax-fit-message--user .ax-fit-bubble {
  color: #fff;
  background: var(--fit-blue);
}

.ax-fit-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  margin-top: auto;
  padding: 0 10px;
  border: 1px solid #e0e5eb;
  border-radius: 999px;
  background: #fff;
}

.ax-fit-composer input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 7px;
  border: 0;
  outline: 0;
  color: var(--fit-ink);
  background: transparent;
  font: inherit;
  font-size: 16px;
}

.ax-fit-composer input::placeholder {
  color: #8491a0;
  opacity: 1;
}

body.ax-resumeparser .yoojober-detail-page .ax-fit-upload,
body.ax-resumeparser .yoojober-detail-page .ax-fit-send {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 34px !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  color: #425a70 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

body.ax-resumeparser .yoojober-detail-page .ax-fit-upload:hover,
body.ax-resumeparser .yoojober-detail-page .ax-fit-send:hover {
  color: var(--fit-blue) !important;
  background: #eef3fa !important;
  box-shadow: none !important;
  transform: none !important;
}

.ax-fit-upload:focus-visible,
.ax-fit-send:focus-visible,
.ax-fit-composer input:focus-visible {
  outline: 3px solid rgba(40, 81, 154, 0.22);
  outline-offset: 2px;
}

.ax-fit-upload svg,
.ax-fit-send svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ax-fit-file {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

/* Global employment tools */
.ax-pio-tools {
  position: relative;
  z-index: 1;
  padding: 132px 32px 128px;
  color: var(--fit-ink);
  background: #fff;
}

.ax-pio-tools__heading {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

body.ax-resumeparser .yoojober-detail-page .ax-pio-tools__heading h2 {
  margin: 0 0 12px;
  color: var(--fit-ink) !important;
  font-size: 36px;
  font-weight: 700;
  line-height: 44px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

body.ax-resumeparser .yoojober-detail-page .ax-pio-tools__heading p {
  margin: 0;
  color: var(--fit-ink) !important;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.ax-pio-tool-grid {
  display: flex;
  gap: 32px;
  width: 100%;
  max-width: 1192px;
  margin: 64px auto 32px;
}

.ax-pio-tool-card {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 304px;
  padding: 32px;
  border-radius: 16px;
  transition: transform 180ms ease;
}

.ax-pio-tool-card:hover {
  transform: translateY(-2px);
}

.ax-pio-tool-card--cupid {
  background: var(--fit-mint);
}

.ax-pio-tool-card--cost {
  background: var(--fit-lavender);
}

.ax-pio-tool-card--risk {
  background: var(--fit-peach);
}

.ax-pio-tool-card img {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  object-fit: contain;
}

body.ax-resumeparser .yoojober-detail-page .ax-pio-tool-card h3 {
  margin: 0 0 10px;
  color: var(--fit-ink) !important;
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: -0.015em;
}

body.ax-resumeparser .yoojober-detail-page .ax-pio-tool-card p {
  max-width: 33ch;
  margin: 0 0 18px;
  color: #243b51 !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 23px;
}

.ax-pio-tool-card a,
.ax-pio-resume-cta__copy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: auto;
  padding: 0 20px;
  border-radius: 5px;
  color: #fff !important;
  background: var(--fit-blue);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.ax-pio-tool-card a:hover,
.ax-pio-resume-cta__copy a:hover {
  color: #fff !important;
  background: var(--fit-blue-hover);
  transform: translateY(-1px);
}

.ax-pio-tool-card a:focus-visible,
.ax-pio-resume-cta__copy a:focus-visible {
  outline: 3px solid rgba(40, 81, 154, 0.28);
  outline-offset: 3px;
}

/* Resume CTA */
.ax-pio-resume-cta {
  width: 100%;
  min-height: 355px;
  margin-top: 0;
  overflow: hidden;
  color: var(--fit-ink);
  background: #b1d8fc;
}

.ax-pio-resume-cta__inner {
  display: flex;
  width: 100%;
  max-width: 1440px;
  min-height: 355px;
  height: 355px;
  margin: 0 auto;
}

.ax-pio-resume-cta__copy,
.ax-pio-resume-cta__visual {
  flex: 0 0 50%;
  width: 50%;
}

.ax-pio-resume-cta__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 6.15%;
}

body.ax-resumeparser .yoojober-detail-page .ax-pio-resume-cta__copy h2 {
  margin: 0 0 24px;
  color: var(--fit-ink) !important;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.ax-pio-resume-cta__copy a {
  min-height: 48px;
  padding: 0 24px;
}

.ax-pio-resume-cta__visual {
  align-self: stretch;
}

.ax-pio-resume-cta__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 355px;
  max-height: 355px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 1024px) {
  body.ax-resumeparser .ax-fit-hero {
    padding-inline: 32px;
  }

  .ax-fit-copy {
    width: 62%;
  }

  .ax-fit-copy h1 {
    font-size: 40px;
  }

  .ax-fit-visual {
    right: 0;
    width: 350px;
  }

  .ax-fit-chat {
    padding-inline: 32px;
  }

  .ax-fit-job-grid {
    gap: 16px;
  }

  .ax-fit-job-card {
    padding-inline: 18px !important;
  }

  .ax-pio-tool-grid {
    gap: 20px;
  }

  .ax-pio-tool-card {
    padding: 26px;
  }
}

@media (max-width: 760px) {
  body.ax-resumeparser .ax-fit-hero {
    min-height: 1510px;
    padding: 105px 16px 15px;
  }

  .ax-fit-hero__inner {
    display: block;
    height: 467px;
  }

  .ax-fit-copy {
    width: 100%;
    padding: 0;
  }

  .ax-fit-badge {
    min-height: 24px;
    margin-bottom: 16px;
    padding: 4px 12px;
    font-size: 12px;
    line-height: 16px;
  }

  .ax-fit-copy h1 {
    margin-bottom: 16px;
    font-size: 24px;
    line-height: 30px;
    letter-spacing: -0.02em;
  }

  .ax-fit-copy p {
    max-width: 343px;
    font-size: 16px;
    line-height: 26px;
  }

  .ax-fit-visual {
    top: 186px;
    right: auto;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 281px;
  }

  .ax-fit-chat {
    height: 923px;
    padding: 12px 10px 14px;
    border-radius: 10px;
  }

  .ax-fit-job-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.ax-resumeparser .yoojober-detail-page .ax-fit-job-card {
    min-height: 138px !important;
    padding: 13px 14px 12px !important;
    border-radius: 9px !important;
  }

  body.ax-resumeparser .yoojober-detail-page .ax-fit-job-card:hover {
    transform: none !important;
  }

  .ax-fit-job-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 5px;
  }

  .ax-fit-job-icon svg {
    width: 18px;
    height: 18px;
  }

  body.ax-resumeparser .yoojober-detail-page .ax-fit-job-card strong {
    margin-bottom: 3px;
    font-size: 12px;
    line-height: 18px;
  }

  body.ax-resumeparser .yoojober-detail-page .ax-fit-job-card > span:last-child {
    font-size: 12px;
    line-height: 17px;
  }

  .ax-fit-chat__content.is-conversation {
    padding: 4px 2px 14px;
  }

  .ax-fit-message {
    gap: 8px;
    font-size: 12px;
  }

  .ax-fit-message--user {
    padding-left: 8%;
  }

  .ax-fit-avatar {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
  }

  .ax-fit-bubble {
    padding: 10px 12px;
  }

  .ax-fit-composer {
    min-height: 44px;
    padding: 0 5px;
  }

  .ax-fit-composer input {
    height: 42px;
    padding-inline: 4px;
    font-size: 12px;
  }

  .ax-fit-upload,
  .ax-fit-send {
    flex-basis: 30px !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
  }

  .ax-fit-upload svg,
  .ax-fit-send svg {
    width: 15px;
    height: 15px;
  }

  .ax-pio-tools {
    padding: 48px 16px 80px;
  }

  .ax-pio-tools__heading {
    padding-inline: 8px;
  }

  .ax-pio-tools__heading h2 {
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 28px;
  }

  .ax-pio-tools__heading p {
    font-size: 16px;
    line-height: 20px;
  }

  .ax-pio-tool-grid {
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
    padding-inline: 8px;
  }

  .ax-pio-tool-card {
    flex: none;
    width: 100%;
    min-height: 216px;
    padding: 16px;
  }

  .ax-pio-tool-card:hover {
    transform: none;
  }

  .ax-pio-tool-card img {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
  }

  .ax-pio-tool-card h3 {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 24px;
  }

  .ax-pio-tool-card p {
    max-width: none;
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 18px;
  }

  .ax-pio-tool-card a {
    min-height: 32px;
    padding: 0 14px;
    font-size: 12px;
  }

  .ax-pio-resume-cta {
    min-height: 485px;
    margin-top: 0;
  }

  .ax-pio-resume-cta__inner {
    display: block;
    min-height: 485px;
    height: 485px;
  }

  .ax-pio-resume-cta__copy,
  .ax-pio-resume-cta__visual {
    width: 100%;
  }

  .ax-pio-resume-cta__copy {
    min-height: 272px;
    padding: 32px;
  }

  .ax-pio-resume-cta__copy h2 {
    margin-bottom: 20px;
    font-size: 24px;
    line-height: 32px;
  }

  .ax-pio-resume-cta__copy a {
    min-height: 40px;
    margin-top: 0;
    padding: 0 18px;
    font-size: 12px;
  }

  .ax-pio-resume-cta__visual {
    height: 213px;
  }

  .ax-pio-resume-cta__visual img {
    height: 213px;
    min-height: 213px;
    max-height: 213px;
    object-position: center;
  }
}

@media (max-width: 380px) {
  body.ax-resumeparser .ax-fit-hero {
    padding-inline: 12px;
  }

  body.ax-resumeparser .yoojober-detail-page .ax-fit-job-card > span:last-child {
    font-size: 12px;
    line-height: 16px;
  }

  .ax-pio-tools {
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ax-fit-job-card,
  .ax-pio-tool-card,
  .ax-pio-tool-card a,
  .ax-pio-resume-cta__copy a {
    scroll-behavior: auto;
    transition: none !important;
  }
}
