:root{--text:#23272f;--muted:#5b6472;--blue:#087ea4;--blue-dark:#075a75;--border:#d9dee5;--surface:#f6f7f9;--soft:#e8f6fb}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--text);font-size:15px}a{color:inherit;text-decoration:none}
.site-header{height:76px;border-bottom:1px solid var(--border);display:flex;align-items:center;padding:0 42px;position:sticky;top:0;background:rgba(255,255,255,.97);backdrop-filter:blur(10px);z-index:20}

.main-nav{display:flex;gap:28px;align-items:center;flex:1}.main-nav a{color:#414852;font-weight:500;padding:8px 0}.main-nav a:hover,.main-nav a.active{color:var(--blue)}
.hero{min-height:284px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:54px 24px 60px}.hero h1{font-size:46px;line-height:1.1;margin:0 0 9px;letter-spacing:-1.7px}.hero p{font-size:20px;color:#4e5664;margin:0 0 20px}.buttons{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.btn{border:1px solid #cbd3dc;background:#fff;border-radius:999px;padding:9px 17px;font-weight:600;font-size:13px}.btn.primary{background:var(--blue);color:#fff;border-color:var(--blue)}
.intro-band{background:var(--surface);border-top:1px solid var(--border);min-height:280px;padding:74px 24px;text-align:center}.intro-band h2{max-width:690px;margin:0 auto 17px;font-size:34px;line-height:1.15;letter-spacing:-1px}.intro-band p{max-width:680px;margin:0 auto;color:#596170;line-height:1.65}
.page{max-width:1240px;margin:auto;padding:48px 28px 80px}.page h1{font-size:38px;letter-spacing:-1px;margin:0 0 10px}.lead{color:var(--muted);font-size:17px;line-height:1.65;max-width:800px}
.docs-layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:42px;margin-top:34px;align-items:start}.sidebar{position:sticky;top:96px;max-height:calc(100vh - 116px);overflow-y:auto;padding-right:20px;border-right:1px solid var(--border)}.category{margin-bottom:25px}.category h3{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#68717f;margin:0 0 8px}.menu-link{display:block;padding:7px 9px;border-radius:7px;color:#3e4651;font-size:13px;line-height:1.35}.menu-link:hover,.menu-link.active{background:var(--soft);color:var(--blue-dark)}
.content-card{min-height:560px}.content-card h2{font-size:30px;line-height:1.2;margin:0 0 14px;letter-spacing:-.6px}.content-card h3{font-size:20px;margin:28px 0 10px}.content-card p{color:#535c69;line-height:1.72}.notice{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:18px;margin-top:24px}.doc-link{color:var(--blue);font-weight:600}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px;margin-top:28px}.card{border:1px solid var(--border);border-radius:12px;padding:22px}.card h3{margin:0 0 9px;font-size:18px}.card p{margin:0;color:var(--muted);line-height:1.55;font-size:14px}
.problem-body h2{font-size:30px;margin:0 0 16px}.problem-body h3{font-size:20px;margin:28px 0 10px}.problem-body p,.problem-body li{line-height:1.72;color:#535c69}.problem-body pre{background:#20242a;color:#eef2f6;border-radius:10px;padding:18px;overflow:auto;font:13px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.breadcrumbs{font-size:13px;color:var(--muted);margin-bottom:18px}.breadcrumbs a{color:var(--blue)}
footer{border-top:1px solid var(--border);padding:25px 42px;color:#727b87;font-size:13px}
@media(max-width:800px){.site-header{padding:0 18px;flex-wrap:wrap;height:auto;min-height:70px}.brand{min-width:auto}.main-nav{order:3;width:100%;overflow:auto;padding-bottom:10px;gap:18px}.hero h1{font-size:38px}.docs-layout{grid-template-columns:1fr}.sidebar{position:relative;top:auto;max-height:none;border-right:0;border-bottom:1px solid var(--border);padding:0 0 18px}.page{padding:35px 18px 60px}}

/* Authoritative ManySet documentation navigation */
.docs-shell{display:grid;grid-template-columns:290px minmax(0,1fr);max-width:1240px;margin:0 auto;min-height:calc(100vh - 76px)}
.docs-sidebar{position:fixed;top:76px;bottom:0;width:290px;box-sizing:border-box;overflow-y:auto;overflow-x:hidden;padding:28px 22px 45px 28px;border-right:1px solid var(--border);background:#fff;scrollbar-gutter:stable;overscroll-behavior:contain}
.docs-sidebar .category{margin:0 0 15px}.docs-sidebar .category h3{margin:0 0 7px;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#68717f}.docs-sidebar .menu-link{display:block;padding:5px 9px;margin:1px 0;border-radius:7px;color:#3e4651;font-size:13px;line-height:1.35}.docs-sidebar .menu-link:hover,.docs-sidebar .menu-link.active{background:var(--soft);color:var(--blue-dark)}
.docs-main{grid-column:2;min-width:0;padding:52px 55px 90px}.problem-body{max-width:820px}.problem-body h1{font-size:38px;line-height:1.2;letter-spacing:-1px;margin:0 0 18px}.problem-body h2{font-size:27px;line-height:1.25;margin:36px 0 13px}.problem-body h3{font-size:20px;margin:27px 0 10px}.problem-body p,.problem-body li{color:#535c69;line-height:1.72}.problem-body pre[class*=language-]{background:#fff;border:1px solid #dfe3e8;border-radius:9px;box-shadow:none;padding:18px;overflow:auto}.problem-body code[class*=language-],.problem-body pre[class*=language-]{font-size:14px;line-height:1.65}.breadcrumbs{font-size:13px;color:var(--muted);margin-bottom:18px}
@media(max-width:800px){.docs-shell{display:block;min-height:auto}.docs-sidebar{position:relative;top:auto;bottom:auto;width:auto;max-height:42vh;border-right:0;border-bottom:1px solid var(--border);padding:20px}.docs-main{grid-column:auto;padding:35px 20px 60px}.site-header{padding:0 18px;flex-wrap:wrap;height:auto;min-height:70px}.brand{min-width:auto}.main-nav{order:3;width:100%;overflow:auto;padding-bottom:10px;gap:18px}}

.cross-cutting{margin-top:48px;padding-top:28px;border-top:1px solid #e5e7eb}.cross-cutting h2{font-size:28px}.cross-cutting h3{font-size:20px;margin-top:28px}.cross-cutting p{line-height:1.7}

/* Brand (logo "ms" + word "manyset") — darker palette */
.brand{display:flex;align-items:center;gap:11px;font-size:1.2rem;font-weight:800;letter-spacing:-0.03em;min-width:0;}
.brand-name{font-family:"Poppins","Segoe UI",Arial,sans-serif;font-style:italic;font-weight:600;letter-spacing:-0.035em;font-size:1.18rem;line-height:1;background:linear-gradient(135deg,#7f9ceb,#47d0b5);-webkit-background-clip:text;background-clip:text;color:transparent;}
.brand-name .brand-m,.brand-name .brand-s{font-size:1em;font-weight:600;}
.brand-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(135deg,#5781eb,#47d0b5);color:#07111f;font-size:0.91rem;font-weight:600;font-family:"Poppins","Segoe UI",Arial,sans-serif;font-style:italic;letter-spacing:-0.035em;}

.main-nav{margin-left:96px;}