:root {
  --paper: #fff;
  --mist: #eef2f7;
  --ink: #203148;
  --secondary: #54647a;
  --blue: #244ec7;
  --blue-soft: #e8eefc;
  --rule: #dbe3ee;
  --code: #f5f7fa;
  --font: 'Avenir Next', Avenir, 'Segoe UI', sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  color: var(--ink);
  background: var(--paper);
  font: 17px/1.7 var(--font);
  scroll-padding-top: 110px;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { color: var(--ink); }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 20px; background: white; border: 2px solid var(--blue); }
.skip-link:focus { top: 12px; }
.site-header { height: 82px; padding: 0 38px; display: flex; align-items: center; justify-content: space-between; gap: 30px; background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; font-size: 27px; font-weight: 750; letter-spacing: -.05em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand-guide { font-size: 15px; font-weight: 450; color: var(--secondary); letter-spacing: 0; margin-left: 12px; padding-left: 20px; border-left: 1px solid var(--rule); }
.header-tools { display: flex; align-items: center; gap: 14px; }
.repo-link { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.repo-link:hover { background: var(--mist); }
.repo-link img { width: 20px; height: 18px; }
@media (max-width: 640px) { .repo-link { font-size: 0; gap: 0; padding: 8px; } }
.search-box { width: min(340px, 45vw); position: relative; }
.search-box input { appearance: none; width: 100%; padding: 9px 38px 9px 15px; color: var(--ink); background: var(--mist); border: 1px solid transparent; border-radius: 6px; font-size: 14px; }
.search-box input::placeholder { color: var(--secondary); }
.search-box kbd { position: absolute; right: 14px; top: 9px; font: 14px/24px var(--mono); color: var(--secondary); pointer-events: none; }
#search-results { position: absolute; right: 0; top: calc(100% + 10px); width: min(530px, 90vw); max-height: 65vh; overflow: auto; padding: 8px; background: white; border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 12px 35px #20314820; }
#search-results[hidden] { display: none; }
#search-results a { display: block; padding: 12px; text-decoration: none; border-radius: 4px; }
#search-results a:hover, #search-results a:focus-visible { background: var(--blue-soft); }
#search-results strong { display: block; font-size: 15px; }
#search-results span, #search-results p { font-size: 13px; line-height: 1.5; color: var(--secondary); }
#search-results p { margin: 12px; }
.site-layout { display: grid; grid-template-columns: 256px minmax(0, 820px) 200px; max-width: 1430px; padding: 0 38px; margin: auto; column-gap: 46px; }
.nav-shell { position: sticky; top: 82px; height: calc(100dvh - 82px); overflow: auto; padding: 32px 10px 28px 0; scrollbar-width: thin; }
.nav-shell > summary { display: none; }
.nav-group { margin: 0 0 23px; }
.nav-group > p, .advanced-nav > summary { margin: 0 0 8px; color: var(--ink); font-size: 13px; font-weight: 700; }
.nav-group a, .advanced-nav a { display: block; padding: 6px 12px; margin: 2px 0; border-radius: 4px; font-size: 13px; line-height: 1.55; text-decoration: none; color: var(--secondary); }
.nav-group a:hover, .advanced-nav a:hover { background: var(--mist); color: var(--ink); }
.nav-shell a[aria-current] { background: var(--blue-soft); color: var(--blue); font-weight: 650; }
.advanced-nav { padding-top: 10px; border-top: 1px solid var(--rule); }
.advanced-nav > summary { padding: 6px 0; cursor: pointer; }
.nav-help { display: block; margin-top: 27px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--secondary); text-decoration: none; font-size: 11px; }
.nav-help code { display: block; margin-top: 3px; color: var(--ink); font-size: 12px; }
main { min-width: 0; padding: 49px 0 20px; }
article { max-width: 76ch; }
.breadcrumb { color: var(--secondary); font-size: 13px; margin: 0 0 12px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.035em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(32px, 3vw, 46px); margin: 0 0 24px; max-width: 23ch; }
.welcome h1 { font-size: clamp(40px, 4.5vw, 63px); line-height: 1.08; max-width: 14ch; letter-spacing: -.055em; }
.welcome article > p:first-of-type { font-size: 20px; line-height: 1.55; color: var(--secondary); max-width: 53ch; }
.welcome article > p:nth-of-type(3) > a { display: inline-block; background: var(--blue); color: white; text-decoration: none; padding: 10px 19px; border-radius: 5px; font-size: 15px; font-weight: 600; }
h2 { font-size: 28px; margin: 52px 0 17px; }
h3 { font-size: 21px; margin: 32px 0 12px; }
p { margin: 0 0 20px; }
li { padding-left: 3px; margin-bottom: 9px; }
ul, ol { padding-left: 25px; margin: 20px 0; }
strong { font-weight: 650; }
.heading-link { margin-left: 10px; font-size: .7em; font-weight: 400; opacity: 0; text-decoration: none; }
h2:hover .heading-link, h3:hover .heading-link, .heading-link:focus-visible { opacity: 1; }
code, kbd { font-family: var(--mono); }
:not(pre) > code { font-size: .84em; background: var(--mist); padding: 2px 5px; border-radius: 3px; overflow-wrap: anywhere; }
.code-example { margin: 25px 0; border: 1px solid var(--rule); border-radius: 7px; overflow: hidden; background: var(--code); }
.code-example figcaption { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; border-bottom: 1px solid var(--rule); font-size: 12px; color: var(--secondary); }
.code-example button { background: none; border: 0; font-size: 12px; padding: 4px 9px; border-radius: 3px; }
.code-example button:hover { background: var(--blue-soft); }
pre { margin: 0; padding: 20px; overflow-x: auto; font: 13px/1.8 var(--mono); tab-size: 2; }
pre code { white-space: pre; }
.token.comment, .token.prolog { color: #637084; }
.token.punctuation { color: #536279; }
.token.keyword, .token.tag, .token.important { color: #244ec7; }
.token.string, .token.attr-value { color: #17625c; }
.token.function, .token.attr-name, .token.key { color: #753fa1; }
.token.number, .token.boolean { color: #a33a51; }
.token.title, .token.bold { font-weight: 700; }
.table-scroll { overflow-x: auto; margin: 26px 0; border: 1px solid var(--rule); border-radius: 5px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; text-align: left; }
th { background: var(--mist); font-weight: 650; }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td { min-width: 140px; }
blockquote, .advanced-notice { border-left: 3px solid var(--blue); padding: 12px 19px; margin: 24px 0; background: var(--blue-soft); font-size: 15px; }
blockquote p:last-child { margin: 0; }
.slide-example { margin: 32px 0; border-radius: 8px; overflow: hidden; background: var(--blue-soft); border: 1px solid #c6d3f2; }
.slide-example > figcaption { display: flex; justify-content: space-between; gap: 20px; padding: 13px 18px; font-size: 12px; color: #344d80; }
.slide-example iframe { display: block; width: calc(100% - 36px); aspect-ratio: 16 / 9; margin: 0 18px; border: 0; background: white; box-shadow: 0 3px 9px #20314815; }
.preview-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; font-size: 12px; }
.preview-controls > div { display: flex; align-items: center; gap: 7px; }
.preview-controls button, .preview-controls select { padding: 5px 9px; border: 1px solid #bdcce9; background: white; border-radius: 4px; font-size: 12px; }
.preview-controls button:hover { border-color: var(--blue); color: var(--blue); }
.preview-controls output { margin-left: 5px; color: #344d80; }
.preview-controls label { display: flex; align-items: center; gap: 7px; color: #344d80; }
.page-outline { position: sticky; top: 120px; align-self: start; font-size: 12px; max-height: calc(100dvh - 150px); overflow: auto; padding-left: 18px; border-left: 1px solid var(--rule); margin-top: 53px; }
.page-outline > p { font-weight: 650; margin: 0 0 12px; }
.page-outline a { display: block; margin-bottom: 10px; color: var(--secondary); text-decoration: none; line-height: 1.5; }
.page-outline a:hover { color: var(--blue); }
.page-navigation { display: flex; justify-content: space-between; gap: 24px; margin: 64px 0 30px; padding-top: 25px; border-top: 1px solid var(--rule); font-size: 15px; }
.page-navigation a { flex: 1; text-decoration: none; }
.page-navigation a:last-child { text-align: right; }
.page-navigation small { display: block; font-size: 11px; color: var(--secondary); margin-bottom: 6px; }
.article-footer { font-size: 11px; color: var(--secondary); display: flex; justify-content: space-between; gap: 20px; padding-bottom: 24px; }
@media (min-width: 961px) { .nav-shell:not([open]) > nav { display: block; } }
@media (max-width: 1250px) { .site-layout { grid-template-columns: 224px minmax(0, 1fr); max-width: 1110px; gap: 38px; } .page-outline { display: none; } }
@media (max-width: 960px) {
  .site-header { padding: 0 22px; height: 70px; }
  .site-layout { display: block; padding: 0 24px; max-width: 780px; }
  .nav-shell { position: static; height: auto; overflow: visible; padding: 0; border-bottom: 1px solid var(--rule); }
  .nav-shell > summary { display: list-item; font-size: 14px; padding: 15px 0; cursor: pointer; }
  .nav-shell nav { padding: 10px 0 20px; }
  main { padding-top: 30px; }
  h1 { max-width: none; }
}
@media (max-width: 520px) {
  :root { font-size: 16px; }
  .site-header { padding: 0 16px; gap: 16px; }
  .brand { gap: 8px; font-size: 24px; }
  .brand img, .brand svg { width: 28px; }
  .brand-guide { display: none; }
  .search-box { width: 49vw; }
  .search-box input { font-size: 12px; }
  .site-layout { padding: 0 18px; }
  h2 { font-size: 25px; }
  pre { padding: 15px; font-size: 12px; }
  .preview-controls { flex-wrap: wrap; }
  .slide-example > figcaption { flex-wrap: wrap; gap: 3px; }
  .article-footer span { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
@media print { .site-header, .nav-shell, .page-outline, .page-navigation, .code-example button, .preview-controls { display: none; } .site-layout { display: block; padding: 0; } main { padding: 0; } pre { white-space: pre-wrap; } pre code { white-space: pre-wrap; } a { color: inherit; } }

.nav-project { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule); }
.article-footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 14px; }
.footer-links a { color: var(--secondary); text-decoration: none; }
.footer-links a:hover { color: var(--blue); }
