.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;
}

/* Mixed-category PickBento lists use the evidence-led Hook rail while keeping the PickBento CTA. */
.hook-box {
  align-content: center;
  gap: 12px;
  text-align: center;
}

.hook-box .pick-hook {
  margin: 0;
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.18;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.hook-box .pick-best-for {
  margin: 0;
  color: #344054;
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.editorial-note,
.article-section,
.source-note {
  margin: 0 auto 18px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(23, 32, 42, 0.05);
}

.editorial-note {
  border-left: 4px solid var(--brand);
  color: #475467;
}

.editorial-note p,
.article-section p,
.source-note p {
  margin: 0;
  color: #475467;
}

.article-section h2,
.source-note h2 {
  margin: 0 0 12px;
  color: #17202a;
  font-size: 28px;
  line-height: 1.18;
}

.article-section .info-grid {
  margin-top: 18px;
}

.article-section .info-card {
  box-shadow: none;
}

.article-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: #475467;
}

.article-list li::marker {
  color: var(--brand);
}

.faq-section details {
  border-top: 1px solid #e5e7eb;
  padding: 14px 0;
}

.faq-section details:last-child {
  padding-bottom: 0;
}

.faq-section summary {
  cursor: pointer;
  color: #17202a;
  font-weight: 850;
}

.faq-section details p {
  margin-top: 8px;
}

.source-note {
  margin-bottom: 34px;
  background: #f8faf9;
}

@media (max-width: 640px) {
  .editorial-note,
  .article-section,
  .source-note {
    padding: 18px 16px;
  }

  .article-section h2,
  .source-note h2 {
    font-size: 24px;
  }
}

@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;
  }

  .rank-body > a:first-child {
    display: grid;
    width: 100%;
    min-width: 0;
    place-items: center;
  }

  .rank-body > a:first-child .product-img {
    margin: 0;
  }
}

/* Babyphones page: let the product art use its full media panel and keep the CTA dominant. */
.babyphones-page .rank-body {
  grid-template-columns: 280px minmax(0, 1fr) 176px;
}

.babyphones-page .product-img {
  width: 100%;
  height: 280px;
  padding: 0;
  display: block;
  object-fit: cover;
  background: #f8fafb;
}

.babyphones-page .score {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.babyphones-page .score strong {
  font-size: 28px;
  line-height: 1.08;
}

.babyphones-page .score span {
  font-size: 11px;
  line-height: 1.2;
}

.babyphones-page .cta {
  min-height: 50px;
  font-size: 16px;
  white-space: nowrap;
}

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

  .babyphones-page .product-img {
    height: 200px;
  }

  .babyphones-page .score strong {
    font-size: 26px;
  }
}

@media (max-width: 640px) {
  .babyphones-page .rank-body {
    grid-template-columns: 1fr;
  }

  .babyphones-page .product-img {
    width: min(100%, 320px);
    max-width: 320px;
    height: 320px;
    margin: 0 auto;
  }

  .babyphones-page .score strong {
    font-size: 24px;
  }

  .babyphones-page .site-footer {
    grid-template-columns: 1fr;
  }

  .babyphones-page .footer-links {
    max-width: 100%;
    gap: 8px 12px;
  }
}

/* Hair dryer list: keep the model name clear while the CTA leads the action area. */
.hair-dryer-page .product-copy h2 {
  font-size: 24px;
  line-height: 1.2;
}

.hair-dryer-page .product-img {
  padding: 8px;
}

.hair-dryer-page .score {
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hair-dryer-page .score strong {
  font-size: 28px;
  line-height: 1.05;
}

.hair-dryer-page .score span {
  font-size: 11px;
  line-height: 1.2;
}

.hair-dryer-page .cta {
  min-height: 50px;
  font-size: 16px;
  white-space: nowrap;
}

.hair-dryer-page .product-img-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  border: 1px solid #edf0f2;
  background: #f8fafb;
  color: #667085;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 920px) {
  .hair-dryer-page .score strong {
    font-size: 26px;
  }
}

@media (max-width: 640px) {
  .hair-dryer-page .product-copy h2 {
    font-size: 21px;
  }

  .hair-dryer-page .score strong {
    font-size: 24px;
  }

  .hair-dryer-page .cta {
    min-height: 48px;
    font-size: 15px;
  }

  .hair-dryer-page .product-img-placeholder {
    width: min(100%, 320px);
    margin: 0 auto;
  }
}

/* Numeric ranking scores: keep the score prominent while leaving the CTA dominant. */
.numeric-score-page .score {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.numeric-score-page .score strong {
  font-size: 40px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.numeric-score-page .score span {
  font-size: 12px;
  line-height: 1.2;
}

.numeric-score-page .cta {
  min-height: 50px;
  font-size: 16px;
  white-space: nowrap;
}

.vibration-plate-page .newsletter-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.vibration-plate-page .newsletter-form label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.vibration-plate-page .newsletter-form div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.vibration-plate-page .newsletter-form input {
  min-width: 0;
  min-height: 46px;
  border: 1px solid #b9c7d5;
  border-radius: 6px;
  padding: 0 13px;
  font: inherit;
}

.vibration-plate-page .newsletter-form button {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: var(--orange);
  color: #101828;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 640px) {
  .vibration-plate-page .newsletter-form div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .numeric-score-page .score strong {
    font-size: 36px;
  }

  .hook-box {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .numeric-score-page .score {
    min-height: 76px;
  }

  .numeric-score-page .score strong {
    font-size: 32px;
  }

  .numeric-score-page .score span {
    font-size: 11px;
  }

  .numeric-score-page .cta {
    min-height: 48px;
    font-size: 15px;
  }
}
