.rank-page {
  background: #f3f5f7;
  color: var(--ink);
}

.rank-shell {
  width: min(1060px, calc(100% - 28px));
  margin: 0 auto;
}

.rank-topbar {
  background: #17202a;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  padding: 9px 16px;
}

.rank-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 5;
}

.rank-nav {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rank-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rank-actions a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0 12px;
  text-decoration: none;
  color: #475467;
  font-size: 13px;
  font-weight: 850;
}

.rank-actions a:hover {
  background: #fff7ed;
  color: var(--deal-dark);
}

.rank-hero {
  margin: 22px auto 18px;
  padding: 26px 28px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(23, 32, 42, 0.08);
  text-align: center;
}

.updated {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff4ec;
  color: var(--deal-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  padding: 0 12px;
  text-transform: uppercase;
}

.rank-hero h1 {
  max-width: 820px;
  margin: 12px auto 10px;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: 0;
}

.rank-hero .lead {
  max-width: 720px;
  margin: 0 auto;
  color: #667085;
  font-size: 17px;
}

.ranking-layout {
  display: block;
  padding-bottom: 34px;
}

.rank-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(23, 32, 42, 0.07);
}

.rank-card.featured {
  border: 2px solid var(--deal);
  box-shadow: 0 16px 38px rgba(249, 115, 22, 0.16);
}

.rank-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #17202a;
  color: #fff;
  padding: 10px 16px;
  font-weight: 950;
  font-size: 13px;
  text-transform: uppercase;
}

.rank-ribbon .tag {
  background: var(--deal);
  border-radius: 999px;
  padding: 5px 10px;
}

.rank-body {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 176px;
  gap: 22px;
  padding: 18px;
  align-items: center;
}

.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #edf0f2;
  background: #fff;
  padding: 12px;
}

.best-for {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: #eaf7f5;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 950;
  padding: 0 10px;
  text-transform: uppercase;
}

.product-copy h2 {
  margin: 10px 0 8px;
  font-size: 26px;
  line-height: 1.16;
  letter-spacing: 0;
}

.product-copy p {
  color: #475467;
  margin: 0 0 12px;
  font-size: 15px;
}

.bullets {
  display: grid;
  gap: 7px;
  color: #475467;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 14px;
}

.bullets li {
  position: relative;
  padding-left: 24px;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--green);
}

.bullets li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.score-box {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.score {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 10px;
  text-align: center;
  background: #f8faf9;
}

.score strong {
  display: block;
  color: #17202a;
  font-size: 40px;
  line-height: 1;
}

.score span {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.cta {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 8px;
  background: var(--deal);
  color: #fff;
  font-weight: 950;
  padding: 0 14px;
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.22);
}

.cta:hover {
  background: var(--deal-dark);
}

.subtle-note {
  color: #667085;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 920px) {
  .rank-body {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .score-box {
    grid-column: 1 / -1;
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: center;
  }
}

@media (max-width: 640px) {
  .rank-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .rank-hero {
    padding: 20px 16px;
  }

  .rank-hero h1 {
    font-size: 32px;
  }

  .rank-ribbon {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-body,
  .score-box {
    grid-template-columns: 1fr;
  }

  .product-img {
    max-width: 260px;
    margin: 0 auto;
  }
}
