/* ===========================================================================
   /boosts — boosted payouts
   ---------------------------------------------------------------------------
   One card per offer, then the table of everything those offers cover. The
   cards and the table are deliberately different shapes: the table is a price
   ladder you scan down a column, and the cards are a
   handful of distinct offers, each of which has to say its figure, its reach
   and its deadline. A table would make the figure — the only thing anybody is
   here for — the smallest thing on the row.

   GREEN IS THE BOOST. Same as the bar at the top of every page and the same
   as a boosted price anywhere on the site: if it is green, it is extra money.
   ======================================================================== */

.bst {
  padding-top: 34px;
  padding-bottom: 80px;
}

.bst-head { margin-bottom: 26px; }
.bst-head h1 {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 900; line-height: 1.05;
  letter-spacing: -0.02em; text-transform: uppercase;
  margin: 0 0 8px;
  color: var(--ink);
}
.bst-head .lede {
  margin: 0; max-width: 64ch;
  font-size: 16px; line-height: 1.6;
  color: var(--ink-55);
}
.bst-head .lede strong { color: var(--ink); font-weight: 700; }

/* Two across on a desktop, one on a phone. Not three: an offer's "Covers"
   row can carry seven platform chips, and a 380px column turns that into
   five lines of chips under two lines of heading. */
.bst-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  /* START, not the grid default of STRETCH.
     While each card carried three worked examples they were all much the same
     height and stretching was invisible. Without them a card is as tall as its
     chip list, and one offer covering seven Sega platforms wraps to two rows
     and drags its neighbour down with it -- leaving a panel of empty card
     under an offer that covers one platform. Each card is now its own
     height. */
  align-items: start;
}

.bst-card {
  background: var(--card);
  border: 2px solid var(--ink);
  display: flex; flex-direction: column;
}

.bst-top {
  display: flex; align-items: stretch; gap: 0;
  border-bottom: 1px solid var(--line-3);
}

/* The figure, in its own block of colour. It is why anybody opened the page. */
.bst-pct {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  min-width: 96px; padding: 16px 14px;
  margin: 0;
  background: var(--green); color: #F2FBF6;
  font-family: var(--font-mono);
  font-size: 24px; font-weight: 700; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.bst-what { flex: 999 1 auto; min-width: 0; padding: 14px 16px; }
.bst-what h2 {
  margin: 0 0 5px;
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700; line-height: 1.25;
  color: var(--ink);
}

.bst-meta {
  margin: 0;
  display: flex; flex-wrap: wrap; gap: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
}
/* Who is actually buying it. Said on every card rather than only on the
   partner's, because "CATRP" on the others is what makes the distinction
   readable — one unlabelled card among labelled ones reads as an oversight. */
.bst-who  { color: var(--ink-40); }
.bst-ends { color: var(--red-dark); font-weight: 700; }

.bst-k {
  margin: 0 0 7px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-40);
}

.bst-cats { padding: 14px 16px; border-bottom: 1px solid var(--line-4); }
.bst-chips {
  margin: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.bst-chip {
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid var(--line-2); background: var(--paper);
  font-size: 12.5px; color: var(--ink-70); text-decoration: none;
}
a.bst-chip:hover { border-color: var(--ink); color: var(--ink); }
a.bst-chip:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* --- The worked examples ------------------------------------------------ */

.bst-eg { padding: 14px 16px 16px; flex: 1; }
.bst-eg ul { margin: 0; padding: 0; list-style: none; }
/* The row is now art-beside-line rather than one flat line, so the old
   baseline layout moved down a level onto .bst-eg-line. A row with no art has
   one child and behaves exactly as it did. */
.bst-eg li {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--line-4);
  font-size: 13.5px;
}
.bst-eg li:first-child { border-top: 0; padding-top: 0; }

.bst-eg-line {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 8px;
}

/* --- The lead example --------------------------------------------------- */
/* The dearest of the three, because the list is sorted that way. Bigger type
   and a bigger figure, which is what makes it read as the highlight — the art
   is the bonus, and a quarter of the hardware pool has none. */
.bst-lead { padding-bottom: 12px; }

.bst-lead-art {
  flex: 0 0 auto;
  display: block; width: 66px; height: 66px;
  padding: 5px;
  background: var(--sunk); border: 1px solid var(--line-3);
}
/* contain, never cover: box art is portrait, square and landscape depending
   on the platform, and cropping a cover to fill a square box cuts the title
   off the top of it. */
.bst-lead-art img { display: block; width: 100%; height: 100%; object-fit: contain; }

