/* Dandelion site polish: justified copy + integrated home hero on mobile. */
.zpelem-text p,
.zpelem-text,
.zptext,
.zpparagraph,
.re-process-desc,
.dn-desc,
.z-card p,
.z-card__desc,
footer p,
[data-element-type="text"] p,
[data-element-type="text"] {
  text-align: justify !important;
  text-justify: inter-word;
}

.zphero-slider-container .zpheading,
.zphero-slider-container .zpelem-heading {
  text-align: justify !important;
}

.zphero-slider-container .zpelem-heading {
  max-width: 42rem;
}

@media (max-width: 768px) {
  .zphero-slider-container .zpelem-heading {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Brand line: gold / bold */
  .zphero-slider-container h2.zpheading:has(b),
  .zphero-slider-container h2.zpheading:has([style*="135, 111, 34"]) {
    margin-bottom: 4px !important;
  }
  .zphero-slider-container h2.zpheading:has(b) span,
  .zphero-slider-container h2.zpheading:has(b) b,
  .zphero-slider-container h2.zpheading:has([style*="135, 111, 34"]) span {
    font-size: 15px !important;
    line-height: 1.5 !important;
    letter-spacing: 0.01em;
  }

  /* Main title: 40px inline */
  .zphero-slider-container h2.zpheading:has([style*="font-size:40px"]) {
    margin-top: 6px !important;
    margin-bottom: 8px !important;
  }
  .zphero-slider-container h2.zpheading:has([style*="font-size:40px"]) span {
    font-size: 22px !important;
    line-height: 1.4 !important;
    display: block;
  }

  /* Supporting line: 28px inline */
  .zphero-slider-container h2.zpheading:has([style*="font-size:28px"]) {
    margin-top: 4px !important;
  }
  .zphero-slider-container h2.zpheading:has([style*="font-size:28px"]) span {
    font-size: 14.5px !important;
    line-height: 1.9 !important;
    font-weight: 500 !important;
    color: #1d3a4d !important;
    display: block;
  }
}


/* ===== portal mobile edge + compact hero (16 Aug 2026) ===== */
@media (max-width: 900px) {
  :root { --dn-edge: max(8px, 2mm); }

  html, body {
    overflow-x: hidden !important;
    max-width: 100%;
  }
  body {
    padding-inline: var(--dn-edge);
    box-sizing: border-box;
  }

  .theme-header,
  .theme-header .zpcontainer,
  .theme-header .zpcontainer-fluid {
    padding-inline: var(--dn-edge) !important;
    box-sizing: border-box;
    max-width: 100%;
  }

  .theme-banner,
  .zphero-full-screen,
  .zphero-full-height,
  .hero-section,
  .zpsection.hero-section,
  .hero-container,
  .zphero,
  .zphero.zpapply-height {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    box-sizing: border-box;
  }
  .theme-banner,
  .zphero-full-screen,
  .hero-section {
    border-radius: 14px;
    overflow: hidden;
    margin-inline: 0;
  }
  .zphero-slides,
  .zphero-slide,
  .zphero-slider-container {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }
  .zpslider-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
  }
  .hero-section .zpcontainer,
  .zpsection.hero-section .zpcontainer,
  .hero-container,
  .zphero-slider-container {
    padding-inline: var(--dn-edge) !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    box-sizing: border-box;
  }

  img, video, iframe, table, figure, .zpimage, picture {
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .theme-header img,
  .theme-logo img {
    max-height: 36px !important;
    width: auto !important;
  }
  .theme-footer-area img {
    max-width: min(180px, 100%) !important;
    max-height: 72px !important;
    height: auto !important;
    width: auto !important;
    object-fit: contain !important;
  }

  .zpimageheadingtext-container,
  .zpelem-imageheadingtext .zpimageheadingtext-container {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 12px;
  }
  .zpimageheadingtext-container figure,
  .zpimageheadingtext-container img,
  .zpelem-imageheadingtext img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px;
    object-fit: cover;
  }

  .zpcontainer,
  .zpcontainer-fluid,
  .footer-container,
  .theme-content-area {
    max-width: 100% !important;
    box-sizing: border-box;
  }

  a[href*="wa.me"],
  a[href*="whatsapp"],
  a[href*="api.whatsapp.com"] {
    right: max(var(--dn-edge), env(safe-area-inset-right, 0px)) !important;
    bottom: max(12px, env(safe-area-inset-bottom, 0px)) !important;
    left: auto !important;
  }

  .zphero-slider-container .zpheading,
  .zphero-slider-container .zpelem-heading,
  .zphero-slider-container p,
  .zpelem-text p,
  .zpelem-text {
    text-align: start !important;
    text-justify: auto !important;
  }

  #dnHybridListings {
    padding-left: var(--dn-edge) !important;
    padding-right: var(--dn-edge) !important;
  }

  .zphero-slider-container h2.zpheading,
  .zphero-slider-container .zpelem-heading {
    margin: 0 0 8px !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .zphero-slider-container h2.zpheading,
  .zphero-slider-container h2.zpheading span,
  .zphero-slider-container h2.zpheading b,
  .zphero-slider-container h2.zpheading code {
    font-size: 15px !important;
    line-height: 1.35 !important;
    text-align: start !important;
    display: inline !important;
  }
  .zphero-slider-container .zprow {
    margin: 0 !important;
    padding-top: 6px !important;
    padding-bottom: 0 !important;
  }
  .zphero-slider-container .zpelem-col {
    margin-top: 0 !important;
  }
  .hero-search-anchor,
  .re-search-wrap,
  .re-search {
    margin-top: 8px !important;
  }
}

@media (max-width: 900px) {
  html body .zphero-slider-container h2.zpheading {
    font-size: 15px !important;
    line-height: 1.35 !important;
    min-height: 0 !important;
    height: auto !important;
    display: block !important;
  }
  html body .zphero-slider-container h2.zpheading span,
  html body .zphero-slider-container h2.zpheading b,
  html body .zphero-slider-container h2.zpheading code {
    font-size: 15px !important;
    line-height: 1.35 !important;
  }
}

@media (max-width: 900px) {
  /* why-image-full */
  .zpelem-imageheadingtext,
  .zpelem-imageheadingtext .zpimageheadingtext-container,
  .zpelem-imageheadingtext figure,
  .zpelem-imageheadingtext .zpimage-data-ref,
  .zpelem-imageheadingtext picture {
    width: 100% !important;
    max-width: 100% !important;
  }
  .zpelem-imageheadingtext img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
  }
}

@media (max-width: 900px) {
  html body .zpelem-imageheadingtext img {
    /* why-image-max */
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 900px) {
  html body .theme-content-area-inner img.zpimage[src*="IMG_1730"],
  html body .theme-content-area-inner img[data-src*="IMG_1730"] {
    /* IMG_1730 mobile full */
    max-width: 100% !important;
    max-inline-size: 100% !important;
    width: 100% !important;
    max-height: none !important;
    height: auto !important;
    object-fit: contain !important;
  }
}
