:root {
  color-scheme: light;
  --paper: #fbfaf6;
  --ink: #263e48;
  --muted: #5c6d72;
  --line: #dce1d9;
  --accent: #345f76;
  --sage: #e7ede2;
  --sage-ink: #3e5945;
  --blue: #edf2f4;
  --sand: #f1e8d9;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.75; }
a { color: var(--accent); text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { color: var(--sage-ink); }
button, input, dialog { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: #dce6d6; color: var(--ink); }
.site-header { max-width: 1280px; width: calc(100% - 96px); margin: auto; min-height: 112px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font: 2.75rem/1 var(--serif); letter-spacing: -.04em; color: var(--ink); text-decoration: none; padding-block: 20px; }
.brand-sphere { width: 44px; height: 44px; object-fit: cover; mix-blend-mode: multiply; }
.header-links { display: flex; align-items: center; gap: 32px; font-size: .9375rem; }
.header-links a { text-decoration: none; color: var(--ink); }
.header-links a:hover { color: var(--accent); }
.header-links a span { margin-left: 5px; }
.search-open { background: #f1f3ed; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; text-align: left; }
.search-open:hover { background: var(--sage); }
kbd { color: var(--muted); font: .875rem var(--sans); margin-left: 24px; }
.page-layout { max-width: 1280px; width: calc(100% - 96px); margin: 46px auto 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 68px; align-items: start; }
.sidebar { position: sticky; top: 32px; padding-top: 8px; padding-right: 24px; border-right: 1px solid var(--line); max-height: calc(100dvh - 64px); overflow-y: auto; }
.mobile-navigation > summary { display: none; }
.nav-group { margin-bottom: 32px; }
.nav-heading { color: var(--muted); font-size: .875rem; font-weight: 500; margin: 0 0 10px; padding-inline: 12px; }
.nav-group ul { list-style: none; padding: 0; margin: 0; }
.nav-group li { margin: 3px 0; }
.nav-group a { display: block; padding: 8px 12px; font-size: .9375rem; line-height: 1.5; color: var(--ink); text-decoration: none; border-radius: 9px; overflow-wrap: anywhere; }
.nav-group a:hover { background: #eff2ea; }
.nav-group a[aria-current="page"] { background: var(--sage); color: var(--sage-ink); font-weight: 600; }
.article { min-width: 0; max-width: 900px; padding-bottom: 48px; }
.article:focus { outline: none; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .875rem; margin-bottom: 22px; }
.breadcrumb span { color: #81938c; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.025em; line-height: 1.2; text-wrap: balance; }
h1 { max-width: 19ch; font-size: clamp(2.5rem, 3.6vw, 3.5rem); margin: 0 0 20px; }
h2 { font-size: 2rem; margin: 44px 0 14px; }
h3 { font-size: 1.5rem; margin: 30px 0 12px; }
p { margin: 8px 0 20px; }
.article > p, .article > ul, .article > ol { max-width: 76ch; }
.lead { color: #50656d; font-size: 1.25rem; line-height: 1.65; margin: 0 0 20px; max-width: 54ch; }
.page-status { color: var(--muted); font-size: .875rem; margin: 0; }
.docs-opening { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 12px; padding: 4px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.docs-opening h1 { max-width: 13ch; }
.docs-opening .lead { font-size: 1.125rem; max-width: 31ch; }
.opening-copy { position: relative; z-index: 1; }
.opening-sphere { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; mix-blend-mode: multiply; }
.docs-opening + h2 { margin-top: 0; }
.article ul, .article ol { padding-left: 1.4em; }
.article li { padding-left: .25em; margin-block: 7px; }
.article li::marker { color: var(--sage-ink); }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .875rem; }
:not(pre) > code { padding: .16em .35em; background: #eceee6; border-radius: 4px; color: #354e45; font-size: .9em; overflow-wrap: anywhere; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
pre { background: var(--blue); border: 1px solid #d8e2e5; border-radius: 12px; padding: 22px 24px; margin: 22px 0 30px; line-height: 1.8; overflow-x: auto; tab-size: 4; color: #294450; }
pre code { font-size: inherit; }
.token-keyword { color: #345f7b; }
.token-comment { color: #617177; }
.token-string { color: #416347; }
blockquote { border-left: 3px solid #c6b18e; border-radius: 0 10px 10px 0; margin: 25px 0; padding: 12px 22px; background: #f5efe4; color: #555747; }
blockquote p:last-child { margin-bottom: 8px; }
.table-scroll { max-width: 100%; overflow-x: auto; margin-block: 24px; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9375rem; }
th, td { border-bottom: 1px solid var(--line); padding: 14px 18px; vertical-align: top; }
th { background: #eef1e8; color: var(--sage-ink); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.next-link { display: block; border: 1px solid #d6dfd1; border-radius: 12px; background: #eff3e9; padding: 18px 22px; margin-top: 30px; text-align: right; text-decoration: none; color: var(--sage-ink); font-size: .9375rem; }
.next-link:hover { background: #e5eddf; }
.page-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; font-size: .875rem; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; }
.page-footer a { text-decoration: none; color: var(--muted); }
.page-footer a:hover { color: var(--accent); }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 20; padding: 12px 20px; background: var(--ink); color: var(--paper); border-radius: 8px; }
.skip-link:focus { top: 10px; }
dialog { width: min(660px, calc(100% - 32px)); max-height: min(680px, 85dvh); margin: 12dvh auto; padding: 28px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 80px #263e4826; }
dialog::backdrop { background: #263e4866; }
.search-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .875rem; }
.search-close { background: var(--sage); border: 0; border-radius: 7px; padding: 6px 10px; font-size: .875rem; }
.search-close:hover { background: #dce6d6; }
#search-input { width: 100%; border: 1px solid #bdcdc9; border-radius: 9px; background: #fffefa; font-size: 1.125rem; padding: 14px 16px; margin: 22px 0 12px; }
#search-input::placeholder { color: var(--muted); opacity: 1; }
.search-status { color: var(--muted); font-size: .875rem; }
.search-results { list-style: none; padding: 0; margin: 0; }
.search-results a { display: block; padding: 15px 12px; border-top: 1px solid var(--line); text-decoration: none; border-radius: 6px; }
.search-results a:hover { background: var(--blue); }
.search-results strong { font-weight: 500; display: block; }
.search-results small { display: block; font-size: .875rem; color: var(--muted); line-height: 1.6; margin-top: 5px; }
@media (min-width: 761px) { .mobile-navigation:not([open]) > nav { display: block; } }
@media (max-width: 1100px) {
  .site-header, .page-layout { width: calc(100% - 64px); }
  .page-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 36px; }
  .sidebar { padding-right: 16px; }
  .docs-opening { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .docs-opening h1 { font-size: clamp(2.3rem, 4vw, 3rem); }
}
@media (max-width: 760px) {
  .site-header, .page-layout { width: calc(100% - 40px); }
  .site-header { min-height: 88px; gap: 16px; }
  .wordmark { font-size: 2.25rem; gap: 8px; }
  .brand-sphere { width: 36px; height: 36px; }
  .header-links { gap: 18px; font-size: .875rem; }
  .header-links kbd { display: none; }
  .search-open { padding: 7px 10px; }
  .page-layout { display: block; margin-top: 0; }
  .sidebar { position: static; max-height: none; padding: 0; border-right: 0; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
  .mobile-navigation > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 16px 0; font-size: .9375rem; list-style: none; }
  .mobile-navigation > summary::-webkit-details-marker { display: none; }
  .mobile-navigation[open] > summary span { transform: rotate(45deg); }
  .mobile-navigation nav { padding: 12px 0; }
  .nav-group { margin-bottom: 24px; }
  .article { max-width: none; }
  h1 { font-size: clamp(2.25rem, 7vw, 3rem); }
  h2 { font-size: 1.875rem; }
  .lead { font-size: 1.125rem; }
  .docs-opening { gap: 0; padding-bottom: 24px; }
  .docs-opening h1 { font-size: clamp(2rem, 6vw, 2.75rem); }
  .docs-opening .lead { font-size: 1rem; }
  pre { padding: 18px; }
  dialog { padding: 20px; }
  .search-close kbd { display: none; }
}
@media (max-width: 480px) {
  .docs-opening { grid-template-columns: minmax(0, 1fr); }
  .docs-opening h1 { max-width: 15ch; font-size: 2.5rem; }
  .docs-opening .lead { max-width: none; }
  .opening-sphere { width: 180px; margin: 12px auto 0; }
  .header-links { gap: 12px; }
  .page-status { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
