/* Document-only shell. Landing assets and the approved palette are unchanged. */
.public-docs .document-header{position:relative;z-index:20;border-bottom:1px solid var(--border)}
.document-bar{max-width:1240px;margin:auto;min-height:76px;padding:12px 28px;display:flex;align-items:center;gap:32px}
.public-docs .document-brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-weight:700;white-space:nowrap;min-height:44px;flex-shrink:0}
.document-brand img{border-radius:9px}
.document-menu{display:flex;align-items:center;justify-content:space-between;flex:1;gap:28px;min-width:0}
.public-docs .document-links{display:flex;align-items:center;justify-content:center;gap:4px;padding:0;margin:0;flex:1;flex-wrap:nowrap;max-width:none}
.public-docs .document-links a{display:flex;align-items:center;min-height:44px;padding:0 12px;color:var(--muted);text-decoration:none;font-size:14px;font-weight:500;white-space:nowrap;border-radius:8px}
.public-docs .document-links a:hover{color:var(--ink);background:var(--surface-soft)}
.public-docs .document-links a[aria-current]{background:var(--accent-soft);color:var(--accent);font-weight:700}
.document-actions{display:flex;align-items:center;gap:18px;flex-shrink:0}
.public-docs .document-download{display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;background:#245fbe;color:#fff;border-radius:9px;white-space:nowrap;text-decoration:none;font-size:14px;font-weight:600}
.document-download:hover{filter:brightness(.94)}
.document-header .header-preferences{margin:0;gap:10px;flex-basis:auto}
.document-header .language-selector{border:0;background:transparent;padding:0;gap:0}
.document-header .language-selector button{min-width:44px;min-height:44px;padding:8px;color:var(--muted);border-radius:7px}
.document-header .language-selector button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent)}
.document-header .theme-selector{border:0;background:transparent;padding:0;min-height:44px}
.document-header .theme-selector select{background:transparent;min-height:44px;font-weight:500;max-width:90px}
.document-header .theme-selector option{color:var(--ink);background:var(--surface)}
.document-preferences-title,.document-menu-toggle{display:none}
.public-docs .document-breadcrumb{display:block;max-width:none;margin:0 0 14px;padding:0;color:var(--muted);font-size:12px;line-height:1.8}
.document-breadcrumb ol{list-style:none;padding:0;margin:0;display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px}
.document-breadcrumb li{display:flex;align-items:baseline;gap:8px;min-width:0;max-width:100%}
.public-docs .document-breadcrumb a{font-weight:400;color:var(--muted);text-decoration:none;padding-block:4px}
.document-breadcrumb a:hover{text-decoration:underline}
.document-breadcrumb [aria-current]{overflow-wrap:anywhere}
.breadcrumb-arrow::before{content:'→'}
[dir=rtl] .breadcrumb-arrow::before{content:'←'}
.public-docs main>h1{margin-top:0}
@media(max-width:1119px){
 .document-bar{min-height:64px;padding:10px 24px;gap:16px;flex-wrap:wrap}
 .document-brand img{width:34px;height:34px}
 .document-menu-toggle{display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin-inline-start:auto;border:0;border-radius:8px;background:transparent;color:var(--ink);cursor:pointer}
 .document-menu-toggle svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
 .document-menu-toggle:hover{background:var(--surface-soft)}
 .document-menu-toggle .menu-cross{display:none}
 .document-menu-toggle[aria-expanded=true] .menu-lines{display:none}
 .document-menu-toggle[aria-expanded=true] .menu-cross{display:block}
 .document-menu{display:block;flex-basis:100%;padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:12px}
 .document-header[data-menu-ready] .document-menu{display:none;position:absolute;inset-inline-end:24px;top:calc(100% + 8px);width:min(360px,calc(100% - 48px));max-height:calc(100dvh - 96px);overflow-y:auto;box-shadow:0 12px 32px rgba(0,0,0,.12)}
 .document-header[data-menu-ready].is-open .document-menu{display:block}
 .public-docs .document-links{display:flex;flex-direction:column;align-items:stretch;gap:4px}
 .public-docs .document-links a{padding:0 12px;font-size:15px}
 .document-actions{display:block}
 .document-download{margin-top:12px}
 .document-preferences{margin-top:16px;padding-top:12px;border-top:1px solid var(--border)}
 .document-preferences-title{display:block;font-size:12px;color:var(--muted);margin-bottom:8px}
 .document-header .header-preferences{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}
 .public-docs main{margin-top:20px}
}
@media(max-width:400px){.document-bar{padding-inline:16px}.document-header[data-menu-ready] .document-menu{inset-inline-end:16px;width:calc(100% - 32px)}}
