/* Gamut deep dive (designsystem/): page bits and the figures drawn by gamut.js.
   Figures use Gamut's own colors and type (DM Sans and IBM Plex Mono stand in for Apercu and Suisse Mono, as in cc.css).
   Everything is prefixed gx- so nothing leaks into the shared case study shell. */

.gx-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 28px; font-size: 15px; color: var(--p-muted); text-decoration: none; transition: color .2s; }
.gx-back:hover { color: var(--p-text); }
.gx-back svg { width: 14px; height: 14px; transition: transform .25s var(--p-ease); }
@media (hover: hover) and (pointer: fine) { .gx-back:hover svg { transform: translateX(-3px); } }
.cs-head h3 { font-size: 17px; font-weight: 500; letter-spacing: -.01em; margin: 0 0 8px; }
.cs-head code, .p-cap code, .cs-note code { font: 500 .88em var(--ccm); padding: 1px 5px; border-radius: 4px; background: color-mix(in srgb, var(--p-text) 7%, transparent); }
.gx-sub { margin-top: 104px; }
.gx-sub .cs-head { margin-bottom: 32px; }
.gx-lab { font: 600 11px var(--ccm); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- 1. token board ---------- */
.gx-tk {
  --text: #10162F; --text-secondary: rgba(16,22,47,.75); --background: #fff; --background-primary: #FFF0E5;
  --primary: #3A10E5; --primary-hover: #5533FF; --secondary: #10162F; --shadow-primary: #10162F;
  --ln: color-mix(in srgb, var(--text) 13%, transparent); --hl: #F966FF;
  --t: .6s cubic-bezier(.2, .8, .2, 1);
  position: relative; background: var(--background-primary); color: var(--text); font-family: var(--cc);
  padding: clamp(18px, 3.2vw, 36px); transition: background var(--t), color var(--t);
}
.gx-tk-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.gx-code { font: 500 13.5px var(--ccm); color: var(--text-secondary); transition: color var(--t); }
.gx-code b { font-weight: 600; color: var(--primary); transition: color var(--t); }
.gx-tog { position: relative; display: flex; padding: 3px; border: 1px solid var(--ln); transition: border-color var(--t); }
.gx-tog::before { content: ''; position: absolute; top: 3px; left: 3px; width: calc(50% - 3px); bottom: 3px; background: var(--text); transition: transform .5s cubic-bezier(.34, 1.36, .5, 1), background var(--t); }
.gx-tk[data-mode="dark"] .gx-tog::before { transform: translateX(100%); }
.gx-tog button { position: relative; z-index: 1; height: 30px; padding: 0 16px; border: 0; background: none; font: 600 12.5px var(--ccm); color: var(--text-secondary); cursor: pointer; transition: color .4s; }
.gx-tog button[aria-pressed="true"] { color: var(--background-primary); }
.gx-tog button:active { transform: scale(.96); }

.gx-tk-g { display: grid; grid-template-columns: 148px minmax(40px, 72px) 262px minmax(0, 1fr); align-items: start; }
.gx-col .gx-lab { color: var(--text-secondary); margin-bottom: 12px; display: flex; justify-content: space-between; transition: color var(--t); }
.gx-col .gx-lab span { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: .7; }
.gx-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gx-core li { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 8px 0 4px; font: 500 12.5px var(--ccm); color: var(--text-secondary); opacity: .42; transition: opacity .5s, color var(--t), background .3s; }
.gx-core li i { width: 22px; height: 22px; flex: none; box-shadow: inset 0 0 0 1px var(--ln); }
.gx-core li b { font-weight: 500; }
.gx-core li.used { opacity: 1; color: var(--text); }
.gx-core li.on { background: color-mix(in srgb, var(--hl) 22%, transparent); }
.gx-al ul { gap: 8px; }
.gx-al li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; height: 38px; padding: 0 10px 0 8px; background: var(--background); border: 1px solid var(--ln); cursor: default; outline: none;
  transition: background var(--t), border-color .25s, box-shadow .25s; }
.gx-al li i { width: 22px; height: 22px; box-shadow: inset 0 0 0 1px var(--ln); transition: background var(--t); }
.gx-al li[data-alias="text"] i { background: var(--text); } .gx-al li[data-alias="text-secondary"] i { background: var(--text-secondary); }
.gx-al li[data-alias="background"] i { background: var(--background); } .gx-al li[data-alias="background-primary"] i { background: var(--background-primary); }
.gx-al li[data-alias="primary"] i { background: var(--primary); } .gx-al li[data-alias="primary-hover"] i { background: var(--primary-hover); }
.gx-al li[data-alias="secondary"] i { background: var(--secondary); } .gx-al li[data-alias="shadow-primary"] i { background: var(--shadow-primary); }
.gx-al li b { font: 600 13px var(--ccm); white-space: nowrap; }
.gx-al li span { font: 400 11.5px var(--ccm); color: var(--text-secondary); transition: color var(--t); }
.gx-al li.on, .gx-al li:focus-visible { border-color: var(--hl); box-shadow: 0 0 0 1px var(--hl); }

.gx-wires { grid-column: 2; grid-row: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.gx-wires g { color: var(--text); opacity: .3; transition: opacity .3s, color .3s; }
.gx-wires path { fill: none; stroke: currentColor; stroke-width: 1.25; }
.gx-wires circle { fill: currentColor; }
.gx-tk.hl .gx-wires g { opacity: .1; }
.gx-tk.hl .gx-wires g.on { opacity: 1; color: var(--hl); }
.gx-wires g.on path { stroke-width: 2; }

/* the product preview: every color in it comes from an alias */
.gx-prod { margin-left: clamp(24px, 4vw, 56px); background: var(--background); color: var(--text); box-shadow: 0 0 0 1px var(--ln); transition: background var(--t), color var(--t), box-shadow .25s; }
.gx-prod.on { box-shadow: 0 0 0 2px var(--hl); }
.gp-nav { display: flex; align-items: center; gap: 18px; white-space: nowrap; min-width: 0; height: 52px; padding: 0 18px; border-bottom: 1px solid var(--ln); transition: border-color var(--t); }
.gp-nav img { height: 15px; width: auto; filter: brightness(0); transition: filter var(--t); }
.gx-tk[data-mode="dark"] .gp-nav img { filter: none; }
.gp-links { display: flex; overflow: hidden; align-items: center; gap: 14px; font-size: 13px; color: var(--text-secondary); transition: color var(--t); }
.gp-fill { margin-left: auto; white-space: nowrap; height: 32px; padding: 0 14px; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--primary); color: var(--background); transition: background var(--t), color var(--t); }
.gx-prod:hover .gp-fill { background: var(--primary-hover); }
.gp-body { padding: 26px 26px 24px; }
.gp-eye { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-secondary); transition: color var(--t); }
.gp-pro { height: 18px; padding: 0 5px; display: grid; place-items: center; background: var(--secondary); color: var(--background); font: 700 11px var(--ccm); transition: background var(--t), color var(--t); }
.gx-prod h4 { margin: 12px 0 6px; font-size: 30px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.gx-prod p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text-secondary); max-width: 34ch; transition: color var(--t); }
.gp-prog { display: flex; align-items: center; gap: 12px; margin-top: 20px; font: 500 12px var(--ccm); color: var(--text-secondary); transition: color var(--t); }
.gp-bar { flex: 1; height: 6px; background: var(--ln); transition: background var(--t); }
.gp-bar i { display: block; width: 42%; height: 100%; background: var(--primary); transition: background var(--t); }
.gp-act { display: flex; align-items: center; gap: 22px; margin-top: 26px; }
.gp-cta { height: 42px; padding: 0 20px; display: grid; place-items: center; background: var(--primary); color: var(--background); font: 600 14.5px var(--ccm); box-shadow: -4px 4px 0 var(--shadow-primary); transition: background var(--t), color var(--t), box-shadow var(--t); }
.gp-link { font-weight: 700; font-size: 14px; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; transition: color var(--t); }
.gp-card { margin-top: 26px; padding: 14px 16px; background: var(--background-primary); border: 1px solid var(--ln); display: flex; flex-direction: column; gap: 2px; transition: background var(--t), border-color var(--t); }
.gp-card span { font: 500 11px var(--ccm); letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); transition: color var(--t); }
.gp-card b { font-size: 15px; }
/* tracing: matching elements get a ring, the rest step back */
.gx-prod [data-uses] { transition: opacity .3s, outline-color .2s, background var(--t), color var(--t), box-shadow var(--t), filter var(--t); outline: 2px dashed transparent; outline-offset: 4px; }
.gx-tk.hl .gx-prod [data-uses]:not(.on) { opacity: .28; }
.gx-tk.hl .gx-prod [data-uses].on { outline-color: var(--hl); opacity: 1; }
.gx-tk.hl .gx-prod .gp-card:has(.on) { opacity: 1; }

