/*
 * H11.6 DETAIL1 R1
 * Professional job-detail hero + legacy application/contact parity.
 * Scope is limited to the desktop job-detail shell introduced by this patch.
 */

.job-detail-legacy-parity-h116-detail1 {
  --detail1-blue: #1769e8;
  --detail1-blue-strong: #0b4fc2;
  --detail1-green: #0f9f72;
  --detail1-ink: #101828;
  --detail1-muted: #61718a;
  --detail1-line: #dce6f3;
  --detail1-soft: #f5f8fd;
  --detail1-surface: #ffffff;
}

/* ---------- Hero ---------- */

.job-detail-legacy-parity-h116-detail1 .job-detail-v2-hero {
  padding: 34px 0 38px !important;
  background:
    radial-gradient(circle at 8% 12%, rgba(42, 116, 255, .22), transparent 28%),
    radial-gradient(circle at 94% 16%, rgba(16, 185, 129, .22), transparent 29%),
    linear-gradient(120deg, #10295f 0%, #174684 52%, #0f7b78 100%) !important;
}

.job-detail-legacy-parity-h116-detail1 .job-detail-v2-grid {
  grid-template-columns: minmax(0, 1fr) 330px !important;
  gap: 20px !important;
  align-items: stretch !important;
}

.job-detail-legacy-parity-h116-detail1 .job-title-panel {
  padding: clamp(22px, 2.8vw, 32px) !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, .105) !important;
  border-color: rgba(255, 255, 255, .22) !important;
  box-shadow: 0 24px 70px rgba(3, 21, 55, .23) !important;
}

.job-detail-legacy-parity-h116-detail1 .job-breadcrumb-lite {
  margin-bottom: 11px !important;
  font-size: 12px !important;
  opacity: .92;
}

.job-detail-legacy-parity-h116-detail1 .job-title-tags {
  gap: 7px !important;
  margin-bottom: 13px !important;
}

.job-detail-legacy-parity-h116-detail1 .job-title-tags span {
  min-height: 34px !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  background: rgba(255, 255, 255, .12) !important;
  border-color: rgba(255, 255, 255, .24) !important;
}

.job-detail-legacy-parity-h116-detail1 .job-title-tags .listing-type-pill.vacancy {
  background: rgba(12, 176, 126, .28) !important;
  border-color: rgba(116, 242, 198, .34) !important;
}

.job-detail-legacy-parity-h116-detail1 .job-title-panel h1 {
  max-width: 100% !important;
  margin: 0 0 12px !important;
  color: #fff !important;
  font-size: clamp(29px, 3.25vw, 45px) !important;
  line-height: 1.24 !important;
  letter-spacing: 0 !important;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.rtl .job-detail-legacy-parity-h116-detail1 .job-title-panel h1 {
  font-size: clamp(29px, 3.1vw, 43px) !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
}

.job-detail-legacy-parity-h116-detail1 .job-hero-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 17px;
  color: rgba(255, 255, 255, .92);
  font-size: 13px;
  font-weight: 850;
}

.job-detail-legacy-parity-h116-detail1 .job-hero-context span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.job-detail-legacy-parity-h116-detail1 .job-hero-context span:not(:last-child)::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-inline-start: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .62);
}

.job-detail-legacy-parity-h116-detail1 .job-hero-company {
  color: #fff;
  font-weight: 1000;
}

.job-detail-legacy-parity-h116-detail1 .job-hero-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin: 0 0 15px;
}

.job-detail-legacy-parity-h116-detail1 .job-hero-fact {
  min-width: 0;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, .19);
  border-radius: 17px;
  background: rgba(255, 255, 255, .095);
  color: #fff;
}

.job-detail-legacy-parity-h116-detail1 .job-hero-fact-icon {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .15);
  color: #fff;
}

