/* Meta ads · phones only (up to 620px): the test board and the placements, presented properly.
   Test board: after Framer's "A/B Test Result" card (a dark test card, variant cards, a picked variant that lights up
   while the others step back, and a decision bar with its threshold marked) and the motion-effects recipes "Flowing
   paths" (one audience pulsing into four groups) and "Glass focus" (the picked ad sharp, the rest dimmed).
   Placements: a segmented switch whose pill stretches as it slides ("Tabs → panels"), the device given the room,
   one line of point under it. Laptops are untouched. No invented results: the card shows how the test is decided. */
.pd-seg,.pd-cap,.pd-chips,.pd-foot,.pd-decide{display:none}
.mk-keys .mk-key span::before{content:" · "}   /* laptops: the product stays on the title line */
@media (max-width:620px){.mk-keys .mk-key span::before{content:none}}
@media (max-width:620px){
  /* ================= THE TEST BOARD ================= */
  #tests .gk-head .lede:not(.pf-short){display:none}
  .mk-board{background:#0B0D12!important;color:#EEF0F6;border:0!important;border-radius:26px!important;padding:18px 14px 14px!important;box-shadow:0 40px 70px -40px rgba(11,13,18,.6)}
  /* header: the test's name, the labels switch, then what changes and what stays the same */
  .mk-keys{display:grid!important;grid-template-columns:1fr auto;gap:12px!important;align-items:center;padding:0 2px 14px!important;border-bottom:1px solid rgba(255,255,255,.1)!important}
  .mk-keys .mk-key{grid-column:1;margin:0;padding:0!important;font:640 16px/1.25 var(--display)!important;letter-spacing:-.01em!important;text-transform:none!important;color:#fff!important}
  .mk-keys .mk-key span{display:block;font:500 12px/1.3 var(--display);color:#8FA2FF;margin-top:2px}
  .mk-keys .mk-labels{position:static!important;grid-column:2;grid-row:1;background:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.12)!important;color:#C9CEDD!important;padding:5px 10px 5px 5px!important;font-size:12px!important}
  .mk-hold{display:none!important}
  .pd-chips{grid-column:1/-1;display:grid;gap:7px}
  .pd-chips p{display:flex;flex-wrap:nowrap;align-items:center;gap:5px;margin:0;overflow-x:auto;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent)}
  .pd-chips p::-webkit-scrollbar{display:none}
  .pd-chips i{flex:none}
  .pd-chips p > span{flex:none;width:62px;font:600 10px/1 var(--display);letter-spacing:.08em;text-transform:uppercase;color:#6E7591}
  .pd-chips i{font-style:normal;padding:5px 9px;border-radius:999px;font:500 12px/1 var(--display);background:rgba(255,255,255,.07);color:#C9CEDD}
  .pd-chips p.ch i{background:rgba(143,162,255,.16);color:#C7D0FF}
  /* one audience, four equal groups: the pill and the pulsing lanes */
  .mk-split{padding:12px 0 2px!important;height:76px!important}
  .mk-split-pill{display:block!important;background:#fff!important;color:#0B0C10!important;font:600 12.5px/1 var(--display)!important;letter-spacing:0!important;text-transform:none!important;padding:9px 14px!important;white-space:nowrap!important;box-shadow:0 0 0 6px rgba(255,255,255,.06)}
  .mk-split-pill span{color:#55607A;font-weight:500}
  .mk-split .mk-lane{stroke:rgba(143,162,255,.38)!important;stroke-width:1.6!important}
  .mk-split .mk-lane.on{stroke:#8FA2FF!important;stroke-width:2.5!important}
  .mk-split .mk-pulse{fill:#8FA2FF!important;filter:drop-shadow(0 0 4px #8FA2FF)}
  .mk-split svg{display:block!important;position:absolute;inset:0;width:100%!important;height:100%!important;overflow:visible}   /* the old small-screen styles hid the lanes */
  .mk-grp{display:none!important}
  /* the four ads: dark variant cards with a letter, the angle and its share of the budget */
  .mk-ads{gap:8px!important;max-width:none!important;margin-inline:0}
  .mk-ad{padding:5px 5px 9px;border-radius:16px;background:#151821;box-shadow:inset 0 0 0 1px rgba(255,255,255,.07);transition:opacity .4s,filter .4s,box-shadow .4s,translate .45s cubic-bezier(.34,1.4,.64,1)}
  .mk-ad figure{border-radius:12px!important;overflow:hidden}
  .mk-ad > p:not(.pd-foot){display:none!important}
  .pd-foot{display:grid!important;grid-template-columns:22px 1fr;column-gap:8px;align-items:center;margin:8px 4px 0!important}
  .pd-foot b{grid-row:1/3;display:grid;place-items:center;flex:none;width:22px;height:22px;border-radius:50%;background:rgba(143,162,255,.18);color:#C7D0FF;font:700 11px/1 var(--display)}
  .pd-foot span{min-width:0;font:600 13.5px/1.15 var(--display);color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .pd-foot em{font-style:normal;font:500 10.5px/1.2 var(--display);color:#6E7591}
  .pd-foot em.bet{color:#8FA2FF}
  .mk-test.mk-picked .mk-ad:not(.on){opacity:.38;filter:saturate(.35)}
  .mk-ad.on{box-shadow:0 0 0 2px #8FA2FF,0 24px 40px -18px rgba(143,162,255,.55)!important;translate:0 -3px}
  .mk-ad.on .pd-foot b{background:#8FA2FF;color:#0B0C10}
  /* what that win would teach, and how the winner is decided */
  .mk-learn{margin-top:12px!important;padding:16px!important;border-radius:18px!important;background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.1)!important;color:#EEF0F6}
  .mk-learn-in > .mono{font-size:10.5px!important;letter-spacing:.1em;color:#8FA2FF!important}
  .mk-learn-h{font-size:22px!important;line-height:1!important;color:#fff!important;margin:5px 0 5px!important}
  .mk-learn-t{font-size:14.5px!important;line-height:1.45!important;color:#9AA1B8!important}
  .mk-learn-then{color:#6E7591!important;font-size:10px!important}
  .mk-clear{color:#C9CEDD!important;border-color:rgba(255,255,255,.2)!important}
  .pd-decide{display:block!important;margin-top:12px;padding-top:10px;border-top:1px solid rgba(255,255,255,.08)}
  .pd-decide p{display:flex;justify-content:space-between;margin:0 0 8px;font:500 11.5px/1.2 var(--display);color:#9AA1B8}
  .pd-decide p b{color:#fff;font-weight:600}
  .pd-bar{position:relative;height:8px;border-radius:8px;background:rgba(255,255,255,.08)}
  .pd-bar em{position:absolute;left:0;top:0;bottom:0;width:75%;border-radius:8px;background:linear-gradient(90deg,rgba(143,162,255,.25),#8FA2FF);transform-origin:0 50%;transform:scaleX(0);transition:transform 1.2s cubic-bezier(.16,1,.3,1)}
  .pd-in .pd-bar em{transform:none}
  .pd-bar i{position:absolute;left:75%;top:-4px;width:2px;height:16px;border-radius:2px;background:#fff}
  .pd-bar small{position:absolute;left:75%;top:16px;translate:-50% 0;font:600 9.5px/1 var(--display);color:#fff;white-space:nowrap}
  .pd-decide .pd-note{margin:22px 0 0;font-size:10.5px;color:#6E7591}

  /* process card 8: the Winner tag sits inside the top of the bar, so it never touches the card edge */
  .mk-sc.seen .v-bars .win::before{top:6px;z-index:2;background:#fff;color:var(--b);padding:3px 6px;font-size:9px}

  /* ================= PLACEMENTS ================= */
  .mk-pin{padding:22px 0 18px!important}
  .mk-p6{gap:12px!important}
  .mk-p6 h2{order:2;font-size:28px!important;line-height:1.05;margin:0!important}
  .mk-p6.pd-ready .mk-steps6{display:none!important}   /* only once the switch exists */
  .pd-seg{order:3;position:relative;display:grid;grid-template-columns:repeat(3,1fr);padding:4px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1);isolation:isolate}
  .pd-seg i.pd-thumb{position:absolute;top:4px;bottom:4px;left:4px;z-index:-1;border-radius:999px;background:#fff;box-shadow:0 6px 18px -8px rgba(0,0,0,.6)}
  .pd-seg button{position:relative;display:flex;align-items:baseline;justify-content:center;gap:5px;padding:11px 4px;border:0;border-radius:999px;background:none;color:rgba(255,255,255,.62);font:600 14px/1 var(--display);cursor:pointer;transition:color .3s}
  .pd-seg button small{font:500 10.5px/1 var(--display);opacity:.7}
  .pd-seg button[aria-selected="true"]{color:#0B0C10}
  .pd-seg button:focus-visible{outline:2px solid #8FA2FF;outline-offset:2px}
  .mk-stage6{order:4;height:clamp(280px,calc(100svh - 64px - 392px),540px)!important;touch-action:pan-y}
  .mk-spec .s-tl,.mk-spec .s-tr,.mk-spec .s-br{display:none!important}
  .mk-spec .s-bl{left:50%!important;bottom:4px!important;translate:-50% 0;flex-direction:row!important;gap:8px!important;align-items:center;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.08);color:#C9CEDD}
  .mk-spec .s-bl em{display:none}
  /* story safe-zone labels: anchored so a second line grows away from the camera notch and the home bar */
  .mk-safe-t em{top:calc(100% + 6px)!important;bottom:auto!important}
  .mk-safe-b em{bottom:calc(100% + 6px)!important;top:auto!important}
  .mk-safe em{left:6px;max-width:calc(100% - 12px);font-size:9px;line-height:1.25;padding:4px 7px}
  .pd-cap{order:5;display:block;margin:0;text-align:center;font-size:14.5px;line-height:1.45;color:rgba(255,255,255,.72);min-height:2.9em}
  .pd-cap b{color:#fff;font-weight:600}
  .mk-p6 .mk-pick{order:6;margin-top:2px!important;padding-top:12px;border-top:1px solid rgba(255,255,255,.1)}
  .mk-p6 .mk-pick > .mono{font-size:11px;letter-spacing:.12em;margin-bottom:8px;color:#8FA2FF}
}
/* short phones (e.g. 360×640): the device keeps a readable size; the room around it gets tighter and the caption keeps only its bold point */
@media (max-width:620px) and (max-height:700px){
  .mk-pin{padding:12px 0 10px!important}
  .mk-p6{gap:10px!important}
  .mk-p6 h2{font-size:24px!important}
  .mk-stage6{height:clamp(250px,calc(100svh - 64px - 270px),540px)!important}
  .pd-cap{font-size:0;min-height:0}
  .pd-cap b{font-size:14.5px}
}
