/* Cookbook (DSB-10481): home setup guide cards and setup guide page blocks only.
   Grid, card box, fonts and colours come from the theme (.grid > .card)
   and primexm.css; these rules only lay out the card contents. */

/* ---- Home: setup guide and reference cards (.grid.ck-cards > a.card) ---- */
.md-typeset .ck-cards > a.card{position:relative;display:flex;flex-direction:column;color:inherit;text-decoration:none}
.md-typeset .ck-cards > a.card.feat{border-color:var(--md-primary-fg-color)}
/* The badge sits on the card's top border, out of the flow: every card's rows line up
   and the title never runs under it. */
.md-typeset .ck-cards .badge{position:absolute;top:0;right:.8rem;transform:translateY(-50%);margin:0;padding:.1rem .5rem;border-radius:1rem;line-height:1.4;
  font-size:.6rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;
  color:var(--md-primary-bg-color);background:var(--md-primary-fg-color)}
/* Dark mode: the light-blue badge needs dark text for contrast */
[data-md-color-scheme="slate"] .md-typeset .ck-cards .badge{color:#0a1120}
.md-typeset .ck-cards .chead{display:flex;align-items:center;gap:.6rem;margin-bottom:.6rem}
.md-typeset .ck-cards .ic{flex:none;display:grid;place-items:center;width:2.4rem;height:2.4rem;border-radius:.4rem;
  color:var(--md-default-fg-color--light);background:var(--md-default-fg-color--lightest)}
.md-typeset .ck-cards .ic svg{width:1.4rem;height:1.4rem;fill:currentColor}
.md-typeset .ck-cards h3{margin:0}
.md-typeset .ck-cards p{margin:0 0 .4rem}
.md-typeset .ck-cards .rec{margin:0;font-size:.7em;letter-spacing:.06em;text-transform:uppercase;color:var(--md-default-fg-color--light)}
.md-typeset .ck-cards .cta{margin-top:auto;padding-top:.4rem;color:var(--md-typeset-a-color)}

/* ---- Setup guide pages: animation banner, dark in both reading modes: a looping video (cookbook.js)
   recorded from the canvas scenes in scripts/banners/, whose harness.html shows the canvas ---- */
.ck .banner{position:relative;margin:.4rem 0 1.8rem;border:1px solid #16233b;border-radius:.4rem;overflow:hidden;container-type:inline-size;
  background:radial-gradient(120% 120% at 60% 8%,rgba(91,146,255,.14),transparent 55%),linear-gradient(180deg,#0d1526,#0a1120)}
/* 16/4.6, or the scene's taller `ar` (scenes.js); 3/4, the top-to-bottom cut, when the banner is narrower than 640px */
.ck #ck-video,.ck #ck-canvas{display:block;width:100%;aspect-ratio:16/4.6}
.ck #ck-video[data-focus=mt5feed],.ck #ck-video[data-focus=connector]{aspect-ratio:16/5.2}
@container (max-width:639.98px){.ck #ck-video[data-focus]{aspect-ratio:3/4}}
.ck #ck-video{object-fit:cover;pointer-events:none}
/* Pause/play (cookbook.js): on hover, on focus and while paused; always on touch screens. Top right; top left on narrow
   banners, except split, whose liquidity provider stands there */
.ck .ck-toggle{position:absolute;top:8px;right:8px;display:grid;place-items:center;width:28px;height:28px;padding:0;
  border:1px solid rgba(126,164,220,.35);border-radius:50%;background:rgba(10,17,32,.8);color:#E7EDF6;cursor:pointer;opacity:0;transition:opacity .2s}
.ck .ck-toggle[hidden]{display:none}
.ck .ck-toggle svg{width:12px;height:12px;fill:currentColor}
.ck .banner:hover .ck-toggle,.ck .ck-toggle:focus-visible,.ck .ck-toggle.held{opacity:1}
.ck .ck-toggle:hover{border-color:#5B92FF}
.ck .ck-toggle:focus-visible{outline:2px solid #5B92FF;outline-offset:2px}
@media (hover:none){.ck .ck-toggle{opacity:.85}}
@container (max-width:639.98px){.ck .ck-toggle{right:auto;left:8px}.ck #ck-video[data-focus=split]~.ck-toggle{left:auto;right:8px}}

/* ---- Setup guide pages: video placeholder until the Vimeo embed lands ---- */
.ck-video{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.55rem;
  max-width:560px;aspect-ratio:16/9;margin:.6rem 0 1.1rem;border:1px solid #16233b;border-radius:.4rem;
  font-family:var(--md-code-font-family);font-size:.8rem;color:#8ea0bd;
  background:radial-gradient(120% 120% at 50% 0%,rgba(91,146,255,.14),transparent 60%),linear-gradient(180deg,#0e141f,#0a1120)}
.ck-video .pl{display:grid;place-items:center;width:54px;height:54px;padding-left:3px;border-radius:50%;font-size:20px;
  color:#cfe0f7;background:rgba(91,146,255,.18);border:1px solid rgba(120,160,220,.35)}

/* ---- Nav: "New" pill after a section title (extra.nav_new, overrides/partials/nav-item.html) ---- */
.md-nav .ck-nav-new{display:inline-block;margin-left:.4em;padding:0 .45em;border-radius:1em;vertical-align:.1em;
  font-size:10px;font-weight:600;line-height:1.6;letter-spacing:.06em;text-transform:uppercase;
  color:var(--md-primary-bg-color);background:var(--md-primary-fg-color)}
[data-md-color-scheme="slate"] .md-nav .ck-nav-new{color:#0a1120}
/* ---- Nav: overview link under a section (extra.nav_overview) — link colour ---- */
.md-nav__item.ck-nav-overview > .md-nav__link{color:var(--md-typeset-a-color)}
