/* Developers section (/developers/...). Document pages: reuse tokens.css + site.css (header, footer) + legal.css
   (the reading column, headings, the "On this page" list) and add the section's own sub-navigation, tables and code
   blocks. Token colours only (checks/illustrations.spec.js). No site.js on these pages. */
.dev { max-width: 58rem; }
.dev__nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-top: var(--space-3); border-bottom: 1px solid var(--rule); font-size: var(--step--1); }
.dev .dev__nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: none; }
.dev .dev__nav a:hover { color: var(--accent-dark); text-decoration: underline; }
.dev .dev__nav a[aria-current="page"] { color: var(--accent-dark); }
.dev h3 { font-size: var(--step-1); scroll-margin-top: 96px; }
.dev ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.dev code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; font-size: .92em; padding: .1em .35em; border-radius: 6px; background: var(--paper-2); color: var(--ink); overflow-wrap: anywhere; }
.dev td code, .dev th code { overflow-wrap: normal; } /* a long identifier in a table cell stays whole: the .dev__scroll box scrolls instead */
.dev pre { margin: 0 0 1rem; padding: var(--space-2); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-2); overflow-x: auto; }
.dev pre code { padding: 0; background: none; font-size: var(--step--1); line-height: 1.55; overflow-wrap: normal; white-space: pre; }
.dev .dev__label { margin: var(--space-2) 0 .35rem; font-size: var(--step--1); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.dev__scroll { margin: 0 0 1rem; overflow-x: auto; }
.dev table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.dev th, .dev td { padding: .6rem .75rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; color: var(--ink-2); }
.dev th { color: var(--ink); font-weight: 600; white-space: nowrap; }
.dev .dev__note { padding: .8rem 1rem; border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; background: var(--paper-2); color: var(--ink); }
.dev__op, .dev__event, .dev__example { margin-top: var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--rule); }
