/* every page: current page in the nav, language switch, the two header buttons */
.mh-n[aria-current="page"]{text-decoration:underline;text-underline-offset:3px}
.ul[aria-current]{color:var(--fg);font-weight:700}
@media (max-width:1319px){
.btn-demo{margin-left:auto}
}
@media (max-width:900px){
.btn-demo{display:none}
.btn-main{margin-left:auto}
}
/* two header buttons plus the search field fill the 1256px bar at 1440: the field takes what is left, down to 140px, so the bar stays on one row */
/* colour: number badges and buttons on a colour field. Text on colour is white on the light board and near-black on the dark board (the --on token) */
.nb{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:30px;height:22px;padding:0 7px;background:var(--cc);color:var(--on);font:600 13px/1 var(--f-mono);letter-spacing:.04em}
.nb-on{background:var(--on);color:var(--cc)}
.bf-p,.bf-s{--lift:color-mix(in srgb,var(--cc) 55%,#000)}
.bf-p{background:var(--on);color:var(--cc);border-color:var(--on);box-shadow:4px 4px 0 var(--lift)}
.bf-s{background:transparent;color:var(--on);border-color:var(--on);box-shadow:4px 4px 0 var(--lift)}
.bf-p:hover,.bf-s:hover{translate:-2px -2px;box-shadow:6px 6px 0 var(--lift)}
.bf-p:hover{color:var(--cc)}
.bf-s:hover{color:var(--on)}
.bf-p:active,.bf-s:active{translate:2px 2px;box-shadow:1px 1px 0 var(--lift)}
/* the field wipes in from the left; both ends are spelled out because clip-path cannot animate to none */
@keyframes vs-wipe{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes vs-line{from{opacity:0;transform:translateX(-10px)}}
/* page: developer tools. Olive hero band, the tabbed code panel, coloured cards, the FAQ accordion, related products as colour tiles */
.dh{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
/* hero band in the page's colour: the field wipes in from the left (500 ms), then the title, the card and its rows come in */
.band{position:relative;isolation:isolate;color:var(--on)}
.band::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--cc);animation:vs-wipe .5s cubic-bezier(.2,.7,.2,1) both}
.band .eb,.band .lead,.band .h1{color:var(--on)}
.band .ebc::before{background:var(--on)}
.band .fmeta .bd{color:var(--on);border-color:var(--on)}
.band :focus-visible{outline-color:var(--on)}
.band .d1{animation-delay:.42s}
.band .d2{animation-delay:.5s}
.band .d3{animation-delay:.58s}
.band .d4{animation-delay:.66s}
.dkv{margin:0;padding:6px 20px 8px;border-bottom:0}
.dkv>div{grid-template-columns:96px minmax(0,1fr);animation:vs-row .6s both}
.dkv>div:first-child{border-top:0}
.dkv>div:nth-child(1){animation-delay:.85s}
.dkv>div:nth-child(2){animation-delay:.92s}
.dkv>div:nth-child(3){animation-delay:.99s}
.dkv>div:nth-child(4){animation-delay:1.06s}
.dkv>div:nth-child(5){animation-delay:1.13s}
.dkv dd{overflow-wrap:anywhere}
/* code panel: olive top bar, olive tab underline, content that steps in after a tab click */
.dpanel{position:relative}
.dpanel>.tbar{pointer-events:none}
.dtabs{padding:0 8px}
.dtabs .tab.on::after{background:var(--cc)}
.dpane{display:flex;flex-direction:column;min-height:610px}
.dpane .cph{padding-inline:24px}
.dcode{flex:1;padding:22px 24px;overflow-x:auto}
.dcode .code{font-size:15px;line-height:24px}
.cb{display:inline-block;width:14ch}
.dscope{margin-top:28px;padding-top:20px;border-top:1px solid var(--code-line)}
.dfoot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;padding:16px 24px;border-top:1px solid var(--code-line);color:var(--code-fg-2);font-size:15px}
.dcli{flex:1;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:14px;padding:32px 24px}
.tp .blk,.tp .chip{animation:vs-line .32s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(.12s + var(--i,0) * 55ms)}
.chip[class*="k-"]{background:var(--cc);border-color:var(--cc);color:var(--on)}
/* the five cards: 5px category bar that grows on reveal, coloured icon, number badge */
.dgrid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
.dgrid>div{grid-column:span 2}
.dgrid>div:nth-child(n+4){grid-column:span 3}
.tbar{height:5px}
.tile .tl-top{align-self:stretch}
.tile .tl-top svg{color:var(--cc)}
.tile .tl-top .nb{margin-left:auto}
/* FAQ: numbered rows, a colour bar grows down the open row, the answer opens by growing its grid row from 0fr to 1fr */
.faq{border-top:1px solid var(--line-3)}
.fqi{position:relative;border-bottom:1px solid var(--line-2)}
.fqi::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--cc);transform:scaleY(0);transform-origin:top center;transition:transform .3s cubic-bezier(.2,.7,.2,1)}
.fqi.open::before{transform:scaleY(1)}
.fq{display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;padding:20px 8px 20px 18px;color:var(--fg);font:700 19px/1.35 var(--f-sans);transition:background-color .16s ease}
.fq:hover{background:var(--hover)}
.fq-l{display:inline-flex;align-items:center;gap:14px;text-align:left}
.pl{position:relative;flex:none;width:14px;height:14px}
.pl::before,.pl::after{content:"";position:absolute;background:var(--fg);transition:transform .24s cubic-bezier(.2,.7,.2,1)}
.pl::before{left:0;right:0;top:6px;height:2px}
.pl::after{top:0;bottom:0;left:6px;width:2px}
.fq[aria-expanded="true"] .pl::after{transform:scaleY(0)}
.fa-w{display:grid;grid-template-rows:0fr;transition:grid-template-rows .3s cubic-bezier(.2,.7,.2,1)}
.fqi.open .fa-w{grid-template-rows:1fr}
.fa-i{min-height:0;overflow:hidden;visibility:hidden;transition:visibility 0s linear .3s}
.fqi.open .fa-i{visibility:visible;transition-delay:0s}
.fa-i p{padding:0 8px 22px 62px;max-width:700px;color:var(--fg-2)}
.fa-i a{color:var(--fg);text-decoration:underline;text-underline-offset:3px}
/* related products: solid colour tiles after the hero tiles (S .fld); the load slab entrance stays as the fallback, scroll reveals replace it where supported */
.rt{min-height:190px;gap:24px}
.rt:hover{color:var(--on);text-decoration:none}
.rt-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.rt-bt{display:flex;flex-direction:column;gap:8px}
.rt .bd{color:var(--on);border-color:var(--on)}
@supports (animation-timeline:view()){
.tile .tbar,.dpanel>.tbar{animation:vs-grow linear both;animation-timeline:view();animation-range:entry 10% entry 100%}
.fqi{animation:vs-row linear both;animation-timeline:view();animation-range:entry 0% entry 45%}
.fqi:nth-child(2){animation-range:entry 8% entry 53%}
.fqi:nth-child(3){animation-range:entry 16% entry 61%}
.fqi:nth-child(4){animation-range:entry 24% entry 69%}
}
@media (max-width:900px){
.dgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
.dgrid>div,.dgrid>div:nth-child(n+4){grid-column:auto}
.dgrid>div:last-child{grid-column:1/-1}
}
@media (max-width:600px){
.dgrid{grid-template-columns:minmax(0,1fr)}
.dgrid>div:last-child{grid-column:auto}
.dpane{min-height:0}
.fq{font-size:17px}
.fa-i p{padding-left:52px}
.rt{min-height:150px}
}
.dpane[hidden]{display:none}
.dfoot .more{color:var(--code-fg)}
/* without JavaScript every panel and every answer stays open */
.no-js .tp+.tp{margin-top:24px}
.no-js .fa-w{grid-template-rows:1fr}
.no-js .fa-i{visibility:visible}
.no-js .fq .pl{display:none}
.fq{text-align:left}
.dcode .code div:empty{min-height:24px}
.fmeta a.eb{display:inline-flex;align-items:center;min-height:44px}
