/* The site's one header, on every page: the logo at the far left, the links (Safety and Support open a
   small menu) in the middle, the Windows download (or Open Joying) at the far right, and the brand's
   three lines along its bottom edge. On pages with a hero band it takes the band's colour while the band
   is under it (site-header.js sets --bar-bg). It stays at the top while you scroll, and the
   lines fill as you read: orange leads, purple and yellow follow (site-header.js sets --l1..--l3).
   Phones get a menu sheet instead of the links. */
/* --site-bar-space: how much of the window the stuck header covers (row + lines), for other sticky things. */
:root{--site-bar-space:81px;scroll-padding-top:100px}
.site-bar{--bar-h:72px;position:sticky;top:0;z-index:40;background:var(--bar-bg,var(--paper,#F5F3ED));transition:background-color .35s ease;color:var(--ink,#20211F);font-family:var(--font-ui)}
.site-bar [hidden]{display:none!important}
.site-bar-row{display:flex;align-items:center;gap:clamp(16px,2.4vw,36px);height:var(--bar-h);padding:0 clamp(16px,2.6vw,40px)}
.site-bar-brand{display:inline-flex;align-items:center;gap:10px;flex:none;color:inherit;text-decoration:none;font:800 27px/1 var(--font-display);letter-spacing:-.03em;white-space:nowrap}
.site-bar-brand b{font-weight:inherit}
.site-bar-brand b span{color:var(--orange,#FF5722)}
.site-bar-mark{display:flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;border-radius:11px;background:#191919;overflow:hidden}
.site-bar-mark img{flex:none;width:140%;height:140%;max-width:none;object-fit:contain}
.site-bar-nav{display:flex;align-items:center;gap:2px;margin-inline:auto}
.site-bar-nav>a,.site-bar-drop{display:flex;align-items:center;min-height:40px;padding:0 12px;border-radius:9px;color:inherit;text-decoration:none;font-size:15px;font-weight:600;white-space:nowrap}
.site-bar-nav>a:hover,.site-bar-drop:hover{color:var(--purple,#673AB7)}
.site-bar-nav>a[aria-current=page],.site-bar-group[data-current]>.site-bar-drop{background:rgb(32 33 31 / .08)}
/* Menus: open on hover or keyboard focus (no script needed); a click on the label opens its main page. */
.site-bar-group{position:relative}
.site-bar-drop{gap:5px}
.site-bar-chev{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease}
.site-bar-group:is(:hover,:focus-within) .site-bar-chev{transform:rotate(180deg)}
.site-bar-pop{position:absolute;z-index:5;top:calc(100% + 8px);left:-8px;display:grid;min-width:270px;padding:8px;border:2px solid var(--ink,#20211F);border-radius:16px;background:#fffaee;box-shadow:5px 6px 0 var(--ink,#20211F);opacity:0;visibility:hidden;transform:translateY(-6px);pointer-events:none;transition:opacity .12s ease,transform .12s ease,visibility 0s .12s}
/* A bridge over the gap under its own label only (it must not reach the neighbouring label). */
.site-bar-pop::before{content:"";position:absolute;inset:-10px 0 auto;height:10px}
.site-bar-group:is(:hover,:focus-within) .site-bar-pop{opacity:1;visibility:visible;transform:none;pointer-events:auto;transition:opacity .16s ease .06s,transform .16s ease .06s,visibility 0s .06s}
/* One menu at a time: pointing at one closes any other straight away (a closing menu can't catch the pointer). */
.site-bar-nav:hover .site-bar-group:not(:hover) .site-bar-pop{opacity:0;visibility:hidden;pointer-events:none;transition:none}
.site-bar-nav:hover .site-bar-group:not(:hover) .site-bar-chev{transform:none}
.site-bar-pop a{display:grid;gap:2px;padding:10px 12px;border-radius:10px;color:inherit;text-decoration:none}
.site-bar-pop a:hover,.site-bar-pop a:focus-visible{background:rgb(103 58 183 / .09)}
.site-bar-pop a[aria-current=page]{background:rgb(32 33 31 / .07)}
.site-bar-pop b{font-size:15px;font-weight:700}
.site-bar-pop span{font-size:13px;color:var(--muted,#585955)}
@media (prefers-reduced-motion: reduce){.site-bar-pop,.site-bar-chev{transition:none}}
.site-bar-actions{display:flex;align-items:center;gap:4px}
.site-bar-quiet{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:10px;color:inherit;text-decoration:none;font-size:14px;font-weight:600;white-space:nowrap}
.site-bar-quiet:hover{color:var(--purple,#673AB7)}
.site-bar-main{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:10px;background:var(--ink,#20211F);color:var(--paper,#F5F3ED);text-decoration:none;font-size:14px;font-weight:700;white-space:nowrap}
.site-bar-main:hover{background:#000}
.site-bar a:focus-visible,.site-bar button:focus-visible{outline:2px solid var(--purple,#673AB7);outline-offset:2px}

/* The three lines: 3px each, from the left edge of the window. */
.site-bar-lines{display:grid;height:9px;pointer-events:none}
.site-bar-lines i{display:block;height:3px;transform-origin:0 50%;transition:transform .3s cubic-bezier(.2,.8,.3,1)}
.site-bar-lines i:nth-child(1){background:var(--orange,#FF5722);transform:scaleX(var(--l1,.06))}
.site-bar-lines i:nth-child(2){background:var(--purple,#673AB7);transform:scaleX(var(--l2,.04))}
.site-bar-lines i:nth-child(3){background:var(--yellow,#FFEB3B);transform:scaleX(var(--l3,.02))}
@media (prefers-reduced-motion: reduce){.site-bar-lines i{transition:none}}

/* Phones: logo, the main button and a menu. Without JavaScript the links wrap onto a second row. */
.site-bar-menu{display:none}
.site-bar-sheet{display:none}
@media (max-width: 1120px){.site-bar-quiet{display:none}}
/* The links still fit beside the download button on a narrowish window. */
@media (max-width: 1060px) and (min-width: 901px){.site-bar-row{gap:12px}.site-bar-nav>a,.site-bar-drop{padding:0 8px;font-size:14px}.site-bar-main{padding:0 14px;font-size:13px}}
@media (max-width: 900px){
  :root{--site-bar-space:69px;scroll-padding-top:84px}
  .site-bar{--bar-h:60px}
  .site-bar-brand{font-size:23px;gap:8px}
  .site-bar-mark{width:32px;height:32px;border-radius:10px}
  .site-bar-main{min-height:40px;padding:0 14px;font-size:13px}
  .site-bar:not(.has-menu) .site-bar-row{flex-wrap:wrap;height:auto;padding:10px 0;row-gap:4px}
  .site-bar:not(.has-menu) .site-bar-nav{order:3;flex-basis:100%;justify-content:space-between}
  .site-bar.has-menu .site-bar-nav{display:none}
  .site-bar.has-menu .site-bar-actions{margin-left:auto}
  .site-bar.has-menu .site-bar-menu{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;width:44px;height:44px;margin-right:-10px;padding:0;border:0;border-radius:10px;background:none;color:inherit;cursor:pointer}
  .site-bar-menu i{display:block;width:20px;height:2px;border-radius:2px;background:currentColor;transition:transform .2s ease}
  .site-bar-menu[aria-expanded=true] i:first-child{transform:translateY(4px) rotate(45deg)}
  .site-bar-menu[aria-expanded=true] i:last-child{transform:translateY(-4px) rotate(-45deg)}
  /* The sheet covers the window under the header row (it sits behind the row, inside the header). */
  .site-bar-sheet:not([hidden]){display:flex;flex-direction:column;position:fixed;inset:0;z-index:-1;overflow:auto;padding:calc(var(--bar-h) + 30px) 24px 32px;background:var(--bar-bg,var(--paper,#F5F3ED))}
  .site-bar-sheet nav{display:flex;flex-direction:column}
  .site-bar-sheet nav a{padding:6px 0;color:inherit;text-decoration:none;font:800 34px/1.25 var(--font-display);letter-spacing:-.03em}
  .site-bar-sheet nav a[aria-current=page]{color:var(--purple,#673AB7)}
  .site-bar-sheet-more{display:flex;flex-wrap:wrap;gap:6px 20px;margin:26px 0 0;padding-top:20px;border-top:1px solid var(--line,#D9D7D0)}
  .site-bar-sheet-more a{min-height:40px;display:flex;align-items:center;color:var(--muted,#585955);text-decoration:none;font-size:15px;font-weight:600}
  .site-bar-sheet .site-bar-main{margin-top:auto;min-height:52px;font-size:15px}
  .site-menu-open{overflow:hidden}
}
/* Touch screens: a tapped menu stays open (site-header.js sets .is-open; hover never comes). */
.site-bar-group.is-open .site-bar-pop,.site-bar-group.is-open:not(:hover) .site-bar-pop{opacity:1;visibility:visible;transform:none;pointer-events:auto;transition:opacity .16s ease,transform .16s ease,visibility 0s}
.site-bar-group.is-open .site-bar-chev,.site-bar-group.is-open:not(:hover) .site-bar-chev{transform:rotate(180deg)}
/* The phone sheet: Safety and Support open in place. */
.site-bar-sheet-toggle{display:flex;align-items:center;gap:10px;width:100%;padding:6px 0;border:0;background:none;color:inherit;text-align:left;cursor:pointer;font:800 34px/1.25 var(--font-display);letter-spacing:-.03em}
.site-bar-sheet-toggle .site-bar-chev{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s ease}
.site-bar-sheet-toggle[aria-expanded=true] .site-bar-chev{transform:rotate(180deg)}
.site-bar-sheet-toggle[aria-expanded=true]{color:var(--purple,#673AB7)}
.site-bar-sheet-sub{display:grid;gap:2px;margin:2px 0 10px;padding-left:14px;border-left:3px solid var(--purple,#673AB7)}
.site-bar-sheet-sub[hidden]{display:none}
.site-bar-sheet nav .site-bar-sheet-sub a{display:grid;gap:3px;padding:10px 12px;border-radius:12px;color:inherit;text-decoration:none;font:inherit;letter-spacing:normal}
.site-bar-sheet-sub a:active,.site-bar-sheet-sub a:focus-visible{background:rgb(103 58 183 / .09)}
.site-bar-sheet-sub a[aria-current=page]{background:rgb(32 33 31 / .07)}
.site-bar-sheet-sub b{font-size:18px;font-weight:700;line-height:1.3}
.site-bar-sheet-sub span{font-size:14px;line-height:1.4;color:var(--muted,#585955)}
@media (prefers-reduced-motion: reduce){.site-bar-sheet-toggle .site-bar-chev{transition:none}}
/* The menus as members of the cast (site-header.js adds .is-face): a body with an ink outline, eyes
   looking down at the list, and the list inside a big open mouth with teeth. Opening the menu opens
   the jaws; picking an item chomps it (.is-chomping) before the page opens. */
.site-bar-face{--body:#4c8dff;--ink:#221c1a;min-width:300px;gap:0;padding:0 0 18px;border:3.5px solid var(--ink);border-radius:36px;background:var(--body);box-shadow:5px 6px 0 var(--ink)}
.site-bar-face[data-face=sam]{--body:#ff5722}
.site-bar-face[data-face=mika]{--body:#8b5cf6}
.site-bar-face::after{content:"";position:absolute;left:24px;top:14px;width:44px;height:20px;border-radius:50%;background:#fff;opacity:.38;transform:rotate(-24deg);pointer-events:none}
.site-bar-eyes{position:relative;display:flex;justify-content:center;align-items:center;gap:60px;height:62px;padding-top:8px}
.site-bar-eyes i{width:13px;height:19px;border-radius:50%;background:var(--ink);transform:translateY(calc(3px + var(--look,0) * 5px));transition:transform .18s ease,scale .12s ease}
.site-bar-eyes::before,.site-bar-eyes::after{content:"";position:absolute;top:42px;width:24px;height:12px;border-radius:50%;background:#ff6f61;opacity:.4}
.site-bar-eyes::before{left:calc(50% - 82px)}
.site-bar-eyes::after{right:calc(50% - 82px)}
.site-bar-mouth{position:relative;isolation:isolate;display:grid;gap:2px;margin:0 16px;padding:24px 10px 30px;border:3.5px solid var(--ink);border-radius:26px 26px 48px 48px;background:#3b1519;overflow:hidden}
/* The jaws: each is the body colour with a row of teeth on its edge. Closed, they meet in the middle;
   open, they slide out until only the teeth show along the top and bottom of the mouth. */
.site-bar-teeth{position:absolute;left:0;right:0;z-index:3;height:53%;pointer-events:none;transition:transform .3s cubic-bezier(.3,1.45,.5,1) .06s}
.site-bar-teeth.is-top{top:0;transform:translateY(0);background:radial-gradient(circle at 50% 0,#fff 8.5px,var(--ink) 9px 11px,transparent 11.5px) 4px 100%/28px 15px repeat-x,linear-gradient(var(--ink),var(--ink)) 0 calc(100% - 15px)/100% 3.5px no-repeat,linear-gradient(var(--body),var(--body)) 0 0/100% calc(100% - 15px) no-repeat}
.site-bar-teeth.is-bottom{bottom:0;transform:translateY(0);background:radial-gradient(circle at 50% 100%,#fff 8.5px,var(--ink) 9px 11px,transparent 11.5px) 18px 0/28px 15px repeat-x,linear-gradient(var(--ink),var(--ink)) 0 calc(15px - 3.5px)/100% 3.5px no-repeat,linear-gradient(var(--body),var(--body)) 0 100%/100% calc(100% - 15px) no-repeat}
.site-bar-group:is(:hover,:focus-within,.is-open) .site-bar-teeth.is-top{transform:translateY(calc(-100% + 13px))}
.site-bar-group:is(:hover,:focus-within,.is-open) .site-bar-teeth.is-bottom{transform:translateY(calc(100% - 13px))}
.site-bar-tongue{position:absolute;left:50%;bottom:-14px;z-index:0;width:58%;height:42px;border-radius:50% 50% 0 0;background:#e3566a;transform:translateX(-50%);pointer-events:none}
.site-bar .site-bar-face .site-bar-mouth a{position:relative;z-index:2;color:#fffaee;border-radius:14px;transition:transform .2s ease-in,opacity .2s ease-in,background-color .12s ease}
.site-bar .site-bar-face .site-bar-mouth a span{color:rgb(255 250 238 / .7)}
.site-bar .site-bar-face .site-bar-mouth a:is(:hover,:focus-visible,:active){background:rgb(255 250 238 / .12)}
.site-bar .site-bar-face .site-bar-mouth a[aria-current=page]{background:rgb(255 250 238 / .16)}
.site-bar-group:is(:hover,:focus-within,.is-open) .site-bar-eyes i{animation:site-bar-blink 4.2s 1.2s infinite}
@keyframes site-bar-blink{0%,93%,100%{scale:1 1}96%{scale:1 .12}}
/* The chomp: the eaten item shrinks into the mouth, the jaws snap shut, the eyes squeeze. */
.site-bar .site-bar-face .site-bar-mouth a.is-eaten{transform:scale(.55) translateY(8px);opacity:0}
.site-bar-group .site-bar-face.is-chomping .site-bar-teeth{transform:translateY(0);transition:transform .14s cubic-bezier(.6,0,.9,.4) .12s}
.site-bar-face.is-chomping .site-bar-eyes i{animation:none;scale:1 .2}
.site-bar-face.is-chomping{animation:site-bar-munch .38s ease .14s}
@keyframes site-bar-munch{0%,100%{transform:none}40%{transform:scale(1.05,.95)}70%{transform:scale(.98,1.02)}}
@media (prefers-reduced-motion: reduce){.site-bar-teeth,.site-bar-eyes i,.site-bar .site-bar-face .site-bar-mouth a{transition:none}.site-bar-group .site-bar-eyes i{animation:none}.site-bar-teeth.is-top{transform:translateY(calc(-100% + 13px))}.site-bar-teeth.is-bottom{transform:translateY(calc(100% - 13px))}}
/* The header's words each have a cast member (site-header.js adds .has-peek and the peek): pointing at
   a word tints its button in that colour and the character rises over its top edge, eyes on the word;
   on the page you're on it stays there, eyes happily shut. Pressing squishes it. */
.site-bar-nav .has-peek{position:relative;--cast:#8b5cf6}
.site-bar [data-cast=sam]{--cast:#ff5722}
.site-bar [data-cast=jun]{--cast:#4c8dff}
.site-bar [data-cast=avery]{--cast:#ffd93b}
.site-bar [data-cast=casey]{--cast:#3fb68b}
.site-bar [data-cast=riley]{--cast:#ff7ab6}
.site-bar-peek{position:absolute;left:50%;bottom:calc(100% - 1px);width:30px;height:15px;overflow:hidden;transform:translateX(-50%);pointer-events:none}
.site-bar-peek>i{position:absolute;left:2px;right:2px;top:0;height:26px;border:2.5px solid var(--ink,#221c1a);border-radius:9px;background:var(--cast);transform:translateY(100%);transition:transform .24s cubic-bezier(.3,1.6,.5,1)}
.site-bar-peek>i>i{position:absolute;top:5px;width:3.5px;height:5px;border-radius:50%;background:var(--ink,#221c1a)}
.site-bar-peek>i>i:first-child{left:6px}
.site-bar-peek>i>i:last-child{right:6px}
.site-bar-nav>a.has-peek:is(:hover,:focus-visible)>.site-bar-peek>i,.site-bar-group:is(:hover,:focus-within,.is-open)>.has-peek>.site-bar-peek>i,.site-bar-nav>a.has-peek[aria-current=page]>.site-bar-peek>i,.site-bar-group[data-current]>.has-peek>.site-bar-peek>i{transform:translateY(3px)}
.site-bar-nav .has-peek:active>.site-bar-peek>i{transform:translateY(5px) scale(1.12,.86);transition-duration:.08s}
.site-bar-nav>a.has-peek:hover,.site-bar-drop.has-peek:hover,.site-bar-group:is(:hover,.is-open)>.site-bar-drop.has-peek{color:inherit;background:color-mix(in srgb,var(--cast) 24%,transparent)}
.site-bar-nav>a.has-peek[aria-current=page]>.site-bar-peek>i>i,.site-bar-group[data-current]>.has-peek>.site-bar-peek>i>i{top:6px;width:6px;height:5px;background:none;border:2px solid var(--ink,#221c1a);border-color:var(--ink,#221c1a) transparent transparent;border-radius:50%}
.site-bar-nav>a.has-peek[aria-current=page]>.site-bar-peek>i>i:first-child,.site-bar-group[data-current]>.has-peek>.site-bar-peek>i>i:first-child{left:4px}
.site-bar-nav>a.has-peek[aria-current=page]>.site-bar-peek>i>i:last-child,.site-bar-group[data-current]>.has-peek>.site-bar-peek>i>i:last-child{right:4px}
@media (prefers-reduced-motion: reduce){.site-bar-peek>i{transition:none}}
/* Each header word's badge: pointing at it, pressing it, or its menu being open pops a sticker onto
   its corner with that tab's icon (Download an arrow, Guides a book, Developers code, Safety a shield,
   Support a speech bubble, About a heart), in the word's cast colour. */
.site-bar [data-tab=download]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23221c1a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11'/%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E")}
.site-bar [data-tab=guides]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23221c1a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h6a3 3 0 0 1 3 3v12a2 2 0 0 0-2-2H3z'/%3E%3Cpath d='M21 5h-6a3 3 0 0 0-3 3v12a2 2 0 0 1 2-2h7z'/%3E%3C/svg%3E")}
.site-bar [data-tab=developers]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23221c1a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 7l-5 5 5 5'/%3E%3Cpath d='M16 7l5 5-5 5'/%3E%3Cpath d='M13.5 5l-3 14'/%3E%3C/svg%3E")}
.site-bar [data-tab=safety]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23221c1a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.5-7 10-4-1.5-7-5.5-7-10V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E")}
.site-bar [data-tab=support]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23221c1a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v12H10l-5 4v-4H4z'/%3E%3Cpath d='M9.5 8.5a2.5 2.5 0 1 1 3.5 2.3c-.6.3-1 .8-1 1.4'/%3E%3C/svg%3E")}
.site-bar [data-tab=about]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23221c1a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.5-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.5-7 10-7 10z'/%3E%3C/svg%3E")}
.site-bar-nav .has-peek::after{content:"";position:absolute;top:-10px;right:-8px;z-index:2;width:25px;height:25px;border:2.5px solid var(--ink,#221c1a);border-radius:50%;background:var(--icon,none) center/15px no-repeat,var(--cast);box-shadow:1.5px 2px 0 var(--ink,#221c1a);transform:scale(0) rotate(-40deg);transition:transform .26s cubic-bezier(.3,1.7,.5,1);pointer-events:none}
.site-bar-nav>a.has-peek:is(:hover,:focus-visible)::after,.site-bar-group:is(:hover,:focus-within,.is-open)>.has-peek::after{transform:scale(1) rotate(-8deg)}
.site-bar-nav .has-peek:active::after{transform:scale(1.18) rotate(6deg);transition-duration:.1s}
@media (prefers-reduced-motion: reduce){.site-bar-nav .has-peek::after{transition:none}}

/* Opening a page: the logo drops in from the top and squashes as it lands, then the letters of
   "Joying" drop one after another, the orange dot last with a bigger bounce. Pressing it squishes. */
.site-bar-brand b i{display:inline-block;font-style:normal;transform-origin:50% 100%;animation:site-bar-drop .62s calc(.16s + var(--i,0) * .055s) both}
.site-bar-brand b span{display:inline-block;transform-origin:50% 100%;animation:site-bar-drop-dot .8s .52s both}
.site-bar-mark{transform-origin:50% 100%;animation:site-bar-drop .66s .02s both;transition:transform .12s ease}
.site-bar-brand:active .site-bar-mark{transform:scale(1.12,.86)}
@keyframes site-bar-drop{
  0%{opacity:0;transform:translateY(-60px) scale(.9,1.18);animation-timing-function:cubic-bezier(.5,0,.9,.55)}
  12%{opacity:1}
  56%{transform:translateY(0) scale(1.22,.72);animation-timing-function:cubic-bezier(.2,.7,.4,1)}
  74%{transform:translateY(-7px) scale(.94,1.07);animation-timing-function:cubic-bezier(.5,0,.8,.6)}
  88%{transform:translateY(0) scale(1.06,.94)}
  100%{opacity:1;transform:none}}
@keyframes site-bar-drop-dot{
  0%{opacity:0;transform:translateY(-70px);animation-timing-function:cubic-bezier(.5,0,.9,.55)}
  10%{opacity:1}
  45%{transform:translateY(0) scale(1.4,.6);animation-timing-function:cubic-bezier(.2,.7,.4,1)}
  65%{transform:translateY(-16px) scale(.9,1.1);animation-timing-function:cubic-bezier(.5,0,.8,.6)}
  82%{transform:translateY(0) scale(1.15,.85)}
  92%{transform:translateY(-3px)}
  100%{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce){.site-bar-brand b i,.site-bar-brand b span,.site-bar-mark{animation:none}}

/* The phone sheet (2026-10-21): every row wears its tab's badge, the rows drop in one after another
   when the sheet opens, and Safety and Support open into their character's mouth (the same face as
   the desktop menus); a chosen item is eaten before its page opens. */
.site-bar-sheet .has-badge{display:flex;align-items:center;gap:14px}
.site-bar-sheet .has-badge::before{content:"";flex:none;order:-1;width:36px;height:36px;border:2.5px solid var(--ink,#221c1a);border-radius:50%;background:var(--icon,none) center/20px no-repeat,var(--cast,#8b5cf6);box-shadow:1.5px 2px 0 var(--ink,#221c1a);transform:rotate(-8deg);transition:transform .22s cubic-bezier(.3,1.7,.5,1)}
.site-bar-sheet .has-badge:active::before,.site-bar-sheet-toggle[aria-expanded=true]::before{transform:rotate(8deg) scale(1.12)}
.site-bar-sheet-toggle[aria-expanded=true]{color:inherit}
.site-bar-sheet:not([hidden]) nav>*,.site-bar-sheet:not([hidden])>.site-bar-main{transform-origin:50% 100%;animation:site-bar-drop .6s calc(.04s + var(--i,0) * .06s) both}
.site-bar-sheet-sub.site-bar-face{position:relative;gap:0;min-width:0;margin:8px 6px 18px 0;padding:0 0 16px}
.site-bar-sheet-sub.site-bar-face:not([hidden]) .site-bar-teeth.is-top{animation:site-bar-jaw-top .34s .08s both}
.site-bar-sheet-sub.site-bar-face:not([hidden]) .site-bar-teeth.is-bottom{animation:site-bar-jaw-bottom .34s .08s both}
.site-bar-sheet-sub.site-bar-face.is-chomping .site-bar-teeth.is-top{animation:site-bar-jaw-shut-top .14s .12s both}
.site-bar-sheet-sub.site-bar-face.is-chomping .site-bar-teeth.is-bottom{animation:site-bar-jaw-shut-bottom .14s .12s both}
.site-bar-sheet-sub.site-bar-face:not([hidden]) .site-bar-eyes i{animation:site-bar-blink 4.2s 1.2s infinite}
@keyframes site-bar-jaw-top{from{transform:none;animation-timing-function:cubic-bezier(.3,1.45,.5,1)}to{transform:translateY(calc(-100% + 13px))}}
@keyframes site-bar-jaw-bottom{from{transform:none;animation-timing-function:cubic-bezier(.3,1.45,.5,1)}to{transform:translateY(calc(100% - 13px))}}
@keyframes site-bar-jaw-shut-top{from{transform:translateY(calc(-100% + 13px));animation-timing-function:cubic-bezier(.6,0,.9,.4)}to{transform:none}}
@keyframes site-bar-jaw-shut-bottom{from{transform:translateY(calc(100% - 13px));animation-timing-function:cubic-bezier(.6,0,.9,.4)}to{transform:none}}
@media (prefers-reduced-motion: reduce){
  .site-bar-sheet .has-badge::before{transition:none}
  .site-bar-sheet:not([hidden]) nav>*,.site-bar-sheet:not([hidden])>.site-bar-main,.site-bar-sheet-sub.site-bar-face .site-bar-eyes i{animation:none}
  .site-bar-sheet-sub.site-bar-face:not([hidden]) .site-bar-teeth.is-top{animation:none;transform:translateY(calc(-100% + 13px))}
  .site-bar-sheet-sub.site-bar-face:not([hidden]) .site-bar-teeth.is-bottom{animation:none;transform:translateY(calc(100% - 13px))}}
