/* MIWS Weather Center — modern card-first redesign
   Inspired by the clean, app-like weather-dashboard direction the owner liked.
   Original MIWS branding, content hierarchy, data automation and components are retained. */
:root{
  --next-bg:#f4f7fb;
  --next-card:#ffffff;
  --next-ink:#0c2238;
  --next-muted:#617487;
  --next-line:#dce5ee;
  --next-navy:#08213a;
  --next-blue:#1d6fae;
  --next-red:#d51f36;
  --next-radius:24px;
  --next-shadow:0 12px 34px rgba(18,47,75,.09);
  --next-soft-shadow:0 5px 18px rgba(18,47,75,.07);
}

html{scroll-padding-top:88px}
body.next-inspired{
  background:
    radial-gradient(circle at 8% 5%,rgba(65,150,205,.08),transparent 24rem),
    radial-gradient(circle at 92% 7%,rgba(230,51,70,.055),transparent 22rem),
    var(--next-bg);
  color:var(--next-ink);
}
body.next-inspired .wrap{width:min(1380px,calc(100% - 36px))}

/* Header / navigation */
body.next-inspired .topline{display:none}
body.next-inspired .masthead{
  background:rgba(255,255,255,.94);
  color:var(--next-ink);
  border-bottom:1px solid rgba(8,33,58,.08);
  position:relative;
  z-index:1220;
  backdrop-filter:blur(14px);
}
body.next-inspired .masthead .wrap{min-height:82px}
body.next-inspired .brand{gap:12px}
body.next-inspired .logo{
  width:62px;height:52px;border-radius:16px;
  background:linear-gradient(145deg,#e4253a,#b91429);
  box-shadow:0 10px 24px rgba(197,29,45,.24),inset 0 -3px 0 rgba(0,0,0,.09);
}
body.next-inspired .logo.logo-mark{
  width:74px;
  height:74px;
  border-radius:0;
  background:none;
  box-shadow:none;
  display:block;
  object-fit:contain;
}
body.next-inspired .brandtext b{font-size:25px;color:var(--next-navy);letter-spacing:-.45px}
body.next-inspired .brandtext span{color:var(--next-muted);font-size:12px}
body.next-inspired .header-weather{gap:10px}
body.next-inspired .hwx{
  min-width:112px;padding:9px 13px;border:1px solid var(--next-line);border-radius:14px;background:#f8fafc;
}
body.next-inspired .hwx span{display:block;color:#718295;font-size:9px;letter-spacing:.8px;text-transform:uppercase;font-weight:900}
body.next-inspired .hwx strong{display:block;color:var(--next-navy);font-size:20px;line-height:1.1;margin-top:2px}
body.next-inspired .radar-btn{border-radius:14px;padding:13px 18px;background:linear-gradient(135deg,#db2037,#bd172b);box-shadow:0 8px 20px rgba(197,29,45,.2)}

body.next-inspired .navbar{
  position:sticky;top:0;z-index:1210;
  background:rgba(8,33,58,.96);
  box-shadow:0 7px 24px rgba(8,33,58,.16);
  backdrop-filter:blur(12px);
}
body.next-inspired .navbar .wrap{overflow:hidden}
body.next-inspired .navlinks{gap:2px;padding:8px 0;overflow-x:auto;scrollbar-width:none;white-space:nowrap}
body.next-inspired .navlinks::-webkit-scrollbar{display:none}
body.next-inspired .navlinks a{border:0!important;border-radius:999px;padding:9px 13px;color:#dce7ef;font-size:12px;flex:0 0 auto}
body.next-inspired .navlinks a:hover{background:rgba(255,255,255,.09);color:#fff}
body.next-inspired .navlinks a.active{background:#fff;color:var(--next-navy);box-shadow:0 4px 12px rgba(0,0,0,.14)}

/* Alert strips become compact app notifications */
body.next-inspired .alertbar,
body.next-inspired .severe-risk-banner,
body.next-inspired .flash-flood-banner{background:transparent;border:0}
body.next-inspired .alertbar{padding-top:14px}
body.next-inspired .alertbar .wrap,
body.next-inspired .severe-risk-banner .wrap,
body.next-inspired .flash-flood-banner .wrap{
  min-height:44px;border-radius:15px;border:1px solid var(--next-line);background:rgba(255,255,255,.95);
  padding:9px 12px;box-shadow:var(--next-soft-shadow);
}
body.next-inspired .alertbar .wrap{border-left:4px solid #e3a900}
body.next-inspired .alerttag{border-radius:8px}
body.next-inspired .severe-risk-banner .wrap{margin-top:8px;border-left:4px solid #8494a4}
body.next-inspired .flash-flood-banner .wrap{margin-top:8px;border-left:4px solid #5e91b6}

/* Quick access rail */
body.next-inspired .miws-quickbar{padding:12px 0 2px}
body.next-inspired .miws-quickbar .wrap{display:flex;gap:9px;overflow-x:auto;scrollbar-width:none;padding-bottom:6px}
body.next-inspired .miws-quickbar .wrap::-webkit-scrollbar{display:none}
body.next-inspired .quick-chip{
  display:flex;align-items:center;gap:8px;flex:0 0 auto;padding:10px 14px;border:1px solid var(--next-line);border-radius:999px;
  background:rgba(255,255,255,.92);box-shadow:0 4px 12px rgba(18,47,75,.055);font-size:12px;font-weight:900;color:#14314b;
}
body.next-inspired .quick-chip::before{content:"";width:7px;height:7px;border-radius:50%;background:#2580bd;box-shadow:0 0 0 4px rgba(37,128,189,.09)}
body.next-inspired .quick-chip.live::before{background:#e1253b;box-shadow:0 0 0 4px rgba(225,37,59,.1)}
body.next-inspired .quick-chip:hover{transform:translateY(-1px);border-color:#b9c9d8;background:#fff}

/* Hero: a softer current-conditions experience */
body.next-inspired .hero{padding:16px 0 14px;background:transparent!important;border:0}
body.next-inspired .hero-grid{grid-template-columns:minmax(0,1.18fr) minmax(360px,.82fr);gap:16px;align-items:stretch}
body.next-inspired .panel{border:1px solid var(--next-line);border-radius:var(--next-radius);box-shadow:var(--next-shadow);overflow:hidden}
body.next-inspired .hero-grid>.panel:first-child{
  position:relative;isolation:isolate;color:#14323b;border-color:#d5e2e0;
  background:
    radial-gradient(circle at 83% 24%,rgba(255,204,59,.42),transparent 18%),
    radial-gradient(circle at 80% 20%,rgba(255,255,255,.75),transparent 29%),
    linear-gradient(135deg,#dceceb 0%,#eaf2ef 48%,#f6efcf 100%);
}
body.next-inspired .hero-grid>.panel:first-child::after{
  content:"";position:absolute;inset:auto -80px -130px 25%;height:280px;z-index:-1;border-radius:50%;
  background:radial-gradient(ellipse at center,rgba(41,126,163,.10),transparent 68%);pointer-events:none;
}
body.next-inspired .hero-grid>.panel:first-child .panel-head{background:transparent;border-color:rgba(9,50,63,.11)}
body.next-inspired .hero-grid>.panel:first-child .panel-head h2,
body.next-inspired .hero-grid>.panel:first-child .location-line h1,
body.next-inspired .hero-grid>.panel:first-child .big-temp,
body.next-inspired .hero-grid>.panel:first-child .condition strong,
body.next-inspired .hero-grid>.panel:first-child .metric b{color:#12383e}
body.next-inspired .hero-grid>.panel:first-child .panel-head span,
body.next-inspired .hero-grid>.panel:first-child .location-line p,
body.next-inspired .hero-grid>.panel:first-child .obs-time,
body.next-inspired .hero-grid>.panel:first-child .condition span,
body.next-inspired .hero-grid>.panel:first-child .metric span,
body.next-inspired .hero-grid>.panel:first-child .status-note{color:#557076}
body.next-inspired .hero-grid>.panel:first-child .current-row{border-color:rgba(12,70,76,.12);grid-template-columns:170px 1fr 1fr;min-height:210px}
body.next-inspired .hero-grid>.panel:first-child .metrics{border:0;background:rgba(255,255,255,.58);border-radius:17px;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(18,61,67,.08)}
body.next-inspired .hero-grid>.panel:first-child .metric{border-color:rgba(12,70,76,.10)}
body.next-inspired .hero-grid>.panel:first-child.is-day{
  color:#14323b;border-color:#d5e2e0;
  background:
    radial-gradient(circle at 83% 24%,rgba(255,204,59,.42),transparent 18%),
    radial-gradient(circle at 80% 20%,rgba(255,255,255,.75),transparent 29%),
    linear-gradient(135deg,#dceceb 0%,#eaf2ef 48%,#f6efcf 100%);
}
body.next-inspired .hero-grid>.panel:first-child.is-night{
  color:#eaf3ff;border-color:#274766;
  background:
    radial-gradient(circle at 82% 22%,rgba(196,214,255,.18),transparent 15%),
    radial-gradient(circle at 78% 18%,rgba(134,168,255,.13),transparent 28%),
    linear-gradient(135deg,#0b2237 0%,#102d47 52%,#12273b 100%);
}
body.next-inspired .hero-grid>.panel:first-child.is-night::after{
  background:radial-gradient(ellipse at center,rgba(106,156,255,.12),transparent 70%);
}
body.next-inspired .hero-grid>.panel:first-child.is-night .panel-head{background:rgba(5,18,33,.14);border-color:rgba(187,216,255,.12)}
body.next-inspired .hero-grid>.panel:first-child.is-night .panel-head h2,
body.next-inspired .hero-grid>.panel:first-child.is-night .location-line h1,
body.next-inspired .hero-grid>.panel:first-child.is-night .big-temp,
body.next-inspired .hero-grid>.panel:first-child.is-night .condition strong,
body.next-inspired .hero-grid>.panel:first-child.is-night .metric b{color:#eff7ff}
body.next-inspired .hero-grid>.panel:first-child.is-night .panel-head span,
body.next-inspired .hero-grid>.panel:first-child.is-night .location-line p,
body.next-inspired .hero-grid>.panel:first-child.is-night .obs-time,
body.next-inspired .hero-grid>.panel:first-child.is-night .condition span,
body.next-inspired .hero-grid>.panel:first-child.is-night .metric span,
body.next-inspired .hero-grid>.panel:first-child.is-night .status-note{color:#b8cade}
body.next-inspired .hero-grid>.panel:first-child.is-night .current-row{border-color:rgba(210,228,255,.12)}
body.next-inspired .hero-grid>.panel:first-child.is-night .metrics{background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px rgba(204,225,255,.09)}
body.next-inspired .hero-grid>.panel:first-child.is-night .metric{border-color:rgba(204,225,255,.09)}
body.next-inspired .panel-head{min-height:54px;padding:13px 18px;background:rgba(255,255,255,.6)}
body.next-inspired .panel-head h2{font-size:16px;letter-spacing:-.15px}
body.next-inspired .panel-head span{font-size:9px;letter-spacing:1px}
body.next-inspired .now-body{padding:22px}
body.next-inspired .location-line h1{font-size:30px;letter-spacing:-.6px}
body.next-inspired .location-line p{font-size:12px}
body.next-inspired .big-temp{font-size:96px;letter-spacing:-7px;font-weight:700;line-height:.9}
body.next-inspired .current-icon{width:160px;height:160px}
body.next-inspired .current-icon .wx-animated-icon{filter:drop-shadow(0 10px 16px rgba(21,74,74,.15))}
body.next-inspired .condition strong{font-size:25px;line-height:1.05}
body.next-inspired .condition span{font-size:13px;margin-top:8px}
body.next-inspired .metric{padding:13px 14px}
body.next-inspired .metric span{font-size:9px;letter-spacing:.8px}
body.next-inspired .metric b{font-size:16px}

body.next-inspired .hero-grid>.panel:nth-child(2){background:rgba(255,255,255,.96)}
body.next-inspired .hero-grid>.panel:nth-child(2) .panel-head{background:#fbfcfe}
body.next-inspired .search-body{padding:22px}
body.next-inspired .search-body>h2{font-size:27px;letter-spacing:-.6px;margin-bottom:4px}
body.next-inspired .search-body>p{color:var(--next-muted);margin-top:0}
body.next-inspired .search-form{height:54px;border-radius:15px;border:1px solid #cbd8e4;background:#fff;box-shadow:none}
body.next-inspired .search-form input{padding:0 16px}
body.next-inspired .search-form button{border-radius:0 14px 14px 0;background:#1d72b5;padding:0 20px}
body.next-inspired .search-result{margin-top:16px;border:0!important;border-radius:18px;background:#f3f7fa;padding:18px;box-shadow:inset 0 0 0 1px #e3eaf0}
body.next-inspired .search-result .label{letter-spacing:1px}
body.next-inspired .search-result h3{font-size:20px}
body.next-inspired .search-risk{border-radius:13px;background:#fff;border:1px solid #e0e7ed!important}
body.next-inspired .flash-flood-days{gap:6px}
body.next-inspired .flash-flood-day{border-radius:10px;background:#f8fafc}

/* Content cards */
body.next-inspired .section{padding:8px 0;background:transparent!important;border:0!important}
body.next-inspired .section>.wrap{
  background:rgba(255,255,255,.97);border:1px solid var(--next-line);border-radius:var(--next-radius);
  box-shadow:var(--next-shadow);padding:22px;
}
body.next-inspired .section-title{margin:0 0 17px;padding:0 0 14px;border-bottom:1px solid #e6ecf1;align-items:center}
body.next-inspired .section-title h2{font-size:22px;letter-spacing:-.45px;color:#102b45}
body.next-inspired .section-title p{font-size:12px;color:#667a8d}
body.next-inspired .section-title a{border:1px solid #dce6ee;background:#f3f7fb;color:#17629c;border-radius:999px;padding:8px 12px;font-size:10px}

/* Forecast is a smooth horizontal app rail */
body.next-inspired .forecast-table{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;border:0;background:transparent;box-shadow:none;padding:2px 2px 8px;scrollbar-width:thin}
body.next-inspired .day{flex:1 0 145px;scroll-snap-align:start;min-height:176px;border:1px solid #dce6ee!important;border-radius:18px;background:linear-gradient(180deg,#fff,#f7f9fc);padding:15px 12px;box-shadow:0 4px 13px rgba(18,47,75,.055)}
body.next-inspired .day:first-child{background:linear-gradient(155deg,#e9f4fb,#f8fbfd);border-color:#bcd9ec!important}
body.next-inspired .day .name{font-size:10px;letter-spacing:.8px;color:#617487}
body.next-inspired .day .wx{min-height:66px;margin:9px 0}
body.next-inspired .day .temps{font-size:27px;color:#0d2d49}
body.next-inspired .day .temps small{color:#6d7f8f}

body.next-inspired .hourly{display:flex;gap:9px;overflow-x:auto;border:0;background:transparent;box-shadow:none;padding:2px 2px 8px;scroll-snap-type:x proximity}
body.next-inspired .hour{flex:0 0 104px;scroll-snap-align:start;border:1px solid #dfe7ee!important;border-radius:16px;background:#f8fafc;min-width:104px;padding:13px 9px;box-shadow:0 3px 11px rgba(18,47,75,.045)}
body.next-inspired .hour:first-child{background:linear-gradient(150deg,#0a2945,#174d75);color:#fff;border-color:#16496f!important;box-shadow:0 8px 18px rgba(10,41,69,.18)}
body.next-inspired .hour .t{font-size:23px}

body.next-inspired .today-grid{gap:12px}
body.next-inspired .period{border-radius:18px;border-color:#dfe7ee;box-shadow:0 4px 13px rgba(18,47,75,.055);overflow:hidden}
body.next-inspired .period h3{font-size:12px}

/* Embedded feature cards */
body.next-inspired .miws-feature-shell,
body.next-inspired .camera-shell,
body.next-inspired .river-shell,
body.next-inspired .baron-radar-shell{border-radius:18px;overflow:hidden;border-color:#dbe5ed;box-shadow:none}
body.next-inspired .miws-feature-topbar,
body.next-inspired .camera-topbar,
body.next-inspired .river-topbar,
body.next-inspired .baron-radar-topbar{background:#092540}
body.next-inspired .miws-feature-frame-wrap{background:#eef3f7}
body.next-inspired #iowa-forecast .miws-feature-frame-wrap{background:#eaf0f5}
body.next-inspired #radar>.wrap{padding:0;overflow:hidden}
body.next-inspired #radar .section-title{padding:22px 22px 15px;margin:0;background:#fff}
body.next-inspired .baron-radar-frame-wrap{height:610px}

/* Weather center tools */
body.next-inspired .tools{gap:11px;grid-template-columns:repeat(3,minmax(0,1fr))}
body.next-inspired .tool{min-height:134px;border:1px solid #dfe7ee;border-radius:18px;background:linear-gradient(180deg,#fff,#f8fafc);box-shadow:0 4px 12px rgba(18,47,75,.045);padding:16px}
body.next-inspired .tool:hover{transform:translateY(-2px);border-color:#bfd2e1;box-shadow:0 9px 22px rgba(18,47,75,.09)}
body.next-inspired .tool .tag{display:inline-block;border-radius:999px;padding:5px 8px;background:#e9f2f8;color:#17669e}

/* Cameras, app and sponsors */
body.next-inspired .camera-filter,body.next-inspired .camera-refresh{border-radius:999px}
body.next-inspired .camera-card{border-radius:16px;overflow:hidden;border-color:#dde6ee;box-shadow:0 4px 13px rgba(18,47,75,.05)}
body.next-inspired .app-download-grid{gap:12px}
body.next-inspired .app-store-card{border-radius:18px;border-color:#dce6ee;box-shadow:0 5px 15px rgba(18,47,75,.055)}
body.next-inspired .sponsor-grid{gap:12px}
body.next-inspired .sponsor-card{border-radius:18px;border-color:#e0e7ed;box-shadow:0 4px 13px rgba(18,47,75,.045);background:#fff}
body.next-inspired .sponsor-logo{background:#fbfcfd}
body.next-inspired .footer{margin-top:22px;background:#061a2d}

/* Fullscreen modals should feel consistent with the rest of the redesign */
body.next-inspired .camera-lightbox-dialog,
body.next-inspired .feature-lightbox-dialog{border-radius:20px;overflow:hidden;box-shadow:0 28px 80px rgba(0,0,0,.45)}

@media(max-width:1050px){
  body.next-inspired .hero-grid{grid-template-columns:1fr}
  body.next-inspired .hero-grid>.panel:first-child .current-row{grid-template-columns:150px 1fr 1fr}
  body.next-inspired .tools{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.next-inspired .baron-radar-frame-wrap{height:540px}
}
@media(max-width:760px){
  body.next-inspired .wrap{width:min(100% - 18px,1380px)}
  body.next-inspired .masthead .wrap{min-height:72px}
  body.next-inspired .brandtext b{font-size:19px}
  body.next-inspired .brandtext span{display:none}
  body.next-inspired .logo{width:54px;height:46px;border-radius:13px;font-size:19px}
  body.next-inspired .logo.logo-mark{width:58px;height:58px;border-radius:0}
  body.next-inspired .menu{display:none}
  body.next-inspired .navlinks{display:flex!important;flex-direction:row;width:auto;padding:7px 0}
  body.next-inspired .navlinks a{border:0!important;border-radius:999px!important;padding:8px 12px}
  body.next-inspired .alertbar{padding-top:9px}
  body.next-inspired .alertbar .wrap,body.next-inspired .severe-risk-banner .wrap,body.next-inspired .flash-flood-banner .wrap{border-radius:13px}
  body.next-inspired .miws-quickbar{padding-top:9px}
  body.next-inspired .hero{padding-top:8px}
  body.next-inspired .hero-grid{gap:9px}
  body.next-inspired .panel{border-radius:19px}
  body.next-inspired .hero-grid>.panel:first-child .current-row{grid-template-columns:96px 1fr;grid-template-areas:"icon temp" "condition condition";min-height:0;gap:7px 14px}
  body.next-inspired .current-icon-wrap{grid-area:icon}
  body.next-inspired .big-temp{grid-area:temp;font-size:72px;letter-spacing:-5px;align-self:center}
  body.next-inspired .condition{grid-area:condition;padding-top:3px}
  body.next-inspired .current-icon{width:96px;height:96px}
  body.next-inspired .condition strong{font-size:21px}
  body.next-inspired .now-body,body.next-inspired .search-body{padding:17px}
  body.next-inspired .location-line h1{font-size:25px}
  body.next-inspired .metrics{grid-template-columns:1fr 1fr}
  body.next-inspired .section{padding:5px 0}
  body.next-inspired .section>.wrap{border-radius:19px;padding:16px}
  body.next-inspired .section-title{padding-bottom:11px;margin-bottom:13px;align-items:flex-start}
  body.next-inspired .section-title h2{font-size:20px}
  body.next-inspired .section-title a{font-size:9px}
  body.next-inspired .forecast-table{margin-right:-16px;padding-right:16px}
  body.next-inspired .day{flex-basis:138px;min-height:164px}
  body.next-inspired .hourly{margin-right:-16px;padding-right:16px}
  body.next-inspired .tools{grid-template-columns:1fr}
  body.next-inspired .baron-radar-frame-wrap{height:470px}
  body.next-inspired #radar .section-title{padding:17px 16px 12px}
}


/* CONDITION-AWARE HD WEATHER SCENES
   Photos are free Unsplash images; motion is rendered locally with CSS so the scene
   remains animated without requiring video files. */
body.next-inspired .hero-grid>.panel.current-weather-scene{
  position:relative;
  isolation:isolate;
  background-size:cover!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  transition:background-image .55s ease,background-color .55s ease,color .35s ease,border-color .35s ease;
}
body.next-inspired .hero-grid>.panel.current-weather-scene>.panel-head,
body.next-inspired .hero-grid>.panel.current-weather-scene>.now-body{position:relative;z-index:3}
body.next-inspired .hero-grid>.panel.current-weather-scene::before{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(90deg,rgba(5,22,36,.44),rgba(5,25,40,.18) 56%,rgba(5,18,31,.38));
}
body.next-inspired .hero-grid>.panel.current-weather-scene.is-day::before{
  background:linear-gradient(90deg,rgba(238,247,247,.78),rgba(245,249,246,.53) 57%,rgba(255,248,222,.64));
}
body.next-inspired .hero-grid>.panel.current-weather-scene.is-night::before{
  background:linear-gradient(90deg,rgba(3,16,30,.78),rgba(8,29,48,.58) 55%,rgba(4,15,29,.72));
}
body.next-inspired .hero-grid>.panel.current-weather-scene .weather-motion-layer{
  position:absolute;inset:0;z-index:2;overflow:hidden;pointer-events:none;border-radius:inherit;
}
body.next-inspired .hero-grid>.panel.current-weather-scene .weather-motion-layer::before,
body.next-inspired .hero-grid>.panel.current-weather-scene .weather-motion-layer::after{
  content:"";position:absolute;inset:-25%;pointer-events:none;
}

/* Clear / partly cloudy backgrounds */
body.next-inspired .hero-grid>.panel.scene-clear-day{
  background-image:url("https://images.unsplash.com/photo-1767177580959-a43719287007?auto=format&fit=crop&q=78&w=2400")!important;
}
body.next-inspired .hero-grid>.panel.scene-clear-night{
  background-image:url("https://images.unsplash.com/photo-1518128160709-c575457dafa5?auto=format&fit=crop&q=78&w=2400")!important;
}
body.next-inspired .hero-grid>.panel.scene-partly-day{
  background-image:url("https://images.unsplash.com/photo-1767177580959-a43719287007?auto=format&fit=crop&q=78&w=2400")!important;
}
body.next-inspired .hero-grid>.panel.scene-partly-night{
  background-image:url("https://images.unsplash.com/photo-1518128160709-c575457dafa5?auto=format&fit=crop&q=78&w=2400")!important;
}
body.next-inspired .hero-grid>.panel.scene-clear-day .weather-motion-layer::before,
body.next-inspired .hero-grid>.panel.scene-partly-day .weather-motion-layer::before{
  inset:-15%;background:radial-gradient(circle at 80% 18%,rgba(255,221,118,.44),transparent 18%);animation:miwsSunGlow 7s ease-in-out infinite alternate;
}
body.next-inspired .hero-grid>.panel.scene-clear-night .weather-motion-layer::before,
body.next-inspired .hero-grid>.panel.scene-partly-night .weather-motion-layer::before{
  inset:0;background-image:radial-gradient(circle,rgba(255,255,255,.9) 0 1px,transparent 1.4px);background-size:53px 47px;opacity:.18;animation:miwsTwinkle 4.5s ease-in-out infinite alternate;
}

/* Cloudy */
body.next-inspired .hero-grid>.panel.scene-cloudy-day,
body.next-inspired .hero-grid>.panel.scene-cloudy-night,
body.next-inspired .hero-grid>.panel.scene-wind{
  background-image:url("https://images.unsplash.com/photo-1742287124818-3b7ad2eb10e5?auto=format&fit=crop&q=78&w=2400")!important;
}
body.next-inspired .hero-grid>.panel.scene-cloudy-day .weather-motion-layer::before,
body.next-inspired .hero-grid>.panel.scene-cloudy-night .weather-motion-layer::before,
body.next-inspired .hero-grid>.panel.scene-partly-day .weather-motion-layer::after,
body.next-inspired .hero-grid>.panel.scene-partly-night .weather-motion-layer::after{
  inset:-20% -45%;background:radial-gradient(ellipse at 30% 45%,rgba(255,255,255,.18),transparent 30%),radial-gradient(ellipse at 65% 55%,rgba(225,238,245,.18),transparent 34%);filter:blur(12px);animation:miwsCloudDrift 24s linear infinite;
}
body.next-inspired .hero-grid>.panel.scene-wind .weather-motion-layer::after{
  inset:0;background:repeating-linear-gradient(165deg,transparent 0 28px,rgba(255,255,255,.12) 30px 31px,transparent 33px 58px);animation:miwsWind 1.9s linear infinite;
}

/* Rain */
body.next-inspired .hero-grid>.panel.scene-rain{
  background-image:url("https://images.unsplash.com/photo-1709670866988-eba16cbe6e0e?auto=format&fit=crop&q=78&w=2400")!important;
}
body.next-inspired .hero-grid>.panel.scene-rain .weather-motion-layer::before,
body.next-inspired .hero-grid>.panel.scene-storm .weather-motion-layer::before{
  content:none;
}
body.next-inspired .hero-grid>.panel.scene-rain .weather-motion-layer::after{
  inset:auto 0 0;height:32%;background:linear-gradient(to top,rgba(27,54,72,.22),transparent);animation:miwsRainMist 3s ease-in-out infinite alternate;
}
body.next-inspired .weather-motion-layer .rain-drop{
  position:absolute;
  top:-12%;
  left:var(--x);
  width:var(--drop-w);
  height:var(--drop-h);
  border-radius:55% 45% 62% 38% / 68% 68% 32% 32%;
  opacity:var(--drop-opacity);
  background:
    radial-gradient(circle at 32% 24%,rgba(255,255,255,.95) 0 12%,transparent 14%),
    linear-gradient(160deg,rgba(232,247,255,.9),rgba(125,193,238,.62) 52%,rgba(73,139,192,.2));
  box-shadow:0 1px 2px rgba(0,18,36,.24),inset -1px -2px 2px rgba(36,102,151,.2);
  filter:drop-shadow(0 2px 2px rgba(0,20,38,.18));
  transform:translate3d(0,-15vh,0) rotate(var(--tilt));
  animation:miwsRealRaindrop var(--drop-duration) cubic-bezier(.35,.08,.75,.86) infinite;
  animation-delay:var(--drop-delay);
  will-change:transform,opacity;
}
body.next-inspired .hero-grid>.panel.scene-storm .weather-motion-layer .rain-drop{
  opacity:calc(var(--drop-opacity) * .9);
  filter:drop-shadow(0 2px 2px rgba(0,15,32,.26));
}

/* Thunderstorms */
body.next-inspired .hero-grid>.panel.scene-storm{
  background-image:url("https://images.unsplash.com/photo-1783700111001-3e0452cd2052?auto=format&fit=crop&q=80&w=2400")!important;
}
body.next-inspired .hero-grid>.panel.scene-storm .weather-motion-layer::after{
  inset:0;background:#dbeeff;opacity:0;mix-blend-mode:screen;animation:miwsLightning 7.2s steps(1,end) infinite;
}

/* Snow */
body.next-inspired .hero-grid>.panel.scene-snow{
  background-image:url("https://images.unsplash.com/photo-1613083093144-bfa5c3eb8337?auto=format&fit=crop&q=78&w=2400")!important;
}
body.next-inspired .hero-grid>.panel.scene-snow .weather-motion-layer::before,
body.next-inspired .hero-grid>.panel.scene-snow .weather-motion-layer::after{
  inset:-20%;background-image:radial-gradient(circle,rgba(255,255,255,.95) 0 2px,transparent 2.6px),radial-gradient(circle,rgba(255,255,255,.72) 0 1.3px,transparent 2px);background-size:48px 48px,73px 73px;background-position:0 0,20px 18px;animation:miwsSnow 8.5s linear infinite;
}
body.next-inspired .hero-grid>.panel.scene-snow .weather-motion-layer::after{opacity:.55;transform:scale(.7);animation-duration:12s}

/* Fog / mist */
body.next-inspired .hero-grid>.panel.scene-fog{
  background-image:url("https://images.unsplash.com/photo-1646275388118-7c7bc6525844?auto=format&fit=crop&q=78&w=2400")!important;
}
body.next-inspired .hero-grid>.panel.scene-fog .weather-motion-layer::before,
body.next-inspired .hero-grid>.panel.scene-fog .weather-motion-layer::after{
  inset:-5% -35%;background:linear-gradient(90deg,transparent,rgba(238,247,250,.32),rgba(255,255,255,.46),rgba(226,240,245,.28),transparent);filter:blur(18px);animation:miwsFog 16s ease-in-out infinite alternate;
}
body.next-inspired .hero-grid>.panel.scene-fog .weather-motion-layer::after{top:38%;opacity:.45;animation-duration:21s;animation-direction:alternate-reverse}

@keyframes miwsRealRaindrop{
  0%{transform:translate3d(0,-15vh,0) rotate(var(--tilt));opacity:0}
  7%{opacity:var(--drop-opacity)}
  78%{opacity:var(--drop-opacity)}
  100%{transform:translate3d(var(--drift),118vh,0) rotate(var(--tilt));opacity:0}
}
@keyframes miwsRainMist{from{opacity:.2}to{opacity:.48}}
@keyframes miwsLightning{0%,5%,7%,36%,38%,100%{opacity:0}6%,37%{opacity:.75}6.5%{opacity:.18}}
@keyframes miwsSnow{from{transform:translate3d(-2%,-12%,0)}to{transform:translate3d(4%,22%,0)}}
@keyframes miwsFog{from{transform:translateX(-12%)}to{transform:translateX(16%)}}
@keyframes miwsCloudDrift{from{transform:translateX(-8%)}to{transform:translateX(12%)}}
@keyframes miwsWind{from{background-position:0 0}to{background-position:180px 0}}
@keyframes miwsSunGlow{from{opacity:.55;transform:scale(.96)}to{opacity:.9;transform:scale(1.05)}}
@keyframes miwsTwinkle{from{opacity:.09}to{opacity:.28}}

@media (prefers-reduced-motion:reduce){
  body.next-inspired .current-weather-scene .weather-motion-layer::before,
  body.next-inspired .current-weather-scene .weather-motion-layer::after,
  body.next-inspired .current-weather-scene .weather-motion-layer .rain-drop{animation:none!important}
}

/* Keep wet/storm scenes cinematic even during daylight. */
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-rain::before,
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-storm::before{
  background:linear-gradient(90deg,rgba(3,17,29,.80),rgba(7,31,48,.52) 56%,rgba(4,17,29,.70));
}
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-rain .panel-head,
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-storm .panel-head{background:rgba(5,18,31,.15);border-color:rgba(215,232,248,.12)}
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-rain .panel-head h2,
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-rain .location-line h1,
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-rain .big-temp,
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-rain .condition strong,
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-rain .metric b,
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-storm .panel-head h2,
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-storm .location-line h1,
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-storm .big-temp,
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-storm .condition strong,
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-storm .metric b{color:#f4f9ff}
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-rain .panel-head span,
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-rain .location-line p,
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-rain .obs-time,
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-rain .condition span,
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-rain .metric span,
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-rain .status-note,
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-storm .panel-head span,
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-storm .location-line p,
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-storm .obs-time,
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-storm .condition span,
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-storm .metric span,
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-storm .status-note{color:#c7d9e9}
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-rain .metrics,
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-storm .metrics{background:rgba(7,25,42,.48);box-shadow:inset 0 0 0 1px rgba(220,237,255,.10);backdrop-filter:blur(6px)}
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-rain .metric,
body.next-inspired .hero-grid>.panel.current-weather-scene.scene-storm .metric{border-color:rgba(220,237,255,.10)}

/* Cloudy scenes: neutral overcast sky built in CSS so cloudy locations never inherit a warm landscape photo. */
body.next-inspired .hero-grid>.panel.scene-cloudy-day{
  background-image:
    radial-gradient(ellipse at 18% 18%,rgba(236,243,247,.58) 0%,rgba(236,243,247,0) 34%),
    radial-gradient(ellipse at 78% 30%,rgba(205,218,227,.60) 0%,rgba(205,218,227,0) 38%),
    linear-gradient(155deg,#879aa8 0%,#b6c3cc 44%,#7d929f 100%)!important;
  background-color:#93a5b1!important;
}
body.next-inspired .hero-grid>.panel.scene-cloudy-night{
  background-image:
    radial-gradient(ellipse at 22% 20%,rgba(89,111,131,.34) 0%,rgba(89,111,131,0) 34%),
    radial-gradient(ellipse at 76% 34%,rgba(62,83,103,.38) 0%,rgba(62,83,103,0) 38%),
    linear-gradient(155deg,#172a3a 0%,#263e51 46%,#101f2e 100%)!important;
  background-color:#1b3143!important;
}
body.next-inspired .hero-grid>.panel.scene-cloudy-day .weather-motion-layer::before,
body.next-inspired .hero-grid>.panel.scene-cloudy-night .weather-motion-layer::before{
  background:
    radial-gradient(ellipse at 18% 43%,rgba(255,255,255,.24) 0 14%,transparent 32%),
    radial-gradient(ellipse at 47% 52%,rgba(231,239,244,.23) 0 18%,transparent 38%),
    radial-gradient(ellipse at 79% 39%,rgba(245,249,251,.18) 0 15%,transparent 34%);
  filter:blur(18px);
  animation:miwsCloudDrift 30s linear infinite;
}
