/* Christmas "Make this" banner (xmas-make-this.js): home pages and the top of the studio's "What will you make?"
   window. Always the site's dark card look (also on the light language pages), in the page flow, never over it.
   The layout follows the banner's own width (container queries): wide = cards with a line of text, medium = cards
   without it, narrow = cards scrolling sideways. Any number of cards stays in one row. */
.xmt{
  --xmt-ink:#f0f4fa;--xmt-muted:#a9b7cc;--xmt-line:#26406a;--xmt-card:#16233a;--xmt-blue:#0e6afd;--xmt-blue-hover:#2b7dff;--xmt-red:#b3202a;
  --xmt-pad:24px;
  container:xmt/inline-size;position:relative;box-sizing:border-box;max-width:none;margin:20px 0 36px;padding:22px var(--xmt-pad) 24px;
  border:1px solid var(--xmt-line);border-radius:16px;
  background:radial-gradient(70% 120% at 0 0,#b3202a24,transparent 60%),linear-gradient(160deg,#13233f 0,#0d182b 100%);
  color:var(--xmt-ink);font-family:var(--font,Inter,system-ui,-apple-system,"Segoe UI",sans-serif);font-size:16px;line-height:1.4;text-align:left;
  box-shadow:0 18px 48px #00000040
}
.xmt[hidden]{display:none}
main>section.xmt{margin:20px 0 36px}  /* beats the pages' own section margins */
.xmt *,.xmt *::before,.xmt *::after{box-sizing:border-box}
.xmt .xmt-head{position:relative;padding-right:48px}
.xmt .xmt-kicker{display:inline-flex;align-items:center;gap:6px;max-width:none;margin:0 0 10px;padding:3px 11px 3px 8px;border-radius:999px;
  background:var(--xmt-red);color:#fff;font-size:12px;font-weight:800;line-height:1.4;letter-spacing:.07em;text-transform:uppercase}
.xmt .xmt-kicker svg{flex:none}
.xmt .xmt-title{max-width:none;margin:0;font-family:inherit;font-size:clamp(22px,2.4vw,30px);font-weight:800;line-height:1.12;letter-spacing:-.02em;color:var(--xmt-ink)}
.xmt .xmt-line{max-width:none;margin:8px 0 0;color:#c7d3e6;font-size:16px;line-height:1.45}
.xmt .xmt-all{display:inline-block;margin:6px 0 0;color:#8fc0ff;font-size:14px;font-weight:600;text-decoration:none}
.xmt .xmt-all:hover{color:#fff;text-decoration:underline}
.xmt .xmt-head .xmt-close{position:absolute;top:-8px;right:-10px;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;
  min-width:0;min-height:0;margin:0;padding:0;border:1px solid transparent;border-radius:999px;background:transparent;box-shadow:none;
  color:var(--xmt-muted);font:400 26px/1 system-ui,sans-serif;cursor:pointer;filter:none}
.xmt .xmt-head .xmt-close:hover{background:#ffffff17;color:#fff}
.xmt .xmt-head .xmt-close:focus-visible{outline:2px solid #8fc0ff;outline-offset:1px}

.xmt .xmt-cards{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:14px;max-width:none;margin:18px 0 0;padding:0;list-style:none}
.xmt .xmt-card{position:relative;display:flex;flex-direction:column;min-width:0;margin:0;padding:0;border:1px solid var(--xmt-line);border-radius:12px;
  background:var(--xmt-card);overflow:hidden;transition:border-color .15s ease,transform .15s ease}
.xmt .xmt-card::before{content:none}
.xmt .xmt-card:hover{border-color:#4f72a8}
.xmt .xmt-card:focus-within{border-color:#2a7bff}
.xmt .xmt-picture{position:relative;display:block;aspect-ratio:4/3;background:#16233a}
.xmt .xmt-picture img{display:block;width:100%;height:100%;max-width:none;margin:0;border:0;border-radius:0;object-fit:cover}
.xmt .xmt-tag{position:absolute;right:8px;bottom:8px;padding:2px 8px;border:1px solid var(--xmt-line);border-radius:999px;background:#0b1424d9;
  color:var(--xmt-muted);font-size:11px;font-weight:600;line-height:1.35;letter-spacing:.02em;pointer-events:none}
.xmt .xmt-copy{display:flex;flex:1;flex-direction:column;gap:4px;padding:12px 14px 0}
.xmt .xmt-name{color:var(--xmt-ink);font-size:15px;font-weight:700;line-height:1.25}
.xmt .xmt-text{color:var(--xmt-muted);font-size:13px;line-height:1.4}
.xmt .xmt-go{display:flex;align-items:center;justify-content:center;gap:6px;margin:12px 14px 14px;padding:9px 10px;border-radius:8px;
  background:var(--xmt-blue);color:#fff;font-size:14px;font-weight:700;line-height:1.2;text-align:center;text-decoration:none}
.xmt .xmt-go::after{content:"";position:absolute;inset:0;z-index:1;border-radius:12px}  /* the whole card opens the design */
.xmt .xmt-card:hover .xmt-go{background:var(--xmt-blue-hover)}
.xmt .xmt-go:focus-visible{outline:2px solid #fff;outline-offset:2px}
.xmt .xmt-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
@media (hover:hover) and (prefers-reduced-motion:no-preference){.xmt .xmt-card:hover{transform:translateY(-2px)}}
@media (max-width:600px){
  .xmt{--xmt-pad:16px;padding:16px var(--xmt-pad) 18px;border-radius:14px}
  .xmt,main>section.xmt{margin:12px 0 28px}
  .xmt .xmt-head{padding-right:40px}
  .xmt .xmt-title{font-size:22px}
  .xmt .xmt-line{font-size:15px}
}

/* Home pages, medium width (the language pages' narrower column, tablets): five in a row, no line of text, no arrow. */
@container xmt (max-width:999px){
  .xmt[data-place=home] .xmt-text{display:none}
  .xmt[data-place=home] .xmt-cards{gap:10px}
  .xmt[data-place=home] .xmt-copy{padding:10px 12px 0}
  .xmt[data-place=home] .xmt-name{font-size:14px}
  .xmt[data-place=home] .xmt-go{margin:10px 10px 12px;padding:8px 6px;font-size:13px}
  .xmt[data-place=home] .xmt-go>[aria-hidden]{display:none}
}
/* Home pages, narrow (phones): the cards scroll sideways, the next one peeking in. */
@container xmt (max-width:639px){
  .xmt[data-place=home] .xmt-cards{grid-auto-columns:62%;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;
    scroll-padding:0 var(--xmt-pad);margin:14px calc(-1 * var(--xmt-pad)) 0;padding:0 var(--xmt-pad) 6px}
  .xmt[data-place=home] .xmt-card{scroll-snap-align:start}
  .xmt[data-place=home] .xmt-go{font-size:14px}
  .xmt[data-place=home] .xmt-go>[aria-hidden]{display:inline}
}

/* In the studio's "What will you make?" window: smaller tiles, a short label each. */
.xmt[data-place=studio]{--xmt-pad:14px;margin:0 0 14px;padding:14px var(--xmt-pad);border-radius:12px;box-shadow:none;font-size:14px}
.xmt[data-place=studio] .xmt-head{padding-right:38px}
.xmt[data-place=studio] .xmt-kicker{margin:0 0 6px;padding:2px 9px 2px 7px;font-size:11px}
.xmt[data-place=studio] .xmt-title{font-size:17px;line-height:1.2;letter-spacing:-.01em}
.xmt[data-place=studio] .xmt-line{margin:4px 0 0;font-size:13px;color:var(--xmt-muted)}
.xmt[data-place=studio] .xmt-all{display:none}
.xmt[data-place=studio] .xmt-head .xmt-close{top:-6px;right:-6px;width:34px;height:34px;font-size:22px}
.xmt[data-place=studio] .xmt-cards{gap:8px;margin:12px 0 0}
.xmt[data-place=studio] .xmt-card{border-radius:10px}
.xmt[data-place=studio] .xmt-tag{right:4px;bottom:4px;padding:0 6px;font-size:9.5px}
.xmt[data-place=studio] .xmt-copy{padding:7px 8px 0}
.xmt[data-place=studio] .xmt-name{font-size:12.5px;line-height:1.2}
.xmt[data-place=studio] .xmt-go{margin:7px 7px 8px;padding:6px 4px;border-radius:7px;font-size:12px;gap:4px;white-space:nowrap}
.xmt[data-place=studio] .xmt-go::after{border-radius:10px}
@media (max-width:600px){.xmt[data-place=studio]{--xmt-pad:12px}}
@container xmt (max-width:439px){
  .xmt[data-place=studio] .xmt-cards{grid-auto-columns:118px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;
    scroll-padding:0 var(--xmt-pad);margin:10px calc(-1 * var(--xmt-pad)) 0;padding:0 var(--xmt-pad) 4px}
  .xmt[data-place=studio] .xmt-card{scroll-snap-align:start}
}
@media (forced-colors:active){
  .xmt,.xmt .xmt-card{border:1px solid CanvasText}
  .xmt .xmt-go{border:1px solid ButtonText}
}
