/* 2026-10-15 (Chris): "Browse the shelves" and "Starter kits" moved from the homepage to the bottom of /find/.
   Same cards as the homepage had (js/home.js renderShelves / renderKits), scoped to .home-lists so they never touch
   the Find page's own Tailwind styles. Dark mode: css/theme-dark.css already styles .shelf-* and .kit-* sitewide. */
.home-lists { --blue: #2563eb; --blue-600: #1d4ed8; --blue-50: #eff6ff; --ink: #111827; --ink-2: #374151; --muted: #4b5563; --line: #e5e7eb; }
html[data-theme="dark"] .home-lists { --blue: #3b82f6; --blue-600: #93c5fd; --blue-50: var(--d-blue-soft); --ink: var(--d-ink); --ink-2: var(--d-ink-2); --muted: var(--d-muted); --line: var(--d-line); }
.home-lists section.block { margin-top: 56px; }
.home-lists a { text-decoration: none; }
.home-lists .sec-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.home-lists .sec-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.2; color: var(--ink); }
.home-lists .sec-head p { font-size: 15px; color: var(--muted); margin-top: 4px; }
.home-lists .sec-link { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--blue-600); }
.home-lists .chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--blue-50); color: #1e40af; font-size: 12px; font-weight: 600; }
html[data-theme="dark"] .home-lists .chip { color: var(--d-blue-2); }
.home-lists .logo-fallback { display: inline-flex !important; align-items: center; justify-content: center; background: linear-gradient(135deg, #60a5fa, #2563eb); color: #fff; font-weight: 800; font-size: 13px; }
.home-lists .tabs { margin-left: auto; display: flex; gap: 6px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.home-lists .tabs button { padding: 8px 16px; min-height: 40px; border: none; border-radius: 8px; background: transparent; color: var(--ink-2); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.home-lists .tabs button.active { background: var(--blue); color: #fff; font-weight: 700; }
.home-lists .tabs button[hidden] { display: none; }
.home-lists .shelf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; min-height: 200px; }
.home-lists .shelf-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: transform 0.2s, box-shadow 0.2s; }
.home-lists .shelf-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.home-lists .shelf-visual { height: 176px; position: relative; background: #f3f4f6; }
.home-lists .shelf-shot { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.home-lists .shelf-logo-panel { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #eef2ff, #e0f2fe); }
.home-lists .shelf-logo-big { width: 76px; height: 76px; border-radius: 20px; background: #fff; box-shadow: 0 6px 18px rgba(30,58,138,0.18); object-fit: contain; padding: 6px; }
.home-lists .shelf-badge { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 6px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.home-lists .shelf-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.home-lists .shelf-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.home-lists .shelf-logo { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); object-fit: contain; background: #fff; flex-shrink: 0; }
.home-lists .shelf-name { font-size: 16px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-lists .shelf-score { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--blue); flex-shrink: 0; }
.home-lists .shelf-blurb { font-size: 14px; color: var(--muted); line-height: 1.45; }
.home-lists .stage { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.home-lists .stage-proven { background: #dcfce7; color: #166534; }
.home-lists .stage-new { background: #fff7ed; color: #9a3412; }
.home-lists .shelf-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; }
.home-lists .shelf-go { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--blue-600); }
.home-lists .empty { color: var(--muted); }
.home-lists .shelf-static, .home-lists .kit-static { display: block; }
.home-lists .kits-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.home-lists .kit-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); transition: all 0.2s; }
.home-lists .kit-card:hover { color: var(--ink); border-color: #a78bfa; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(109,40,217,0.12); }
.home-lists .kit-who { font-size: 12px; font-weight: 700; letter-spacing: 0.5px; color: #6d28d9; text-transform: uppercase; }
.home-lists .kit-title { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.home-lists .kit-logos { display: flex; gap: 8px; }
.home-lists .kit-logo { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; object-fit: contain; }
.home-lists .kit-names { font-size: 14px; color: var(--muted); }
.home-lists .kit-more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--blue-600); }
@media (prefers-reduced-motion: reduce) { .home-lists .shelf-card, .home-lists .kit-card { transition: none; } .home-lists .shelf-card:hover, .home-lists .kit-card:hover { transform: none; } }
@media (max-width: 1180px) { .home-lists .shelf-grid, .home-lists .kits-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .home-lists .shelf-grid, .home-lists .kits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-lists .tabs { margin-left: 0; } }
@media (max-width: 600px) {
  .home-lists .sec-head h2 { font-size: 22px; }
  .home-lists .tabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .home-lists .tabs::-webkit-scrollbar { display: none; }
  .home-lists .tabs button { flex-shrink: 0; }
  .home-lists .shelf-grid, .home-lists .kits-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -16px; padding: 4px 16px 14px; scrollbar-width: none; min-height: 0; }
  .home-lists .shelf-grid::-webkit-scrollbar, .home-lists .kits-grid::-webkit-scrollbar { display: none; }
  .home-lists .shelf-grid > *, .home-lists .kits-grid > * { flex: 0 0 82%; scroll-snap-align: start; }
  .home-lists .shelf-grid > .empty { flex-basis: 100%; }
  .home-lists .shelf-visual { height: 150px; }
}
