:root {
  color-scheme: light;
  --paper: #faf9f6;
  --surface: #ffffff;
  --ink: #242825;
  --muted: #626963;
  --line: #dfE2db;
  --accent: #8b3b28;
  --accent-soft: #f4e9e3;
  --code: #202723;
  --radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; }
a { color: var(--accent); text-underline-offset: 3px; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #ab593d; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 12px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 10px; }
.docs-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 30px; min-height: 76px; padding: 14px 32px; background: var(--paper); border-bottom: 1px solid var(--line); }
.docs-brand { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); font-size: 20px; font-weight: 750; letter-spacing: -.5px; white-space: nowrap; }
.docs-brand span { font-weight: 450; font-size: 14px; color: var(--muted); padding-left: 12px; margin-left: 4px; border-left: 1px solid #cdd1c8; letter-spacing: 0; }
.header-link { margin-left: auto; font-size: 13px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.docs-search { position: relative; width: min(430px, 40vw); margin-left: clamp(12px, 4vw, 70px); }
.docs-search input { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 9px 42px 9px 14px; font-size: 14px; color: var(--ink); }
.docs-search kbd { position: absolute; right: 12px; top: 8px; border: 1px solid var(--line); padding: 0 7px; color: var(--muted); border-radius: 4px; font-size: 13px; pointer-events: none; }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; width: min(540px, calc(100vw - 32px)); max-height: min(70vh, 650px); overflow-y: auto; padding: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 48px #26312a22; border-radius: var(--radius); }
.search-results p { margin: 0 8px 8px; font-size: 12px; color: var(--muted); }
.search-results ul { padding: 0; margin: 0; list-style: none; }
.search-results a { display: block; padding: 10px; border-radius: 5px; text-decoration: none; color: var(--ink); }
.search-results a:hover, .search-results a:focus { background: var(--accent-soft); }
.search-results strong, .search-results span { display: block; }
.search-results strong { font-size: 14px; }
.search-results span { color: var(--muted); font-size: 12px; }
.docs-layout { max-width: 1600px; margin: 0 auto; display: grid; grid-template-columns: 240px minmax(0, 850px) 210px; justify-content: center; }
.docs-sidebar { position: sticky; top: 76px; height: calc(100vh - 76px); overflow-y: auto; padding: 24px 18px 32px 24px; border-right: 1px solid var(--line); scrollbar-width: thin; }
.docs-sidebar section { margin-bottom: 24px; }
.docs-sidebar h2 { font-size: 12px; font-weight: 720; margin: 0 0 7px 10px; color: var(--ink); }
.docs-sidebar nav a { display: block; padding: 5px 10px; margin: 2px 0; border-radius: 5px; font-size: 13px; color: var(--muted); text-decoration: none; line-height: 1.5; }
.docs-sidebar nav a:hover { background: #efeee8; color: var(--ink); }
.docs-sidebar nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 650; box-shadow: inset 2px 0 var(--accent); }
.source-link { display: block; padding: 12px 10px; font-size: 12px; }
.docs-layout main { padding: 35px clamp(24px, 4vw, 64px) 64px; min-width: 0; }
.docs-breadcrumb { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 15px; }
.docs-breadcrumb a { text-decoration: none; color: var(--muted); }
.docs-description { font-size: 14px; color: var(--muted); margin: 0 0 26px; max-width: 620px; }
.docs-outline { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 76px); overflow-y: auto; padding: 35px 20px 25px 12px; scrollbar-width: thin; }
.docs-outline > p { margin: 0 0 10px; font-size: 12px; font-weight: 650; }
.docs-outline nav { border-left: 1px solid var(--line); }
.docs-outline a, .mobile-outline a { display: block; color: var(--muted); text-decoration: none; font-size: 12px; line-height: 1.5; padding: 6px 12px; overflow-wrap: anywhere; }
.docs-outline a:hover, .docs-outline a[aria-current="location"] { color: var(--accent); }
.docs-outline a[aria-current="location"] { box-shadow: -1px 0 var(--accent); }
.mobile-outline { display: none; }
.docs-pagination { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 54px; }
.docs-pagination a { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; background: var(--surface); }
.docs-pagination a:hover { border-color: #b7bdb4; }
.docs-pagination span { font-size: 12px; color: var(--muted); }
.docs-pagination strong { font-size: 14px; margin-top: 3px; }
.docs-footer { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 11px; color: var(--muted); }
.no-script-note { text-align: center; font-size: 13px; padding: 12px; }
.docs-menu-toggle { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 7px 10px; font-size: 12px; color: var(--ink); }
@media (min-width: 821px) { .docs-menu-toggle { display: none; } }
@media (max-width: 1180px) {
  .docs-layout { grid-template-columns: 225px minmax(0, 850px); }
  .docs-outline { display: none; }
  .mobile-outline { display: block; border: 1px solid var(--line); border-radius: 7px; padding: 8px 12px; margin-bottom: 24px; font-size: 13px; }
  .mobile-outline summary { color: var(--muted); }
}
@media (max-width: 820px) {
  html { scroll-padding-top: 130px; }
  .docs-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px 18px; }
  .docs-brand { font-size: 18px; }
  .docs-brand img { width: 25px; height: 25px; }
  .docs-brand span { font-size: 12px; }
  .header-link { grid-column: 2; grid-row: 1; font-size: 12px; }
  .docs-search { grid-column: 1; grid-row: 2; width: 100%; min-width: 0; margin: 0; }
  .docs-search input { padding-right: 14px; }
  .docs-search kbd { display: none; }
  .docs-menu-toggle { grid-column: 2; grid-row: 2; }
  .search-results { width: calc(100vw - 36px); }
  .docs-layout { display: block; }
  .docs-sidebar { position: static; height: auto; max-height: 60vh; padding: 16px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .docs-sidebar nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .docs-ready .docs-sidebar { display: none; }
  .docs-ready .docs-sidebar.is-open { display: block; }
  .docs-layout main { padding: 24px 20px 44px; }
  .docs-pagination { gap: 10px; }
  .docs-pagination a { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
