/* ═══════════════════════════════════════════════════
   Industries — Full-bleed Sections (Polished)
   ═══════════════════════════════════════════════════ */


/* ─── Page header ─── */

.ind-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 52px 32px 36px;
}

.ind-header h1 {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1;
}

.ind-header-sub {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.01em;
}


/* ─── Section — full bleed ─── */

.ind-section {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.ind-section + .ind-section {
  border-top: none;
}

.ind-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 32px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 56px;
  align-items: start;
  position: relative;
  z-index: 1;
}


/* ─── Light color themes ─── */

.ind-section--tax-relief {
  background:
    linear-gradient(135deg, #fffbeb 0%, #fef3c7 40%, #fffbeb 100%);
}
.ind-section--debt-relief {
  background:
    linear-gradient(135deg, #eff6ff 0%, #dbeafe 40%, #eff6ff 100%);
}
.ind-section--solar {
  background:
    linear-gradient(135deg, #ecfdf5 0%, #d1fae5 40%, #ecfdf5 100%);
}

/* Soft edge between sections */
.ind-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.06) 20%,
    rgba(0, 0, 0, 0.06) 80%,
    transparent 100%
  );
}


/* ─── Decorative background shapes ─── */

.ind-accent {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* Large accent ring — top right */
.ind-section--tax-relief .ind-accent {
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 60px solid rgba(245, 158, 11, 0.04);
  top: -180px;
  right: -120px;
}

/* Diagonal lines pattern — bottom left */
.ind-section--debt-relief .ind-accent {
  width: 300px;
  height: 300px;
  bottom: -60px;
  left: -40px;
  opacity: 0.5;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(59, 130, 246, 0.04) 8px,
      rgba(59, 130, 246, 0.04) 9px
    );
}

/* Double ring — top right */
.ind-section--solar .ind-accent {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 40px solid rgba(16, 185, 129, 0.035);
  box-shadow: 0 0 0 80px rgba(16, 185, 129, 0.02);
  top: -140px;
  right: -100px;
}

/* Second decorative element per section */
.ind-section--tax-relief::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  bottom: -80px;
  left: 10%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ind-section--debt-relief::before {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  top: -100px;
  right: 5%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ind-section--solar::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  bottom: -60px;
  left: 15%;
  opacity: 0.6;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(16, 185, 129, 0.03) 10px,
      rgba(16, 185, 129, 0.03) 11px
    );
  pointer-events: none;
}


/* ─── Left column ─── */

.ind-left {
  display: flex;
  flex-direction: column;
}

.ind-identity {
  margin-bottom: 28px;
}

