/* Analysis home dashboard */

.analysis-home-page{
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: calc(100vh - 120px);
}

.analysis-home-hero{
  position: relative;
  min-height: 320px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #111827;
  box-shadow: var(--shadow);
}

.analysis-home-hero-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.analysis-home-hero-shade{
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,23,42,.82), rgba(15,23,42,.5) 44%, rgba(15,23,42,.08));
}

.analysis-home-hero-copy{
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  padding: 44px 46px;
  color: #ffffff;
}

.analysis-home-kicker{
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .22em;
  color: rgba(255,255,255,.7);
}

.analysis-home-title{
  margin: 0;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0;
}

.analysis-home-desc{
  width: min(560px, 100%);
  margin: 16px 0 0;
  color: rgba(255,255,255,.86);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 700;
}

.analysis-home-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.analysis29 .analysis-home-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 10px;
  color: #ffffff;
  background: rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.analysis29 .analysis-home-link--primary{
  border-color: #ffffff;
  background: #ffffff;
  color: #111827;
}

.analysis-home-data-note:empty{
  display: none;
}

.analysis-home-data-note{
  padding: 10px 14px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
}

.analysis-home-kpis{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.analysis-home-kpi-card{
  min-height: 104px;
  padding: 18px 18px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.analysis-home-kpi-label{
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.analysis-home-kpi-value{
  margin-top: 8px;
  color: #111827;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.analysis-home-kpi-delta{
  margin-top: 10px;
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 800;
}

.analysis-home-chart-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(420px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.analysis-home-surface-panel,
.analysis-home-trend-panel{
  min-height: 430px;
}

.analysis-home-graph-body{
  min-height: 0;
}

.analysis-home-pyvista-wrap{
  position: relative;
  width: 100%;
  height: 430px;
  overflow: hidden;
  background: #eef2f7;
}

.analysis-home-pyvista-img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.analysis-home-pyvista-caption{
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 6px 9px;
  border: 1px solid rgba(15,23,42,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.88);
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15,23,42,.12);
}

.analysis-home-trend-panel--wide{
  min-height: 360px;
}

.analysis-home-temp-tabs{
  padding: 10px 16px 0;
}

.analysis-home-table-panel{
  padding: 0;
}

.analysis-home-table-head{
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-end;
  padding: 16px 18px 10px;
  border-bottom: 1px solid var(--border);
}

.analysis-home-table-title{
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.analysis-home-table-subtitle{
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.analysis-home-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.analysis-home-table th,
.analysis-home-table td{
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.analysis-home-table th{
  color: #64748b;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 900;
}

.analysis-home-table td{
  color: #111827;
  font-weight: 800;
}

.analysis-home-table tr:last-child td{
  border-bottom: 0;
}

@media (max-width: 1200px){
  .analysis-home-chart-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px){
  .analysis-home-kpis{
    grid-template-columns: 1fr;
  }

  .analysis-home-hero-copy{
    padding: 34px 24px;
  }
}
