/* Category pages (taxonomy-tool-category.php only). Loaded after custom.css. */

/* ── Section rhythm (same scale as the homepage) ── */
.cv2-section { padding: 56px 0; }
.cv2-section .fp-section__header, .cv2-section .cat-section__header { margin-bottom: 28px; }
@media (max-width: 767px) { .cv2-section { padding: 40px 0; } }

/* ── Hero: H1, sub, then the top 3 with their own CTAs ── */
.cv2-hero { padding-bottom: 40px; }
.cv2-hero .cat-hero__sub { max-width: 720px; margin-left: auto; margin-right: auto; }
.cv2-top3 { position: relative; z-index: 2; width: 100%; max-width: 1080px; margin: 26px auto 0; text-align: left; }
.cv2-top3__label { display: block; margin-bottom: 14px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #EC4899; }
.cv2-top3__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cv2-top {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px;
  background: linear-gradient(180deg, rgba(26,26,46,.97), rgba(19,19,31,.97));
  border: 1px solid rgba(168,85,247,.25); border-radius: 16px;
}
.cv2-top--first { border-color: rgba(236,72,153,.55); box-shadow: 0 0 28px rgba(236,72,153,.14); }
.cv2-top__badge {
  align-self: flex-start; max-width: 100%; padding: 3px 10px; border-radius: 999px;
  background: linear-gradient(135deg, #EC4899, #A855F7); color: #fff;
  font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cv2-top__head { display: flex; align-items: center; gap: 12px; }
.cv2-top__head img { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.cv2-top__name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; font-weight: 700; color: #F8F8FF; text-decoration: none; }
.cv2-top__name:hover { color: #EC4899; }
.cv2-top__stars { display: block; font-size: 13px; font-weight: 700; color: #FBBF24; }
.cv2-top__why { margin: 0; font-size: 14px; line-height: 1.5; color: #C9CED8; }
.cv2-top__cta { margin-top: auto; padding: 11px 16px; font-size: 15px; text-align: center; }
.cv2-top__micro { font-size: 12px; color: #9CA3AF; text-align: center; }
@media (max-width: 767px) {
  .cv2-hero { padding-bottom: 28px; }
  /* the old mobile rule orders badge 1, H1 2, sub 4: the top picks come after them */
  .cv2-top3 { order: 5; margin-top: 18px; }
  .cv2-top3__label { margin-bottom: 10px; }
  .cv2-top3__row {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -.5); padding: 0 calc(var(--bs-gutter-x, 1.5rem) * .5) 6px;
    scroll-padding: 0 calc(var(--bs-gutter-x, 1.5rem) * .5);
  }
  .cv2-top3__row::-webkit-scrollbar { display: none; }
  .cv2-top { flex: 0 0 84%; scroll-snap-align: start; padding: 16px; }
}

/* ── "In short" answer + jump chips ── */
.cv2-short { padding: 28px 0 4px; }
.cv2-short__text { max-width: 860px; margin: 0 auto 18px; font-size: 15px; line-height: 1.7; color: #C9CED8; text-align: center; }
.cv2-short__text strong { color: #F8F8FF; }
.cv2-short__text a { color: #F472B6; }
.cv2-jump { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.cv2-jump__label { font-size: 12px; font-weight: 600; color: #9CA3AF; margin-right: 2px; }
.cv2-jump a {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 5px; border-radius: 999px;
  background: #16162A; border: 1px solid rgba(168,85,247,.22); color: #E5E7EB;
  font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: border-color .2s, color .2s;
}
.cv2-jump a img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
.cv2-jump a:hover, .cv2-jump a:focus-visible { border-color: #EC4899; color: #fff; }
@media (max-width: 767px) {
  .cv2-short { padding-top: 20px; }
  .cv2-short__text { text-align: left; font-size: 14px; }
  .cv2-jump {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -.5); padding: 0 calc(var(--bs-gutter-x, 1.5rem) * .5) 4px;
  }
  .cv2-jump::-webkit-scrollbar { display: none; }
  .cv2-jump__label { flex: 0 0 auto; }
}

/* ── Ranked cards: same design, app name is now an H3 and the CTA names the app ── */
.cv2-rankings .cat-rank-card { scroll-margin-top: 84px; }
.cat-rank-card__title { margin: 0 0 6px; font-size: inherit; line-height: 1.2; }
.cat-rank-card__title .cat-rank-card__name { margin-bottom: 0; }
.cv2-rankings .cat-rank-card__cta-col { min-width: 168px; }
.cv2-rankings .cat-rank-card__review-link { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) {
  .cv2-rankings .cat-rank-card__cta-col { min-width: 0; flex-direction: column; align-items: stretch; gap: 10px; text-align: center; }
  .cv2-rankings .cat-rank-card__cta { width: 100%; font-size: 15px; padding: 13px 16px; }
}

/* ── How we picked: three short lines, no glowing boxes ── */
.cv2-hwt__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; max-width: 1000px; margin: 0 auto; padding: 0; list-style: none; }
.cv2-hwt__item { display: flex; align-items: flex-start; gap: 12px; }
.cv2-hwt__icon { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #EC4899, #A855F7); color: #fff; }
.cv2-hwt__item h3 { margin: 4px 0 6px; font-size: 16px; font-weight: 700; color: #F8F8FF; }
.cv2-hwt__item p { margin: 0; font-size: 14px; line-height: 1.6; color: #9CA3AF; }
@media (max-width: 767px) { .cv2-hwt__list { grid-template-columns: 1fr; gap: 18px; } }

/* ── Buying guide: intro, contents box, collapsed on phones ── */
.cv2-guide__intro { margin-bottom: 4px; }
.cv2-guide__toc { margin: 18px 0 26px; padding: 16px 20px; border-radius: 14px; background: #16162A; border: 1px solid rgba(168,85,247,.2); }
.cv2-guide__toc strong { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #EC4899; }
.cv2-guide__toc ol { margin: 0; padding-left: 20px; color: #9CA3AF; }
.cv2-guide__toc li { margin: 5px 0; }
.cv2-guide__toc a { color: #E5E7EB; text-decoration: none; }
.cv2-guide__toc a:hover { color: #F472B6; text-decoration: underline; }
.cv2-guide__wrap h3 { scroll-margin-top: 84px; }
.cv2-guide__more {
  display: none; align-items: center; justify-content: center; margin: 16px auto 0; padding: 12px 22px; border-radius: 12px;
  background: transparent; border: 1px solid rgba(236,72,153,.55); color: #F472B6; font-size: 15px; font-weight: 700; cursor: pointer;
}
.cv2-guide__more:hover { background: rgba(236,72,153,.1); }
@media (max-width: 767px) {
  .cv2-guide__wrap { position: relative; max-height: 680px; overflow: hidden; }
  .cv2-guide__wrap.is-open { max-height: none; overflow: visible; }
  .cv2-guide__wrap:not(.is-open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(180deg, rgba(13,13,26,0), #0D0D1A 85%); pointer-events: none; }
  .cv2-guide__more { display: flex; width: 100%; }
  .cv2-guide__more[hidden] { display: none; }
}

/* ── More rankings: same chips as the homepage hero ── */
.cv2-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.cv2-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 999px;
  background: #16162A; border: 1px solid rgba(236,72,153,.4); color: #F3F4F6;
  font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; transition: background .2s, border-color .2s, color .2s;
}
.cv2-chip svg { color: #F472B6; flex: 0 0 auto; }
.cv2-chip:hover, .cv2-chip:focus-visible { background: linear-gradient(135deg, #EC4899, #A855F7); border-color: transparent; color: #fff; }
.cv2-chip:hover svg, .cv2-chip:focus-visible svg { color: #fff; }
@media (max-width: 767px) {
  .cv2-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cv2-chips li { display: flex; }
  .cv2-chip { flex: 1 1 auto; justify-content: center; }
}
