* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 112px; }
body { margin: 0; min-width: 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
:where(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button { font: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -80px; padding: 12px; background: #fffcf5; z-index: 4; }
.skip-link:focus { top: 10px; }
.docs-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; padding: 16px 48px; border-bottom: 1px solid var(--rule); background: #f7f4ea; position: sticky; top: 0; z-index: 3; }
.wordmark { font: 38px/1 Newsreader, Georgia, serif; text-decoration: none; }
.wordmark > span:not(.brain-signature) { color: var(--accent); }
.docs-header nav { display: flex; gap: 28px; font-size: 13px; }
.docs-header nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.docs-header nav a[aria-current] { color: var(--accent); }
.docs-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 48px; max-width: 1440px; margin: auto; padding: 44px 48px 80px; }
.docs-sidebar { align-self: start; position: sticky; top: 112px; font-size: 13px; max-height: calc(100dvh - 136px); overflow-y: auto; }
.eyebrow { color: #655f54; font: 600 11px/1.5 'Instrument Sans', sans-serif; text-transform: uppercase; letter-spacing: .12em; }
.nav-group { display: grid; margin: 20px 0 26px; }
.nav-group p { color: #655f54; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px; }
.nav-group a { display: flex; align-items: center; min-height: 43px; padding: 10px 12px; border-left: 1px solid var(--rule); text-decoration: none; }
.nav-group a[aria-current] { color: var(--accent); border-left: 2px solid var(--accent); padding-left: 11px; font-weight: 600; background: #eee9dc; }
.docs-menu-toggle { display: none; }
main, article { min-width: 0; }
main { font-size: 16px; line-height: 1.75; }
.page-intro > :first-child, main > :first-child { margin-top: 0; }
h1, h2, h3 { font-family: Newsreader, Georgia, serif; font-weight: 400; line-height: 1.16; letter-spacing: -.025em; }
h1 { font-size: clamp(44px, 5vw, 68px); margin: 12px 0 24px; max-width: 820px; }
h2 { font-size: 34px; margin: 40px 0 16px; padding-top: 20px; border-top: 1px solid var(--rule); }
h3 { font-size: 25px; margin: 28px 0 12px; }
.heading-link { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; margin-left: 6px; font: 16px/1 'Instrument Sans', sans-serif; vertical-align: middle; text-decoration: none; opacity: 0; }
h2:hover .heading-link, .heading-link:focus-visible, h2:target .heading-link { opacity: 1; }
p, ul, ol, dl { margin: 0 0 20px; }
li { padding-left: 4px; margin-bottom: 9px; }
dt { font-weight: 600; }
dd { margin: 0 0 18px; }
.lead { color: #655f54; font-size: 19px; line-height: 1.65; max-width: 720px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; color: #655f54; font-size: 12px; margin-bottom: 24px; }
.breadcrumbs a { text-decoration: none; }
.page-body.has-contents { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 32px; align-items: start; }
.page-body.has-contents article { grid-column: 1; grid-row: 1; }
.page-contents { grid-column: 2; grid-row: 1; position: sticky; top: 112px; margin-top: 40px; font-size: 12px; line-height: 1.6; border: 0; padding: 0; }
.page-contents summary { font-size: 12px; }
.page-contents nav { display: grid; margin-top: 12px; gap: 4px; }
.page-contents a { padding: 6px 0; text-decoration: none; color: #655f54; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 28px 0; }
.button { display: inline-flex; min-height: 48px; align-items: center; padding: 10px 18px; border: 1px solid #211e18; background: #211e18; color: #fffcf5; border-radius: 4px; text-decoration: none; font-size: 14px; }
.button:hover { background: var(--accent); border-color: var(--accent); color: white; }
code { font: .83em/1.6 ui-monospace, 'SFMono-Regular', Consolas, monospace; overflow-wrap: anywhere; }
p code, li code, td code, dd code { padding: 2px 4px; background: #eee9dc; border-radius: 2px; }
.code-block { min-width: 0; margin: 22px 0; border: 1px solid var(--rule); border-radius: 4px; background: #fffcf5; overflow: hidden; }
.code-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 12px; padding: 0 8px 0 20px; border-bottom: 1px solid var(--rule); color: #655f54; font-size: 11px; }
.code-copy { min-height: 40px; min-width: 64px; padding: 8px 10px; border: 0; border-radius: 2px; background: transparent; color: #211e18; font-size: 12px; cursor: pointer; }
.code-copy:hover { background: #eee9dc; }
.code-copy:disabled { cursor: wait; }
pre { margin: 0; padding: 22px; max-width: 100%; overflow: auto; line-height: 1.6; }
pre:focus-visible { outline-offset: -3px; }
pre code { font-size: 12px; white-space: pre; overflow-wrap: normal; }
.table-scroll { max-width: 100%; overflow: auto; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 13px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; overflow-wrap: anywhere; }
th { font-weight: 600; background: #eee9dc; }
article > section details { margin: 22px 0; border: 1px solid var(--rule); padding: 16px; border-radius: 4px; }
summary { cursor: pointer; font-size: 14px; font-weight: 600; }
details[open] > summary { margin-bottom: 16px; }
.page-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--rule); padding-top: 28px; margin-top: 56px; font-size: 15px; }
.page-pagination a { text-decoration: none; min-height: 52px; }
.page-pagination a:last-child { text-align: right; }
.page-pagination span { display: block; font-size: 11px; color: #655f54; margin-bottom: 4px; }
.docs-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 28px 48px; border-top: 1px solid var(--rule); font-size: 12px; color: #655f54; }
.docs-footer a { min-height: 32px; display: inline-flex; align-items: center; }
.error-layout { display: block; max-width: 1000px; min-height: calc(100dvh - 190px); padding-block: 100px; }
@media (max-width: 1179px) { .page-body.has-contents { display: block; } .page-contents { position: static; margin: 28px 0 0; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); } .page-contents nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; } }
@media (max-width: 900px) { .docs-layout { gap: 28px; grid-template-columns: 160px minmax(0, 1fr); padding-inline: 28px; } .docs-header { padding-inline: 28px; } }
@media (max-width: 650px) {
  html { scroll-padding-top: 96px; }
  .docs-header { min-height: 76px; padding: 14px 20px; gap: 12px; }
  .wordmark { font-size: 32px; }
  .docs-header nav { gap: 12px; font-size: 11px; }
  .docs-layout { display: block; padding: 20px 20px 48px; }
  .docs-sidebar { position: static; max-height: none; margin-bottom: 28px; overflow: visible; }
  .docs-sidebar > .eyebrow { display: none; }
  .docs-menu-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 48px; border: 0; border-block: 1px solid var(--rule); padding: 10px 0; background: transparent; font-size: 12px; text-align: left; cursor: pointer; }
  .docs-menu-toggle span:last-child { color: #655f54; }
  .docs-sidebar[data-collapsed="true"] #docs-nav { display: none; }
  .nav-group { margin-block: 18px; }
  .nav-group a { min-height: 44px; }
  main { font-size: 15px; }
  .lead { font-size: 17px; }
  h1 { font-size: clamp(38px, 10.5vw, 45px); }
  h2 { font-size: 30px; }
  .heading-link { opacity: 1; }
  .breadcrumbs { margin-bottom: 18px; }
  .page-contents nav { grid-template-columns: 1fr; }
  .code-toolbar { padding-left: 15px; }
  .code-copy { min-height: 44px; }
  pre { padding: 15px; }
  table { min-width: 480px; }
  .docs-footer { padding: 20px; }
  .error-layout { padding-top: 60px; }
}