.job-detail-legacy-parity-h116-detail1 .job-hero-fact-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.job-detail-legacy-parity-h116-detail1 .job-hero-fact > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.job-detail-legacy-parity-h116-detail1 .job-hero-fact small {
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.job-detail-legacy-parity-h116-detail1 .job-hero-fact strong {
  color: #fff;
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 1000;
  overflow-wrap: anywhere;
}

.job-detail-legacy-parity-h116-detail1 .job-hero-fact-salary {
  background: rgba(255, 255, 255, .14);
}

.job-detail-legacy-parity-h116-detail1 .job-hero-apply-hint {
  max-width: 760px;
  margin: 0 !important;
  color: rgba(255, 255, 255, .84);
  font-size: 13px;
  line-height: 1.7;
  font-weight: 750;
}

.job-detail-legacy-parity-h116-detail1 .job-v2-actions {
  margin-top: 17px !important;
  gap: 9px !important;
}

.job-detail-legacy-parity-h116-detail1 .job-v2-actions .btn {
  min-height: 44px !important;
  padding: 10px 17px !important;
  border-radius: 14px !important;
  font-size: 13px !important;
}

.job-detail-legacy-parity-h116-detail1 .job-fit-card {
  gap: 15px !important;
  padding: 21px !important;
  border-radius: 28px !important;
}

.job-detail-legacy-parity-h116-detail1 .job-fit-card .fit-score-list {
  gap: 8px !important;
}

.job-detail-legacy-parity-h116-detail1 .job-fit-card .fit-score-list div {
  padding: 11px !important;
  border-radius: 14px !important;
}

.job-detail-legacy-parity-h116-detail1 .job-summary-quickbar,
.job-detail-legacy-parity-h116-detail1 .job-v2-meta {
  display: none !important;
}

/* ---------- Application/contact card ---------- */

.job-detail-legacy-parity-h116-detail1 .job-contact-application-card {
  scroll-margin-top: 125px;
  margin: 24px 0;
  padding: 22px;
  border: 1px solid #d5e3f5;
  border-radius: 27px;
  background:
    linear-gradient(145deg, #ffffff 0%, #f7fbff 66%, #eff8ff 100%);
  box-shadow: 0 18px 48px rgba(28, 73, 135, .075);
}

.job-detail-legacy-parity-h116-detail1 .job-contact-application-card.expired {
  background: linear-gradient(145deg, #fff, #fbfcfe);
  border-color: #e1e7ef;
}

.job-detail-legacy-parity-h116-detail1 .job-contact-application-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.job-detail-legacy-parity-h116-detail1 .job-contact-application-head h2 {
  margin: 8px 0 6px !important;
  color: var(--detail1-ink);
  font-size: clamp(22px, 2.3vw, 29px) !important;
  line-height: 1.35 !important;
}

.job-detail-legacy-parity-h116-detail1 .job-contact-application-head p {
  max-width: 760px;
  margin: 0;
  color: var(--detail1-muted);
  font-size: 13px;
  line-height: 1.8;
  font-weight: 700;
}

.job-detail-legacy-parity-h116-detail1 .job-contact-window-status {
  min-width: 112px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 1000;
}

.job-detail-legacy-parity-h116-detail1 .job-contact-window-status.active {
  color: #067456;
  border: 1px solid #b9ecd8;
  background: #ecfdf7;
}

.job-detail-legacy-parity-h116-detail1 .job-contact-window-status.closed {
  color: #9a3412;
  border: 1px solid #fed7aa;
  background: #fff7ed;
}

.job-detail-legacy-parity-h116-detail1 .job-contact-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.job-detail-legacy-parity-h116-detail1 .job-contact-method {
  min-width: 0;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--detail1-line);
  border-radius: 18px;
  background: #fff;
  color: var(--detail1-ink);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .035);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.job-detail-legacy-parity-h116-detail1 .job-contact-method:hover {
  transform: translateY(-1px);
  border-color: #a8c8f6;
  box-shadow: 0 13px 28px rgba(23, 105, 232, .09);
}

.job-detail-legacy-parity-h116-detail1 .job-contact-method.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--detail1-blue-strong), var(--detail1-blue));
}

.job-detail-legacy-parity-h116-detail1 .job-contact-method.whatsapp {
  border-color: #c7eadc;
  background: #f4fcf8;
}

.job-detail-legacy-parity-h116-detail1 .job-contact-method.external {
  border-color: #cbdcf6;
  background: #f5f9ff;
}

.job-detail-legacy-parity-h116-detail1 .job-contact-method-icon {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #edf4ff;
  color: var(--detail1-blue);
}

