/*
 * H11.6-DETAIL1-R2 — Mobile + print legacy application/contact parity.
 * Page-scoped only. Preserves the approved H11.3.5 mobile composition and
 * the H11.6 desktop job-detail implementation.
 */

.job-detail-print-h116-detail1-r2 {
  display: none;
}

@media (max-width: 760px) {
  body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__contact-card {
    width: calc(100% - 24px);
    margin: 12px 12px 0;
    padding: 15px;
    display: grid;
    gap: 13px;
    border: 1px solid #cfe0fb;
    border-radius: 21px;
    background: linear-gradient(145deg, #f8fbff, #eef5ff);
    box-shadow: 0 7px 22px rgba(16, 24, 40, .045);
  }

  body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__contact-card.is-expired {
    border-color: #e2e8f0;
    background: linear-gradient(145deg, #fbfcfd, #f4f6f8);
  }

  body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__contact-head {
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
  }

  body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__contact-head > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #fff;
    color: var(--mjd-brand);
    box-shadow: 0 7px 18px rgba(20, 87, 217, .1);
  }

  body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__contact-card.is-expired .mobile-job-detail-native-v19521h93__contact-head > span {
    color: #667085;
    box-shadow: none;
  }

  body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__contact-head > span svg {
    width: 20px;
    height: 20px;
  }

  body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__contact-head > div {
    min-width: 0;
    display: grid;
    gap: 4px;
  }

  body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__contact-head small {
    color: var(--mjd-brand);
    font-size: 10px;
    line-height: 1.35;
    font-weight: 950;
  }

  body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__contact-head strong {
    color: var(--mjd-ink);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 950;
  }

  body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__contact-head p {
    margin: 0;
    color: #536075;
    font-size: 11px;
    line-height: 1.75;
    font-weight: 700;
  }

  body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__contact-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__contact-methods > a,
  body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__contact-methods > button {
    min-width: 0;
    min-height: 62px;
    margin: 0 !important;
    padding: 10px !important;
    display: grid !important;
    grid-template-columns: 31px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    border: 1px solid #d9e3ef !important;
    border-radius: 15px !important;
    background: #fff !important;
    color: var(--mjd-ink) !important;
    text-align: start;
    text-decoration: none;
    box-shadow: none !important;
  }

  body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__contact-methods > button {
    width: 100%;
    cursor: pointer;
    font: inherit;
  }

  body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__contact-methods > .is-primary {
    border-color: transparent !important;
    background: linear-gradient(145deg, var(--mjd-brand), var(--mjd-brand-dark)) !important;
    color: #fff !important;
  }

  body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__contact-methods > .is-whatsapp {
    border-color: #bfe5d4 !important;
    background: #f2fbf7 !important;
    color: #075b42 !important;
  }

  body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__contact-methods > a > svg,
  body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__contact-methods > button > svg {
    width: 31px;
    height: 31px;
    padding: 7px;
    border-radius: 10px;
    background: rgba(23, 105, 232, .09);
  }

  body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__contact-methods > .is-primary > svg {
    background: rgba(255, 255, 255, .14);
  }

  body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__contact-methods > .is-whatsapp > svg {
    background: #e2f6ec;
  }

  body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__contact-methods span {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__contact-methods small {
    color: inherit;
    opacity: .75;
    font-size: 8px;
    line-height: 1.3;
    font-weight: 850;
  }

  body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__contact-methods strong {
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: 10px;
    line-height: 1.4;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__contact-empty {
    padding: 11px 12px;
    border: 1px dashed #cbd7e6;
    border-radius: 14px;
    background: rgba(255, 255, 255, .8);
    color: #536075;
    font-size: 11px;
    line-height: 1.7;
    font-weight: 750;
  }

  body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__contact-empty.is-expired {
    color: #667085;
  }

  body.mobile-app-page-job_detail .mobile-job-apply-v19521h93__actions--contacts a {
    min-width: 0;
    justify-content: flex-start;
    text-align: start;
  }

  body.mobile-app-page-job_detail .mobile-job-apply-v19521h93__actions--contacts a > span {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  body.mobile-app-page-job_detail .mobile-job-apply-v19521h93__actions--contacts a b {
    display: block;
    max-width: 100%;
    overflow: hidden;
    font-size: 9px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__dock-link {
    min-width: 128px;
    min-height: 50px;
    margin: 0;
    padding: 11px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d5dfeb;
    border-radius: 16px;
    background: #fff;
    color: #344054;
    font-size: 12px;
    font-weight: 950;
    text-align: center;
    text-decoration: none;
  }

  body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__dock.is-browse-only {
    border-color: #e1e7ef;
  }

  @media (max-width: 370px) {
    body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__contact-card {
      width: calc(100% - 16px);
      margin-inline: 8px;
      padding: 12px;
    }

    body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__contact-methods {
      grid-template-columns: 1fr;
    }

    body.mobile-app-page-job_detail .mobile-job-detail-native-v19521h93__dock-link {
      min-width: 112px;
      padding-inline: 10px;
    }
  }
}

@page {
  margin: 12mm;
}

@media print {
  html,
  body.job-detail-page {
    background: #fff !important;
  }

  body.job-detail-page {
    margin: 0 !important;
    padding: 0 !important;
    color: #111827 !important;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.job-detail-page .site-header,
  body.job-detail-page .site-footer,
  body.job-detail-page .v145-footer-cta-strip,
  body.job-detail-page .v145-footer-stats-bar,
  body.job-detail-page .mobile-bottom-nav,
  body.job-detail-page .mobile-app-chrome-v19521,
  body.job-detail-page .desktop-job-detail-v19521h93,
  body.job-detail-page .mobile-job-detail-native-v19521h93,
  body.job-detail-page .alert,
  body.job-detail-page [data-mobile-job-apply-layer],
  body.job-detail-page [data-mobile-job-detail-dock] {
    display: none !important;
  }

  body.job-detail-page #main-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.job-detail-page .job-detail-print-h116-detail1-r2 {
    display: block !important;
    width: 100%;
    color: #111827;
    direction: inherit;
  }

  .job-detail-print-h116-detail1-r2,
  .job-detail-print-h116-detail1-r2 * {
    box-sizing: border-box;
  }

  .job-detail-print-h116-detail1-r2 a {
    color: inherit;
    text-decoration: none;
  }

  .job-detail-print-h116-detail1-r2__header {
    padding-bottom: 14px;
    border-bottom: 2px solid #1d4ed8;
  }

  .job-detail-print-h116-detail1-r2__brand {
    margin-bottom: 8px;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
  }

  .job-detail-print-h116-detail1-r2 h1 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 24px;
    line-height: 1.35;
  }

  .job-detail-print-h116-detail1-r2__company {
    margin: 0;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
  }

  .job-detail-print-h116-detail1-r2__facts {
    margin: 14px 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .job-detail-print-h116-detail1-r2__facts > div {
    min-width: 0;
    padding: 8px 9px;
    border: 1px solid #dbe3ee;
    border-radius: 6px;
  }

  .job-detail-print-h116-detail1-r2__facts span {
    display: block;
    margin-bottom: 2px;
    color: #64748b;
    font-size: 9px;
    font-weight: 700;
  }

  .job-detail-print-h116-detail1-r2__facts strong {
    display: block;
    color: #111827;
    font-size: 11px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .job-detail-print-h116-detail1-r2__section {
    margin-top: 14px;
    break-inside: avoid-page;
  }

  .job-detail-print-h116-detail1-r2__section h2 {
    margin: 0 0 7px;
    padding-bottom: 4px;
    border-bottom: 1px solid #dbe3ee;
    color: #1e3a8a;
    font-size: 15px;
    line-height: 1.4;
  }

  .job-detail-print-h116-detail1-r2__prose {
    color: #1f2937;
    font-size: 11px;
    line-height: 1.75;
    overflow-wrap: anywhere;
  }

  .job-detail-print-h116-detail1-r2__prose > :first-child {
    margin-top: 0;
  }

  .job-detail-print-h116-detail1-r2__prose > :last-child {
    margin-bottom: 0;
  }

  .job-detail-print-h116-detail1-r2__contacts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
  }

  .job-detail-print-h116-detail1-r2__contacts > div {
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid #dbe3ee;
    border-radius: 5px;
    break-inside: avoid;
  }

  .job-detail-print-h116-detail1-r2__contacts span {
    display: block;
    color: #64748b;
    font-size: 9px;
    font-weight: 700;
  }

  .job-detail-print-h116-detail1-r2__contacts strong {
    display: block;
    color: #111827;
    font-size: 10px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .job-detail-print-h116-detail1-r2__notice {
    padding: 8px 10px;
    border: 1px solid #dbe3ee;
    border-radius: 5px;
    background: #f8fafc;
    color: #475569;
    font-size: 10px;
    line-height: 1.6;
  }

  .job-detail-print-h116-detail1-r2__footer {
    margin-top: 16px;
    padding-top: 7px;
    border-top: 1px solid #cbd5e1;
    color: #64748b;
    font-size: 9px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
}
