/* Developer documentation in the calm shell: a plain hero, a mono chapter
   rail with an orange active row, reading type at one weight, and code as
   classic windows. Loads after halde-docs.css. The docs bundle also serves
   faq, about, contact, developers, and blog; those keep their own files. */
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-page{--font-technical:"IBM Plex Mono",ui-monospace,"SFMono-Regular",Menlo,monospace;--code-surface:#fff;--code-gutter:#fff;--code-shadow:none;color:var(--text-primary);background:var(--bg-page)}

/* hero and breadcrumb */
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-hero{max-width:none;width:min(100%,var(--page-max));margin:0 auto;padding:clamp(56px,8vh,96px) var(--page-gutter) clamp(40px,5vh,64px);border-bottom:1px solid var(--border-default)}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-hero .docs-eyebrow{display:none}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-hero h1{max-width:20ch;margin:0;font:400 clamp(34px,3vw,46px)/1.08 var(--font-editorial);font-variation-settings:"wght" 400;letter-spacing:-.035em;color:var(--text-primary)}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-hero>p{max-width:60ch;margin:16px 0 0;color:var(--text-secondary);font:400 clamp(15px,1.15vw,17px)/1.5 var(--font-editorial)}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-hero>a{display:inline-flex;align-items:center;gap:8px;margin-top:24px;padding:10px 14px;color:#fff;border:1.5px solid #111;border-radius:0;background:#ff5a1f;font:700 10px/1 var(--font-technical);letter-spacing:.12em;text-decoration:none;box-shadow:3px 3px 0 #111}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-hero>a:is(:hover,:focus-visible){box-shadow:5px 5px 0 #111;outline:none}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-route-head{width:min(100%,var(--page-max));box-sizing:border-box;margin:0 auto;padding:0 var(--page-gutter);min-height:52px;color:var(--text-tertiary);border-bottom:1px solid var(--border-default);font:500 10px/1 var(--font-technical);letter-spacing:.12em;text-transform:uppercase}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-route-head a{color:var(--text-secondary);text-decoration:none}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-route-head b{color:#ff5a1f;font-weight:600}

/* layout and chapter rail */
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-layout{max-width:none;width:min(100%,var(--page-max));box-sizing:border-box;margin:0 auto;padding:0 var(--page-gutter);grid-template-columns:240px minmax(0,1fr)}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-chapters{top:72px;padding:36px 28px 60px 0}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-chapters a{grid-template-columns:30px minmax(0,1fr);gap:10px;min-height:40px;padding:11px 10px;color:var(--text-secondary);border:0;border-top:1px dotted rgba(17,17,17,.35);background:transparent;box-shadow:none}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-chapters a:first-child{border-top:0}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-chapters a span{color:#ff5a1f;font:600 10px/1.4 var(--font-technical);letter-spacing:.08em}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-chapters b{font:400 13.5px/1.3 var(--font-editorial);letter-spacing:-.01em}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-chapters a:hover{color:var(--text-primary)}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-chapters a.is-active{color:var(--text-primary);background:#fff3ee;box-shadow:inset 3px 0 0 #ff5a1f}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-chapters a.is-active b{font-weight:500}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-nav-toggle{top:72px;width:28px;height:36px;margin-top:38px;color:#111;border:1.5px solid #111;border-radius:0;background:#fff;font:600 14px/1 var(--font-technical)}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-nav-toggle:is(:hover,:focus-visible){color:#ff5a1f;border-color:#111;background:#fff3ee}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-article{max-width:880px;padding:48px 0 110px 56px;border-left:1px solid var(--border-default)}

/* reading type */
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-article h1{max-width:18ch;margin:0 0 24px;font:400 clamp(34px,3vw,46px)/1.08 var(--font-editorial);font-variation-settings:"wght" 400;letter-spacing:-.035em}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-article h2{margin:56px 0 16px;font:400 var(--type-landing-section-size)/1.12 var(--font-editorial);font-variation-settings:"wght" 400;letter-spacing:-.03em;scroll-margin-top:84px}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-article h3{margin:34px 0 12px;font:500 clamp(18px,1.4vw,21px)/1.25 var(--font-editorial);letter-spacing:-.02em;scroll-margin-top:84px}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-article :is(p,li){max-width:66ch;color:var(--text-primary);font:400 16px/1.6 var(--font-editorial)}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-article strong{font-weight:600}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-article :is(p,li) code{padding:2px 5px;color:#111;border:1px solid rgba(17,17,17,.25);border-radius:0;background:#fff;font:400 .86em/1.3 var(--font-technical)}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-article blockquote{max-width:66ch;margin:24px 0;padding:16px 20px;color:#111;border:1.5px solid #111;border-left-width:4px;border-left-color:#ff5a1f;border-radius:0;background:#fff3ee;font:400 15.5px/1.55 var(--font-editorial)}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-article ul li::marker{color:#ff5a1f}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-article hr{border:0;border-top:1px dotted rgba(17,17,17,.4)}

/* code as classic windows */
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] :is(.docs-code,.docs-command){max-width:820px;color:#111;border:1.5px solid #111;border-radius:0;background:#fff;box-shadow:none}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-code-bar{height:32px!important;border-bottom:1.5px solid #111;background:#fff;color:#111;font:600 10px/1 var(--font-technical);letter-spacing:.08em}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-code-context{display:flex;align-items:center;gap:8px;padding:0 12px;color:#111}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-code-context>i{width:8px;height:8px;border-radius:0;background:#ff5a1f}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-code-context em{color:#8a9099;font-style:normal}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-code-context span{color:#5b6068;text-transform:uppercase}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-code-meta{display:flex;align-items:center;padding:0 12px;color:#8a9099;font:500 9px/1 var(--font-technical);letter-spacing:.1em;text-transform:uppercase}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] :is(.docs-code,.docs-command) button{color:#fff;border:0;border-left:1.5px solid #111;border-radius:0;background:#ff5a1f;font:700 9px/1 var(--font-technical);letter-spacing:.12em;text-transform:uppercase;cursor:pointer}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] :is(.docs-code,.docs-command) button:is(:hover,:focus-visible){background:#e64e17;outline:none}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-code pre{background:#fff}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-code-line>i{color:#8a9099;border-right:1px dotted rgba(17,17,17,.35);background:#fff;font:400 11px/1.7 var(--font-technical)}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-code-line>b{color:#111;font:400 12.5px/1.7 var(--font-technical)}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-code .tok-key{color:#111;font-weight:500}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-code .tok-string{color:#ff5a1f}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-code .tok-comment{color:#8a9099}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-command{grid-template-columns:36px minmax(0,1fr) 62px;min-height:46px}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-command-prompt{color:#ff5a1f;font:600 13px/1 var(--font-technical)}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-command pre code{color:#111;font:400 13px/1.5 var(--font-technical)}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-command button{height:100%}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-table-wrap{border:1.5px solid #111;border-radius:0;background:#fff}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-table-wrap th{color:#111;background:#fff3ee;border-bottom:1.5px solid #111;font:600 10px/1.4 var(--font-technical);letter-spacing:.1em;text-transform:uppercase}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-table-wrap td{border-top:1px dotted rgba(17,17,17,.35);font-size:14.5px}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] :is(.docs-concept,.docs-memory-ledger,.docs-model-transfer,.docs-composition-sheet,.docs-distribution-field,.docs-eval-matrix,.docs-learning-tape){border:1.5px solid #111;border-radius:0;background:#fff;box-shadow:none}

/* the reading path on the overview */
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-index{max-width:none}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-index header>span{display:none}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-index header h2{margin:0;max-width:18ch;font:400 var(--type-landing-section-size)/1.12 var(--font-editorial);font-variation-settings:"wght" 400;letter-spacing:-.03em}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-index-group{grid-template-columns:170px minmax(0,1fr);border-top:1.5px solid #111}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-index-group:last-child{border-bottom:1.5px solid #111}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-index-label{padding:20px 12px 20px 0}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-index-label span{display:block;color:#ff5a1f;font:600 10px/1.4 var(--font-technical);letter-spacing:.12em}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-index-label small{display:block;margin-top:4px;color:var(--text-tertiary);font:400 13px/1.4 var(--font-editorial)}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-index-links a{padding:16px 12px;border:0;border-top:1px dotted rgba(17,17,17,.35);border-radius:0;background:transparent;text-decoration:none;transition:background-color .15s ease}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-index-links a:first-child{border-top:0}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-index-links a:hover{background:#fff3ee}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-index-links a>span:first-child,
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-index-links a>i{color:#ff5a1f;font:600 10px/1.4 var(--font-technical);font-style:normal;letter-spacing:.08em}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-index-links b{font:400 18px/1.25 var(--font-editorial);letter-spacing:-.02em;color:var(--text-primary)}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-index-links p{margin:4px 0 0;color:var(--text-secondary);font:400 14px/1.45 var(--font-editorial)}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-index-links small{color:var(--text-tertiary);font:500 9px/1.4 var(--font-technical);letter-spacing:.1em}

/* pager */
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-pager{margin-top:56px;padding-top:0;border-top:0}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-pager a{padding:14px 16px;color:#111;border:1.5px solid #111;border-radius:0;background:#fff;text-decoration:none;transition:box-shadow .18s ease,transform .18s ease}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-pager a:is(:hover,:focus-visible){box-shadow:5px 5px 0 #111;transform:translate(-2px,-2px);outline:none}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-pager span{color:#ff5a1f;font:600 9px/1.4 var(--font-technical);letter-spacing:.12em;text-transform:uppercase}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-pager b{font:400 16px/1.3 var(--font-editorial);letter-spacing:-.02em}

/* dark */
html[data-design-system="halde"][data-calm][data-route-bundle="docs"][data-resolved-theme="dark"] .docs-page{--code-surface:#0a0a09;--code-gutter:#0a0a09}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"][data-resolved-theme="dark"] :is(.docs-code,.docs-command,.docs-code-bar,.docs-code pre,.docs-code-line>i,.docs-pager a,.docs-nav-toggle,.docs-table-wrap,.docs-article :is(p,li) code,.docs-concept,.docs-memory-ledger,.docs-model-transfer,.docs-composition-sheet,.docs-distribution-field,.docs-eval-matrix,.docs-learning-tape){color:#f1f1ed;border-color:#f1f1ed;background:#0a0a09}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"][data-resolved-theme="dark"] :is(.docs-code-line>b,.docs-command pre code,.docs-code-context,.docs-code .tok-key,.docs-pager b){color:#f1f1ed}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"][data-resolved-theme="dark"] :is(.docs-article blockquote,.docs-chapters a.is-active,.docs-index-links a:hover,.docs-table-wrap th,.docs-nav-toggle:hover){color:#f1f1ed;background:rgba(255,90,31,.12)}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"][data-resolved-theme="dark"] .docs-article blockquote{border-color:#f1f1ed;border-left-color:#ff5a1f}

@media (max-width:980px){
  html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-page{padding-top:0}
  html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-layout{grid-template-columns:200px minmax(0,1fr)}
  html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-article{padding-left:32px}
}
@media (max-width:760px){
  html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-index-group{grid-template-columns:1fr}
  html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-index-label{padding:16px 0 4px}
  html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-article{padding:32px 0 80px;border-left:0}
}

/* collapsed rail: the article takes the width */
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-layout.is-nav-collapsed{grid-template-columns:30px minmax(0,1fr)}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-layout.is-nav-collapsed .docs-nav-toggle{justify-self:start;transform:none;border-radius:0}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-layout.is-nav-collapsed .docs-article{max-width:1120px;padding-left:48px;border-left:0}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-layout.is-nav-collapsed .docs-article :is(p,li,blockquote){max-width:72ch}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-layout.is-nav-collapsed .docs-article :is(.docs-code,.docs-command,.docs-table-wrap){max-width:960px}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-hero>a+a{margin-left:12px;color:#111;background:#fff}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"] .docs-hero>a+a:is(:hover,:focus-visible){background:#fff3ee}
html[data-design-system="halde"][data-calm][data-route-bundle="docs"][data-resolved-theme="dark"] .docs-hero>a+a{color:#f1f1ed;background:#0a0a09}
