/* Homepage prototype 2 (/home2): "Top rated right now". Built on app.css's tokens and components. */
.h2-page { max-width: 1240px; }
.h2-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); }

/* hero ------------------------------------------------------------------ */
.h2-hero { padding: 18px 0 30px; border-bottom: 2px solid var(--rule-strong); }
.h2-title { margin: 8px 0 0; font-weight: 820; font-size: clamp(40px, 6.4vw, 76px); line-height: .95;
  font-variation-settings: "wdth" 72; letter-spacing: -0.025em; }
.h2-dek { max-width: 62ch; margin: 16px 0 0; font-family: var(--f-read); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5;
  color: var(--ink-2); text-wrap: pretty; }
.h2-dek .tip { vertical-align: 2px; }
.h2-search { display: flex; gap: 8px; max-width: 640px; margin-top: 22px; }
.h2-search input { flex: 1; min-width: 0; height: 50px; padding: 0 18px; border: 1.5px solid var(--rule); border-radius: 999px;
  background: var(--sheet); font-size: 16px; outline: none; }
.h2-search input:focus { border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--cobalt-wash); }
.h2-go { flex: none; height: 50px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-weight: 700; }
.h2-go:hover { background: var(--cobalt); color: #fff; }
.h2-jump { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 20px; }
.h2-jump a { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--sheet);
  font-size: 13.5px; font-weight: 550; color: var(--ink-2); }
.h2-jump a:hover { border-color: var(--cobalt); color: var(--cobalt); }

/* band headings ----------------------------------------------------------- */
.h2-band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap;
  margin: 38px 0 16px; }
.h2-band-head h2, .h2-more h2 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 780; line-height: 1.05;
  font-variation-settings: "wdth" 80; letter-spacing: -0.015em; }
.h2-band-head a { color: var(--cobalt); font-weight: 600; font-size: 14px; }
.h2-band-head span { color: var(--ink-3); font-size: 14px; }

/* editor's picks: the buying guides --------------------------------------- */
.h2-gcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.h2-gcard { display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg);
  overflow: hidden; color: var(--ink); transition: border-color .15s, transform .15s; }
.h2-gcard:hover { border-color: var(--cobalt); color: var(--ink); transform: translateY(-2px); }
.h2-gart { height: 168px; background: #fff; display: grid; place-items: center; border-bottom: 1px solid var(--rule); }
.h2-gart img { height: 140px; width: auto; max-width: 80%; object-fit: contain; }
.h2-gbody { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.h2-gbody h3 { margin: 6px 0 6px; font-size: 21px; font-weight: 760; line-height: 1.12; font-variation-settings: "wdth" 84; }
.h2-gcard:hover h3 { color: var(--cobalt); }
.h2-gbody p { margin: 0; font-family: var(--f-read); font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.h2-gpick { margin-top: auto; padding-top: 12px; font-size: 13px; color: var(--ink-3); }
.h2-gpick b { color: var(--ink); font-weight: 650; }

/* the leaderboard ---------------------------------------------------------- */
.h2-board-head { padding-top: 26px; border-top: 1px solid var(--rule); }
.h2-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.h2-sec { min-width: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 16px 18px 12px;
  scroll-margin-top: calc(var(--header-h) + 14px); }
.h2-sec-head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.h2-sec-n { font-family: var(--f-code); font-size: 12px; color: var(--ink-3); }
.h2-sec-title { margin: 0; flex: 1; min-width: 0; font-size: 22px; font-weight: 760; line-height: 1.1; font-variation-settings: "wdth" 84; }
.h2-sec-meta { flex: none; color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.h2-list { list-style: none; margin: 0; padding: 0; }
.h2-item { position: relative; display: grid; grid-template-columns: 22px 60px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--rule); }
.h2-item:last-child { border-bottom: 0; }
.h2-cover { position: absolute; inset: 0; z-index: 1; border-radius: var(--r-sm); }
.h2-rank { font-weight: 800; font-size: 26px; line-height: 1; font-variation-settings: "wdth" 70; color: var(--ink-3); text-align: center; }
.h2-item:first-child .h2-rank { color: var(--cobalt); }
.h2-thumb.thumb { width: 60px; height: 60px; }
.h2-info { min-width: 0; overflow-wrap: anywhere; }
.h2-name { font-weight: 640; font-size: 15.5px; line-height: 1.25; margin: 1px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h2-item:hover .h2-name { color: var(--cobalt); }
.h2-why { position: relative; margin: 5px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.h2-why::before { content: ""; position: absolute; left: 2px; top: 4px; width: 5px; height: 9px; border: solid var(--good);
  border-width: 0 2px 2px 0; transform: rotate(45deg); }
.h2-score { align-self: center; }
.h2-sec-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding-top: 10px;
  border-top: 1px solid var(--rule); font-size: 14px; }
.h2-all { color: var(--cobalt); font-weight: 650; }
.h2-guide-link { color: var(--ink-2); font-weight: 550; text-decoration: underline; text-underline-offset: 3px; }

/* every category ----------------------------------------------------------- */
.h2-more { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--rule); }
.h2-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.h2-chips a { display: inline-flex; gap: 6px; align-items: baseline; padding: 7px 13px; border-radius: 999px;
  background: var(--sheet); border: 1px solid var(--rule); font-size: 14px; font-weight: 550; }
.h2-chips a:hover { border-color: var(--cobalt); }
.h2-chips span { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

@media (max-width: 1000px) {
  .h2-board { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .h2-hero { padding-top: 4px; }
  .h2-go { padding: 0 16px; }
  .h2-gcards { grid-template-columns: minmax(0, 1fr); }
  .h2-gcard { flex-direction: row; }
  .h2-gart { flex: none; width: 96px; height: auto; border-bottom: 0; border-right: 1px solid var(--rule); }
  .h2-gart img { height: 84px; max-width: 84px; }
  .h2-gbody { padding: 12px 14px; }
  .h2-gbody h3 { font-size: 18px; }
  .h2-gbody p { font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .h2-sec { padding: 14px 14px 10px; }
  .h2-item { grid-template-columns: 18px 52px minmax(0, 1fr); grid-template-areas: "rank img info" "rank img score"; gap: 4px 10px; align-items: start; }
  .h2-rank { grid-area: rank; font-size: 22px; padding-top: 2px; }
  .h2-thumb.thumb { grid-area: img; width: 52px; height: 52px; }
  .h2-info { grid-area: info; }
  .h2-score { grid-area: score; }
  .h2-score .score .val { font-size: 16px; }
}
