.ppdjobs-side-image {
  width: min(100%, 300px);
  aspect-ratio: 1 / 1;
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--ppd-soft);
  text-align: center;
}

.ppdjobs-print-url {
  display: none;
}

/* Use the same subtle border on every edge of the details panel. */
.ppdjobs-detail-card {
  border-top: 1px solid var(--ppd-line);
}

.ppdjobs-side-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--ppd-soft);
}

/* Job listing thumbnails: show the complete image in a smaller frame. */
.ppdjobs-card-image {
  height: 120px;
  background: #fff;
  text-align: center;
}

.ppdjobs-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.ppdjobs-grid.is-list .ppdjobs-card {
  grid-template-columns: 160px 1fr;
}

.ppdjobs-grid.is-list .ppdjobs-card-image {
  height: 100%;
  min-height: 120px;
}

.ppdjobs-filters {
  grid-template-columns: 1.3fr repeat(3, 1fr) auto auto;
}

@media (max-width: 950px) {
  .ppdjobs-single .ppdjobs-sidebar {
    order: 1;
  }

  .ppdjobs-single .ppdjobs-content {
    order: 2;
  }

  .ppdjobs-filters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .ppdjobs-filters {
    grid-template-columns: 1fr;
  }
}


.ppdjobs-card-salary {
  margin: -3px 0 18px;
  color: var(--ppd-grey);
  font-size: 0.94rem;
  font-weight: 600;
}

.ppdjobs-page-head {
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.ppdjobs-title h1,
.ppdjobs-content section h2 {
  color: var(--ppd-red);
}

.ppdjobs-content section h2 {
  color: #545454;
}

/* Optional tick list created with the job editor's Tick List button. */
.ppdjobs-content ul.ppdjobs-tick-list {
  list-style: none;
  padding-left: 0;
}

.ppdjobs-content ul.ppdjobs-tick-list > li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.ppdjobs-content ul.ppdjobs-tick-list > li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ppd-red);
  font-size: 1.1em;
  font-weight: 700;
}

.ppdjobs-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

.ppdjobs-tools a,
.ppdjobs-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  padding: 9px;
  border: 1px solid var(--ppd-line);
  border-radius: 50%;
  background: #fff;
  color: var(--ppd-red);
  cursor: pointer;
  text-decoration: none;
  transition: 0.18s;
}

.ppdjobs-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 9px 14px;
  border: 1px solid var(--ppd-red);
  border-radius: 7px;
  color: var(--ppd-red);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: 0.18s;
}

.ppdjobs-back:hover,
.ppdjobs-back:focus {
  outline: none;
  background: var(--ppd-red);
  color: #fff;
}

.ppdjobs-back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ppdjobs-tools a:hover,
.ppdjobs-tools button:hover,
.ppdjobs-tools a:focus,
.ppdjobs-tools button:focus {
  border-color: var(--ppd-red);
  outline: none;
  background: #fff7f7;
  color: var(--ppd-red);
}

.ppdjobs-tools svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media print {
  header,
  footer {
    display: block !important;
  }

  header nav,
  header .wp-block-navigation,
  header .wp-block-buttons,
  header .wp-block-button,
  header [class*="navigation"],
  header a:not(:has(img)),
  #wpadminbar {
    display: none !important;
  }

  footer .wp-block-columns.alignwide > .wp-block-column:nth-child(2),
  footer .wp-block-columns.alignwide > .wp-block-column:nth-child(3),
  footer .wp-block-column:has(a[href*="privacy"]),
  footer .wp-block-column:has(a[href*="cookie"]),
  footer .wp-block-column:has(a[href*="modern-slavery"]),
  footer .wp-block-column:has(.wp-block-social-links),
  footer nav,
  footer .wp-block-navigation,
  .ppdjobs-print-hide,
  .joinchat,
  .qlwapp,
  .ht-ctc,
  a[href*="whatsapp"],
  a[href*="wa.me"],
  [class*="whatsapp"],
  [id*="whatsapp"] {
    display: none !important;
  }

  .ppdjobs-back {
    display: none;
  }

  .ppdjobs-single .ppdjobs-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }

  .ppdjobs-single .ppdjobs-sidebar {
    order: 1;
    width: 100%;
  }

  .ppdjobs-single .ppdjobs-content {
    order: 2;
    width: 100%;
  }

  .ppdjobs-side-image {
    max-width: 300px;
  }

  .ppdjobs-print-url {
    display: block !important;
    margin: 24px 0 8px;
    color: #545454;
    font-size: 10pt;
    overflow-wrap: anywhere;
  }
}

.ppdjobs-reset-filters {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border: 1px solid var(--ppd-red);
  border-radius: 7px;
  background: #fff;
  color: var(--ppd-red) !important;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.ppdjobs-reset-filters:hover,
.ppdjobs-reset-filters:focus-visible {
  background: #fbeff0;
  text-decoration: none;
}

/* Keep individual job headings in proportion with the content. */
.ppdjobs-single .ppdjobs-title h1 {
  color: #A82025;
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.3;
}

.ppdjobs-grid.is-list .ppdjobs-card h2 a,
.ppdjobs-grid.is-list .ppdjobs-card h2 a:visited {
  color: #545454 !important;
}
.ppdjobs-grid.is-list .ppdjobs-card h2 a:hover,
.ppdjobs-grid.is-list .ppdjobs-card h2 a:focus-visible {
  color: var(--ppd-red) !important;
}

.ppdjobs-filters .ppdjobs-button,
.ppdjobs-filters .ppdjobs-reset-filters {
  font-family: inherit !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

/* Align job body text with the site's smaller page-pattern typography. */
.ppdjobs-single .ppdjobs-content {
  color: #555b64;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.65;
}
.ppdjobs-single .ppdjobs-content p,
.ppdjobs-single .ppdjobs-content ul,
.ppdjobs-single .ppdjobs-content ol,
.ppdjobs-single .ppdjobs-content li {
  font-family: inherit !important;
  font-size: 16px !important;
  line-height: 1.65;
}

/* A lighter archive heading aligned with the site's page typography. */
.ppdjobs-page-head h1 { font-size: clamp(28px, 3vw, 36px); font-weight: 500; line-height: 1.25; color: #545454; }

/* Shared marker gutter keeps round and tick lists aligned, including wrapped lines. */
.ppdjobs-single .ppdjobs-content ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}
.ppdjobs-single .ppdjobs-content ul > li {
  position: relative;
  padding-left: 30px;
}
.ppdjobs-single .ppdjobs-content ul > li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  text-align: center;
  color: inherit;
  font-size: 1em;
  font-weight: 400;
}
.ppdjobs-single .ppdjobs-content ul.ppdjobs-tick-list > li::before {
  content: "\2713";
  color: var(--ppd-red);
  font-size: 1.1em;
  font-weight: 700;
}
