/* Hendese mandatory output contrast guard — v19.17.0
 * Loaded last. JS only overrides text that fails WCAG AA contrast.
 */
.ht-wrap .ht-result,
.ht-wrap [class*="result"],
.ht-wrap [class*="output"],
.ht-wrap .ht-rental-document,
.ht-wrap .ht-rich-text,
.ht-wrap pre,
.ht-wrap code,
.ht-wrap table{
  color-scheme:light;
}

/* Output content must never be faded by opacity/filter/backdrop effects. */
.ht-wrap .ht-result,
.ht-wrap .ht-result-note,
.ht-wrap .ht-result-helper,
.ht-wrap .ht-result-details,
.ht-wrap .ht-result-cards,
.ht-wrap .ht-mini-result-grid,
.ht-wrap .ht-rental-document,
.ht-wrap .hm-output,
.ht-wrap .hme-result,
.ht-wrap [data-hst-status],
.ht-wrap [data-property-detail]{
  opacity:1!important;
  filter:none!important;
  -webkit-filter:none!important;
  text-shadow:none!important;
}

/* Explicit tones assigned by the runtime guard. These are intentionally !important. */
.ht-wrap [data-ht-contrast="light"]{
  color:#10251d!important;
  -webkit-text-fill-color:#10251d!important;
  opacity:1!important;
  text-shadow:none!important;
  filter:none!important;
}
.ht-wrap a[data-ht-contrast="light"]{
  color:#0d6241!important;
  -webkit-text-fill-color:#0d6241!important;
  text-decoration-color:rgba(13,98,65,.45)!important;
}
.ht-wrap [data-ht-contrast="dark"]{
  color:#f7fbf9!important;
  -webkit-text-fill-color:#f7fbf9!important;
  opacity:1!important;
  text-shadow:none!important;
  filter:none!important;
}
.ht-wrap a[data-ht-contrast="dark"]{
  color:#e7f5b5!important;
  -webkit-text-fill-color:#e7f5b5!important;
  text-decoration-color:rgba(231,245,181,.55)!important;
}
.ht-wrap [data-ht-contrast="light"][data-ht-muted="1"]{
  color:#41564c!important;
  -webkit-text-fill-color:#41564c!important;
}
.ht-wrap [data-ht-contrast="dark"][data-ht-muted="1"]{
  color:#d6e1dc!important;
  -webkit-text-fill-color:#d6e1dc!important;
}

/* Documents / generated text use print-like readability regardless of outer dark result card. */
.ht-wrap .ht-rental-document,
.ht-wrap .ht-generated-document,
.ht-wrap .ht-document-output,
.ht-wrap [data-document-output]{
  background:#fff!important;
  color:#17251f!important;
  opacity:1!important;
}
.ht-wrap .ht-rental-document *,
.ht-wrap .ht-generated-document *,
.ht-wrap .ht-document-output *,
.ht-wrap [data-document-output] *{
  opacity:1!important;
  text-shadow:none!important;
  filter:none!important;
}
.ht-wrap .ht-rental-document p,
.ht-wrap .ht-generated-document p,
.ht-wrap .ht-document-output p,
.ht-wrap [data-document-output] p{
  color:#1e3128!important;
  -webkit-text-fill-color:#1e3128!important;
  font-size:14px!important;
  line-height:2.05!important;
}
.ht-wrap .ht-rental-document h1,
.ht-wrap .ht-rental-document h2,
.ht-wrap .ht-rental-document h3,
.ht-wrap .ht-rental-document h4,
.ht-wrap .ht-generated-document h1,
.ht-wrap .ht-generated-document h2,
.ht-wrap .ht-generated-document h3,
.ht-wrap .ht-document-output h1,
.ht-wrap .ht-document-output h2,
.ht-wrap .ht-document-output h3{
  color:#0f3628!important;
  -webkit-text-fill-color:#0f3628!important;
}

/* Tables and code in generated results must also remain readable. */
.ht-wrap .ht-result table,
.ht-wrap [class*="output"] table,
.ht-wrap [class*="result"] table{
  background:#fff;
}
.ht-wrap .ht-result td,
.ht-wrap .ht-result th,
.ht-wrap [class*="output"] td,
.ht-wrap [class*="output"] th,
.ht-wrap [class*="result"] td,
.ht-wrap [class*="result"] th{
  opacity:1!important;
}

@media(max-width:700px){
  .ht-wrap .ht-rental-document p,
  .ht-wrap .ht-generated-document p,
  .ht-wrap .ht-document-output p,
  .ht-wrap [data-document-output] p{font-size:13.5px!important;line-height:2!important}
}
