/* Design upgrade B (11-07), on top of v3: brighter lower sections (moonlit blue, water glow), glowing house kept. Loaded last. */
:root{--night:#10264a;--night2:#15305a;--night3:#1b3a6b;--glow:rgba(79,216,255,.16);--moon:rgba(231,185,100,.18)}

/* steps: lifted from near-black to moonlit blue */
.sm-steps{background:radial-gradient(80% 60% at 100% 0%,var(--moon),transparent 60%),linear-gradient(180deg,#0e2142,var(--night))}
.st li{background:#1a3866;border-color:#2f5288;box-shadow:0 18px 40px rgba(4,10,24,.35)}
.st li p,.st li span{color:#e1e9f6}

/* tour: the house glows on a bright night, every chapter readable */
.tour-intro,.sm-tour{background:radial-gradient(70% 50% at 20% 30%,var(--glow),transparent 65%),linear-gradient(180deg,var(--night),#0d2140)}
.chap .box,.chap.act .box{opacity:1;transform:none;background:linear-gradient(160deg,#1d3d70,#163059);border:1px solid rgba(79,216,255,.35)}
.chap.act .box{border-color:rgba(231,185,100,.7)}
.chap p{color:#dfe8f5}
.chap h3{color:#fff}

/* helper: same blue, gold moon glow */
.sm-help{background:radial-gradient(80% 60% at 90% 10%,var(--moon),transparent 60%),linear-gradient(180deg,var(--night2),#0f2547)}
.chip{background:#1d3d70;border-color:#36609c;color:#f1f6fd}
.answer{background:#18345f;border-color:#36609c}
.answer ol,.answer p{color:#e1e9f6}

footer{color:#aab6c8}
footer a{color:#dfe8f5}

/* phones: drop-shadow filters on the renders paint a black tile in WebKit */
@media (hover:none),(pointer:coarse){
  .chap img.th,.card img{filter:none!important}
  .chap .box{backdrop-filter:none;-webkit-backdrop-filter:none}
}
/* final pass 1107-155512: the moonlit navy carries on to the footer (no pale page at the end); paper only on the review cards */
.sm-trust{background:radial-gradient(90% 50% at 85% 0%,rgba(79,216,255,.14),transparent 60%),radial-gradient(70% 40% at 10% 100%,rgba(231,185,100,.12),transparent 60%),#10203a!important;color:#f1f6fd}
.sm-trust h2{color:#f1f6fd}
.sm-trust dt{color:#e7b964!important}
.sm-trust dd,.sm-trust dd a{color:#e1e9f6}
.sm-trust .rev .note{color:#aab6c8}
.sm-trust .rev blockquote{background:#f6f8fc;color:#0a1424}
.sm-trust .rev cite{color:#4a5870}
