/* Docs layout: sidebar + content + "on this page" */
html{scroll-behavior:smooth;scroll-padding-top:84px}
body.mt-docs{margin:0;background:var(--bg);color:var(--ink);font-size:16.5px}
.mt-docs .doc-area{display:grid;grid-template-columns:292px minmax(0,1fr);max-width:1500px;margin:0 auto;align-items:start}
.mt-docs .doc-menu{position:sticky;top:64px;height:calc(100vh - 64px);overflow:auto;padding:24px 14px 40px 20px;border-right:1px solid var(--line);scrollbar-width:thin}
.mt-docs .doc-logo{display:none}
.mt-docs .side-mobile-menu ul{list-style:none;margin:0;padding:0}
.mt-docs .side-mobile-menu>ul>li{margin:2px 0}
.mt-docs .side-mobile-menu>ul>li>a{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:10px;font-weight:650;font-size:14.5px;text-decoration:none;color:var(--ink)}
.mt-docs .side-mobile-menu>ul>li>a:hover{background:var(--surface-2)}
.mt-docs .side-mobile-menu>ul>li>a::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--brand);flex:none;opacity:.6}
.mt-docs .side-mobile-menu>ul>li>a::after{content:"";margin-left:auto;width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(-45deg);transition:transform .2s}
.mt-docs .side-mobile-menu>ul>li.mm-active>a::after{transform:rotate(45deg)}
.mt-docs .side-mobile-menu i{display:none}
.mt-docs .sub-menu{display:none;margin:2px 0 8px 18px!important;padding-left:12px!important;border-left:1px solid var(--line)}
.mt-docs li.mm-active>.sub-menu{display:block}
.mt-docs .sub-menu a{display:block;padding:6px 10px;border-radius:8px;font-size:14px;color:var(--muted);text-decoration:none}
.mt-docs .sub-menu a:hover{color:var(--ink);background:var(--surface-2)}
.mt-docs .sub-menu a.on{color:var(--brand);background:color-mix(in srgb,var(--brand) 10%,transparent);font-weight:600}
.mt-docs .doc-content{min-width:0;padding:0 clamp(18px,4vw,56px) 80px}
.mt-docs .container-fluid{padding:0}
.mt-docs .header-area{padding:14px 0;display:flex;justify-content:flex-end}
.mt-docs .header-area .row,.mt-docs .header-area .container-fluid{display:contents}
.mt-docs .header-area [class*=col-]{width:auto}
.mt-docs .header-menu ul{list-style:none;display:flex;gap:8px;margin:0;padding:0}
.mt-docs .header-menu a{display:inline-block;padding:8px 16px;border-radius:99px;border:1px solid var(--line);background:var(--surface);text-decoration:none;font-size:14px;font-weight:600}
.mt-docs .header-menu .sup-li a{background:var(--brand);color:var(--brand-ink);border-color:transparent}
.mt-docs .doc-box{max-width:860px;padding:0!important;margin:0 0 8px}
.mt-docs .doc-box+hr{display:none}
.mt-docs .doc-box{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:clamp(22px,3.5vw,40px)!important;margin:0 0 20px;box-shadow:var(--shadow)}
.mt-docs .wlc-title{font-size:clamp(26px,3.2vw,38px);line-height:1.15;letter-spacing:-.028em;margin:0 0 18px;text-wrap:balance}
.mt-docs .wlc-title-inner{font-size:20px;letter-spacing:-.015em;margin:28px 0 8px}
.mt-docs .doc-box p,.mt-docs .doc-box li{line-height:1.75;color:color-mix(in srgb,var(--ink) 88%,var(--muted))}
.mt-docs .doc-box a{color:var(--brand);text-underline-offset:3px}
.mt-docs .doc-box ul,.mt-docs .doc-box ol{padding-left:1.3em}
.mt-docs .item-details{list-style:none!important;padding:0!important;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px;margin:0 0 20px}
.mt-docs .item-details li{background:var(--surface-2);border-radius:12px;padding:12px 16px;font-size:14.5px}
.mt-docs code{font:500 .88em ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--surface-2);padding:.15em .45em;border-radius:6px;border:1px solid var(--line)}
.mt-docs pre{background:#0b1020;color:#e6e9ff;padding:18px 20px;border-radius:14px;overflow:auto}
.mt-docs pre code{background:none;border:0;padding:0;color:inherit}
.mt-docs blockquote{margin:1.2em 0;padding:.6em 1.2em;border-left:4px solid var(--brand);background:var(--surface-2);border-radius:0 12px 12px 0}
.mt-docs table{border-collapse:collapse;width:100%;font-size:15px}.mt-docs td,.mt-docs th{border:1px solid var(--line);padding:8px 12px;text-align:left}
.mt-docs img{max-width:100%;height:auto;border-radius:12px}
.mt-docs .sup-list-positive li::marker{content:"✓  ";color:#16a34a}
.mt-docs .sup-list-negative li::marker{content:"✕  ";color:#dc2626}
.mt-docs .shortcode{background:var(--surface-2);padding:14px 18px;border-radius:12px}
.mt-docs .pt-80,.mt-docs .pt-50,.mt-docs .pb-80{padding-top:0;padding-bottom:0}
.mt-docs-toc{max-height:calc(100vh - 140px);overflow:auto;scrollbar-width:thin;position:fixed;right:max(16px,calc((100vw - 1500px)/2 + 16px));top:112px;width:210px;font-size:13px;display:none}
.mt-docs-toc b{display:block;font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
.mt-docs-toc a{display:block;padding:4px 0 4px 12px;border-left:2px solid var(--line);color:var(--muted);text-decoration:none}
.mt-docs-toc a.on{color:var(--brand);border-left-color:var(--brand);font-weight:600}
@media (min-width:1360px){.mt-docs-toc{display:block}.mt-docs .doc-content{padding-right:270px}}
.mt-docs-open{display:none}
@media (max-width:980px){
  .mt-docs .doc-area{grid-template-columns:1fr}
  .mt-docs .doc-menu{position:fixed;left:0;top:64px;bottom:0;width:min(86vw,330px);z-index:99980;background:var(--surface);transform:translateX(-102%);transition:transform .25s;height:auto;box-shadow:var(--shadow)}
  body.mt-docs-nav .doc-menu{transform:none}
  .mt-docs-open{display:inline-flex;position:fixed;left:14px;bottom:14px;z-index:99985;align-items:center;gap:8px;background:var(--brand);color:var(--brand-ink);border:0;border-radius:99px;padding:13px 20px;font:600 14px var(--font);box-shadow:var(--shadow);cursor:pointer}
}
