/* /best/ — comparison ranking page (T54). Loaded via front-matter "styles"; tokens come from css/critical.css. */
.best-hero {
  width: min(1100px, 100%);
  margin-inline: auto;
  padding: clamp(20px, 4vh, 40px) clamp(20px, 5vw, 64px) clamp(36px, 6vh, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.best-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1rem + 4.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.best-hero__title em { font-style: normal; color: var(--glow); }
.best-hero__lead {
  color: var(--muted);
  max-width: 58ch;
  margin: 20px 0 0;
  font-size: clamp(1.02rem, 1rem + 0.25vw, 1.15rem);
}
.best-hero__meta {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.best-hero__meta li {
  border: 1px solid oklch(0.62 0.17 145 / 0.45);
  background: oklch(0.62 0.17 145 / 0.08);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
}
.best-hero__art img {
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px oklch(0 0 0 / 0.5), 0 0 60px oklch(0.62 0.17 145 / 0.18);
}

/* jump chips */
.best-jump {
  width: min(1100px, 100%);
  margin-inline: auto;
  padding: 0 clamp(20px, 5vw, 64px) clamp(28px, 4vh, 48px);
}
.best-jump ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  counter-reset: jump;
}
.best-jump a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px 8px 10px;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--surface);
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.best-jump a:hover { border-color: oklch(0.62 0.17 145 / 0.6); transform: translateY(-2px); }
.best-jump a b {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--glow);
  font-size: 0.85rem;
  min-width: 1.4em;
  text-align: center;
}

/* generic content sections */
.best-section {
  width: min(1100px, 100%);
  margin-inline: auto;
  padding: clamp(40px, 7vh, 80px) clamp(20px, 5vw, 64px) 0;
}
.best-section--narrow { width: min(820px, 100%); }
.best-section p { color: var(--muted); max-width: 70ch; }
.best-section p strong { color: var(--ink); }
.best-section a { color: var(--glow); text-underline-offset: 3px; }
.best-section ul { color: var(--muted); max-width: 70ch; padding-left: 1.2em; }
.best-section li + li { margin-top: 6px; }
.best-section .section-title { max-width: 26ch; }
.best-formula {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.8vw, 1.5rem);
  color: var(--ink);
  border: 1px solid oklch(0.62 0.17 145 / 0.45);
  background: oklch(0.62 0.17 145 / 0.07);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 16px 0 20px;
  max-width: 100%;
}

/* comparison table: the wrapper scrolls horizontally on small screens, the document itself never does */
.best-table__wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  margin-top: 20px;
}
.best-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 900px;
  font-size: 0.93rem;
}
.best-table caption {
  text-align: left;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 14px 16px 0;
  caption-side: top;
}
.best-table th, .best-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}
.best-table thead th {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.best-table tbody tr:last-child td { border-bottom: 0; }
.best-table td:first-child, .best-table th:first-child { font-family: var(--font-display); color: var(--glow); }
.best-table a { color: var(--ink); text-underline-offset: 3px; }
.best-table cite { font-style: normal; font-weight: 600; }
.best-table__num { font-variant-numeric: tabular-nums; }
.best-table__hint { font-size: 0.85rem; margin-top: 10px; }

/* pure-CSS rating bar (aria-label carries the value) */
.rate { display: inline-flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.rate__bar {
  width: 88px;
  height: 8px;
  border-radius: 4px;
  background: oklch(1 0 0 / 0.12);
  overflow: hidden;
  flex: none;
}
.rate__bar i { display: block; height: 100%; width: var(--v, 0%); background: var(--glow); border-radius: 4px; }
.rate__value { font-weight: 600; }

/* app cards */
.app-list { display: grid; gap: clamp(18px, 3vh, 28px); margin-top: 24px; }
.app-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--surface);
  scroll-margin-top: 96px;
}
.app-card:target { border-color: oklch(0.62 0.17 145 / 0.7); box-shadow: 0 0 0 4px oklch(0.62 0.17 145 / 0.15); }
.app-card__head { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.app-card__rank { font-family: var(--font-display); color: var(--glow); font-size: 1.5rem; line-height: 1; }
.app-card h3 { font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + 0.9vw, 1.6rem); line-height: 1.2; }
.app-card h3 cite { font-style: normal; }
.app-card__meta {
  list-style: none;
  padding: 0;
  margin: 12px 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.9rem;
}
.app-card__meta b { color: var(--ink); font-weight: 600; }
.app-card p { color: var(--muted); max-width: 72ch; margin: 0; }
.app-card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.app-card .btn { padding: 12px 20px; font-size: 0.95rem; }
.app-card .btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.app-card .btn--ghost:hover { border-color: oklch(0.62 0.17 145 / 0.6); }

/* what each description says about price */
.price-list { display: grid; gap: 10px; margin: 20px 0 0; max-width: 70ch; }
.price-list div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.price-list dt { font-weight: 600; color: var(--ink); }
.price-list dd { margin: 0; color: var(--muted); }

/* CTA (same look as .cta-best, but pointing to /picker/ + guides — this page IS /best/) */
.best-cta { margin-top: clamp(48px, 8vh, 80px); }

@media (max-width: 880px) {
  .best-hero { grid-template-columns: 1fr; }
  .best-hero__art { max-width: 520px; }
  .price-list div { grid-template-columns: 1fr; gap: 4px; }
}
