/* Product-only rules for fp pages (build plan 1:1, section 4: "product-only rules go in a separate, listed file").
   Listed in tasks/FP-TRACER.md. The market page is served with both of design's bodies (phone, frame P2; desktop, frame
   D3), each a direct child of body; fp.css styles the phone one below 900px and the desktop one from 900px. Before the
   page's script keeps only the matching one (src/fp/client/market.js), and without script, the other is not shown. */
@media (max-width:899.98px){body>.win.ref-page{display:none}}
@media (min-width:900px){body>.ph{display:none}}

/* A shared card's link (&item=, from Discovery's "Talked about now" too) scrolls its card to the top: for a card in "Other news
   and posts" (no id of its own) keep it below the sticky bar. */
[data-ref*="others.item["]{scroll-margin-top:80px}

/* sx-mobile-390's 44px tap-target overrides (d51cf6e2) were folded into design's fp.css by RULES 53.8 (journeys/sx53.css,
   pin 955319e2) and are gone from here: design's pinned rules win (the lens chips sit 12px down, not 6). */

/* RULES 55.5: the trial's computer dialog over Home (src/fp/client/trial.js) scrolls inside when the Free pick's rows make it
   taller than the screen, so "Keep this one on Free" stays reachable (the phone sheet already scrolls: fp.css .sheet). */
@media (min-width:900px){.fptrial .scrim.sfix>.dlg{max-height:calc(100vh - 96px);overflow-y:auto;overscroll-behavior:contain}}

/* sx-200pct-sweep: a section head's link keeps its own width. Its min-width (44px, fp.css .more) stands in for the text's,
   so at 200% text on a phone "Discovery ›" shrank below its text (measured: "›" on a second line, "Discovery" running
   left over "Or start with what's moving"); the caption wraps instead. */
.mh>.more{flex-shrink:0}