.job-detail-legacy-parity-h116-detail1 .job-contact-method.primary .job-contact-method-icon {
  color: #fff;
  background: rgba(255, 255, 255, .17);
}

.job-detail-legacy-parity-h116-detail1 .job-contact-method.whatsapp .job-contact-method-icon {
  color: #07865f;
  background: #ddf7ec;
}

.job-detail-legacy-parity-h116-detail1 .job-contact-method-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.job-detail-legacy-parity-h116-detail1 .job-contact-method > span:last-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.job-detail-legacy-parity-h116-detail1 .job-contact-method small {
  color: var(--detail1-muted);
  font-size: 10px;
  font-weight: 800;
}

.job-detail-legacy-parity-h116-detail1 .job-contact-method.primary small {
  color: rgba(255, 255, 255, .76);
}

.job-detail-legacy-parity-h116-detail1 .job-contact-method strong {
  color: inherit;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 1000;
  overflow-wrap: anywhere;
}

.job-detail-legacy-parity-h116-detail1 .job-contact-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 13px;
}

.job-detail-legacy-parity-h116-detail1 .job-contact-extra span {
  min-width: min(100%, 250px);
  display: grid;
  gap: 3px;
  padding: 11px 13px;
  border: 1px solid var(--detail1-line);
  border-radius: 15px;
  background: #fff;
  color: #344054;
  font-size: 12px;
  font-weight: 750;
}

.job-detail-legacy-parity-h116-detail1 .job-contact-extra b {
  color: var(--detail1-muted);
  font-size: 10px;
}

.job-detail-legacy-parity-h116-detail1 .job-contact-empty {
  padding: 16px;
  border: 1px dashed #cbd8e8;
  border-radius: 17px;
  background: #fff;
  color: var(--detail1-muted);
  font-size: 13px;
  line-height: 1.7;
  font-weight: 750;
}

.job-detail-legacy-parity-h116-detail1 .legacy-direct-apply-unavailable {
  border-color: #dce5f0 !important;
  background: linear-gradient(145deg, #fff, #f8fafc) !important;
}

.job-detail-legacy-parity-h116-detail1 .legacy-direct-apply-unavailable.expired {
  border-color: #fed7aa !important;
  background: linear-gradient(145deg, #fff, #fffaf5) !important;
}

/* ---------- Sidebar: concise, no contact duplication ---------- */

.job-detail-legacy-parity-h116-detail1 .detail1-side-next-step {
  padding: 14px;
}

.job-detail-legacy-parity-h116-detail1 .detail1-side-next-step strong {
  display: block;
  color: var(--detail1-ink);
  font-size: 14px;
}

.job-detail-legacy-parity-h116-detail1 .detail1-side-next-step p {
  margin: 5px 0 9px;
  color: var(--detail1-muted);
  font-size: 11px;
  line-height: 1.65;
  font-weight: 700;
}

.job-detail-legacy-parity-h116-detail1 .detail1-side-contact-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #d8e6f7;
  border-radius: 16px;
  background: #f5f9ff;
}

.job-detail-legacy-parity-h116-detail1 .detail1-side-contact-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e3efff;
  color: var(--detail1-blue);
}

.job-detail-legacy-parity-h116-detail1 .detail1-side-contact-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.job-detail-legacy-parity-h116-detail1 .detail1-side-contact-summary strong {
  display: block;
  color: var(--detail1-ink);
  font-size: 12px;
}

.job-detail-legacy-parity-h116-detail1 .detail1-side-contact-summary p {
  margin: 3px 0 0;
  color: var(--detail1-muted);
  font-size: 10px;
  line-height: 1.55;
  font-weight: 700;
}

.job-detail-legacy-parity-h116-detail1 .detail1-side-action-stack {
  gap: 8px;
}

.job-detail-legacy-parity-h116-detail1 .detail1-side-action-stack .btn {
  min-height: 43px;
  border-radius: 13px;
  font-size: 12px;
}

