/* Studio landing only. Preserve the shared bar's exact physical boundary,
 * control semantics, responsive menu and GPU viewport. Every study is
 * ordinary CSS paint: no new blur, images, shaders or animation loops. */
@media(max-width:748px){
  body[data-studio-preview="landing-page"][data-studio-topbar] #global-menu .global-menu-links{display:none}
}
@media(prefers-reduced-motion:reduce){
  body[data-studio-preview="landing-page"][data-studio-topbar] #global-menu .global-menu-control{transition:none}
}

/* Custom: stretched typography and inner separators, Original icon geometry and
 * transparent color-only text interactions. Original bar inset and action
 * spacing are inherited directly, including the compact-width rules. */
/* Remove the upper highlight while preserving the original icon, text and
 * separator centers and the 44px navigation boundary. */
body[data-studio-preview="landing-page"][data-studio-topbar="custom"] #global-menu{
  border-top:0;
  border-bottom:1px solid rgba(0,0,0,.10);
}
body[data-studio-preview="landing-page"][data-studio-topbar="custom"] #global-menu .global-menu-inner{
  height:100%;margin-top:0;
}
body[data-studio-preview="landing-page"][data-studio-topbar="custom"] #global-menu .global-menu-links{
  display:flex;flex:1 1 0;min-width:0;max-width:none;height:100%;gap:0;justify-content:safe center;
  -webkit-text-size-adjust:100%;text-size-adjust:100%;
}
body[data-studio-preview="landing-page"][data-studio-topbar="custom"] #global-menu .global-menu-actions{margin-left:0;flex:none}
body[data-studio-preview="landing-page"][data-studio-topbar="custom"] #global-menu[data-custom-overflow="none"] #public-menu-toggle{display:none}
body[data-studio-preview="landing-page"][data-studio-topbar="custom"] #global-menu:is([data-custom-overflow="true"],[data-custom-overflow="measure"]) #public-menu-toggle{display:inline-flex}
body[data-studio-preview="landing-page"][data-studio-topbar="custom"] #global-menu :is(.global-menu-links,#public-menu-panel) .global-menu-control{
  position:relative;font-family:var(--ui-font-sans,system-ui,-apple-system,sans-serif);
  font-size:22px;font-weight:700;line-height:1;text-transform:uppercase;
  color:#4b4b4b;background:transparent;border:0;border-radius:0;
  min-height:30px;padding:5px 8px;transition:color 125ms ease;
}
body[data-studio-preview="landing-page"][data-studio-topbar="custom"] #global-menu .global-menu-links .global-menu-control{margin:0 5px;flex:none;padding-block:5px;min-height:30px;height:min(42px,calc(22px + 10px))}
body[data-studio-preview="landing-page"][data-studio-topbar="custom"] #global-menu .studio-custom-text{
  display:inline-block;flex:none;transform:scale(1.06,1.1);transform-origin:center;
}
body[data-studio-preview="landing-page"][data-studio-topbar="custom"] #global-menu .global-menu-links .studio-custom-text{
  margin-inline:calc((1.06 - 1) * var(--studio-glyph-width,0px) / 2);
}
body[data-studio-preview="landing-page"][data-studio-topbar="custom"] #global-menu .global-menu-links .global-menu-control:not(:last-child)::after{
  content:"";position:absolute;width:1.5px;height:22px;top:50%;right:-5px;border-radius:9999px;background:color-mix(in oklab, #fff 16%, transparent);transform:translate(50%,-50%);pointer-events:none;
}
body[data-studio-preview="landing-page"][data-studio-topbar="custom"] #global-menu :is(.global-menu-links,#public-menu-panel) .global-menu-control:is(:hover,:active){
  background:transparent;color:#fff;box-shadow:none;transform:none;
}
body[data-studio-preview="landing-page"][data-studio-topbar="custom"] #public-menu-panel:not([hidden]){
  position:absolute;top:calc(100% + 8px);right:clamp(10px,3vw,30px);display:grid;gap:3px;box-sizing:border-box;
  width:max-content;max-width:calc(100vw - 20px);padding:8px;z-index:80;border:1px solid #c8c8c8;border-radius:8px;
  box-shadow:0 10px 30px rgba(0,0,0,.3);background:#676b71;
}
body[data-studio-preview="landing-page"][data-studio-topbar="custom"] #public-menu-panel .global-menu-control{
  display:flex;min-height:36px;justify-content:flex-start;text-align:left;font-size:22px;white-space:normal;
}
body[data-studio-preview="landing-page"][data-studio-topbar="custom"] #public-menu-panel .studio-custom-text{
  max-width:calc((100vw - 64px) / max(1,1.06));overflow-wrap:anywhere;
  margin-inline:calc((1.06 - 1) * var(--studio-glyph-width,0px) / 2);
  transform-origin:left center;margin-left:0;margin-right:0;
}
/* The nominal 32px frame preserves all four sampled placements. The actual
 * clickable circle is 21px + 2 × 1.05px, with a transparent 5% ring. */
#studio-custom-github-position{
  position:fixed;z-index:69;top:calc(var(--global-menu-height,44px) + var(--studio-custom-github-top,9px));
  right:var(--studio-custom-github-right,14px);width:32px;height:32px;
  display:grid;place-items:center;pointer-events:none;
  transform:scale(var(--studio-custom-github-scale,1.95));transform-origin:top right;
  opacity:var(--studio-custom-github-opacity,.9);
}
body[data-studio-topbar="custom"] #studio-custom-github{
  position:relative;box-sizing:border-box;width:23.1px;height:23.1px;min-height:0;
  padding:1.05px;border:0;border-radius:50%;pointer-events:auto;background:transparent;
  color:#e6e6eb;transform:none;
}
body[data-studio-topbar="custom"] #studio-custom-github svg{
  width:21px;height:21px;flex:none;pointer-events:none;
}
body[data-studio-topbar="custom"] #studio-custom-github::after{
  content:"";position:absolute;inset:0;border-radius:50%;background:rgba(255,255,255,.1);
  opacity:0;pointer-events:none;
}
body[data-studio-topbar="custom"] #studio-custom-github svg,
body[data-studio-topbar="custom"] #studio-custom-github::after{
  transform:scale(1);transform-origin:center;
  transition:transform 150ms cubic-bezier(.2,.78,.2,1),opacity 125ms ease;
}
body[data-studio-topbar="custom"] #studio-custom-github:is(:hover,:focus-visible) svg,
body[data-studio-topbar="custom"] #studio-custom-github:is(:hover,:focus-visible)::after{transform:scale(1.04)}
body[data-studio-topbar="custom"] #studio-custom-github:is(:hover,:focus-visible)::after,
body[data-studio-topbar="custom"] #studio-custom-github:active::after{opacity:1}
body[data-studio-topbar="custom"] #studio-custom-github:active svg,
body[data-studio-topbar="custom"] #studio-custom-github:active::after{transform:scale(.96);transition-duration:90ms}

@media(prefers-reduced-motion:reduce){
  body[data-studio-preview="landing-page"][data-studio-topbar="custom"] #global-menu .global-menu-control,
  body[data-studio-topbar="custom"] #studio-custom-github svg,
  body[data-studio-topbar="custom"] #studio-custom-github::after{transition:none}
}
body[data-studio-preview="landing-page"][data-studio-topbar="custom"] #global-menu :is(.global-menu-links,#public-menu-panel) .global-menu-control{text-transform:none}
