.market-weather {
  --weather-blue: #1d4ed8;
  --weather-green: #15803d;
  --weather-amber: #b45309;
  --weather-red: #b91c1c;
  max-width: 1180px;
  margin: 0;
  color: #172033;
}

body:has(.market-weather) header[role="banner"] .page-title,
body:has(.market-weather) header[role="banner"] > .container > h1 {
  display: none !important;
}

.market-weather__hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid #dbe3ef;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #eff6ff, #fff);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.market-weather__hero.is-favorable { border-left: .55rem solid var(--weather-green); }
.market-weather__hero.is-choppy { border-left: .55rem solid var(--weather-amber); }
.market-weather__hero.is-weak { border-left: .55rem solid var(--weather-red); }
.market-weather__eyebrow { color: #64748b; font-size: .78rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.market-weather__hero h1 { margin: .35rem 0 .5rem; font-size: clamp(2.25rem, 6vw, 4.5rem); line-height: 1; }
.market-weather__hero.is-favorable h1 { color: var(--weather-green); }
.market-weather__hero.is-choppy h1 { color: var(--weather-amber); }
.market-weather__hero.is-weak h1 { color: var(--weather-red); }
.market-weather__hero p { max-width: 720px; margin: 0 0 .75rem; font-size: 1.08rem; }
.market-weather__hero small { color: #64748b; }

.market-weather__notice {
  margin: 1rem 0;
  padding: .85rem 1rem;
  border: 1px solid #f5d08a;
  border-radius: .75rem;
  background: #fffbeb;
  color: #854d0e;
}
.market-weather__notice p { margin: 0; }
.market-weather__notice.is-error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }

.market-weather__guidance {
  margin: 1rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid #dbe3ef;
  border-left: .35rem solid #64748b;
  border-radius: .8rem;
  background: #fff;
}
.market-weather__guidance.is-favorable { border-left-color: var(--weather-green); }
.market-weather__guidance.is-choppy { border-left-color: var(--weather-amber); }
.market-weather__guidance.is-weak { border-left-color: var(--weather-red); }
.market-weather__guidance h2 { margin: 0 0 .35rem; font-size: 1.2rem; }
.market-weather__guidance p { margin: 0; }
.market-weather__commentary { margin-top: .8rem; padding-top: .7rem; border-top: 1px solid #e2e8f0; }
.market-weather__commentary h3 { margin: 0 0 .2rem; color: #334155; font-size: .86rem; letter-spacing: .04em; text-transform: uppercase; }
.market-weather__disclaimer { margin-top: .65rem !important; color: #64748b; font-size: .82rem; }

.market-weather__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.market-weather__metric {
  display: flex;
  min-height: 118px;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: .9rem;
  background: #fff;
  box-shadow: 0 7px 20px rgba(15, 23, 42, .05);
}
.market-weather__metric span, .market-weather__metric small { color: #64748b; }
.market-weather__metric strong { margin: .25rem 0; font-size: 1.45rem; }
.market-weather__metric.is-positive strong { color: var(--weather-green); }
.market-weather__metric.is-negative strong { color: var(--weather-red); }
.market-weather__metric.is-neutral strong { color: #475569; }

.market-weather__chart-panel { padding: 1.25rem; border: 1px solid #e2e8f0; border-radius: 1rem; background: #fff; }
.market-weather__chart-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.market-weather__chart-header h2, .market-weather__chart-header p { margin: 0; }
.market-weather__chart-header p { color: #64748b; }
.market-weather__legend { display: flex; flex-wrap: wrap; gap: 1rem; color: #475569; font-size: .88rem; }
.market-weather__legend span::before { display: inline-block; width: 1.4rem; height: 3px; margin-right: .4rem; vertical-align: middle; background: var(--weather-blue); content: ''; }
.market-weather__legend .is-average::before { background: #d97706; }
.market-weather__chart { height: 390px; margin-top: 1rem; }
.market-weather__method { max-width: 850px; margin: 1rem 0 0; color: #64748b; font-size: .9rem; }

@media (max-width: 800px) {
  .market-weather__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-weather__chart-header { flex-direction: column; }
}
@media (max-width: 480px) {
  .market-weather__metrics { grid-template-columns: 1fr; }
  .market-weather__chart { height: 320px; }
}