.job-detail-legacy-parity-h116-detail1 .side-contact-list {
  display: none !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .job-detail-legacy-parity-h116-detail1 .job-detail-v2-grid {
    grid-template-columns: minmax(0, 1fr) 300px !important;
  }

  .job-detail-legacy-parity-h116-detail1 .job-hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .job-detail-legacy-parity-h116-detail1 .job-detail-v2-grid {
    grid-template-columns: 1fr !important;
  }

  .job-detail-legacy-parity-h116-detail1 .job-fit-card {
    order: 0 !important;
  }
}

@media (max-width: 760px) {
  .job-detail-legacy-parity-h116-detail1 .job-detail-v2-hero {
    padding: 20px 0 24px !important;
  }

  .job-detail-legacy-parity-h116-detail1 .job-title-panel,
  .job-detail-legacy-parity-h116-detail1 .job-fit-card {
    padding: 17px !important;
    border-radius: 22px !important;
  }

  .job-detail-legacy-parity-h116-detail1 .job-title-panel h1,
  .rtl .job-detail-legacy-parity-h116-detail1 .job-title-panel h1 {
    font-size: clamp(25px, 8.2vw, 34px) !important;
    line-height: 1.32 !important;
  }

  .job-detail-legacy-parity-h116-detail1 .job-hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .job-detail-legacy-parity-h116-detail1 .job-hero-fact {
    min-height: 70px;
    padding: 9px;
  }

  .job-detail-legacy-parity-h116-detail1 .job-hero-fact-salary {
    grid-column: 1 / -1;
  }

  .job-detail-legacy-parity-h116-detail1 .job-contact-application-card {
    padding: 16px;
    border-radius: 21px;
  }

  .job-detail-legacy-parity-h116-detail1 .job-contact-application-head {
    display: grid;
    gap: 12px;
  }

  .job-detail-legacy-parity-h116-detail1 .job-contact-window-status {
    width: 100%;
  }

  .job-detail-legacy-parity-h116-detail1 .job-contact-method-grid {
    grid-template-columns: 1fr;
  }

  .detail1-mobile-action-bar .mobile-apply-copy {
    min-width: 0;
  }
}

/* ==================================================================
   H11.6-DETAIL3 R1 — Legacy Job Description Formatting Parity
   Safe structured prose generated by safe_listing_html().
   Marker: H11_6_DETAIL3_JOB_DESCRIPTION_FORMATTING_PARITY
   ================================================================== */

.listing-prose-structured {
  display: flow-root;
  width: 100%;
  max-width: 100%;
  color: #243043;
  font-size: 16px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.listing-prose-structured > :first-child {
  margin-top: 0 !important;
}

.listing-prose-structured > :last-child {
  margin-bottom: 0 !important;
}

.listing-prose-structured p {
  margin: 0 0 20px;
  text-align: start;
  white-space: normal;
}

.listing-prose-structured p br {
  content: "";
}

.listing-prose-heading {
  position: relative;
  margin: 30px 0 13px;
  padding-inline-start: 15px;
  color: #101828;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.55;
  font-weight: 950;
}

.listing-prose-heading::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .38em;
  width: 5px;
  height: 1.05em;
  border-radius: 999px;
  background: linear-gradient(180deg, #1769e8, #12a68e);
}

.listing-prose-list {
  display: grid;
  gap: 10px;
  margin: 4px 0 24px;
  padding: 0;
  padding-inline-start: 28px;
}

.listing-prose-list li {
  margin: 0;
  padding-inline-start: 4px;
  color: #263449;
  line-height: 1.9;
}

.listing-prose-list li::marker {
  color: #1769e8;
  font-weight: 900;
}

.listing-prose-structured strong {
  color: #13233b;
  font-weight: 950;
}

.enhanced-job-prose > .listing-prose-structured,
.mobile-job-detail-native-v19521h93__prose
> .listing-prose-structured {
  width: 100%;
}

@media (max-width: 760px) {
  .listing-prose-structured {
    font-size: 15px;
    line-height: 1.9;
  }

  .listing-prose-structured p {
    margin-bottom: 17px;
  }

  .listing-prose-heading {
    margin-top: 24px;
    font-size: 18px;
  }

  .listing-prose-list {
    gap: 8px;
    margin-bottom: 20px;
    padding-inline-start: 24px;
  }
}
