/* CHIEL_WOW_POLISH_V141 — Cinematic Warm finishing, 11 Nov 2026.
   Scoped over verified v140 pages only. Decorative presentation only:
   never recolor actual weather radar/scene assets, cameras, 3D meshes,
   user data, red/orange/green device states or functional controls.
*/
html[data-chiel-wow="140"] {
  --wow-polish-gold:#f7d481;
  --wow-polish-champagne:#fff0c8;
  --wow-polish-shine:rgba(255,229,162,.16);
}
/* HOME: preserve the original house photograph while removing its navy wash.
   A slightly warmer left-to-right vignette increases title contrast. */
html[data-chiel-wow="140"][data-machiel-ecosystem="portal"] .hero.depth-stage {
  background-color:#1b160f!important;
  background-image:
    linear-gradient(105deg,
      rgba(17,15,12,.89) 0%,
      rgba(40,29,19,.68) 48%,
      rgba(51,38,24,.40) 100%),
    url("/house-hero.webp")!important;
  background-size:cover!important;
  background-position:center center!important;
  border-color:rgba(250,214,132,.62)!important;
  box-shadow:inset 0 1px rgba(255,237,185,.16),
    0 30px 76px rgba(0,0,0,.42),
    0 0 44px rgba(189,131,42,.075)!important;
}
html[data-chiel-wow="140"][data-machiel-ecosystem="portal"] .hero.depth-stage::after {
  background:
    linear-gradient(90deg,
      rgba(20,15,11,.64) 0%,
      rgba(29,22,15,.42) 45%,
      rgba(18,17,15,.10) 100%),
    linear-gradient(0deg,rgba(17,16,13,.20),transparent 55%)!important;
}
/* Older overlay effects still contain blue: keep the animation but tint light gold. */
html[data-chiel-wow="140"][data-machiel-ecosystem="portal"] .hero .hero-motion-light {
  background:radial-gradient(340px circle at var(--hero-x,50%) var(--hero-y,40%),
    rgba(255,206,103,.095),transparent 59%)!important;
}
html[data-chiel-wow="140"][data-machiel-ecosystem="portal"] .portal-group::after {
  background:linear-gradient(90deg,transparent,rgba(250,201,107,.13),transparent)!important;
}
/* Maintain existing hierarchy but remove icy-blue quick-card typography. */
html[data-chiel-wow="140"][data-machiel-ecosystem="portal"]
 :is(.home-v2-quick-card,.home-v2-quick-copy strong,
     .home-v2-quick-card h3,.home-v2-quick-title) {
  color:#fff5df!important;
}
html[data-chiel-wow="140"][data-machiel-ecosystem="portal"]
 :is(.home-v2-quick-copy small,.home-v2-quick-sub,.home-v2-quick-desc) {
  color:#d7c3a2!important;
}
html[data-chiel-wow="140"][data-machiel-ecosystem="portal"]
 :is(.home-v2-quick-card,.portal-group .card) {
  border-color:rgba(252,217,134,.39)!important;
  box-shadow:inset 0 1px rgba(255,242,201,.12),
    0 15px 38px rgba(0,0,0,.25)!important;
}
html[data-chiel-wow="140"][data-machiel-ecosystem="portal"]
 .home-pulse .pulse-cell {
  border-color:rgba(255,213,114,.46)!important;
}
/* Desktop only: restrained highlights (no animation burden on touch screens). */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
 html[data-chiel-wow="140"][data-machiel-ecosystem="portal"]
 :is(.home-v2-quick-card,.portal-group .card):hover {
   transform:translateY(-3px);
   border-color:rgba(255,224,150,.72)!important;
   box-shadow:inset 0 1px rgba(255,248,215,.18),
      0 22px 46px rgba(0,0,0,.32),0 0 22px rgba(194,131,42,.065)!important;
 }
}
/* Mobile tap targets. No changes to positioning, arrow icon or device logic. */
@media(max-width:700px) {
 html[data-chiel-wow="140"][data-machiel-ecosystem="portal"]
 :is(.home-v2-text-link,.home3d-controls button,.module-filter) {
   min-height:44px!important;
 }
 html[data-chiel-wow="140"][data-machiel-ecosystem="portal"]
 .home3d-controls button {
   min-width:52px!important;
 }
 html[data-chiel-wow="140"][data-machiel-ecosystem="portal"]
 :is(.home-v2-quick-copy strong,.home-v2-quick-title){
   font-size:clamp(.91rem,3.75vw,1.07rem)!important;
 }
}
/* DASHBOARD: cleaner focus-bar hierarchy and more tactile gold 3D controls.
   Avoid resizing narrow topbar icons; preserve their horizontal scroll. */
