:root { color-scheme: light; --ink: #202331; --muted: #606575; --accent: #6038b5; --line: #e2e4ed; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font: 16px/1.65 system-ui, sans-serif; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 4%; border-bottom: 1px solid var(--line); }
header a { text-decoration: none; }
.brand { color: var(--ink); font-size: 1.3rem; font-weight: 750; }
.brand span { color: var(--muted); font-weight: 450; margin-left: .6rem; }
header nav { display: flex; gap: 1.5rem; }
.shell { max-width: 1440px; margin: auto; padding: 2rem 4%; }
.with-sidebar { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 3rem; }
main { min-width: 0; max-width: 1000px; }
.shell:not(.with-sidebar) main { margin: auto; }
aside { position: sticky; top: 1rem; align-self: start; max-height: calc(100vh - 2rem); overflow: auto; font-size: .9rem; }
aside nav { display: grid; margin-bottom: 1rem; }
aside nav a { padding: .25rem .5rem; text-decoration: none; border-radius: 4px; }
aside nav a:hover { background: #f4f0fa; }
.version { font-weight: 650; color: var(--muted); }
h1 { font-size: 2.3rem; line-height: 1.2; margin-top: 0; }
h2 { margin-top: 2.5rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
h4 { font-size: 1rem; margin-bottom: .5rem; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88em; overflow-wrap: anywhere; }
p code, li code { background: #f4f2f8; padding: .15rem .3rem; border-radius: 3px; }
pre { padding: 1rem; background: #f6f7fb; border: 1px solid var(--line); border-radius: 6px; overflow: auto; line-height: 1.55; }
pre code { overflow-wrap: normal; }
details { margin: .8rem 0; border: 1px solid var(--line); border-radius: 6px; padding: 0 1rem; }
summary { cursor: pointer; padding: 1rem 0; }
summary::marker { color: var(--accent); }
details[open] { padding-bottom: 1rem; }
details[open] summary { border-bottom: 1px solid var(--line); }
.service-grid ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .6rem; list-style: none; padding: 0; }
.service-grid a { display: block; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.service-grid a:hover { background: #f4f0fa; }
footer { border-top: 1px solid var(--line); padding: 1.5rem 4%; color: var(--muted); font-size: .85rem; }
.skip-link { position: absolute; left: 1rem; top: -5rem; background: white; padding: .5rem; }
.skip-link:focus { top: .5rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.highlight .k, .highlight .kd, .highlight .kn { color: #6535a5; font-weight: 600; }
.highlight .s, .highlight .s1, .highlight .s2 { color: #216341; }
.highlight .c, .highlight .c1 { color: #646979; }
@media (max-width: 760px) {
  header { align-items: flex-start; flex-direction: column; }
  .with-sidebar { grid-template-columns: 1fr; gap: 1rem; }
  aside { position: static; max-height: 220px; border-bottom: 1px solid var(--line); }
  aside nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h1 { font-size: 1.8rem; }
}
