/* fixall1120 (pack 40) */
/* B1: rank badge moves to the lower-left of the art box (off the name and mana cost); the Prices pill sits under the card */
#t10Row .t10-tile .c27-front .rank{top:auto!important;bottom:46%!important;left:4px!important;transform:none!important}
#t10Row .t10-tile .c27-btn,#mvRow .t10-tile .c27-btn{position:static!important;display:inline-flex!important;margin:6px 0 0!important;align-self:flex-start}
/* I10: the best-sellers heading keeps its week on phones */
@media (max-width:640px){#sample-h .rd-wk{display:inline!important;font-size:0!important}#sample-h .rd-wk #t10Week{display:inline!important;font-size:15px!important;font-weight:600;margin-left:4px}}
/* C2: front price under the set name; the "new card" note is said once (banner), not on every tile */
.f40-front{font-size:.85rem;margin:2px 0 0;line-height:1.3}
.f40-front b{font-size:1rem}
#t10Row .t10-tile > a.mv-link > .pc[data-kind="new"]{display:none!important}
/* B4: one move figure per tile (the 7-day badge); the 14-check trend line that can disagree is hidden */
.c27-back:has(.mv-badge) .c27-spark,.mv-tile:has(.mv-badge) .c27-spark{display:none!important}
/* B6: wide tables scroll inside their box on phones */
@media (max-width:640px){
  .i18-nau table,#watch table,.f40-scroll{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  main{overflow-wrap:anywhere}
}
/* B7: Check a price + FAQ in the phone More menu; the homepage More menu shows every link */
.f40-ph{display:none}
@media (max-width:640px){#g-more-menu .f40-ph{display:list-item}}
#g-more-menu .lk-dup{display:list-item!important}
/* I3: theme toggle on pages that had none */
.f40-tools{display:flex;align-items:center;margin-left:8px}
.f40-tt{background:var(--soft,#eef);color:var(--green-dark,#14532D);border:1px solid var(--line,#ccc);border-radius:999px;padding:6px 12px;font:inherit;font-size:.85rem;font-weight:700;cursor:pointer;min-height:32px}
/* I2/C4: one footer nav */
.f40-foot{display:block;line-height:2;margin:6px 0}
.f40-foot a{display:inline-block;min-height:24px}
/* set pages: jump menu, breadcrumb, notes */
.f40-jump{margin:10px 0 16px;font-size:.92rem}
.f40-jump ul{display:flex;flex-wrap:wrap;gap:6px 14px;list-style:none;margin:4px 0 0;padding:0}
.f40-jump a{display:inline-block;min-height:24px;line-height:24px}
.f40-sp,.f40-rule,.f40-note,.f40-p6n,.f40-p4{margin:6px 0}
.f40-set{font-weight:400;opacity:.85}
.f40-alt{opacity:.85}
/* buyer-view colours: green down = cheaper, red up = pricier */
.f40-dn{color:#15803D;font-weight:700}
.f40-up{color:#B91C1C;font-weight:700}
html[data-theme="dark"] .f40-dn{color:#4ADE80}
html[data-theme="dark"] .f40-up{color:#F87171}
/* C8: no empty totals before a card is added; no empty deck-list button */
.side:has(> ul:empty) .i15-tt{display:none}
.dl-fab.f40-empty{display:none!important}
/* I10: set names wrap instead of cutting off; best-sellers heading keeps its date */
#t10Row .mv-set,#t10Row .nm,.mv .mv-set,.mv .nm{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
/* P1: no body text under 12px on phones, tap targets at least 24px */
@media (max-width:640px){
  .small,small,.sold-line,.c27-spark,.itr-nm-s,.rd-q,.pc,.mv-set{font-size:max(12px,1em)}
  main a,.g-menu a,footer a{min-height:24px}
  .c27-btn,.ma-btn{min-height:28px}
}
/* B6: Nauctis "already bought out" lines wrap on phones */
@media (max-width:640px){.p35-wp span{white-space:normal!important}}
/* D1: one buy link for every card, same look on every page */
a.f40-buy{display:inline-block;white-space:nowrap;font-size:.78rem;font-weight:700;line-height:1.2;padding:3px 9px;margin:2px 0 2px 4px;border-radius:999px;border:1px solid #15803D;color:#14532D!important;background:#F0FDF4;text-decoration:none;vertical-align:middle;min-height:24px;box-sizing:border-box}
a.f40-buy:hover,a.f40-buy:focus-visible{background:#15803D;color:#fff!important}
html[data-theme="dark"] a.f40-buy{background:#052E16;color:#BBF7D0!important;border-color:#4ADE80}
.f40-buyrow{margin:10px 0}

/* Nov 21 go-live: wide set-page tables scroll inside their box on phones instead of pushing the page sideways */
@media (max-width:640px){main table.rd-gt{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}}

/*cf1122:start*/
/* cheapfirst1122: cheapest right now leads; market price is the "Don't pay more than" check */
.cf1122 .cf-note{font-size:.78rem;font-weight:700;margin-left:6px;white-space:nowrap}
.cf1122 .cf-note.cf-blk{display:block;margin-left:0;margin-top:1px}
.cf1122 .cf-dn{color:#15803d}.cf1122 .cf-up{color:#b91c1c}.cf1122 .cf-eq{color:var(--rd-mut,#666);font-weight:600}
.cf1122 .rd-pp.cf-lead>.rd-ch{order:-1}
.cf1122 .rd-big.cf-lead>.rd-ch{font-size:1.15rem!important;border-left:0;padding-left:0}
.cf1122 .rd-big.cf-lead>.rd-ch .rd-cv b{font-size:1.6rem!important}
.cf1122 .rd-big.cf-lead>.rd-mk b,.cf1122 .rd-big.cf-lead>.rd-mk .rd-mv{font-size:1.05rem!important}
.cf1122 .rd-pp.cf-lead:not(.rd-big)>.rd-ch .rd-cv b{font-size:1.08em}
.cf1122 .rd-pp.cf-lead:not(.rd-big)>.rd-mk b{font-weight:600}
.cf1122 .dont-overpay.cf-lead>.rd-ch{display:block;margin:0 0 4px;font-size:.95rem!important}
.cf1122 .dont-overpay.cf-lead>.rd-ch .rd-cv b{font-size:1.25rem}
.cf1122 .dont-overpay.cf-lead>strong{font-size:.95rem}
.cf1122 .cf-mlab{display:block;font-size:.72rem;color:var(--rd-mut,#666);text-transform:none}
.cf1122 .cf-front{font-size:.82rem;line-height:1.25;margin-top:2px}
.cf1122 .cf-front b{font-size:1rem;color:var(--rd-ch,inherit)}
.cf1122 .cf-front .cf-fl{color:var(--rd-mut,#666)}
.cf1122 .cf-front .cf-note{display:block;margin:0;font-size:.74rem}
.cf1122 .cf-lead>.i24-ch b,.cf1122 .i24-ch b{font-size:1.15em}
.cf1122 .cf-cell .rd-cv b,.cf1122 .cf-cell b{font-size:1.08em}
.cf1122 td>.rd-ch.cf-lead{margin:0 0 3px}
.cf1122 span.small.cf-lead{font-size:.95rem}
.cf1122 span.small.cf-lead [data-nm] b{font-size:1.1em}
.cf1122 :is(#t10Row,#mvRow) .t10-tile .c27-back .dont-overpay.cf-lead>.nm-beside{order:-2!important;border-top:0!important;padding-top:0!important;margin-top:0!important}
.cf1122 :is(#t10Row,#mvRow) .t10-tile .c27-back .dont-overpay.cf-lead>.i13-gap{order:-1!important;flex:0 0 100%;margin-bottom:4px;padding-bottom:6px;border-bottom:1px dashed var(--rd-line,#9aa5b1)}
.cf1122 .cf-cell b.cf-wrap{font-weight:800}
/* Site Audit row 2309 (b): no listing -> the tile back label reads "Market price", one label for one number */
.cf1122 :is(#t10Row,#mvRow) .t10-tile .dont-overpay.cf-mkt::before{content:"Market price";content:"Market price"/""}
/*cf1122:end*/

/*nfp1121:start*/
/* Tim Nov 21 10:38 AM PT: hide pack-40 C2 front price when the flip back already has the same number */
#t10Row .t10-tile:has(.c27-back .dont-overpay strong) .f40-front,#mvRow .t10-tile:has(.c27-back .dont-overpay strong) .f40-front{display:none!important}
/*nfp1121:end*/

/*pd1122:start*/
/* pricededupe1122 (Tim, Nov 22 2026): price info lives on the flip back only; spikes use large flip cards. No foil sheen. */
html.pd1122 :is(#t10Row,#mvRow) .t10-tile > a.mv-link > .f40-front,
html.pd1122 :is(#t10Row,#mvRow) .t10-tile > a.mv-link > .cf-front,
html.pd1122 :is(#t10Row,#mvRow) .t10-tile > a.mv-link > .sold-line,
html.pd1122 :is(#t10Row,#mvRow) .t10-tile > a.mv-link > .mv-sold,
html.pd1122 :is(#t10Row,#mvRow) .t10-tile > a.mv-link > .pc,
html.pd1122 :is(#t10Row,#mvRow) .t10-tile > a.mv-link > .dont-overpay,
html.pd1122 :is(#t10Row,#mvRow) .t10-tile > a.mv-link > .rd-ch{
  display:none!important
}
html.pd1122 :is(#t10Row,#mvRow) .c27-back .f40-front,
html.pd1122 :is(#t10Row,#mvRow) .c27-back .cf-front,
html.pd1122 :is(#t10Row,#mvRow) .c27-back .sold-line,
html.pd1122 :is(#t10Row,#mvRow) .c27-back .mv-sold,
html.pd1122 :is(#t10Row,#mvRow) .c27-back .pc,
html.pd1122 :is(#t10Row,#mvRow) .c27-back .dont-overpay,
html.pd1122 :is(#t10Row,#mvRow) .c27-back .rd-ch{
  display:revert!important
}
html.pd1122 :is(#t10Row,#mvRow) .c27-back .sold-line,
html.pd1122 :is(#t10Row,#mvRow) .c27-back .pc{
  margin-top:6px;font-size:.74rem;line-height:1.35
}
/* Spikes of the week: large flip cards, Why stays under the art */
html.pd1122 .spikes-grid.n3{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 18px;align-items:start
}
@media(max-width:900px){html.pd1122 .spikes-grid.n3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){html.pd1122 .spikes-grid.n3{grid-template-columns:1fr}}
html.pd1122 article.spike.pd-spike{
  display:flex;flex-direction:column;gap:10px;min-width:0
}
html.pd1122 article.spike.pd-spike .pd-flip-wrap{
  display:block;position:relative;width:100%
}
html.pd1122 article.spike.pd-spike .pd-flip{
  display:block;position:relative;transform-style:preserve-3d;transition:transform .55s cubic-bezier(.2,.7,.2,1),min-height .3s ease
}
html.pd1122 article.spike.pd-spike.pd-on .pd-flip{transform:rotateY(180deg)}
html.pd1122 article.spike.pd-spike .pd-face{
  backface-visibility:hidden;-webkit-backface-visibility:hidden
}
html.pd1122 article.spike.pd-spike .pd-front{
  display:block;width:100%
}
html.pd1122 article.spike.pd-spike .pd-front img{
  display:block;width:100%;height:auto;border-radius:8px
}
html.pd1122 article.spike.pd-spike .pd-back{
  position:absolute;top:0;left:0;right:0;min-height:100%;box-sizing:border-box;transform:rotateY(180deg);
  display:flex;flex-direction:column;gap:8px;padding:12px 12px;overflow:auto;
  background:var(--rd-c27bg,#fff);color:inherit;border:1px solid var(--rd-line,#d6dbe1);box-shadow:0 4px 14px rgba(0,0,0,.3);border-radius:8px
}
html[data-theme="dark"].pd1122 article.spike.pd-spike .pd-back,html.pd1122:not([data-theme="light"]) article.spike.pd-spike .pd-back{--rd-c27bg:#111a24}
html[data-theme="light"].pd1122 article.spike.pd-spike .pd-back{--rd-c27bg:#fff}
html.pd1122 article.spike.pd-spike .pd-back .i24-today,
html.pd1122 article.spike.pd-spike .pd-back .spike-move{margin:0;font-size:.86rem;line-height:1.4}
html.pd1122 article.spike.pd-spike .pd-back .i24-ch{display:block;font-weight:700;margin-bottom:6px}
html.pd1122 article.spike.pd-spike .pd-back .i24-mk{display:block}
html.pd1122 article.spike.pd-spike .pd-btn{
  align-self:start;margin-top:2px;font:inherit;font-size:.8rem;font-weight:700;padding:4px 10px;border-radius:999px;
  border:1px solid var(--rd-line,#d6dbe1);background:transparent;color:inherit;cursor:pointer
}
html.pd1122 article.spike.pd-spike .pd-why{order:5;margin:0}
@media(prefers-reduced-motion:reduce){
  html.pd1122 article.spike.pd-spike .pd-flip,
  html.pd1122 article.spike.pd-spike.pd-on .pd-flip{transform:none!important;transition:none!important}
  html.pd1122 article.spike.pd-spike .pd-back{position:absolute;inset:0;transform:none;opacity:0;pointer-events:none}
  html.pd1122 article.spike.pd-spike.pd-on .pd-back{opacity:1;pointer-events:auto}
  html.pd1122 article.spike.pd-spike.pd-on .pd-front{opacity:0}
}

/* Two-price cleanup (Tim, Nov 22 10:11 AM PT): hide leftover totals, shipping-included lines, under-market dollar notes, and injected duplicate cheapest. */
html.pd1122 .i13-gap,
html.pd1122 .cf-note,
html.pd1122 section.price-display,
html.pd1122 p.nm-beside,
html.pd1122 span.nm-beside:not(.rd-ch){display:none!important}

/* Flip-back stack (Tim, Nov 22 10:31 AM PT): each price on its own labeled row, large figure, no extra numbers. */
html.pd1122 :is(#t10Row,#mvRow) .c27-back{
  display:flex;flex-direction:column;box-sizing:border-box;padding:12px 12px 10px;overflow:auto;min-width:0
}
html.pd1122 .pd-backstack{display:flex;flex-direction:column;gap:0;min-width:0;flex:1}
html.pd1122 .pd-bname{display:block;font-weight:800;font-size:.95rem;line-height:1.25;margin:0 0 8px;overflow-wrap:anywhere}
html.pd1122 .pd-row{display:block;padding:8px 0 10px;border-bottom:1px solid var(--rd-line,rgba(0,0,0,.12));min-width:0}
html.pd1122 .pd-row:last-of-type{border-bottom:none}
html.pd1122 .pd-lab{display:block;font-size:.68rem;font-weight:700;letter-spacing:.01em;line-height:1.3;color:var(--muted,#52645A);margin:0 0 4px}
html.pd1122 .pd-amt{display:block;font-size:1.4rem;font-weight:800;line-height:1.15;letter-spacing:-.02em;overflow-wrap:anywhere}
html.pd1122 .pd-ship{font-size:.68rem;font-weight:600;opacity:.85;margin-left:.35em;white-space:nowrap}
html.pd1122 .pd-move{display:block;margin:8px 0 0;font-size:.78rem;line-height:1.35;overflow-wrap:anywhere}
html.pd1122 .pd-checked{display:block;margin-top:auto;padding-top:8px;font-size:.68rem;line-height:1.3;opacity:.8}
html.pd1122 article.spike.pd-spike .pd-back{padding:14px 14px 12px;gap:0;overflow:auto}
html.pd1122 article.spike.pd-spike .pd-back .pd-amt{font-size:1.55rem}
html.pd1122 article.spike.pd-spike .pd-back .i24-today,
html.pd1122 article.spike.pd-spike .pd-back .i24-ch,
html.pd1122 article.spike.pd-spike .pd-back .i24-mk{display:none!important}
/* Hide the raw jumbled price nodes once the stack is built; keep sold/usual extras off the back. */
html.pd1122 .c27-back.pd-stacked > .dont-overpay,
html.pd1122 .c27-back.pd-stacked > .rd-ch,
html.pd1122 .c27-back.pd-stacked > .sold-line,
html.pd1122 .c27-back.pd-stacked > .mv-sold,
html.pd1122 .c27-back.pd-stacked > .cf-front,
html.pd1122 .c27-back.pd-stacked > .f40-front,
html.pd1122 .c27-back.pd-stacked > .pc,
html.pd1122 .c27-back.pd-stacked > .vu,
html.pd1122 .c27-back.pd-stacked > .cf-note{display:none!important}
@media(max-width:720px){
  html.pd1122 .pd-amt{font-size:1.28rem}
  html.pd1122 article.spike.pd-spike .pd-back .pd-amt{font-size:1.4rem}
}

html.pd1122 :is(#t10Row,#mvRow) .c27-back.pd-stacked > *:not(.pd-backstack){display:none!important}
html.pd1122 :is(#t10Row,#mvRow) .c27-back.pd-stacked{overflow:hidden}

/* Fit the stacked back to the card face so it cannot spill over Prices buttons. */
html.pd1122 :is(#t10Row,#mvRow) .c27-back.pd-stacked{top:0;right:0;bottom:0;left:0;height:auto;max-height:100%;box-sizing:border-box;overflow:hidden;padding:10px 10px 8px}
html.pd1122 :is(#t10Row,#mvRow) .c27-back.pd-stacked .pd-bname{display:none!important}
html.pd1122 :is(#t10Row,#mvRow) .pd-row{padding:6px 0 7px}
html.pd1122 :is(#t10Row,#mvRow) .pd-checked{padding-top:6px}
html.pd1122 article.spike.pd-spike .pd-back.pd-stacked > *:not(.pd-backstack){display:none!important}
@media(max-width:720px){
  html.pd1122 :is(#t10Row,#mvRow) .c27-back.pd-stacked{padding:8px 8px 6px}
  html.pd1122 :is(#t10Row,#mvRow) .pd-row{padding:4px 0 5px}
  html.pd1122 :is(#t10Row,#mvRow) .pd-lab{font-size:.62rem;margin:0 0 1px;line-height:1.25}
  html.pd1122 :is(#t10Row,#mvRow) .pd-amt{font-size:1.15rem;line-height:1.1}
  html.pd1122 :is(#t10Row,#mvRow) .pd-ship{display:block;margin-left:0;font-size:.62rem;white-space:nowrap}
  html.pd1122 :is(#t10Row,#mvRow) .pd-move{margin:5px 0 0;font-size:.68rem;line-height:1.25}
  html.pd1122 :is(#t10Row,#mvRow) .pd-checked{padding-top:4px;font-size:.6rem;line-height:1.25}
}

@media(max-width:720px){
  html.pd1122 :is(#t10Row,#mvRow) .c27-back.pd-stacked .pd-checked{display:none}
}
html.pd1122 article.spike.pd-spike .pd-back.pd-stacked{top:0;right:0;bottom:0;left:0;height:auto;max-height:100%;box-sizing:border-box;overflow:hidden}

@media(max-width:720px){
  html.pd1122 article.spike.pd-spike .pd-back.pd-stacked{padding:12px 12px 8px}
  html.pd1122 article.spike.pd-spike .pd-back .pd-row{padding:6px 0 7px}
  html.pd1122 article.spike.pd-spike .pd-back .pd-move{margin:6px 0 0;font-size:.72rem;line-height:1.3}
  html.pd1122 article.spike.pd-spike .pd-back .pd-checked{padding-top:4px;font-size:.62rem;line-height:1.25}
}
/*pd1122:end*/
/*c12-tables*/
@media (max-width:640px){
  main :is(td,th){overflow-wrap:normal;word-break:normal}
  main :is(td,th).n,
  main :is(td,th)[data-l*="Market"],
  main :is(td,th)[data-l*="Price"],
  main :is(td,th)[data-l*="price"],
  main :is(td,th)[data-l*="Change"],
  main :is(td,th)[data-l*="Chan"],
  main :is(td,th)[data-l*="Share"],
  main :is(td,th)[data-l*="Date"],
  main :is(td,th)[data-l*="checked"],
  main :is(td,th)[data-l*="Then"],
  main :is(td,th)[data-l*="then"]{white-space:nowrap}
  .tw,.itr-tw,.cf-tbl,main .tw{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
}
/*c12-tables-e*/