html[data-chiel-wow="140"][data-machiel-ecosystem="dashboard"]
 :is(.chiel-mode-visible-bar,.chiel-view-switch,#chiel3dFocusControls) {
   border-color:rgba(255,216,135,.54)!important;
}
html[data-chiel-wow="140"][data-machiel-ecosystem="dashboard"]
 #chiel3dFocusControls .chiel-control-menu>summary {
   border:1px solid rgba(255,224,139,.72)!important;
   background:linear-gradient(142deg,#79521c,#3c2b19)!important;
   color:#fff2d2!important;
   box-shadow:inset 0 1px rgba(255,245,205,.15),0 6px 18px rgba(0,0,0,.22)!important;
}
html[data-chiel-wow="140"][data-machiel-ecosystem="dashboard"]
 #chiel3dFocusControls :is(.chiel-floor-select button,.chiel-control-menu>summary),
html[data-chiel-wow="140"][data-machiel-ecosystem="dashboard"]
 .chiel-view-switch button {
   min-height:44px!important;
}
html[data-chiel-wow="140"][data-machiel-ecosystem="dashboard"]
 .chiel-view-switch [aria-pressed="true"],
html[data-chiel-wow="140"][data-machiel-ecosystem="dashboard"]
 #chiel3dFocusControls .chiel-floor-select [aria-pressed="true"]{
   color:#261907!important;
   background:linear-gradient(135deg,#ffebb2,#ffd274)!important;
   border-color:#ffedbf!important;
}
/* WEATHER: mobile legibility over moving clouds. Weather animation itself
   stays physically accurate; mask its left edge only on small viewports. */
html[data-chiel-wow="140"][data-machiel-ecosystem="weather"]
 #overview .hero-line {
   position:relative;
   z-index:3;
}
html[data-chiel-wow="140"][data-machiel-ecosystem="weather"]
 #overview .hero-copy {
   position:relative;
   z-index:3;
}
html[data-chiel-wow="140"][data-machiel-ecosystem="weather"]
 #overview .hero-weather {
   color:#fff4df!important;
   text-shadow:0 2px 12px rgba(0,0,0,.54)!important;
}
html[data-chiel-wow="140"][data-machiel-ecosystem="weather"]
 #overview .hero-small {
   color:#e0d2b7!important;
}
html[data-chiel-wow="140"][data-machiel-ecosystem="weather"]
 .chiel-ecosystem-nav a {
   border-color:rgba(245,206,114,.24)!important;
}
@media(max-width:700px) {
 html[data-chiel-wow="140"][data-machiel-ecosystem="weather"]
 #overview .weather-scene{
   -webkit-mask-image:linear-gradient(90deg,transparent 0%,
     rgba(0,0,0,.23) 40%,#000 85%);
   mask-image:linear-gradient(90deg,transparent 0%,
     rgba(0,0,0,.23) 40%,#000 85%);
 }
 html[data-chiel-wow="140"][data-machiel-ecosystem="weather"]
 #overview .hero-main .hero-temp{
   font-size:clamp(75px,24vw,102px)!important;
   letter-spacing:-.065em!important;
   white-space:nowrap;
 }
 html[data-chiel-wow="140"][data-machiel-ecosystem="weather"]
 #overview .hero-copy{
   box-sizing:border-box;
   max-width:52%!important;
   padding:10px 11px!important;
   border:1px solid rgba(255,224,151,.26)!important;
   border-radius:15px!important;
   background:linear-gradient(145deg,
     rgba(47,34,19,.91),rgba(23,22,18,.91))!important;
   box-shadow:0 10px 26px rgba(0,0,0,.20)!important;
 }
 html[data-chiel-wow="140"][data-machiel-ecosystem="weather"]
 #overview .hero-weather {
   font-size:clamp(1rem,4.6vw,1.32rem)!important;
   overflow-wrap:anywhere;
 }
 html[data-chiel-wow="140"][data-machiel-ecosystem="weather"]
 #overview .hero-facts{
   position:relative;
   z-index:4;
   color:#f3e2c6!important;
 }
 html[data-chiel-wow="140"][data-machiel-ecosystem="weather"]
 .chiel-ecosystem-nav a{
   min-height:44px!important;
 }
}
/* User accessibility preferences override polish, not the original data. */
@media(prefers-reduced-motion:reduce){
 html[data-chiel-wow="140"] :is(.portal-group .card,.home-v2-quick-card){
   transition:none!important;
   transform:none!important;
 }
}
