/* book-chips.css: the three-book row (prompt 474).
   Moved here word for word from templates/war_room.html, where it was
   written for prompt 325, so The War Room and the Slip Tracker's Open
   Bets draw the same chips from the same rules (static/book-chips.js
   writes the markup). A change here changes both pages: take the War
   Room's pictures before and after (prompt 474's fixture). */
/* The top 3 books per play, best first (prompt 325, was one, Dan 2026-10-26:
   "too much text everywhere, I want simple"): logo, line, price and name, with
   the outline on the best. Every other book waits behind All Books. */
.price { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:8px; }
.price-meta { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:6px; }
.bk { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:6px 12px;
  border:1px solid var(--border); border-radius:10px; background:var(--bg3); color:var(--text); font-size:14px; }
.bk.is-best { border-color:var(--green); }
.bk img { width:24px; height:24px; border-radius:6px; display:block; }
.bk .bt { display:flex; flex-direction:column; line-height:1.2; }
.bk .nm { font-size:11px; color:var(--muted); }
/* Price age (prompt 436): small, under the book's name; a stale price greyed with its time, never hidden. */
.bk .tog-age { display:block; font-size:10px; color:var(--muted); white-space:nowrap; }
.bk.is-stale .px { opacity:.6; }
.bk .tog-age-stale { font-style:italic; }
.bk .yb { display:block; font-size:10px; color:var(--gold); white-space:nowrap; }
.price.top3 .yb { grid-column:2; grid-row:5; text-align:left; }
.bk .px { font-weight:700; }
.bk .bl { font-size:11px; font-weight:700; color:var(--green); }
.bk .ws { display:none; }
.others { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.others[hidden] { display:none; }
/* Phone: 3 equal buttons in one row, price on top, then a smaller logo and the
   book name, which wraps rather than cuts off. The same markup as desktop. */
@media (max-width:600px) {
  .price.top3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; align-items:stretch; }
  .price.top3 .bk { display:grid; grid-template-columns:auto auto; justify-content:center; align-content:center;
    gap:2px 3px; padding:6px 3px; text-align:center; font-size:12.5px; min-width:0; }
  .price.top3 .bt { display:contents; }
  .price.top3 .wl { display:none; }
  .price.top3 .ws { display:inline; }
  .price.top3 .px { grid-column:1 / -1; grid-row:1; white-space:nowrap; }
  .price.top3 .bl { grid-column:1 / -1; grid-row:2; font-size:10px; }
  .price.top3 img { grid-column:1; grid-row:3; width:14px; height:14px; border-radius:4px; align-self:center; }
  .price.top3 .nm { grid-column:2; grid-row:3; font-size:10px; line-height:1.15; min-width:0; text-align:left; }
  .price.top3 .tog-age { grid-column:2; grid-row:4; text-align:left; }
}
html.is-android-app a.bk { display:none !important; }
/* A book with no link (no link allowed, or the Android app) is a <span>: it
   showed the same button box as a link and a tap did nothing (prompt 372).
   It keeps the layout but drops the box; the best is marked by its green price. */
span.bk { background:none; border-color:transparent; cursor:default; }
span.bk.is-best .px { color:var(--green); }