.bst-lead .bst-eg-line { gap: 4px 9px; }
.bst-lead a { font-size: 15.5px; font-weight: 700; }
.bst-lead .bst-eg-cond { font-size: 11px; }
.bst-lead .money-was { font-size: 12px; }
.bst-lead .money-paid { font-size: 17px; }

/* The rule under the lead does a little more work than the one between the
   two rows below it, because it is separating a highlight from a list. */
.bst-lead + li { border-top-color: var(--line-3); }

/* text-decoration, not border-bottom. A border is drawn on the BOX, and the
   box is a flex item that stretches: "Kuon" is 33px of text in a 345px link,
   so the rule ran 312px past the word and read as a dotted leader somebody
   had got wrong. An underline follows the glyphs. */
.bst-eg a {
  flex: 0 1 auto; min-width: 0;
  color: var(--ink); font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 2px;
}
.bst-eg a:hover { color: var(--red); text-decoration-color: var(--red); }

.bst-eg-cond {
  flex: 0 0 auto;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-40);
}
.bst-eg-money {
  flex: 0 0 auto;
  display: flex; align-items: baseline; gap: 7px;
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

/* --- Nothing running ---------------------------------------------------- */

.bst-none {
  background: var(--card); border: 2px solid var(--ink);
  padding: 34px 30px; text-align: center;
  max-width: 560px; margin: 0 auto;
}
.bst-none-head {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 21px; font-weight: 700;
  color: var(--ink);
}
.bst-none p { margin: 0 0 18px; color: var(--ink-55); line-height: 1.6; }
.bst-none a.cta { display: inline-flex; }

@media (max-width: 860px) {
  .bst-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .bst { padding-top: 24px; padding-bottom: 60px; }
  .bst-head h1 { font-size: 28px; }
  .bst-pct { min-width: 78px; font-size: 20px; padding: 14px 10px; }
  .bst-what { padding: 12px 13px; }
  .bst-cats, .bst-eg { padding-left: 13px; padding-right: 13px; }
  /* The money keeps its own line rather than being squeezed against the
     condition label — these are the two things being compared. */
  .bst-eg-money { margin-left: 0; }
}

/* ---------------------------------------------------------------------------
   EVERY BOOSTED ITEM

   The table itself is /browse's .pricetable, loaded from browse.css — same
   grid, same phone card transform, same crew-note row. Only the furniture
   around it is here.
   --------------------------------------------------------------------------- */
.bst-all { margin-top: 54px; padding-top: 30px; border-top: 2px solid var(--ink); }

.bst-all-head {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  align-items: baseline; justify-content: space-between;
  margin-bottom: 18px;
}
.bst-all-head h2 { margin: 0; font-size: 28px; }
.bst-all-n { margin: 0; font-size: 15px; color: var(--ink-70); }
.bst-all-n .num { font-weight: 700; color: var(--ink); }

.bst-tools { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }

.bst-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bst-search input[type="search"] {
  flex: 1 1 280px; min-width: 0;
  padding: 10px 12px; font: inherit; font-size: 15px;
  border: 1px solid var(--line-2); background: var(--paper); color: var(--ink);
}
.bst-search input[type="search"]:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.bst-clear { font-size: 13px; color: var(--ink-70); }

/* The platform picker reuses .chip-sub from counter.css, the same control
   /browse and /categories use for subcategories, so a chip means the same
   thing everywhere on the site: "this narrows the list below". */
.bst-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.bst-pick .chip-sub { display: inline-flex; align-items: baseline; gap: 6px; }
.bst-pick .chip-sub.is-current {
  background: var(--ink); border-color: var(--ink); color: var(--paper); cursor: default;
}
.bst-pick .chip-sub.is-current:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
/* The count is a supporting figure, not the label — it should not compete
   with the platform name for the eye. */
.bst-pick-n { font-family: var(--font-mono); font-size: 10px; opacity: 0.7; }

.bst-group { margin: 26px 0 10px; font-size: 19px; }
.bst-group:first-of-type { margin-top: 0; }

.bst-all-empty {
  padding: 22px; background: var(--card); border: 1px solid var(--line);
  font-size: 15px; color: var(--ink-70);
}
.bst-all-empty p { margin: 0 0 10px; }

.bst-csv { margin: 18px 0 0; font-size: 14px; }
.bst-csv-say { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-55); }

@media (max-width: 900px) {
  .bst-all { margin-top: 36px; padding-top: 22px; }
  .bst-all-head h2 { font-size: 23px; }
  /* 44px targets, matching every other chip row on the site. */
  .bst-pick .chip-sub { padding: 0 13px; min-height: var(--tap); align-items: center; }
  .bst-search .cta-ghost { min-height: var(--tap); }
}
