/* TreatShelf guide compare matrix — horizontal, crawlable <table> */
.ts-compare {
  margin: 2.25rem 0 0;
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--line, #d5ddd8);
}
.ts-compare__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
}
.ts-compare__head h2 {
  margin: 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink, #14201c);
}
.ts-compare__lede {
  margin: 0 0 0.9rem;
  max-width: 38rem;
  color: var(--muted, #6a7872);
  font-size: 0.98rem;
  line-height: 1.5;
}
.ts-compare__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.65rem;
}
.ts-compare__swipe {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: var(--brand, #0f3d32);
  font-size: 0.9rem;
  font-weight: 700;
}
.ts-compare__swipe svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  animation: ts-compare-nudge 1.4s ease-in-out infinite;
}
@keyframes ts-compare-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}
.ts-compare__dots {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.ts-compare__dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c5d2cb;
}
.ts-compare__dots span.is-on {
  background: var(--brand, #0f3d32);
  width: 16px;
  border-radius: 999px;
}

.ts-compare__scroller {
  position: relative;
  border: 1px solid var(--line, #d5ddd8);
  border-radius: var(--radius, 14px);
  background: #fff;
  overflow: hidden;
}
.ts-compare__scroller::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2.25rem;
  pointer-events: none;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.95));
  z-index: 3;
}
.ts-compare__scroller.is-end::after { opacity: 0; }
.ts-compare__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.ts-compare-matrix {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
  min-width: 100%;
}
.ts-compare-matrix th,
.ts-compare-matrix td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line, #d5ddd8);
  border-right: 1px solid var(--line, #d5ddd8);
  vertical-align: top;
  background: #fff;
}
.ts-compare-matrix tr:last-child th,
.ts-compare-matrix tr:last-child td { border-bottom: 0; }
.ts-compare-matrix th:last-child,
.ts-compare-matrix td:last-child { border-right: 0; }

.ts-compare-matrix .attr {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 5.75rem;
  min-width: 5.75rem;
  max-width: 5.75rem;
  background: var(--paper, #f3f6f2);
  color: var(--muted, #6a7872);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.25;
  box-shadow: 1px 0 0 var(--line, #d5ddd8);
}
.ts-compare-matrix thead .attr {
  z-index: 4;
  background: var(--paper-deep, #e7eee8);
  color: var(--brand, #0f3d32);
  font-size: 0.78rem;
}

.ts-compare-matrix .pick {
  width: min(58vw, 11.5rem);
  min-width: min(58vw, 11.5rem);
  max-width: 12.5rem;
}
@media (min-width: 720px) {
  .ts-compare-matrix .pick {
    width: 10.5rem;
    min-width: 10.5rem;
  }
  .ts-compare-matrix .attr {
    width: 7rem;
    min-width: 7rem;
    max-width: 7rem;
    font-size: 0.78rem;
  }
}

.ts-compare-pick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-height: 9.25rem;
}
.ts-compare-pick__rank {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand, #0f3d32);
  line-height: 1;
  height: 1.25rem;
  margin-bottom: 0.45rem;
  width: 100%;
}
.ts-compare-pick__rank span {
  color: var(--muted, #6a7872);
  font-size: 0.75rem;
  font-weight: 650;
  font-family: var(--font-body, system-ui, sans-serif);
  margin-left: 0.15rem;
}
.ts-compare-pick img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--paper, #f3f6f2);
  border: 1px solid var(--line, #d5ddd8);
  margin: 0 0 0.55rem;
  display: block;
}
.ts-compare-pick__name {
  margin: 0;
  width: 100%;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.25;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 4.6rem;
}
.ts-compare-pick__name .brand {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--brand, #0f3d32);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  min-height: calc(0.75rem * 1.25 * 2);
}
.ts-compare-pick__name .product {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.25;
  min-height: calc(0.88rem * 1.25 * 2);
  color: var(--ink, #14201c);
}

.ts-compare-matrix .cell {
  font-size: 0.88rem;
  line-height: 1.35;
  font-weight: 500;
  color: var(--ink, #14201c);
}
.ts-compare-matrix .standout {
  color: var(--safe, #1f6b4a);
  font-weight: 700;
}
.ts-compare-matrix .actions {
  padding-top: 0.55rem;
  padding-bottom: 0.75rem;
}
.ts-compare__buy,
.ts-compare__jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.55rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
}
.ts-compare__buy {
  background: #ff9900;
  color: #111 !important;
}
.ts-compare__jump {
  margin-top: 0.35rem;
  background: var(--paper-deep, #e7eee8);
  color: var(--brand, #0f3d32) !important;
}
.ts-compare__jump:hover { filter: brightness(0.97); }
