@layer application{:root{--hh-ui-type-page-size:16px;--hh-ui-company-title-size:16px;--hh-ui-settings-title-size:15px;--hh-ui-type-page-line-height:22px;--hh-ui-product-section-size:15.5px;--hh-ui-product-section-line-height:21px;--hh-ui-product-record-size:13.5px;--hh-ui-type-card-line-height:19px;--hh-ui-type-copy-size:12.5px;--hh-ui-type-copy-line-height:18px;--hh-ui-type-control-size:12.5px;}@media(max-width:700px){:root{--hh-ui-company-title-size:15px;--hh-ui-settings-title-size:16px;--hh-ui-type-page-line-height:20px;--hh-ui-type-control-size:12px;}}}
@layer components.typography{.reports-panel .reports-home{--hh-ui-type-card-size:var(--hh-ui-compact-card-size);--hh-ui-product-record-size:var(--hh-ui-compact-card-size);}}
/* The shared type scale applies to product UI. Rich content,
   document previews and employer-designed careers pages own their typography. */
@layer components.typography {
  @media screen {
    :where(body:has(#root .topbar), .settings-page, [data-createjob-wizard],
      [data-hh-drawer-surface], .hhadmin-shell, .login, .auth--signup,
      .hh-job-seeker, .apv-page, .vw-root, .iv2s, .hh-survey)
      :is(h2, [data-hh-type='section-title'], .reports-home__group-head h2):not(:where(
        [data-hh-typography='preserve'], [data-hh-typography='preserve'] *,
        [contenteditable='true'], [contenteditable='true'] *, .ProseMirror *, .ql-editor *,
        .settings-template-rich-text *, .survey-rich-text__content *, .careers-public-route *,
        .careers-page *, .hiring-builder__canvas *, .settings-builder-preview *, .auth-trial__story *,
        .react-pdf__Page *, .recharts-wrapper *, svg, svg *
      )) {
      font-size: var(--hh-ui-product-section-size);
      font-weight: var(--hh-ui-type-title-weight);
      line-height: var(--hh-ui-product-section-line-height);
    }

    :where(body:has(#root .topbar), .settings-page, [data-createjob-wizard],
      [data-hh-drawer-surface], .hhadmin-shell, .login, .auth--signup,
      .hh-job-seeker, .apv-page, .vw-root, .iv2s, .hh-survey)
      :is(
        h3, [data-hh-type='card-title'], .reports-home-card strong, .job__title h2,
        .job__link, .job-title__link, .candidate-directory-card__name, .cand-name,
        .candidate-scroll-identity__name, .employees-directory-card__name, .todo-title
      ):not(:where(
        [data-hh-typography='preserve'], [data-hh-typography='preserve'] *,
        [contenteditable='true'], [contenteditable='true'] *, .ProseMirror *, .ql-editor *,
        .settings-template-rich-text *, .survey-rich-text__content *, .careers-public-route *,
        .careers-page *, .hiring-builder__canvas *, .settings-builder-preview *, .auth-trial__story *,
        .react-pdf__Page *, .recharts-wrapper *, svg, svg *
      )) {
      font-size: var(--hh-ui-product-record-size);
      font-weight: var(--hh-ui-type-title-weight);
      line-height: var(--hh-ui-type-card-line-height);
    }

    :where(body:has(#root .topbar), .settings-page, [data-createjob-wizard],
      [data-hh-drawer-surface], .hhadmin-shell, .login, .auth--signup,
      .hh-job-seeker, .apv-page, .vw-root, .iv2s, .hh-survey)
      :is(
        h1, [data-hh-type='page-title'], .wf-head__title-text, .dashboard-greeting-name,
        .candidate-db-ai-banner__copy h2, .settings-content__page-title,
        .settings-page-heading__title, .reports-switcher__trigger, .login .card-title,
        .jsp-page-heading h1, .apv-heading, .hh-survey .survey-heading > strong
      ):not(:where(
        [data-hh-typography='preserve'], [data-hh-typography='preserve'] *,
        [contenteditable='true'], [contenteditable='true'] *, .ProseMirror *, .ql-editor *,
        .settings-template-rich-text *, .survey-rich-text__content *, .careers-public-route *,
        .careers-page *, .hiring-builder__canvas *, .settings-builder-preview *, .auth-trial__story *,
        .react-pdf__Page *, .recharts-wrapper *, svg, svg *
      )) {
      font-size: var(--hh-ui-type-page-size);
      font-weight: var(--hh-ui-type-title-weight);
      line-height: var(--hh-ui-type-page-line-height);
    }

    :where(body:has(#root .topbar), .settings-page, [data-createjob-wizard],
      [data-hh-drawer-surface], .hhadmin-shell, .login, .auth--signup,
      .hh-job-seeker, .apv-page, .vw-root, .iv2s, .hh-survey)
      :is(
        [data-hh-type='body'], :is(h1, h2, h3) + p:not([class]), .workspace-secondary-bar__title-stack p,
        .reports-home-card__copy > span, .reports-page__head p, .dashboard-welcome-heading p,
        .candidate-db-ai-banner__copy p, .job__meta, .job__publish-summary-text,
        .cand-title, .settings-page-heading__description, .login .subhead, .apv-subcopy,
        .jsp-page-heading p:not(.jsp-eyebrow), .hhadmin-section-head p, .auth__intro
      ):not(:where(
        [data-hh-typography='preserve'], [data-hh-typography='preserve'] *,
        [contenteditable='true'], [contenteditable='true'] *, .ProseMirror *, .ql-editor *,
        .settings-template-rich-text *, .survey-rich-text__content *, .careers-public-route *,
        .careers-page *, .hiring-builder__canvas *, .settings-builder-preview *, .auth-trial__story *,
        .react-pdf__Page *, .recharts-wrapper *, svg, svg *
      )) {
      font-size: var(--hh-ui-type-copy-size);
      font-weight: var(--hh-ui-type-body-weight);
      line-height: var(--hh-ui-type-copy-line-height);
    }

    :where(body:has(#root .topbar), .settings-page, [data-createjob-wizard],
      [data-hh-drawer-surface], .hhadmin-shell, .login, .auth--signup,
      .hh-job-seeker, .apv-page, .vw-root, .iv2s, .hh-survey)
      :is(
        .btn:not(.btn--icon, .btn--icon-only), [data-hh-type='action'],
        [data-toolbar-search] input, .app-toolbar-search input, .reports-search input,
        .jobs-mobile-search input, .jobs-create-btn__label, .job__action-label,
        .candidate-db-search-box input, .candidate-db-search__control,
        .files-search input, .employees-workspace-search input, .wcal-search input
      ):not(:where(
        [data-hh-typography='preserve'], [data-hh-typography='preserve'] *,
        [contenteditable='true'], [contenteditable='true'] *, .ProseMirror *, .ql-editor *,
        .settings-template-rich-text *, .survey-rich-text__content *, .careers-public-route *,
        .careers-page *, .hiring-builder__canvas *, .settings-builder-preview *, .auth-trial__story *,
        .react-pdf__Page *, .recharts-wrapper *, svg, svg *
      )) {
      font-size: var(--hh-ui-type-control-size);
    }

    :where(.page--jobs) .job__title {
      --hh-ui-product-record-size: 14px;
    }

    .jobs-page-title {
      --hh-ui-type-page-size: var(--hh-ui-company-title-size);
    }

    .settings-page {
      --hh-ui-type-page-size: var(--hh-ui-settings-title-size);
    }

    :is(.topbar__nav, .topbar__drawer-nav) .navlink,
    :is(.topbar__nav, .topbar__drawer-nav) .navlink > span,
    .topbar .topbar__ai-button,
    :where(body:has(#root .topbar), .settings-page, [data-createjob-wizard], [data-hh-drawer-surface],
      .hhadmin-shell, .login, .auth--signup, .hh-job-seeker, .apv-page, .vw-root, .iv2s, .hh-survey)
      :is(.btn--primary, .jobs-create-btn__label):not(:where(
        [data-hh-typography='preserve'] *, [contenteditable] *, .ProseMirror *, .ql-editor *,
        .careers-public-route *, .careers-page *, .hiring-builder__canvas *, .settings-builder-preview *
      )) {
      font-weight: var(--hh-ui-type-title-weight);
    }

    :where(.reports-nav) :is(.reports-nav__item, .reports-nav__section) {
      font-weight: var(--hh-ui-type-body-weight);
    }

    .mh-header :is(.mhn-nav-link, .mh-login, .mh-button--small) {
      font-size: var(--hh-ui-type-control-size);
    }
  }
}
