/* Residential package comparison table. Scoped to its page class. */

.page-residential-solar-packages .pkg-table {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 12px;
}

.page-residential-solar-packages .pkg-table .pkg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.page-residential-solar-packages .pkg-table .pkg-card:hover {
  box-shadow: 0 20px 50px rgba(15,43,91,0.1);
  transform: translateY(-4px);
}

.page-residential-solar-packages .pkg-table .pkg-featured {
  border-color: var(--orange);
  background: linear-gradient(160deg, #0F2B5B 0%, #1a4070 100%);
  box-shadow: 0 8px 32px rgba(244,123,32,0.2);
}

.page-residential-solar-packages .pkg-table .pkg-featured .pkg-size { color: #fff; }
.page-residential-solar-packages .pkg-table .pkg-featured .pkg-label { color: rgba(255,255,255,0.6); }
.page-residential-solar-packages .pkg-table .pkg-featured .pkg-price { color: rgba(255,255,255,0.85); }
.page-residential-solar-packages .pkg-table .pkg-featured .pkg-price span { color: var(--orange); }
.page-residential-solar-packages .pkg-table .pkg-featured .pkg-desc { color: rgba(255,255,255,0.6); }
.page-residential-solar-packages .pkg-table .pkg-featured .pkg-specs li { border-color: rgba(255,255,255,0.08); }
.page-residential-solar-packages .pkg-table .pkg-featured .spec-l { color: rgba(255,255,255,0.5); }
.page-residential-solar-packages .pkg-table .pkg-featured .spec-r { color: rgba(255,255,255,0.9); }

.page-residential-solar-packages .pkg-table .pkg-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  padding: 4px 16px;
  border-radius: 20px;
  background: var(--orange);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

.page-residential-solar-packages .pkg-table .pkg-size {
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
}

.page-residential-solar-packages .pkg-table .pkg-label {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.page-residential-solar-packages .pkg-table .pkg-price {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.page-residential-solar-packages .pkg-table .pkg-price span {
  color: var(--orange);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.page-residential-solar-packages .pkg-table .pkg-desc {
  flex-grow: 1;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.page-residential-solar-packages .pkg-table .pkg-specs {
  margin-bottom: 22px;
  border-top: 1px solid var(--border);
  list-style: none;
}

.page-residential-solar-packages .pkg-table .pkg-specs li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}

.page-residential-solar-packages .pkg-table .spec-l { color: var(--muted); }
.page-residential-solar-packages .pkg-table .spec-r { color: var(--navy); font-weight: 700; }

@media (max-width: 1024px) {
  .page-residential-solar-packages .pkg-table { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  .page-residential-solar-packages .pkg-table { grid-template-columns: 1fr; }
}
