/* Fuugu v2 additions (rim stages, user reviews, stats, notice, promo box, comments, sidebar) */

/* 4 stages of a blocked pipe */
.stages {
  background: linear-gradient(180deg, rgb(245, 248, 250) 0%, rgb(255, 255, 255) 100%);
  border: 1px solid rgb(222, 228, 234);
  border-radius: 12px;
  padding: 28px 24px;
  margin: 1.5em 0;
}

/* Severity scale: green -> amber -> orange -> red */
.stages-bar {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgb(46, 160, 67) 0%, rgb(240, 180, 0) 40%, rgb(240, 110, 20) 70%, rgb(213, 15, 12) 100%);
  margin: 24px 0 0;
}
.stage-1 { --sev: rgb(46, 160, 67); }
.stage-2 { --sev: rgb(220, 160, 0); }
.stage-3 { --sev: rgb(240, 110, 20); }
.stage-4 { --sev: rgb(213, 15, 12); }

.stages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0 6px;
}
.stage {
  position: relative;
  text-align: center;
  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(228, 228, 228);
  border-top: 4px solid var(--sev);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 22px 10px 14px;
}
.stage-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--sev);
  color: rgb(255, 255, 255);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 26px;
  box-shadow: 0 0 0 3px rgb(255, 255, 255);
}
.stage img { width: 100%; max-width: 120px; margin: 0 auto 10px; border-radius: 50%; }
.article-body .stage p { margin-bottom: 0.3em; line-height: 1.35em; }
.article-body .stage p:last-child { margin-bottom: 0; }
.stage .stage-num { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--sev); }
.stage .stage-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 16px; color: rgb(16, 16, 16); }
.stage .stage-desc { font-size: 14px; color: rgb(80, 80, 80); }

@media (max-width: 767px) {
  .stages { padding: 24px 16px; }
  .stages-bar { display: none; }
  .stages-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; margin-top: 22px; }
}

.promo-box {
  background-color: #FDFBD9;
  border-top: 10px solid #0D94E0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 30px 20px;
  margin: 1.5em 0;
  text-align: center;
}
.article-body .promo-box p { margin-bottom: 0.6em; }
.article-body .promo-box p:last-child { margin-bottom: 0; }
.promo-box .btn-cta { margin-top: 20px; }
.promo-title { font-family: 'Poppins', sans-serif; font-size: 26px; font-weight: 700; line-height: 1.2em; color: rgb(16, 16, 16); }

/* User reviews */
.user-review {
  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(228, 228, 228);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  margin: 0 0 28px;
}
.user-review-photo { width: 100%; display: block; }
.user-review-body { position: relative; padding: 22px 26px 24px; }
.user-review-body::before {
  content: "\201C";
  position: absolute;
  top: 2px;
  right: 22px;
  font-family: Georgia, serif;
  font-size: 80px;
  line-height: 1;
  color: rgb(217, 230, 237);
}
.user-review-stars { width: 100px; margin-bottom: 14px; }
.article-body .user-review-quote {
  position: relative;
  font-size: 17px;
  font-style: italic;
  line-height: 1.7em;
  color: rgb(45, 45, 45);
  margin-bottom: 18px;
}
.article-body .user-review-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: rgb(16, 16, 16);
  border-top: 1px solid rgb(238, 238, 238);
  padding-top: 16px;
  margin-bottom: 0;
}
.user-review-initial {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: rgb(12, 75, 136);
  color: rgb(255, 255, 255);
  font-size: 14px;
  line-height: 34px;
  text-align: center;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .user-review-body { padding: 18px 18px 20px; }
  .article-body .user-review-quote { font-size: 16px; }
}

.drain-list { list-style: none; padding-left: 0; }
.drain-list li { border-bottom: 1px solid rgb(232, 232, 232); padding: 8px 0; margin-bottom: 0 !important; }

.article-title { margin-bottom: 20px; }

.sidebar-img { width: 100%; border-radius: 8px; }

.article-body blockquote .quote-name { font-style: normal; font-weight: 700; margin-top: 8px; }

.article-fig { margin: 20px 0; }
.article-fig .article-img { margin: 0; }
.article-fig figcaption {
  font-size: 14px;
  line-height: 1.4em;
  color: rgb(108, 117, 125);
  margin-top: 6px;
}

/* Review meta: city and verified badge */
.user-review-meta { display: block; font-family: 'Open Sans', sans-serif; font-size: 13px; font-weight: 500; color: rgb(108, 117, 125); line-height: 1.4em; }
.user-review-verified { color: rgb(46, 160, 67); font-weight: 700; }

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 1.5em 0;
}
.stat {
  text-align: center;
  background-color: rgb(245, 248, 250);
  border: 1px solid rgb(222, 228, 234);
  border-radius: 10px;
  padding: 16px 10px;
}
.article-body .stat p { margin-bottom: 0; }
.stat-num { font-family: 'Poppins', sans-serif; font-size: 26px; font-weight: 800; line-height: 1.2em; color: #0D94E0; }
.stat-label { font-size: 14px; line-height: 1.35em; color: rgb(60, 60, 60); margin-top: 4px; }

/* Manufacturer notice */
.article-body .alert-box {
  background-color: rgb(253, 236, 234);
  border-left: 4px solid rgb(213, 15, 12);
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.55em;
  padding: 14px 18px;
}

/* Comments: verified badge next to the name */
.comment_verified { color: rgb(46, 160, 67); font-size: 12px; font-weight: 600; margin-left: 4px; }

/* Closing CTA below the floated comments box */
.btn-cta-end { clear: both; margin-top: 30px; }

/* Sidebar rating and feature list */
.sidebar-stars { text-align: center; font-size: 14px; line-height: 1.4em; color: rgb(80, 80, 80); margin-bottom: 14px; }
.sidebar-stars span { color: #FDBD00; letter-spacing: 1px; }
.sidebar-features { list-style: none; padding-left: 0; margin: 0 0 18px; font-size: 15px; line-height: 1.5em; }
.sidebar-features li { position: relative; padding-left: 24px; margin-bottom: 6px; }
.sidebar-features li::before { content: "\2713"; position: absolute; left: 0; color: rgb(46, 160, 67); font-weight: 800; }

@media (max-width: 767px) {
  .stats-row { grid-template-columns: 1fr; }
}
