/* Comfortrek V201 — Dark-mode storefront readability hardening.
 * Scope: remaining customer-facing dark-mode surfaces that can inherit
 * light-theme/card tokens after the V199/V200 contracts.
 * Light mode is intentionally untouched.
 */

/* -------------------------------------------------------------------------
 * Homepage FAQ
 * ------------------------------------------------------------------------- */
body.appearance-dark .home-faq,
body.appearance-dark #storefront-home .home-faq {
  color:#f4f1ea !important;
}

body.appearance-dark .home-faq-heading h2,
body.appearance-dark #storefront-home .home-faq-heading h2 {
  color:#f7f3eb !important;
  opacity:1 !important;
}

body.appearance-dark .home-faq-heading p,
body.appearance-dark .home-faq-kicker {
  color:#c7c4be !important;
  opacity:1 !important;
}

body.appearance-dark .home-faq-item,
body.appearance-dark #storefront-home .home-faq-item {
  background:linear-gradient(145deg,#1b1f22,#141719) !important;
  color:#f5f2eb !important;
  border:1px solid rgba(255,255,255,.14) !important;
  box-shadow:0 12px 34px rgba(0,0,0,.18) !important;
}

body.appearance-dark .home-faq-item summary,
body.appearance-dark #storefront-home .home-faq-item summary {
  color:#f5f2eb !important;
  opacity:1 !important;
}

body.appearance-dark .home-faq-item summary::marker,
body.appearance-dark .home-faq-item summary::-webkit-details-marker {
  color:#d9b577 !important;
}

body.appearance-dark .home-faq-answer,
body.appearance-dark .home-faq-item p,
body.appearance-dark #storefront-home .home-faq-answer {
  color:#c8c6c0 !important;
  opacity:1 !important;
}

/* -------------------------------------------------------------------------
 * Product-page discovery cards / "More ways to shop this product"
 * ------------------------------------------------------------------------- */
body.appearance-dark.product-page .ct175-discovery-zone {
  color:#f4f1ea !important;
}

body.appearance-dark.product-page .ct175-discovery-head h2 {
  color:#f7f3eb !important;
  opacity:1 !important;
}

body.appearance-dark.product-page .ct175-discovery-head > div > span {
  color:#d7b56d !important;
  opacity:1 !important;
}

body.appearance-dark.product-page .ct175-discovery-head a {
  color:#e1bd78 !important;
  opacity:1 !important;
}

body.appearance-dark.product-page .ct175-discovery-card {
  background:linear-gradient(145deg,#1b1f22,#141719) !important;
  color:#f4f1ea !important;
  border-color:rgba(255,255,255,.14) !important;
  box-shadow:0 12px 34px rgba(0,0,0,.16) !important;
}

body.appearance-dark.product-page .ct175-discovery-card b {
  color:#f5f2eb !important;
  opacity:1 !important;
}

body.appearance-dark.product-page .ct175-discovery-card span {
  color:#c2c1bc !important;
  opacity:1 !important;
}

body.appearance-dark.product-page .ct175-discovery-card strong {
  color:#e1bd78 !important;
  opacity:1 !important;
}

/* -------------------------------------------------------------------------
 * Footer: explicit dark contract wins over theme-footer-light/editor rules.
 * ------------------------------------------------------------------------- */
body.appearance-dark .site-footer,
body.appearance-dark footer.site-footer {
  background:#101316 !important;
  color:#edf1ef !important;
  border-top-color:rgba(215,181,109,.30) !important;
}

body.appearance-dark .site-footer h4,
body.appearance-dark .site-footer strong,
body.appearance-dark .site-footer .footer-heading {
  color:#f7f3eb !important;
  opacity:1 !important;
}

body.appearance-dark .site-footer p,
body.appearance-dark .site-footer .footer-contact,
body.appearance-dark .site-footer small,
body.appearance-dark .site-footer .footer-tagline {
  color:#c8ccc9 !important;
  opacity:1 !important;
}

body.appearance-dark .site-footer a,
body.appearance-dark .site-footer li,
body.appearance-dark .site-footer span {
  color:#dce2df !important;
  opacity:1 !important;
}

body.appearance-dark .site-footer a:hover,
body.appearance-dark .site-footer a:focus-visible {
  color:#f0d08c !important;
  opacity:1 !important;
}

body.appearance-dark .site-footer .footer-bottom {
  color:#bfc6c2 !important;
  border-top-color:rgba(255,255,255,.14) !important;
}

/* Defensive protection for common light-mode inline surfaces inside dark mode. */
body.appearance-dark .home-faq [style*="background:#fff"],
body.appearance-dark .home-faq [style*="background: #fff"],
body.appearance-dark .home-faq [style*="background:white"],
body.appearance-dark .home-faq [style*="background: white"] {
  background:#1b1f22 !important;
  color:#f4f1ea !important;
}

@media (max-width:760px) {
  body.appearance-dark .home-faq-item {
    border-radius:18px !important;
  }

  body.appearance-dark .home-faq-item summary {
    font-size:1rem !important;
    line-height:1.45 !important;
  }

  body.appearance-dark .home-faq-answer,
  body.appearance-dark .home-faq-item p {
    font-size:.94rem !important;
    line-height:1.7 !important;
  }

  body.appearance-dark.product-page .ct175-discovery-card {
    min-height:120px;
    padding:16px !important;
  }
}
