/* Rang Xinh v17.1 - 2026-09-29 */
.guest-hero-copy h1,.home-hero-v14 .hero-copy h2{white-space:nowrap}
.guest-hero-copy h1,.guest-hero-copy h1 em,.home-hero-v14 .hero-copy h2,.home-hero-v14 .hero-copy h2 em{color:#ffd84d!important}
.scan-extra-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.scan-extra-grid label{margin:0}
@media(max-width:760px){.guest-hero-copy h1,.home-hero-v14 .hero-copy h2{white-space:normal}.scan-extra-grid{grid-template-columns:1fr}}


/* V17.1 banner hotfix - 2026-09-30
   Prevent the camera card from being pushed/cropped by the nowrap slogan. */
.home-hero-v14{
  grid-template-columns:minmax(0,1.55fr) minmax(270px,.45fr)!important;
}
.home-hero-v14 .hero-copy{
  min-width:0;
  padding-right:24px;
}
.home-hero-v14 .hero-copy h2{
  font-size:clamp(32px,3.05vw,50px);
  letter-spacing:-1.7px;
}
.hero-v14-panel{
  min-width:270px;
  overflow:hidden;
  padding:22px 18px;
}
.hero-v14-camera{
  width:min(100%,280px)!important;
  min-width:0;
  padding:24px 20px;
  border-radius:24px;
}
.hero-v14-camera strong{
  font-size:clamp(22px,1.8vw,30px);
  white-space:normal;
}
.hero-v14-camera span{
  white-space:normal;
}
@media(max-width:1180px){
  .home-hero-v14{grid-template-columns:minmax(0,1fr) 250px!important}
  .home-hero-v14 .hero-copy h2{font-size:clamp(29px,3.2vw,40px)}
  .hero-v14-panel{min-width:250px}
}
@media(max-width:900px){
  .home-hero-v14{grid-template-columns:1fr!important}
  .home-hero-v14 .hero-copy h2{white-space:normal}
  .hero-v14-panel{min-width:0;min-height:180px}
  .hero-v14-camera{width:min(100%,520px)!important;min-height:130px}
}

/* Banner fix v2: force the right camera card fully inside the hero. */
@media(min-width:901px){
  .home-hero.home-hero-v14{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 300px!important;
  }
  .home-hero-v14 .hero-copy{min-width:0!important;padding:34px 28px 34px 42px!important;}
  .home-hero-v14 .hero-copy h2{
    white-space:nowrap!important;
    font-size:clamp(34px,2.75vw,44px)!important;
    letter-spacing:-1.5px!important;
  }
  .home-hero-v14 .hero-v14-panel{
    width:300px!important;min-width:300px!important;max-width:300px!important;
    padding:24px!important;overflow:hidden!important;
  }
  .home-hero-v14 .hero-v14-camera{
    box-sizing:border-box!important;width:252px!important;max-width:252px!important;
    min-height:190px!important;padding:24px 20px!important;margin:0!important;
  }
  .home-hero-v14 .hero-v14-camera strong{font-size:25px!important;white-space:normal!important;}
}
@media(min-width:901px) and (max-width:1200px){
  .home-hero.home-hero-v14{grid-template-columns:minmax(0,1fr) 260px!important;}
  .home-hero-v14 .hero-v14-panel{width:260px!important;min-width:260px!important;max-width:260px!important;padding:20px!important;}
  .home-hero-v14 .hero-v14-camera{width:220px!important;max-width:220px!important;}
  .home-hero-v14 .hero-copy h2{font-size:32px!important;}
}

/* Rang Xinh V18 - 2026-10-05 */
.guest-hero-copy h1>span,.home-hero-v14 .hero-copy h2>span{display:block}
.sample-guide{margin:10px 0 14px}.sample-card{width:100%;display:flex;align-items:center;gap:12px;padding:10px;border:1px solid rgba(43,61,113,.12);border-radius:18px;background:#fff;cursor:pointer;text-align:left}.sample-card img{width:112px;height:74px;object-fit:cover;border-radius:12px}.sample-card span{display:grid;gap:2px}.sample-card small{color:#68708b}
.result-card,.result-comment-column,.finding-card,.result-more details{background:#fff!important;color:#28324a!important}.result-card p,.result-card li,.finding-card p,.result-more p{color:#3e4964!important}.finding-card{font-size:1.02rem}.finding-card h4{font-size:1.08rem}.notice,.notice.yellow{font-size:1rem;line-height:1.55}.result-comment-column{font-size:1.02rem}.result-comment-column .notice{padding:15px 17px}.finding-card{padding:17px}.result-more details{padding:14px 16px}
@media(max-width:760px){.guest-hero-copy h1,.home-hero-v14 .hero-copy h2{font-size:clamp(30px,9vw,42px)!important;line-height:1.02!important}.guest-hero-copy h1>span,.home-hero-v14 .hero-copy h2>span{display:block}.sample-card img{width:96px;height:66px}.finding-card,.result-comment-column{font-size:1rem}}
.v18-conclusion{margin:16px 0;padding:18px;border-radius:18px;background:#fff;border:1px solid rgba(43,61,113,.14);font-size:1.05rem;line-height:1.6}.v18-conclusion p{margin:6px 0!important;color:#2e3852!important}

.v18-criteria article{background:#fff;border:1px solid #dbe2ed;border-radius:14px;padding:16px;margin:10px 0;color:#253149;font-size:1.05rem;line-height:1.65}.v18-criteria h4{margin:0 0 8px}.v18-criteria p{margin:6px 0}.rx-reminder-banner{position:fixed;bottom:18px;left:18px;right:18px;z-index:9999;background:#fff6c9;color:#293047;padding:16px;border:2px solid #d1aa24;border-radius:16px;box-shadow:0 8px 32px #0003;font-size:1.05rem}.rx-reminder-banner button{float:right;margin-left:10px}

/* V18: guest result text must override the white guest form text. */
#guestScanResult .scan-result p,#guestScanResult .scan-result li,#guestScanResult .scan-result label,#guestScanResult .scan-result summary,#guestScanResult .scan-result small,#guestScanResult .scan-result b{color:#253149!important;opacity:1!important}
#guestScanResult .scan-result h2,#guestScanResult .scan-result h3,#guestScanResult .scan-result h4{color:#17245e!important}
#guestScanResult .v18-criteria article{height:auto!important;min-height:0!important;background:#fff!important;padding:18px!important}
#guestScanResult .v18-criteria p{font-size:1.05rem!important;line-height:1.65!important;margin:8px 0!important;display:block!important;visibility:visible!important}

/* Yellow summary requested for the purple result heading. */
.scan-result .result-summary h3,#guestScanResult .scan-result .result-summary h3{color:#ffe34d!important;-webkit-text-fill-color:#ffe34d!important;opacity:1!important}

/* V18 readable result summary on a dark purple background. */
.scan-result .result-summary,#guestScanResult .scan-result .result-summary{background:#4036a5!important;padding:20px!important;border-radius:16px;color:#ffffff!important}
.scan-result .result-summary h3,#guestScanResult .scan-result .result-summary h3{color:#fff1a8!important;-webkit-text-fill-color:#fff1a8!important;opacity:1!important;line-height:1.5!important}
.scan-result .result-summary p,#guestScanResult .scan-result .result-summary p,.scan-result .result-summary .muted,#guestScanResult .scan-result .result-summary .muted{color:#ffffff!important;-webkit-text-fill-color:#ffffff!important;opacity:1!important}
/* Guest result contrast fix: append at the END of css/v17.css. */
#guestScanResult .scan-result .result-summary h3{color:#fff1a8!important;-webkit-text-fill-color:#fff1a8!important;opacity:1!important}
#guestScanResult .scan-result .result-summary p,#guestScanResult .scan-result .result-summary .muted{color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important}

