/* Home Equity Compare — local overrides.
 * Cache-bust: keep these THREE in sync on every CSS/JS change:
 *   1) index.html  <link ... site.css?v=...>
 *   2) index.html  <script ... site.js?v=...>
 *   3) site.js     ASSET_VERSION
 */
.styleable-select { position: relative; }
.styleable-select.open .styleable-select-list { display: block !important; z-index: 30; }
.ppc-single-vendor.is-filtered-out { display: none !important; }
.local-empty-filters { display: none; margin: 16px 0 0; color: #4a5d54; }

.quiz .question-result-text { display: none; }
.quiz.quiz-complete .question-title { display: none; }
.quiz.quiz-complete .question-result-text { display: block; }
.quiz.quiz-complete .steps-progress { display: none; }
.quiz .go-back.visibility-hidden { visibility: hidden; pointer-events: none; }
.quiz .go-back { cursor: pointer; }

.quiz-recommend-cta {
  display: inline-block;
  text-align: center;
  background: #10A353;
  color: #fff !important;
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(16, 163, 83, 0.25);
}
.quiz-recommend-cta:hover { background: #0E7A4A; color: #fff !important; }
.quiz-recommend-name { display: block; margin-bottom: 10px; font-weight: 700; color: #16382A; text-align: center; }

/* Advertorial + disclosure — prevent overlap / cramped stacking */
.advertorial-banner {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  box-sizing: border-box;
}
#ftc_disclosure {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  background: #fff;
  margin: 0;
}
#ftc_disclosure .container {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  box-sizing: border-box;
  text-align: center;
}
#ftc_disclosure .ftc-disclosure-content {
  line-height: 1.45;
  text-align: center;
}
#ftc_disclosure.sticky {
  top: var(--advertorial-banner-height, 40px);
}

@media (min-width: 1023px) {
  #ftc_disclosure .container,
  #ftc_disclosure.with-ad-disclosure .container {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
  }
  #ftc_disclosure .ftc-disclosure-content {
    text-align: center !important;
  }
  .ppc-header {
    position: relative;
    background-color: transparent;
  }
  .ppc-header:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: calc(100vw - var(--scrollbar-width, 0px));
    max-width: calc(100vw - var(--scrollbar-width, 0px));
    transform: translateX(-50%);
    background-color: #f0faf5;
    pointer-events: none;
  }
  .ppc-header .intro,
  .ppc-header .intro.hide-intro-for-mobile {
    background: transparent !important;
    background-color: transparent !important;
  }
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Header logo + phone — vertical align, no absolute/transform drift */
#site-header .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px;
}
#site-header .site-logo {
  flex: 0 1 auto;
  min-width: 0;
}
#site-header .site-logo .hec-logo-header,
#site-header .site-logo svg.hec-logo-header {
  display: block !important;
  height: 44px !important;
  width: auto !important;
  max-width: min(220px, calc(100vw - 88px));
}
#site-header .advertising {
  display: flex !important;
  align-items: center !important;
  margin-left: auto;
  flex-shrink: 0;
  line-height: 0;
}
#site-header .ivr-phone {
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  min-height: 40px;
  line-height: 0;
}
#site-header .ivr-phone .ivr-phone-mobile {
  position: static !important;
  transform: none !important;
  left: auto !important;
  top: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  min-height: 40px;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  border-radius: 6px !important;
  box-sizing: border-box !important;
  overflow: hidden;
}
#site-header .ivr-phone .ivr-phone-mobile i,
#site-header .ivr-phone .ivr-phone-mobile .fa-call {
  display: none !important;
}
#site-header .ivr-phone .ivr-phone-mobile .hec-phone-icon {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

@media (min-width: 1023px) {
  #site-header .site-logo .hec-logo-header,
  #site-header .site-logo svg.hec-logo-header {
    height: 56px !important;
    max-width: 240px;
  }
  #site-header .ivr-phone .ivr-phone-mobile {
    display: none !important;
  }
}

@media (max-width: 1022.9px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }
  .ppc-main-content .container {
    margin-left: 12px;
    margin-right: 12px;
  }
  .ppc-header h1 {
    font-size: clamp(1.5rem, 6.5vw, 2rem);
    line-height: 1.2;
    word-wrap: break-word;
  }
  .ppc-header h2 {
    font-size: clamp(1rem, 4vw, 1.25rem);
    line-height: 1.35;
  }
  #ftc_disclosure .container {
    text-align: left;
  }
  #ftc_disclosure .ftc-disclosure-content {
    text-align: left !important;
  }
  /* Keep vendor ribbons above logos on mobile — no absolute overlap */
  .ppc-single-vendor.ppc-single-vendor-78:has(> .vendor-ribbon) {
    grid-template-areas: "ribbon" "logo" "bullets" "score" "actions" !important;
    grid-template-rows: auto auto auto auto auto !important;
    padding-top: 14px !important;
  }
  .ppc-single-vendor.ppc-single-vendor-78 > .vendor-ribbon {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    grid-area: ribbon !important;
    justify-self: center !important;
    margin: 0 auto 12px !important;
    max-width: 100% !important;
    white-space: normal !important;
    text-align: center;
    z-index: auto !important;
  }
}

/* Footer copyright — keep visible on mobile (avoid collapsed/clipped last row) */
#main-footer {
  flex-shrink: 0;
  overflow: visible;
  padding-bottom: 28px !important;
}
#main-footer .disclosure-and-copy {
  display: block !important;
  width: 100%;
  box-sizing: border-box;
  padding: 20px 0 12px !important;
  margin-top: 16px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.85);
  min-height: auto !important;
  height: auto !important;
  overflow: visible !important;
}
#main-footer .disclosure-and-copy .copyright {
  display: block !important;
  visibility: visible !important;
  opacity: 0.9 !important;
  color: #fff !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  height: auto !important;
  min-height: 1.5em !important;
  padding: 0 0 8px !important;
  margin: 0 !important;
  text-align: center;
}
