:root { color-scheme: light; font-family: system-ui, -apple-system, sans-serif; color: #172331; background: #fff; }
body { margin: 0; line-height: 1.7; font-size: 18px; }
header, main, footer { max-width: 960px; margin: auto; padding: 24px; }
header { display: flex; flex-wrap: wrap; gap: 24px; border-bottom: 1px solid #d7dde3; }
a { color: #165b98; text-underline-offset: 3px; }
button { font: inherit; padding: 0 12px; background: white; border: 1px solid #a4b2bf; border-radius: 4px; }
h1 { font-size: 2.1em; line-height: 1.2; margin: 36px 0 24px; }
h2 { margin-top: 2.3em; line-height: 1.3; scroll-margin-top: 24px; }
h3 { line-height: 1.4; }
table { display: block; overflow-x: auto; border-collapse: collapse; width: 100%; margin: 24px 0; }
th, td { padding: 10px 14px; border-bottom: 1px solid #d7dde3; text-align: left; vertical-align: top; }
th { background: #f3f6f8; }
pre { overflow-x: auto; padding: 18px; background: #f3f6f8; }
code { font-size: .9em; overflow-wrap: anywhere; }
.katex-display { overflow-x: auto; overflow-y: hidden; padding: 8px 0; }
.contents { padding: 14px 0; border-bottom: 1px solid #d7dde3; }
.contents summary { cursor: pointer; font-weight: 600; }
.language-availability { font-size: .9em; color: #566574; }
footer { font-size: .85em; color: #566574; border-top: 1px solid #d7dde3; }
@media (max-width: 600px) { body { font-size: 16px; } header, main, footer { padding: 18px; } h1 { font-size: 1.75em; } }
@media print { header, .contents, footer { display: none; } body { font-size: 11pt; } main { max-width: none; padding: 0; } h2, h3 { break-after: avoid; } pre, tr, .katex-display { break-inside: avoid; } a { color: inherit; } }
