:root { color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: #20262d; background: #fff; font: 16px/1.75 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: #175582; text-underline-offset: 3px; }
a:hover { color: #103e60; }
a:focus-visible, input:focus-visible { outline: 2px solid #175582; outline-offset: 3px; }
img { display: block; max-width: 100%; }
.wrap { width: min(100% - 40px, 860px); margin-inline: auto; }
.site-header { border-bottom: 1px solid #d6dce1; }
.header-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; padding-block: 20px; }
.brand { color: inherit; font-weight: 700; text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; font-size: 14px; }
.site-nav a { color: inherit; }
.site-nav a[aria-current="page"] { font-weight: 700; }
ml-text { display: inline; }
ml-block { display: block; }
.language-switch { display: inline-flex; gap: 10px; margin-left: auto; white-space: nowrap; }
.language-switch button { padding: 2px 0; border: 0; border-bottom: 1px solid transparent; background: none; color: #4a535b; font: inherit; font-size: 13px; cursor: pointer; }
.language-switch button:hover, .language-switch button.active { color: #20262d; border-bottom-color: currentColor; }
.language-switch button:focus-visible { outline: 2px solid #175582; outline-offset: 3px; }
main { padding-bottom: 36px; }
.intro { padding: 58px 0 44px; }
h1, h2, h3 { line-height: 1.35; }
h1 { margin: 0 0 20px; font-size: clamp(32px, 5vw, 44px); }
h2 { margin: 0 0 18px; font-size: 25px; }
h3 { margin: 0 0 8px; font-size: 19px; }
p { margin: 0 0 16px; }
.lead { max-width: 45em; font-size: 18px; }
.note { color: #4a535b; font-size: 14px; }
.section { padding: 36px 0 40px; border-top: 1px solid #d6dce1; }
.section > p { max-width: 48em; }
.device-photo { margin: 0 0 44px; }
.device-photo img { width: min(100%, 640px); height: auto; }
.device-photo figcaption { margin-top: 6px; color: #4a535b; font-size: 13px; }
.screen-slide { margin: 0; }
.screen-slide[hidden], .screen-controls[hidden] { display: none; }
.screen-slide img { width: min(100%, 480px); height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #000; image-rendering: pixelated; }
.screen-slide figcaption { margin-top: 6px; color: #4a535b; font-size: 13px; }
.screen-controls { display: flex; align-items: center; gap: 14px; margin-top: 12px; font-size: 14px; }
.screen-controls button { padding: 4px 10px; border: 1px solid #aeb8bf; border-radius: 2px; background: #fff; color: inherit; font: inherit; cursor: pointer; }
.screen-controls button:hover { background: #f3f5f5; }
.function-list { margin: 0; }
.function-list div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 9px 0; border-bottom: 1px solid #e1e5e8; }
.function-list dt { font-weight: 600; }
.function-list dd { margin: 0; }
.page-intro { padding: 58px 0 36px; }
.prose { max-width: 740px; }
.prose section { padding: 30px 0; border-top: 1px solid #d6dce1; }
.prose ol, .prose ul { padding-left: 1.4em; }
.prose li { margin-bottom: 10px; }
.prose summary { cursor: pointer; font-weight: 600; }
.prose details[open] summary { margin-bottom: 16px; }
code { padding: 1px 3px; background: #f0f2f2; font-size: .9em; }
.file-tree { overflow-x: auto; margin: 12px 0 18px; padding: 12px; background: #f3f5f5; font: 14px/1.5 ui-monospace, Consolas, monospace; }
.catalog-toolbar { margin: 20px 0; }
.catalog-toolbar label { display: block; margin-bottom: 6px; }
.catalog-toolbar input { width: min(100%, 480px); padding: 8px 10px; border: 1px solid #aeb8bf; border-radius: 2px; color: inherit; background: #fff; font: inherit; }
.catalog-count { margin-top: 8px; color: #4a535b; font-size: 14px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 8px; border-bottom: 1px solid #e1e5e8; text-align: left; vertical-align: top; }
thead th { color: #4a535b; font-size: 12px; font-weight: 500; }
tbody tr:last-child td { border-bottom: 0; }
.mapset-name { display: block; font-weight: 600; }
.mapset-id { color: #4a535b; font-size: 12px; }
.mapset-links { white-space: nowrap; }
.mapset-links a { display: block; margin-bottom: 5px; }
.mapset-links a:last-child { margin-bottom: 0; }
.site-footer { padding: 24px 0 48px; border-top: 1px solid #d6dce1; color: #4a535b; font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer-inner p { margin: 0; }
@media (max-width: 620px) {
  .wrap { width: min(100% - 32px, 860px); }
  .site-nav { width: 100%; margin: 0; }
  .language-switch { margin-left: 0; }
  .intro, .page-intro { padding: 42px 0 36px; }
  .section, .prose section { padding: 30px 0 34px; }
  h1 { font-size: 34px; }
  h2 { font-size: 23px; }
  .function-list div { display: block; }
  .function-list dd { margin-top: 2px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