.ind-name {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 10px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Colored accent bar before name */
.ind-name::before {
  content: "";
  display: block;
  width: 4px;
  height: 28px;
  border-radius: 2px;
  flex-shrink: 0;
}

.ind-section--tax-relief .ind-name::before { background: linear-gradient(180deg, #f59e0b, #d97706); }
.ind-section--debt-relief .ind-name::before { background: linear-gradient(180deg, #3b82f6, #2563eb); }
.ind-section--solar .ind-name::before { background: linear-gradient(180deg, #10b981, #059669); }

.ind-blurb {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #64748b;
  margin: 0;
}


/* ─── Stats strip ─── */

.ind-stats {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

.ind-stat {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  flex: 1;
  position: relative;
}

.ind-stat + .ind-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 50%,
    transparent 100%
  );
}

.ind-stat-value {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.ind-stat-label {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
}


/* ─── CTA ─── */

.ind-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 8px;
  transition: all .25s ease;
  letter-spacing: 0.01em;
  align-self: flex-start;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ind-cta svg {
  transition: transform .25s ease;
}

.ind-cta:hover svg {
  transform: translateX(4px);
}

.ind-section--tax-relief .ind-cta {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.25);
}
.ind-section--tax-relief .ind-cta:hover {
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}

.ind-section--debt-relief .ind-cta {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.25);
}
.ind-section--debt-relief .ind-cta:hover {
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}

.ind-section--solar .ind-cta {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.25);
}
.ind-section--solar .ind-cta:hover {
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}


/* ─── Leaderboard panel (right) ─── */

.ind-board {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 16px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* Colored top edge on the board */
.ind-board::before {
  content: "";
  display: block;
  height: 3px;
}

.ind-section--tax-relief .ind-board::before {
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
}
.ind-section--debt-relief .ind-board::before {
  background: linear-gradient(90deg, #3b82f6, #60a5fa, #3b82f6);
}
.ind-section--solar .ind-board::before {
  background: linear-gradient(90deg, #10b981, #34d399, #10b981);
}

.ind-board-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 22px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ind-board-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
}

.ind-board-updated {
  font-size: 0.62rem;
  font-weight: 500;
  color: #cbd5e1;
}


/* ─── Leaderboard row ─── */

.ind-row {
  display: grid;
  grid-template-columns: 36px 1fr 48px;
  gap: 10px;
  align-items: center;
  padding: 12px 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  transition: background .15s ease;
}

.ind-row:last-child {
  border-bottom: none;
}

.ind-row:hover {
  background: rgba(0, 0, 0, 0.015);
}


/* Leader row */
.ind-row--leader {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ind-row--leader .ind-row-rank {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
}

.ind-section--tax-relief .ind-row--leader .ind-row-rank {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.ind-section--debt-relief .ind-row--leader .ind-row-rank {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}
.ind-section--solar .ind-row--leader .ind-row-rank {
  background: linear-gradient(135deg, #10b981, #059669);
}

.ind-row--leader .ind-row-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 7px;
}

.ind-row--leader .ind-row-score {
  font-size: 1.15rem;
  font-weight: 800;
}

.ind-section--tax-relief .ind-row--leader .ind-row-score { color: #b45309; }
.ind-section--debt-relief .ind-row--leader .ind-row-score { color: #1d4ed8; }
.ind-section--solar .ind-row--leader .ind-row-score { color: #047857; }

.ind-row--leader .ind-row-bar-track {
  height: 5px;
  border-radius: 3px;
}

.ind-row--leader .ind-row-bar-fill {
  border-radius: 3px;
  height: 5px;
}

.ind-section--tax-relief .ind-row--leader .ind-row-bar-fill {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}
.ind-section--debt-relief .ind-row--leader .ind-row-bar-fill {
  background: linear-gradient(90deg, #93c5fd, #3b82f6);
}
.ind-section--solar .ind-row--leader .ind-row-bar-fill {
  background: linear-gradient(90deg, #6ee7b7, #10b981);
}


/* Rank number (non-leader) */
.ind-row-rank {
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
  text-align: center;
}


/* Name + score bar */
.ind-row-main {
  min-width: 0;
}

.ind-row-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-bottom: 6px;
}


/* Score bar */
.ind-row-bar-track {
  width: 100%;
  height: 3px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 2px;
  overflow: hidden;
}

.ind-row-bar-fill {
  height: 100%;
  border-radius: 2px;
}

.ind-section--tax-relief .ind-row-bar-fill { background: linear-gradient(90deg, #fde68a, #fbbf24); }
.ind-section--debt-relief .ind-row-bar-fill { background: linear-gradient(90deg, #bfdbfe, #93c5fd); }
.ind-section--solar .ind-row-bar-fill { background: linear-gradient(90deg, #a7f3d0, #6ee7b7); }


/* Score number */
.ind-row-score {
  font-family: "SF Mono", "Cascadia Mono", "Consolas", monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  text-align: right;
  font-variant-numeric: tabular-nums;
}


/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 900px) {
  .ind-header {
    padding: 40px 24px 28px;
  }
  .ind-header h1 {
    font-size: 2.2rem;
  }
  .ind-section-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 24px;
  }
  .ind-name {
    font-size: 1.7rem;
  }
  .ind-accent {
    display: none;
  }
}

@media (max-width: 600px) {
  .ind-header {
    padding: 32px 20px 22px;
  }
  .ind-header h1 {
    font-size: 1.75rem;
  }
  .ind-section-inner {
    padding: 32px 20px;
    gap: 20px;
  }
  .ind-name {
    font-size: 1.45rem;
  }
  .ind-name::before {
    height: 22px;
    width: 3px;
  }
  .ind-blurb {
    font-size: 0.82rem;
  }
  .ind-stats {
    flex-wrap: wrap;
    border-radius: 8px;
  }
  .ind-stat {
    padding: 12px 16px;
    min-width: 0;
  }
  .ind-stat-value {
    font-size: 1.2rem;
  }
  .ind-cta {
    font-size: 0.78rem;
    padding: 10px 20px;
    border-radius: 6px;
  }
  .ind-board {
    border-radius: 10px;
  }
  .ind-board-header {
    padding: 14px 18px 12px;
  }
  .ind-row {
    padding: 11px 18px;
    grid-template-columns: 32px 1fr 42px;
    gap: 10px;
  }
  .ind-row--leader {
    padding: 14px 18px;
  }
  .ind-row--leader .ind-row-rank {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: 0.75rem;
  }
}
