:root{color-scheme:light;--ink:#243955;--muted:#66716b;--paper:#f8f5ec;--panel:#f0eee2;--line:#d3d0c0;--accent:#e9b566;--top:82px}
*{box-sizing:border-box}html{scroll-padding-top:calc(var(--top) + 24px)}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.85 system-ui,sans-serif}
a{color:#526d48;text-underline-offset:4px}a:hover{color:#20354b}
a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid #98621d;outline-offset:3px}
button,input{font:inherit;color:inherit}
.topbar{position:fixed;inset:0 0 auto;z-index:10;min-height:82px;padding:14px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:#eeeade;border-bottom:1px solid var(--line)}
.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--ink)}
.brand img{object-fit:contain}.brand span{display:grid}.brand b{font-size:20px;line-height:1.3}.brand small{font-size:12px;color:var(--muted);margin-top:4px}
.top-actions{display:flex;align-items:center;gap:10px}
.button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #c5c8b6;background:#f8f7ee;color:var(--ink);border-radius:9px;padding:9px 14px;text-decoration:none;cursor:pointer;font-weight:650;font-size:14px;line-height:1.5}
.button:hover{background:#e8e6d9}.primary{background:var(--accent);border-color:#c99e5a}
.search{display:flex;align-items:center;gap:10px;border:1px solid #bdc3b2;border-radius:10px;padding:8px 12px;background:#faf9f3}
.search input{width:min(27vw,310px);border:0;outline:0;background:transparent;font-size:14px}
kbd{font:12px system-ui;border:1px solid var(--line);border-radius:3px;padding:0 5px}
#sidebar{position:fixed;inset:var(--top) auto 0 0;width:260px;padding:24px 20px;background:var(--panel);border-right:1px solid var(--line);overflow:auto;scrollbar-width:thin}
#toc ul{list-style:none;padding:0;margin:0}#toc li{margin:0}
#toc a{display:block;padding:8px 11px;border-radius:7px;font-size:14px;line-height:1.6;text-decoration:none;color:#586254}
#toc a.active{background:#dfe4d0;color:#30452d;font-weight:700}
.side-note{font-size:12px;line-height:1.8;color:var(--muted);border-top:1px solid var(--line);padding-top:20px}
#sidebar>a{font-size:13px}#nav-toggle{display:none}
#manual{margin-left:260px;padding:calc(var(--top) + 38px) clamp(28px,4vw,64px) 48px;max-width:1650px}
h1,h2,h3{line-height:1.25;text-wrap:balance}
h1{font-size:clamp(38px,4.2vw,62px);letter-spacing:-.035em;margin:14px 0 24px}
h2{font-size:clamp(26px,2.8vw,36px);margin:0 0 24px}
h3{font-size:21px;color:#52664c;margin:28px 0 10px}
p{margin:14px 0}.lead{max-width:900px;font-size:18px;line-height:1.8;color:#5e6e60}
.eyebrow{font-weight:700;color:#677454;font-size:13px}.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin:28px 0 46px}
section+section{padding-top:48px;margin-top:48px;border-top:1px solid var(--line)}
.edition{font-size:13px;color:var(--muted)}
ol,ul{padding-left:1.5em}li+li{margin-top:12px}
code{font:14px/1.7 ui-monospace,monospace;background:#ebe9df;padding:3px 6px;border-radius:4px;overflow-wrap:anywhere}
dl div{display:grid;grid-template-columns:minmax(130px,.27fr) 1fr;gap:24px;border-bottom:1px solid var(--line);padding:18px 0}
dt{font-weight:700}dd{margin:0}
.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:14px;margin:24px 0}
th,td{text-align:left;vertical-align:top;padding:13px 16px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
thead th,table tr:first-child:has(th+th){background:#e9ecde}tbody th{font-weight:600;min-width:100px}
figure{padding:16px;margin:28px 0;border:1px solid var(--line);border-radius:12px;background:#f6f2e9}
figcaption{font-size:14px;color:var(--muted)}figure iframe{display:block;width:100%;height:290px;border:0;margin:8px 0}figure>a{font-size:13px}
.full-demo iframe{aspect-ratio:1000/614;height:auto;margin:0}
footer{display:flex;justify-content:space-between;gap:16px;border-top:1px solid var(--line);margin-top:64px;padding-top:24px;font-size:13px;color:var(--muted)}
#search-results{position:absolute;right:24px;top:calc(100% - 1px);width:min(620px,calc(100vw - 32px));max-height:65vh;overflow:auto;background:#faf9f1;border:1px solid #c5c8b6;border-radius:0 0 12px 12px;padding:12px;box-shadow:0 14px 30px #273b2520}
#search-results[hidden]{display:none}#search-results p{margin:4px 10px;font-size:13px;color:var(--muted)}
#search-results a{display:grid;gap:4px;padding:12px;text-decoration:none;border-bottom:1px solid var(--line);color:var(--ink)}
#search-results a:hover,#search-results a:focus{background:#e9eddf}#search-results small{font-size:13px;color:#62705e;line-height:1.6}
@media(max-width:900px){.brand b{font-size:16px}.brand img{width:34px;height:34px}#sidebar{width:220px;padding-inline:12px}#manual{margin-left:220px;padding-inline:26px}.search input{width:160px}.topbar{padding-inline:16px;gap:12px}}
@media(max-width:700px){.topbar{flex-wrap:wrap;padding:10px 14px}.top-actions{width:100%;gap:6px}.search{flex:1;min-width:0}.search input{width:100%;min-width:0}kbd{display:none}#nav-toggle{display:flex;font-size:12px}.button{padding:7px 10px}#sidebar{display:none;z-index:9;width:min(320px,88vw);box-shadow:10px 0 30px #182e2420}#sidebar.open{display:block}#manual{margin-left:0;padding-inline:20px}dl div{grid-template-columns:1fr;gap:5px}h1{font-size:38px}th,td{padding:10px 8px}.full-demo{padding:6px}}
@media print{
:root{--ink:#152a35}body{background:white;font:11pt/1.65 system-ui}
.topbar,#sidebar,#search-results,.hero-actions,iframe,figure>a{display:none!important}
#manual{margin:0;padding:0;max-width:none}section{break-inside:auto}h2,h3{break-after:avoid}tr,dl div{break-inside:avoid}
h1{font-size:32pt}h2{font-size:21pt}figure:has(iframe){display:none}
a{color:inherit}table{font-size:10pt}.table-wrap{overflow:visible}@page{margin:16mm}
}
/* Shared site header, with Motion's own warm paper palette. */
@font-face{font-family:ManualTitle;src:url('instrument/assets/BudgieTitleSemibold.ttf');font-weight:600}
:root{--site-top:96px;--top:178px}
.budgie-nav{position:fixed;inset:0 0 auto;background:#f8f5ec;height:96px}
.budgie-nav-inner{background:#eeeade;border-color:#d3d0c0;color:var(--ink);box-shadow:none}
.budgie-nav-links>a,.budgie-plugins-trigger{color:#596951!important}
.budgie-nav-links a:hover,.budgie-plugins-trigger:hover,.budgie-plugins-trigger[aria-expanded=true]{color:var(--ink)!important}
.budgie-nav-brand small,.budgie-nav-actions{color:#677060}.budgie-nav-brand span,.brand b{font-family:ManualTitle,system-ui,sans-serif}
.budgie-plugin-menu{background:#f8f5ec;color:var(--ink);border-color:var(--line)}
.budgie-plugin-card{background:#eeeddf!important;border-color:#d2d5c6!important}.budgie-plugin-card strong,.budgie-plugin-all{color:var(--ink)!important}
.topbar{top:var(--site-top)}
.ui-guide{padding:18px;margin:24px 0 36px;background:#f5f2e9;border-radius:12px;border-color:#c9ccbb}
.ui-guide figcaption{display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px 16px;margin-bottom:10px}
.ui-guide figcaption b{color:var(--ink);font-size:17px}.ui-guide figcaption span{font-size:12px}
.guide-scroll{overflow:auto}.guide-stage{position:relative;padding:44px 0;min-width:570px}
.ui-guide .guide-stage iframe{display:block;width:100%;height:auto;aspect-ratio:var(--panel-ratio);margin:0;border:1px solid var(--line);background:#f6f2e9}
.guide-arrows{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.guide-arrows path{stroke:#c17829;stroke-width:1.7;fill:none;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.guide-arrows circle{fill:#fffaf0;stroke:#b87931;stroke-width:1.4}.guide-arrows text{fill:#6d461c;font:bold 13px Arial;text-anchor:middle;dominant-baseline:central}
.guide-arrows .arrow-head{fill:#c17829;stroke:none}.guide-arrows a{pointer-events:auto}
.ui-guide.hide-arrows .guide-arrows{visibility:hidden}
.guide-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;margin:8px 0 20px;font-size:12px}
.guide-tools button{font:inherit;border:1px solid var(--line);border-radius:5px;background:#fbfaf5;cursor:pointer;padding:6px 10px}
.guide-notes{list-style:none;display:grid;grid-template-columns:1fr 1fr;padding:0!important;margin:0;gap:16px 24px}
.guide-notes li{display:flex;gap:10px;margin:0;font-size:14px;line-height:1.7;scroll-margin-top:calc(var(--top) + 16px)}
.guide-notes li>span{width:24px;height:24px;flex:none;display:grid;place-items:center;background:#f3dfbd;border:1px solid #c8a26d;border-radius:50%;font-size:12px;color:#68451c}
.guide-notes p{margin:4px 0;color:#5b665d}.guide-notes b{font-size:14px}
.recipe-visual{display:grid;gap:8px;border-left:3px solid var(--accent);padding-left:18px;margin:24px 0}
@media(max-width:900px){.budgie-nav-inner{width:calc(100% - 24px);padding:8px 12px;gap:15px}.budgie-nav-links{gap:14px}.budgie-nav-actions{display:none}}
@media(max-width:700px){:root{--site-top:108px}.budgie-nav{height:108px}.budgie-nav-inner{height:92px}.budgie-nav-brand{font-size:16px}.budgie-nav-links{height:30px;width:100%}.guide-notes{grid-template-columns:1fr}.ui-guide{padding:12px}.guide-scroll{margin:0 -4px}.topbar{gap:7px}}
@media print{.budgie-nav,.guide-tools{display:none!important}.ui-guide{break-inside:auto}.guide-notes li{break-inside:avoid}.ui-guide:has(iframe){display:block}.guide-stage{min-width:0}.guide-stage iframe{display:none!important}.guide-stage{display:none}.guide-notes{grid-template-columns:1fr 1fr}}
.guide-print{display:none}
@media print{
 .ui-guide .guide-print{display:block;width:100%;height:auto;margin:10px 0 16px;break-inside:avoid}
 .ui-guide figcaption{break-after:avoid}.ui-guide{border:0;padding:0}
}
.ba-mobile-bar,.ba-mobile-panel{background:#f8f5ec;color:var(--ink)}
.ba-mobile-brand span{font-family:ManualTitle,system-ui,sans-serif}
@media print{.ba-mobile-panel,.ba-mobile-bar{display:none!important}}