@media (max-width: 860px) {
  .gx-tk-g { grid-template-columns: 1fr; gap: 24px; }
  .gx-core, .gx-wires { display: none; }
  .gx-prod { margin-left: 0; }
  .gx-al ul { grid-template-columns: 1fr 1fr; }
  .gx-tk-h { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .gx-al ul { grid-template-columns: 1fr; }
  .gp-links { display: none; }
  .gx-code { font-size: 12px; }
}

/* ---------- 2. coverage ---------- */
.gx-sc { position: relative; background: #FFFBF8; color: #10162F; font-family: var(--cc); padding: clamp(18px, 3.2vw, 36px); transition: opacity .45s; }
.gx-sc.reset .gx-c { opacity: 0; transition: opacity .4s; }
.gx-sc-h { display: flex; align-items: flex-end; gap: clamp(20px, 4vw, 56px); margin-bottom: 20px; }
.gx-sc-h .gx-lab { color: #585C6D; margin-right: auto; align-self: flex-start; }
.gx-sc-n { display: flex; flex-direction: column; align-items: flex-end; }
.gx-sc-n b { font-size: clamp(28px, 4vw, 44px); font-weight: 700; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.gx-sc-n span { font: 500 11.5px var(--ccm); color: #707382; margin-top: 4px; }
.gx-sc-lane { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.gx-pj { padding: 10px 10px 12px; border: 1px solid #DBDCE0; background: #fff; transition: border-color .3s, transform .4s cubic-bezier(.2, .8, .2, 1); }
.gx-pj span { display: block; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 9px; color: #585C6D; transition: color .3s; }
.gx-pj.on { border-color: #10162F; transform: translateY(-3px); }
.gx-pj.on span, .gx-pj.done span { color: #10162F; }
.gx-pj .bar { display: flex; height: 8px; background: #F3F3F5; }
.gx-pj .bar i { height: 100%; transform: scaleX(0); transform-origin: left; }
.gx-pj .bar .f { width: 88%; background: #10162F; transition: transform .55s cubic-bezier(.2, .8, .2, 1); }
.gx-pj .bar .s { width: 12%; background: #3A10E5; transition: transform .3s cubic-bezier(.2, .8, .2, 1) .5s; }
.gx-pj.run .bar i { transform: none; }
.gx-sc-key { display: flex; align-items: center; gap: 18px; margin: 14px 0 22px; font: 500 11.5px var(--ccm); color: #707382; }
.gx-sc-key i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.gx-sc-key .k-f { background: #10162F; } .gx-sc-key .k-s { background: #3A10E5; }
.gx-sc-msg { margin-left: auto; font: 400 13px var(--cc); color: #585C6D; text-align: right; }
.gx-sc-msg b { color: #10162F; }
.gx-sc-grid { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 6px; }
.gx-c { position: relative; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; border: 1px dashed rgba(16, 22, 47, .2); background: rgba(255, 255, 255, .5); transition: border-color .4s, background .4s; }
/* glyphs are sized off the cell's width, so they scale with the grid */
.gx-c .gx-g { display: block; position: relative; width: var(--w); aspect-ratio: 2.8; background: var(--c); border-radius: var(--r); box-shadow: var(--s); translate: var(--dx) var(--dy);
  transition: background .45s, border-radius .45s, box-shadow .45s, translate .45s cubic-bezier(.2, .8, .2, 1), width .45s cubic-bezier(.2, .8, .2, 1); }
.gx-c.k-field .gx-g { aspect-ratio: 3.4; background: #fff; border: 1.5px solid var(--c); }
.gx-c.k-card .gx-g { width: 54%; aspect-ratio: 1.25; background: #fff; border: 1.5px solid var(--c); }
.gx-c.k-card .gx-g::before { content: ''; position: absolute; inset: 0 0 60%; background: var(--c); transition: background .45s; }
.gx-c.k-tag .gx-g { width: 34%; aspect-ratio: 2; background: color-mix(in srgb, var(--c) 22%, #fff); border: 1px solid var(--c); }
.gx-c.k-tog .gx-g { width: 32%; aspect-ratio: 1.8; border-radius: 999px; }
.gx-c.k-tog .gx-g::after { content: ''; position: absolute; top: 14%; bottom: 14%; right: 7%; aspect-ratio: 1; border-radius: 50%; background: #fff; }
.gx-c.k-av .gx-g { width: 24%; aspect-ratio: 1; border-radius: 50%; }
/* on Gamut: one color, square corners, the house shadow on buttons */
.gx-c.ok { border: 1px solid #DBDCE0; background: #fff; }
.gx-c.ok .gx-g { --c: #3A10E5; --r: 0; --w: 58%; --s: none; translate: 0 0; }
.gx-c.ok.k-btn .gx-g { box-shadow: -3px 3px 0 #10162F; }
.gx-c.ok.k-tag .gx-g { --c: #10162F; }
.gx-c.ok.k-av .gx-g { --c: #10162F; border-radius: 50%; }
.gx-c.ok.k-tog .gx-g { border-radius: 999px; }
.gx-c.ok::after { content: ''; position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; background: #3A10E5; }
.gx-c.ok.near::after { background: #AEE938; }
.gx-c.ok { animation: gxpop .5s cubic-bezier(.34, 1.4, .5, 1); }
@keyframes gxpop { 0% { transform: scale(.86); } 100% { transform: none; } }
@media (max-width: 860px) {
  .gx-sc-lane { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gx-sc-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .gx-sc-key { flex-wrap: wrap; }
  .gx-sc-msg { margin-left: 0; width: 100%; text-align: left; min-height: 1.4em; }
}
@media (max-width: 520px) {
  .gx-sc-h { flex-wrap: wrap; gap: 14px 28px; }
  .gx-sc-h .gx-lab { width: 100%; }
  .gx-sc-n { align-items: flex-start; }
  .gx-pj span { font-size: 11.5px; }
}

/* ---------- 3. contribution flow ---------- */
.gx-fl { position: relative; background: #10162F; color: #fff; font-family: var(--cc); padding: clamp(84px, 9vw, 104px) clamp(18px, 3.2vw, 36px) clamp(22px, 3.2vw, 36px); }
.gx-fl-st { position: relative; z-index: 2; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.gx-fl-st li { position: relative; display: flex; flex-direction: column; padding: 18px 16px 18px; border: 1px solid rgba(255, 255, 255, .1); background: #0D1226; transition: border-color .35s, background .35s; }
.gx-fl-st .dot { position: absolute; top: -30px; left: 16px; width: 11px; height: 11px; background: #10162F; border: 2px solid #585C6D; transition: background .3s, border-color .3s; }
.gx-fl-st .n { font: 500 11.5px var(--ccm); color: #707382; }
.gx-fl-st b { font-size: 19px; letter-spacing: -.02em; margin: 6px 0 2px; }
.gx-fl-st .who { font-size: 13.5px; font-weight: 600; color: #DBDCE0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gx-fl-st .who em { font: 600 10.5px var(--ccm); font-style: normal; height: 18px; padding: 0 6px; display: inline-grid; place-items: center; background: #FFD300; color: #10162F; }
.gx-fl-st .how { margin-top: 10px; font-size: 13px; line-height: 1.45; color: #9FA2AC; }
.gx-fl-st li.new { border-color: rgba(255, 211, 0, .35); }
.gx-fl-st li.on { border-color: #FFD300; background: #141B38; }
.gx-fl-st li.on .dot, .gx-fl-st li.done .dot { background: #FFD300; border-color: #FFD300; }
.shipped { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; min-height: 22px; }
.shipped i { font: 600 11px var(--ccm); font-style: normal; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; background: #AEE938; color: #10162F; animation: gxin .45s cubic-bezier(.34, 1.4, .5, 1) both; }
@keyframes gxin { from { opacity: 0; transform: translateY(6px) scale(.9); } }
.gx-fl-line { position: absolute; z-index: 1; background: rgba(255, 255, 255, .12); translate: -1px -1px; }
.gx-fl-line i { position: absolute; inset: 0; background: #FFD300; transform-origin: 0 0; transform: scaleX(0); transition: transform .9s cubic-bezier(.65, 0, .25, 1); }
.gx-fl-chip { position: absolute; z-index: 3; left: 0; top: 0; height: 30px; padding: 0 12px; display: grid; place-items: center; white-space: nowrap; background: #FFD300; color: #10162F; font: 600 13px var(--ccm);
  box-shadow: -3px 3px 0 #fff; transition: transform .9s cubic-bezier(.65, 0, .25, 1), opacity .35s; }
.gx-fl-chip.land { opacity: 0; }
.gx-fl.jump .gx-fl-chip, .gx-fl.jump .gx-fl-line i { transition: none; }
.gx-fl.col .gx-fl-line i { transform: scaleY(0); }
@media (max-width: 860px) {
  .gx-fl { padding: 24px 18px 24px 52px; }
  .gx-fl-st { grid-template-columns: 1fr; gap: 10px; }
  .gx-fl-st li { padding: 14px 16px; }
  .gx-fl-st .dot { top: 20px; left: -36px; }
  .gx-fl-chip { font-size: 11.5px; height: 26px; padding: 0 9px; box-shadow: none; }
  .gx-fl-st .how { margin-top: 4px; }
  /* in a column the chip rides on the cards' right edge */
  .gx-fl.col .gx-fl-chip { margin-left: calc(100% - 140px); }
}

/* ---------- 4. Learning Environment: core theme in dark mode, plus the platform editor layer ---------- */
.gx-le {
  --navy: #10162F; --deep: #0A0D1C; --ink: #fff; --mut: #9FA2AC; --ln: rgba(255,255,255,.1); --yellow: #FFD300;
  --c-core: #FFD300; --c-ext: #F966FF; --t: .5s cubic-bezier(.2, .8, .2, 1);
  background: var(--navy); color: var(--ink); font-family: var(--cc); padding: clamp(16px, 3vw, 32px); border-radius: 12px;
}
.gx-le-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.gx-le .gx-code { color: var(--mut); line-height: 1.55; }
.gx-le .gx-code b { color: var(--c-core); }
.gx-le .gx-code b.x { color: var(--c-ext); }
.gx-le-tog { display: flex; padding: 3px; border: 1px solid var(--ln); gap: 2px; }
.gx-le-tog button, .gx-le .edt button { height: 30px; padding: 0 14px; border: 0; background: none; font: 600 12.5px var(--ccm); color: var(--mut); cursor: pointer; transition: color .3s, background .3s; }
.gx-le-tog button[aria-pressed="true"] { background: var(--ink); color: var(--navy); }
.gx-le-tog button:active, .gx-le .edt button:active { transform: scale(.96); }

.gx-le-win { border: 1px solid var(--ln); background: var(--navy); overflow: hidden; }
.gx-le [data-l] { transition: opacity var(--t), outline-color var(--t), filter var(--t); outline: 2px dashed transparent; outline-offset: -2px; }
.gx-le[data-layer="core"] [data-l="ext"], .gx-le[data-layer="ext"] [data-l="core"] { opacity: .22; filter: saturate(.3); }
.gx-le[data-layer="core"] [data-l="core"] { outline-color: var(--c-core); }
.gx-le[data-layer="ext"] [data-l="ext"] { outline-color: var(--c-ext); }
/* the editor pane is learning-layer, but its Run button is core, so the pane dims its parts rather than itself */
.gx-le-ed { outline: 2px dashed transparent; outline-offset: -2px; }
.gx-le[data-layer="ext"] .gx-le-ed { outline-color: var(--c-ext); }
.gx-le[data-layer="ext"] .gx-le-ed [data-l="ext"] { outline-color: transparent; }
.gx-le[data-layer="core"] .gx-le-ed { background: color-mix(in srgb, var(--e-bg) 30%, var(--navy)); }

.gx-le-top { display: flex; align-items: center; gap: 16px; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--ln); font-size: 13px; }
.gx-le-top img { height: 18px; filter: brightness(0) invert(1); }
.gx-le-top .cr { color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-le-top .cr b { color: var(--ink); font-weight: 600; }
.gx-le-top .pg { margin-left: auto; display: flex; align-items: center; gap: 10px; font: 500 11.5px var(--ccm); color: var(--mut); white-space: nowrap; }
.gx-le-top .pg i { width: 72px; height: 6px; background: rgba(255,255,255,.12); }
.gx-le-top .pg b { display: block; width: 44%; height: 100%; background: var(--yellow); }
.gx-le-top .av { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #F966FF; color: var(--navy); font: 700 12px var(--cc); }

.gx-le-body { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.35fr) minmax(0, .8fr); min-height: 360px; }
.gx-le-ins { display: flex; flex-direction: column; padding: 22px 20px 18px; border-right: 1px solid var(--ln); }
.gx-le-ins .lab { font: 600 11px var(--ccm); letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.gx-le-ins h4 { margin: 10px 0 8px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.gx-le-ins p { margin: 0 0 18px; font-size: 13.5px; line-height: 1.55; color: #D0D1D5; }
.gx-le code { font: 500 .92em var(--ccm); padding: 1px 4px; background: rgba(255,255,255,.08); border-radius: 0; }
.gx-le-ins .cps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 13px; line-height: 1.45; }
.gx-le-ins .cps li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; color: #D0D1D5; }
.gx-le-ins .bx { width: 18px; height: 18px; margin-top: 1px; border: 2px solid rgba(255,255,255,.5); transition: background .25s, border-color .25s; position: relative; }
.gx-le-ins .ok .bx { background: var(--yellow); border-color: var(--yellow); }
.gx-le-ins .ok .bx::after { content: ''; position: absolute; left: 4px; top: 0; width: 5px; height: 9px; border: solid var(--navy); border-width: 0 2px 2px 0; rotate: 45deg; }
.gx-le-ins .ft { margin-top: auto; padding-top: 22px; display: flex; justify-content: space-between; align-items: center; font: 600 13px var(--ccm); }
.gx-le-ins .ghost { color: var(--mut); }
.gx-le-ins .next { height: 34px; padding: 0 16px; display: inline-flex; align-items: center; background: rgba(255,255,255,.1); color: var(--mut); transition: background .3s, color .3s, box-shadow .3s; }
.gx-le-ins .next.go { background: var(--yellow); color: var(--navy); box-shadow: -3px 3px 0 #fff; }

.gx-le-ed { display: flex; flex-direction: column; background: var(--e-bg); color: var(--e-basic); transition: background var(--t), color var(--t), opacity var(--t), outline-color var(--t), filter var(--t); border-right: 1px solid var(--ln); min-width: 0; }
.gx-le .tabs { display: flex; align-items: center; height: 38px; padding-left: 4px; border-bottom: 1px solid var(--ln); font: 500 12px var(--ccm); background: var(--deep); color: var(--mut); }
.gx-le .tabs > span { padding: 0 12px; height: 100%; display: flex; align-items: center; }
.gx-le .tabs > span.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--c-ext); }
.gx-le .edt { margin-left: auto; display: flex; margin-right: 6px; }
.gx-le .edt button { height: 24px; padding: 0 9px; font-size: 11px; }
.gx-le .edt button[aria-pressed="true"] { color: var(--ink); background: rgba(255,255,255,.12); }
.gx-le .code { flex: 1; padding: 14px 0; font: 500 13px/1.75 var(--ccm); overflow: hidden; }
.gx-le .ln { display: flex; white-space: nowrap; }
.gx-le .ln .no { flex: none; width: 40px; padding-right: 14px; text-align: right; color: var(--e-ln); transition: color var(--t); }
.gx-le .ln.on .no { color: var(--e-lnOn); }
.gx-le .ln .tx { position: relative; }
.gx-le .ln .tx span { transition: color var(--t); }
.gx-le .ind { display: inline-block; width: 4ch; height: 1.75em; vertical-align: top; box-shadow: inset 1px 0 0 var(--e-indent); transition: box-shadow var(--t); }
.gx-le .run-row { display: flex; justify-content: flex-end; padding: 12px 16px 16px; }
.gx-le .run { height: 38px; padding: 0 22px; border: 0; background: var(--yellow); color: var(--navy); font: 600 14px var(--ccm); cursor: pointer; box-shadow: -4px 4px 0 #fff; transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s cubic-bezier(.2, .8, .2, 1); }
@media (hover: hover) and (pointer: fine) { .gx-le .run:hover { transform: translate(2px, -2px); box-shadow: -6px 6px 0 #fff; } }
.gx-le .run:active, .gx-le .run.press { transform: translate(-4px, 4px); box-shadow: 0 0 0 #fff; transition-duration: .09s; }
.gx-le .run:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }

.gx-le-out { display: flex; flex-direction: column; background: var(--deep); min-width: 0; }
.gx-le .con { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; font: 500 13px/1.6 var(--ccm); }
.gx-le .con .pr { color: var(--mut); }
.gx-le .con .res { color: var(--ink); min-height: 1.6em; }
.gx-le .con .cur { width: 8px; height: 15px; background: var(--mut); animation: gx-blink 1.1s steps(1) infinite; }
@keyframes gx-blink { 50% { opacity: 0; } }

.gx-le-key { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.gx-le-key > div { padding: 16px 18px; border: 1px solid var(--ln); cursor: default; transition: border-color .3s; }
.gx-le-key .gx-lab { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.gx-le-key .gx-lab i { width: 10px; height: 10px; border: 2px dashed var(--c-core); }
.gx-le-key [data-k="ext"] .gx-lab i { border-color: var(--c-ext); }
.gx-le[data-layer="core"] [data-k="core"] { border-color: var(--c-core); }
.gx-le[data-layer="ext"] [data-k="ext"] { border-color: var(--c-ext); }
.gx-le-key p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--mut); }
.gx-le-key .roles { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.gx-le-key .roles li { display: flex; align-items: center; gap: 6px; }
.gx-le-key .roles i { width: 10px; height: 10px; transition: background var(--t); box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.gx-le-key .roles code { background: none; padding: 0; font-size: 11.5px; color: var(--mut); }

@media (max-width: 860px) {
  .gx-le-body { grid-template-columns: 1fr; }
  .gx-le-ins, .gx-le-ed { border-right: 0; border-bottom: 1px solid var(--ln); }
  .gx-le-out .con { min-height: 84px; }
  .gx-le-key { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .gx-le { border-radius: 8px; }
  .gx-le-top .pg { display: none; }
  .gx-le-tog button { padding: 0 10px; font-size: 11.5px; }
  .gx-le .code { font-size: 12px; }
  .gx-le .ln .no { width: 30px; padding-right: 10px; }
}

/* three square teasers under the hero, the same trio as the homepage */
.gx-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
@media (max-width: 860px) { .gx-trio { gap: 10px; margin-top: 10px; } }
@media (max-width: 520px) {
  .gx-trio { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .gx-trio::-webkit-scrollbar { display: none; }
  .gx-trio > * { flex: 0 0 78%; scroll-snap-align: start; }
}

.p-cap + .gx-trio { margin-top: 32px; }

/* ---------- 5. component kit: a bento spread of Gamut components, themed by the core aliases ---------- */
.gx-kit {
  --bg: #FFF0E5; --pn: #fff; --tx: #10162F; --tx2: rgba(16,22,47,.75); --mu: rgba(16,22,47,.5); --ln: rgba(16,22,47,.12); --ln2: rgba(16,22,47,.28);
  --pri: #3A10E5; --pri-h: #5533FF; --on-pri: #fff; --sec: #10162F; --on-sec: #fff; --sh: #10162F; --hov: rgba(16,22,47,.04); --cur: rgba(58,16,229,.07);
  --dng: #E91C11; --err: #BE1809; --ok: #008A27; --yel: #FFD300; --dis: rgba(16,22,47,.12); --dis-tx: rgba(16,22,47,.4); --dot: rgba(16,22,47,.1);
  --t: .5s cubic-bezier(.2, .8, .2, 1);
  position: relative; padding: clamp(14px, 2.4vw, 28px); border-radius: 12px; font: 400 14px/1.4 var(--cc); color: var(--tx);
  background: var(--bg) radial-gradient(var(--dot) 1px, transparent 1px) 0 0 / 18px 18px; transition: background-color var(--t), color var(--t);
}
.gx-kit[data-mode="dark"] {
  --bg: #0A0D1C; --pn: #10162F; --tx: #fff; --tx2: rgba(255,255,255,.75); --mu: rgba(255,255,255,.5); --ln: rgba(255,255,255,.12); --ln2: rgba(255,255,255,.3);
  --pri: #FFD300; --pri-h: #CCA900; --on-pri: #10162F; --sec: #fff; --on-sec: #10162F; --sh: #fff; --hov: rgba(255,255,255,.05); --cur: rgba(255,211,0,.1);
  --dng: #E85D7F; --err: #E85D7F; --ok: #AEE938; --dis: rgba(255,255,255,.12); --dis-tx: rgba(255,255,255,.4); --dot: rgba(255,255,255,.07);
}
.gx-kit * { box-sizing: border-box; }
.gx-kit b { font-weight: 700; color: inherit; }
.gx-kit .ki { width: 16px; height: 16px; flex: none; }
.gx-kit .kh { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.gx-kit .kt { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; font: 500 13px var(--ccm); color: var(--tx2); }
.gx-kit .gm { font: 700 26px/1 var(--cc); letter-spacing: -.03em; color: var(--tx); }
.gx-kit .kmode { display: flex; padding: 3px; border: 1px solid var(--ln); background: var(--pn); }
.gx-kit .kmode button { height: 30px; padding: 0 16px; border: 0; background: none; font: 600 12.5px var(--ccm); color: var(--tx2); cursor: pointer; transition: background .3s, color .3s; }
.gx-kit .kmode button[aria-pressed="true"] { background: var(--tx); color: var(--pn); }
.gx-kit .kmode button:active { transform: scale(.96); }

.gx-kit .kg { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.gx-kit .kp { position: relative; min-width: 0; padding: 40px 18px 18px; background: var(--pn); border: 1px solid var(--ln); border-radius: 4px; display: flex; flex-direction: column; gap: 12px; transition: background-color var(--t), border-color var(--t); }
.gx-kit .s4 { grid-column: span 4; } .gx-kit .s6 { grid-column: span 6; } .gx-kit .s8 { grid-column: span 8; }
.gx-kit .kn { position: absolute; top: 14px; left: 18px; right: 18px; font: 500 11px var(--ccm); color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-kit .kr { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* buttons */
.gx-kit .kb { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 2px; font: 700 14px var(--cc); white-space: nowrap; transition: background-color var(--t), color var(--t), box-shadow var(--t); }
.gx-kit .kb.fill { background: var(--pri); color: var(--on-pri); }
.gx-kit .kb.fill.sec { background: var(--sec); color: var(--on-sec); }
.gx-kit .kb.fill.dng { background: var(--dng); color: #fff; }
.gx-kit .kb.strk { box-shadow: inset 0 0 0 1px var(--pri); color: var(--pri); }
.gx-kit .kb.txt { padding: 0 8px; color: var(--pri); }
.gx-kit .kb.cta { margin-left: 4px; background: var(--pri); color: var(--on-pri); font-family: var(--ccm); font-weight: 600; box-shadow: -4px 4px 0 var(--sh); }
.gx-kit .kb.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.gx-kit .kb.lg { height: 48px; padding: 0 22px; font-size: 16px; }
.gx-kit .kb.icn { width: 40px; padding: 0; color: var(--tx); }
.gx-kit .kb.icn.on { background: var(--hov); box-shadow: inset 0 0 0 1px var(--ln); }
.gx-kit .kb .ki { width: 18px; height: 18px; }
.gx-kit .kst { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding-top: 12px; border-top: 1px solid var(--ln); }
.gx-kit .kst > span { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.gx-kit .kst em { font: normal 500 11px var(--ccm); color: var(--mu); }
.gx-kit .kst .kb { width: 100%; padding: 0 6px; height: 36px; font-size: 13px; }
.gx-kit .kb.st1 { background: var(--pri-h); }
.gx-kit .kb.st2 { background: var(--pri-h); transform: scale(.97); }
.gx-kit .kb.st3 { box-shadow: 0 0 0 2px var(--pn), 0 0 0 4px var(--pri); }
.gx-kit .kb.st4 { background: var(--dis); color: var(--dis-tx); }

/* form */
.gx-kit .kf2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.gx-kit .kfi { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.gx-kit .kl { font: 700 12.5px var(--cc); }
.gx-kit .kin { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--ln2); border-radius: 2px; background: var(--pn); color: var(--tx); white-space: nowrap; overflow: hidden; transition: border-color var(--t), background-color var(--t); }
.gx-kit .kin.sel { justify-content: space-between; }
.gx-kit .kin.srch em { font-style: normal; color: var(--mu); }
.gx-kit .kfi.foc .kin { border-color: var(--pri); box-shadow: inset 0 0 0 1px var(--pri); }
.gx-kit .caret { display: inline-block; width: 1px; height: 16px; margin-left: 1px; background: var(--tx); vertical-align: middle; animation: gx-blink 1.1s steps(1) infinite; }
.gx-kit .kfi.err .kin { border-color: var(--err); box-shadow: inset 0 0 0 1px var(--err); }
.gx-kit .km { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--err); }
.gx-kit .km .ki { width: 13px; height: 13px; }
.gx-kit .kfi.dis .kl, .gx-kit .kfi.dis .kin { color: var(--dis-tx); }
.gx-kit .kfi.dis .kin { background: var(--hov); border-color: var(--ln); }
.gx-kit .kchk { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--ln); font-size: 13px; color: var(--tx2); }
.gx-kit .kc { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border: 2px solid var(--tx); border-radius: 2px; color: var(--pn); }
.gx-kit .kchk .kc:not(:first-child), .gx-kit .kchk .kra { margin-left: 8px; }
.gx-kit .kc.on { background: var(--tx); }
.gx-kit .kc .ki { width: 12px; height: 12px; stroke-width: 3.5; }
.gx-kit .kc.ind { background: var(--tx); } .gx-kit .kc.ind i { width: 8px; height: 2px; background: var(--pn); }
.gx-kit .kra { width: 18px; height: 18px; border: 2px solid var(--tx); border-radius: 50%; position: relative; }
.gx-kit .kra.on::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--tx); }
.gx-kit .ktg { position: relative; width: 40px; height: 22px; border-radius: 99px; background: var(--ln2); margin-left: 10px; transition: background-color .3s; }
.gx-kit .ktg::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.gx-kit .ktg.on { background: var(--pri); }
.gx-kit .ktg.on::after { transform: translateX(18px); background: var(--on-pri); }

/* alerts */
.gx-kit .kals { display: flex; flex-direction: column; gap: 8px; }
.gx-kit .kal { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 2px; font-size: 13.5px; color: #fff; }
.gx-kit .kal span { flex: 1; min-width: 0; }
.gx-kit .kal b { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.gx-kit .kal .ki { width: 18px; height: 18px; }
.gx-kit .kal .cl { width: 15px; height: 15px; opacity: .8; }
.gx-kit .kal.general { background: #1557FF; }
.gx-kit .kal.success { background: #008A27; }
.gx-kit .kal.error { background: #BE1809; }
.gx-kit .kal.notice { background: #FF8C00; color: #10162F; }
.gx-kit .kal.feature { background: #66C4FF; color: #10162F; }

/* badges and tags */
.gx-kit .kbd { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; font: 700 12px var(--cc); letter-spacing: .02em; text-transform: uppercase; transition: background-color var(--t), color var(--t); }
.gx-kit .kbd.sm { height: 20px; padding: 0 8px; font-size: 10.5px; }
.gx-kit .kbd.pri { background: var(--tx); color: var(--pn); }
.gx-kit .kbd.acc { background: #FFD300; color: #10162F; }
.gx-kit .kbd.sec { background: var(--tx2); color: var(--pn); }
.gx-kit .kbd.ter { box-shadow: inset 0 0 0 1px var(--tx2); color: var(--tx2); }
.gx-kit .ktag { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 12px; border-radius: 2px; font-size: 13px; background: var(--dis); color: var(--tx); }
.gx-kit .ktag .ki { width: 13px; height: 13px; }
.gx-kit .ktag.sel { background: var(--tx2); color: var(--pn); }
.gx-kit .ktag.nav { background: var(--cur); color: var(--pri); box-shadow: inset 0 0 0 1px var(--pri); }
.gx-kit .ktag.sug { padding: 0 12px; background: none; box-shadow: inset 0 0 0 1px var(--ln2); }
.gx-kit .ktag.dis { padding: 0 12px; background: var(--hov); color: var(--dis-tx); }

/* tabs */
.gx-kit .ktabs { position: relative; margin-top: 2px; display: flex; gap: 20px; border-bottom: 1px solid var(--ln); font-weight: 700; font-size: 14px; overflow: hidden; }
.gx-kit .ktabs span { padding: 6px 0 12px; color: var(--tx2); white-space: nowrap; transition: color .3s; }
.gx-kit .ktabs span.on { color: var(--tx); }
.gx-kit .ktabs .ink { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--pri); transition: transform .45s cubic-bezier(.2, .8, .2, 1), width .45s cubic-bezier(.2, .8, .2, 1), background-color var(--t); }
.gx-kit .ktp { display: flex; flex-direction: column; gap: 8px; }
.gx-kit .sk { height: 8px; border-radius: 2px; background: var(--dis); }
.gx-kit .w90 { width: 90%; } .gx-kit .w80 { width: 80%; } .gx-kit .w70 { width: 70%; } .gx-kit .w50 { width: 50%; }

/* progress */
.gx-kit .kpb .h { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.gx-kit .kpb .h b { font: 600 12.5px var(--ccm); }
.gx-kit .bar { display: block; height: 10px; border-radius: 99px; background: var(--dis); overflow: hidden; box-shadow: inset 0 0 0 1px var(--ln); }
.gx-kit .bar i { display: block; height: 100%; border-radius: 99px; background: var(--pri); transition: width .8s cubic-bezier(.2, .8, .2, 1), background-color var(--t); }
.gx-kit .kpb.y .bar i { background: #FFD300; }
.gx-kit .kpb.s { display: flex; gap: 6px; }
.gx-kit .bar.sm { flex: 1; height: 6px; }
.gx-kit .bar.sm i { background: var(--tx); }
.gx-kit .kpb.inl { display: block; width: 100%; }
.gx-kit .kpb.inl .bar { height: 6px; }
.gx-kit .krad { display: flex; align-items: center; gap: 12px; }
.gx-kit .krad svg { width: 56px; height: 56px; transform: rotate(-90deg); }
.gx-kit .krad circle { fill: none; stroke: var(--dis); stroke-width: 6; }
.gx-kit .krad circle.v { stroke: var(--pri); stroke-dasharray: 163.4; stroke-linecap: butt; transition: stroke-dashoffset .8s cubic-bezier(.2, .8, .2, 1), stroke var(--t); }
.gx-kit .krad b { font: 600 15px var(--ccm); }
.gx-kit .krad span { font: 500 11px var(--ccm); color: var(--mu); }

/* card: Gamut's pattern shadow */
.gx-kit .kcard { position: relative; margin: 4px 0 8px 8px; padding: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; background: var(--pn); border: 1px solid var(--tx); box-shadow: -8px 8px 0 var(--sh); transition: box-shadow var(--t), border-color var(--t); }
.gx-kit .kcard > b { font-size: 18px; letter-spacing: -.01em; }
.gx-kit .kck { display: flex; align-items: center; gap: 8px; font: 600 11.5px var(--ccm); text-transform: uppercase; letter-spacing: .06em; color: var(--tx2); }
.gx-kit .kcm { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--tx2); }
.gx-kit .kcm .ki { width: 14px; height: 14px; }

/* tips */
.gx-kit .ktips { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
.gx-kit .ktl { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.gx-kit .kttb { position: relative; padding: 6px 10px; border-radius: 2px; background: var(--tx); color: var(--pn); font-size: 12.5px; white-space: nowrap; }
.gx-kit .kttb i { position: absolute; left: 15px; bottom: -4px; width: 9px; height: 9px; background: var(--tx); rotate: 45deg; }
.gx-kit .kinfo { display: flex; align-items: center; gap: 6px; color: var(--tx2); }
.gx-kit .kinfo .ki { width: 18px; height: 18px; }
.gx-kit .kinfo em { font: normal 500 11px var(--ccm); color: var(--mu); }
.gx-kit .kanc { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding-top: 12px; border-top: 1px solid var(--ln); font-size: 13.5px; }
.gx-kit .ka { color: var(--pri); font-weight: 700; }
.gx-kit .ka.sec { color: var(--tx); text-decoration: underline; text-underline-offset: 3px; font-weight: 400; }
.gx-kit .kai { color: var(--tx2); } .gx-kit .kai u { color: var(--pri); text-underline-offset: 3px; }
.gx-kit .kpop { flex: 1 1 160px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 12px; border-radius: 2px; background: var(--pn); border: 1px solid var(--tx); box-shadow: 0 0 0 4px var(--cur); font-size: 13px; color: var(--tx2); }
.gx-kit .kpop b { color: var(--tx); font-size: 13.5px; }

/* menu and toast */
.gx-kit .kmenu { display: flex; flex-direction: column; padding: 6px 0; border: 1px solid var(--ln2); border-radius: 2px; font-size: 13.5px; }
.gx-kit .kmenu span { display: flex; align-items: center; gap: 10px; padding: 7px 12px; }
.gx-kit .kmenu span.on { background: var(--cur); color: var(--pri); font-weight: 700; box-shadow: inset 3px 0 0 var(--pri); }
.gx-kit .kmenu em { margin-left: auto; font: normal 600 11px var(--ccm); background: var(--dng); color: #fff; padding: 1px 6px; border-radius: 99px; }
.gx-kit .kmenu .sep { height: 1px; padding: 0; margin: 4px 0; background: var(--ln); }
.gx-kit .ktoast { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 2px; background: var(--tx); color: var(--pn); font-size: 13px; transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .4s, background-color var(--t), color var(--t); }
.gx-kit .ktoast span { flex: 1; display: flex; flex-direction: column; } .gx-kit .ktoast b { font-size: 13.5px; }
.gx-kit .ktoast .ki:first-child { color: var(--ok); width: 20px; height: 20px; }
.gx-kit .ktoast.out { transform: translateY(8px); opacity: 0; }

/* modal */
.gx-kit .kpm { overflow: hidden; }
.gx-kit .kmod { position: relative; flex: 1; min-height: 190px; display: grid; place-items: center; padding: 14px; }
.gx-kit .kmod .scrim { position: absolute; inset: -40px -18px -18px; background: rgba(16, 22, 47, .55); transition: background-color var(--t); }
.gx-kit[data-mode="dark"] .kmod .scrim { background: rgba(0, 0, 0, .6); }
.gx-kit[data-mode="dark"] .kmod .dlg { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 12px 32px rgba(0, 0, 0, .5); }
.gx-kit .kmod .dlg { position: relative; width: 100%; max-width: 300px; padding: 16px; border-radius: 2px; background: var(--pn); box-shadow: 0 12px 32px rgba(0, 0, 0, .3); }
.gx-kit .dh { display: flex; justify-content: space-between; align-items: center; font-size: 15px; margin-bottom: 6px; }
.gx-kit .dlg p { margin: 0 0 12px; font-size: 13px; color: var(--tx2); }
.gx-kit .da { display: flex; justify-content: flex-end; gap: 6px; }
.gx-kit .kpm .kn { z-index: 1; color: rgba(255, 255, 255, .7); }

/* data list */
.gx-kit .ktbl { display: flex; flex-direction: column; font-size: 13.5px; overflow-x: auto; }
.gx-kit .tr { display: grid; grid-template-columns: 18px minmax(140px, 1.6fr) minmax(80px, 1fr) 70px minmax(90px, 1.1fr) 20px; align-items: center; gap: 14px; padding: 10px 8px; border-bottom: 1px solid var(--ln); min-width: 520px; }
.gx-kit .tr.th { font: 600 11.5px var(--ccm); color: var(--tx2); text-transform: uppercase; letter-spacing: .04em; }
.gx-kit .tr.th span { display: flex; align-items: center; gap: 4px; } .gx-kit .tr.th .ki { width: 12px; height: 12px; }
.gx-kit .tr.sel { background: var(--cur); box-shadow: inset 3px 0 0 var(--pri); }
.gx-kit .tr > span:nth-child(3) { color: var(--tx2); }
.gx-kit .tr .ki { color: var(--mu); }
.gx-kit .tr .kc .ki { color: var(--pn); }

/* breadcrumbs, pagination, loading */
.gx-kit .kbc { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--pri); flex-wrap: wrap; }
.gx-kit .kbc b { color: var(--tx); font-weight: 400; } .gx-kit .kbc .ki { width: 12px; height: 12px; color: var(--mu); }
.gx-kit .kpg { display: flex; gap: 4px; flex-wrap: wrap; }
.gx-kit .kpg span { min-width: 32px; height: 32px; display: grid; place-items: center; border-radius: 2px; font: 600 13px var(--ccm); color: var(--tx2); }
.gx-kit .kpg span.on { background: var(--tx); color: var(--pn); }
.gx-kit .kpg .ar { box-shadow: inset 0 0 0 1px var(--ln2); color: var(--tx); }
.gx-kit .kload { display: flex; align-items: center; gap: 16px; }
.gx-kit .spin { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 3px solid var(--dis); border-top-color: var(--pri); animation: gx-spin .9s linear infinite; }
@keyframes gx-spin { to { transform: rotate(1turn); } }
.gx-kit .shim { flex: 1; display: flex; gap: 10px; align-items: center; }
.gx-kit .shim > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.gx-kit .shim i { display: block; height: 8px; border-radius: 2px; background: linear-gradient(90deg, var(--dis) 30%, var(--hov) 50%, var(--dis) 70%) 0 0 / 300% 100%; animation: gx-shim 1.6s linear infinite; }
.gx-kit .shim i.a { width: 32px; height: 32px; border-radius: 50%; flex: none; }
@keyframes gx-shim { from { background-position: 100% 0; } to { background-position: -50% 0; } }

/* disclosure */
.gx-kit .kdis { display: flex; flex-direction: column; }
.gx-kit .dq { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--ln); font-size: 13.5px; }
.gx-kit .dq .ki { transition: transform .3s; } .gx-kit .dq.on .ki { transform: rotate(180deg); }
.gx-kit .dq.on { border-bottom: 0; }
.gx-kit .kdis p { margin: 0; padding: 0 0 10px; border-bottom: 1px solid var(--ln); font-size: 13px; color: var(--tx2); }

@media (max-width: 1000px) {
  .gx-kit .s4 { grid-column: span 6; } .gx-kit .s6, .gx-kit .s8 { grid-column: span 12; }
}
@media (max-width: 620px) {
  .gx-kit .kg { gap: 10px; }
  .gx-kit .s4, .gx-kit .s6, .gx-kit .s8 { grid-column: span 12; }
  .gx-kit .kf2 { grid-template-columns: 1fr; }
  .gx-kit .kst { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gx-kit .kb.cta { margin-left: 4px; }
}
@media (prefers-reduced-motion: reduce) { .gx-kit *, .gx-kit *::before, .gx-kit *::after { animation: none !important; transition: none !important; } }

/* ---------- 6. motion ---------- */
.gx-mo {
  --bg: #FFF0E5; --pn: #fff; --tx: #10162F; --tx2: rgba(16,22,47,.75); --mu: rgba(16,22,47,.5); --ln: rgba(16,22,47,.12); --ln2: rgba(16,22,47,.28);
  --pri: #3A10E5; --sh: #10162F; --k: 1; --eio: cubic-bezier(.42, 0, .58, 1);
  padding: clamp(14px, 2.4vw, 28px); border-radius: 12px; font: 400 14px/1.4 var(--cc); color: var(--tx);
  background: var(--bg) radial-gradient(rgba(16,22,47,.1) 1px, transparent 1px) 0 0 / 18px 18px;
}
.gx-mo * { box-sizing: border-box; }
.gx-mo b { font-weight: 700; color: inherit; }
.gx-mo code { font: 500 12px var(--ccm); padding: 1px 5px; border-radius: 2px; background: rgba(58, 16, 229, .08); color: var(--pri); }
.gx-mo .mo-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.gx-mo .mo-t { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; font: 500 13px var(--ccm); color: var(--tx2); }
.gx-mo .mo-gm { font: 700 26px/1 var(--cc); letter-spacing: -.03em; color: var(--tx); }
.gx-mo .mo-sp { display: flex; padding: 3px; border: 1px solid var(--ln); background: var(--pn); }
.gx-mo .mo-sp button { height: 30px; padding: 0 14px; border: 0; background: none; font: 600 12.5px var(--ccm); color: var(--tx2); cursor: pointer; }
.gx-mo .mo-sp button[aria-pressed="true"] { background: var(--tx); color: var(--pn); }
.gx-mo .mo-g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.gx-mo .mo-p { position: relative; min-width: 0; padding: 40px 18px 18px; background: var(--pn); border: 1px solid var(--ln); border-radius: 4px; display: flex; flex-direction: column; gap: 14px; }
.gx-mo .mo-s4 { grid-column: span 4; } .gx-mo .mo-s6 { grid-column: span 6; }
.gx-mo .mo-n { position: absolute; top: 14px; left: 18px; right: 18px; font: 500 11px var(--ccm); color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-mo .mo-play { align-self: flex-start; margin-top: auto; height: 32px; padding: 0 14px; border: 0; border-radius: 2px; background: var(--tx); color: var(--pn); font: 700 13px var(--cc); cursor: pointer; }
.gx-mo .mo-play:active { transform: scale(.97); }
.gx-mo .mo-note { margin-top: auto; font-size: 12.5px; line-height: 1.45; color: var(--tx2); }
.gx-mo .mo-note code { font-size: 11px; }
/* timing */
.gx-mo .mo-tr { display: flex; flex-direction: column; gap: 12px; }
.gx-mo .mo-tr .mo-row { display: grid; grid-template-columns: 62px 50px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 10px; }
.gx-mo .mo-tr .mo-row b { font: 600 12.5px var(--ccm); }
.gx-mo .mo-trk { position: relative; height: 18px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--ln) 0 1px, transparent 1px 10%); box-shadow: inset 0 0 0 1px var(--ln); }
.gx-mo .mo-trk i { position: absolute; left: 0; top: 0; width: 18px; height: 18px; background: var(--pri); border-radius: 2px; }
.gx-mo .mo-tr em { grid-column: 3; font: normal 500 11px var(--ccm); color: var(--mu); margin-top: 3px; }
/* ease */
.gx-mo .mo-ease { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: center; }
.gx-mo .mo-ease svg { width: 120px; height: 120px; overflow: visible; }
.gx-mo .mo-ease path { fill: none; stroke-width: 2.5; }
.gx-mo .mo-ease .mo-lin { stroke: var(--ln2); stroke-dasharray: 3 4; stroke-width: 1.5; }
.gx-mo .mo-ease .mo-cv { stroke: var(--pri); }
.gx-mo .mo-ease circle { fill: #FFD300; stroke: var(--tx); stroke-width: 2; }
.gx-mo .mo-erun { display: grid; gap: 8px; }
.gx-mo .mo-etk { position: relative; display: block; height: 18px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--ln); }
.gx-mo .mo-etk i { position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 2px; background: var(--pri); }
.gx-mo .mo-etk.mo-lin i { background: var(--ln2); }
.gx-mo .mo-erun small { font-size: 12px; color: var(--tx2); }
.gx-mo .mo-erun small b { font: 600 11.5px var(--ccm); margin-right: 6px; color: var(--pri); } .gx-mo .mo-erun small b.mu { color: var(--mu); }
/* elevation: Gamut's coreElevation, rest → hover */
.gx-mo .mo-el { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 12px 8px 8px; }
.gx-mo .mo-lc { display: flex; flex-direction: column; gap: 7px; padding: 14px; background: var(--pn); border: 1px solid var(--tx); cursor: default; outline: none;
  transition: transform calc(200ms * var(--k)) var(--eio), box-shadow calc(200ms * var(--k)) var(--eio); box-shadow: 0 0 0 0 var(--sh); }
.gx-mo .mo-lc .mo-kk { font: 600 10px var(--ccm); letter-spacing: .06em; color: var(--tx2); }
.gx-mo .mo-lc b { font-size: 14.5px; line-height: 1.2; }
.gx-mo .mo-lc .mo-ln { height: 6px; border-radius: 2px; background: rgba(16,22,47,.1); } .gx-mo .mo-lc .mo-ln.s { width: 60%; }
.gx-mo .mo-lc:hover, .gx-mo .mo-lc:focus-visible, .gx-mo .mo-lc.mo-up { transform: translate(4px, -4px); box-shadow: -8px 8px 0 0 var(--sh); }
.gx-mo .mo-lc.mo-mir:hover, .gx-mo .mo-lc.mo-mir:focus-visible, .gx-mo .mo-lc.mo-mir.mo-up { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 0 var(--sh); }
/* disclosure */
.gx-mo .mo-dis { display: flex; flex-direction: column; border-top: 1px solid var(--ln); }
.gx-mo .mo-dq { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 11px 0; border: 0; background: none; font: 400 13.5px var(--cc); color: var(--tx); text-align: left; cursor: pointer; border-bottom: 1px solid var(--ln); }
.gx-mo .mo-dq.mo-off { cursor: default; color: var(--tx2); }
.gx-mo .mo-rot { width: 16px; height: 16px; display: grid; place-items: center; flex: none; }
.gx-mo .mo-rot svg { width: 16px; height: 16px; }
.gx-mo .mo-dp { overflow: hidden; border-bottom: 1px solid var(--ln); }
.gx-mo .mo-dp p { margin: 0; padding: 0 0 11px; font-size: 13px; color: var(--tx2); }
/* list */
.gx-mo .mo-list { display: flex; flex-direction: column; min-height: 150px; overflow: hidden; }
.gx-mo .mo-li { display: flex; align-items: center; gap: 10px; overflow: hidden; border-bottom: 1px solid var(--ln); }
.gx-mo .mo-li > div { display: flex; flex-direction: column; padding: 8px 0; }
.gx-mo .mo-li i { width: 22px; height: 22px; border-radius: 50%; flex: none; background: #AEE938; box-shadow: inset 0 0 0 1.5px var(--tx); }
.gx-mo .mo-li b { font-size: 13.5px; } .gx-mo .mo-li span { font-size: 12px; color: var(--tx2); }
@media (max-width: 1000px) { .gx-mo .mo-s4 { grid-column: span 6; } .gx-mo .mo-s6 { grid-column: span 12; } }
@media (max-width: 620px) { .gx-mo .mo-s4, .gx-mo .mo-s6 { grid-column: span 12; } .gx-mo .mo-ease { grid-template-columns: 96px minmax(0, 1fr); } .gx-mo .mo-ease svg { width: 96px; height: 96px; } }
@media (prefers-reduced-motion: reduce) { .gx-mo .mo-lc { transition: none; } }

/* the outcome numbers sit in the copy column as a quiet row, not a stat band */
.gx-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: var(--p-col); margin: 36px auto 0; padding-top: 18px; border-top: 1px solid var(--p-line); }
.gx-nums b { display: block; font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.gx-nums span { font-size: 14px; color: var(--p-muted); }

@media (prefers-reduced-motion: reduce) {
  .gx-tk *, .gx-sc *, .gx-fl *, .gx-le * { transition: none !important; animation: none !important; }
}

/* case.css paints <b> in the page's text color; inside the figures it follows the figure */
:is(.gx-tk, .gx-sc, .gx-fl, .gx-le) b { color: inherit; }
.gx-c.k-card .gx-g { border-radius: min(var(--r), 4px); }

/* ---------- earlier roles marquee ---------- */
.gx-mq { --gap: 16px; position: relative; }
/* the carousel runs the full width of the window; the arrows stay on the figure column's right edge */
/* 100vw includes the scrollbar, so clip the few extra pixels instead of letting the page scroll sideways */
html:has(.gx-mq), html:has(.gx-mq) body { overflow-x: clip; }
.gx-mq { width: 100vw; margin-left: calc(50% - 50vw); }
.gx-mq-n { padding-right: max(16px, calc(50vw - 560px)); }
.gx-mq-v { position: relative; overflow: hidden; touch-action: pan-y; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.gx-mq-v.drag { cursor: grabbing; }
.gx-mq-v.drag .gx-mq-c { pointer-events: none; }
.gx-mq-c { position: absolute; left: 0; top: 0; width: min(600px, 86%); display: block; color: inherit; text-decoration: none; will-change: transform; -webkit-user-select: none; user-select: none; }
.gx-mq-c:focus-visible { outline: none; }
.gx-mq-c:focus-visible .gx-mq-s { outline: 2px solid var(--p-acc); outline-offset: 3px; }
.gx-mq-s { position: relative; aspect-ratio: 12 / 7; border-radius: 12px; overflow: hidden; background: var(--g); transition: transform .5s var(--p-ease); }
.gx-mq-s iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; pointer-events: none; transition: opacity .6s ease-out; }
.gx-mq-s iframe.on { opacity: 1; }
.gx-mq-h { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.gx-mq-h img { width: 32px; height: 32px; border-radius: 8px; }
.gx-mq-h b { display: block; font-size: 15px; font-weight: 500; line-height: 1.3; }
.gx-mq-h span { font-size: 14px; color: var(--p-muted); }
.gx-mq-h .go { margin-left: auto; color: var(--p-muted); font-size: 14px; transition: color .2s; }
.gx-mq-c p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--p-muted); max-width: 520px; text-wrap: pretty; }
@media (hover: hover) and (pointer: fine) {
  .gx-mq-c:hover .gx-mq-s { transform: translateY(-3px); }
  .gx-mq-c:hover .go { color: var(--p-text); }
}
.gx-mq-n { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.gx-mq-n button { appearance: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--p-line); background: none; color: var(--p-text); display: grid; place-items: center; cursor: pointer; transition: background-color .16s ease-out, transform .16s ease-out; }
.gx-mq-n button:active { transform: scale(.92); }
.gx-mq-n button:focus-visible { outline: 2px solid var(--p-acc); outline-offset: 2px; }
.gx-mq-n svg { width: 15px; height: 15px; }
@media (hover: hover) and (pointer: fine) { .gx-mq-n button:hover { background: var(--p-line); } }
@media (max-width: 720px) { .gx-mq-v { -webkit-mask-image: none; mask-image: none; } .gx-mq-n { display: none; } }
