:root {
  color-scheme: light;
  --paper: #ffffff; --surface: #f0f6f7; --ink: #20383d; --muted: #52676c;
  --accent: #0b7180; --rule: #d7e4e7; --notice: #f9f1e5; --notice-ink: #714810;
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --paper: #13262a; --surface: #1c3237; --ink: #e4eff1; --muted: #b0c6cb; --accent: #71d0dd; --rule: #365158; --notice: #382e20; --notice-ink: #f1cf96; }
}
:root[data-theme="dark"] { color-scheme: dark; --paper: #13262a; --surface: #1c3237; --ink: #e4eff1; --muted: #b0c6cb; --accent: #71d0dd; --rule: #365158; --notice: #382e20; --notice-ink: #f1cf96; }
:root[data-theme="light"] { color-scheme: light; --paper: #ffffff; --surface: #f0f6f7; --ink: #20383d; --muted: #52676c; --accent: #0b7180; --rule: #d7e4e7; --notice: #f9f1e5; --notice-ink: #714810; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.75 "Segoe UI", Arial, sans-serif; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
button { font: inherit; cursor: pointer; border: 1px solid var(--rule); border-radius: 4px; color: var(--ink); background: var(--paper); padding: 6px 12px; }
h1, h2, h3 { font-family: Bahnschrift, "Segoe UI", Arial, sans-serif; font-weight: 600; line-height: 1.22; text-wrap: balance; }
h1 { font-size: clamp(36px, 4vw, 54px); letter-spacing: -1px; margin: 12px 0 24px; }
h2 { font-size: 30px; margin: 0 0 22px; }
h3 { font-size: 22px; margin: 28px 0 12px; }
p { margin: 0 0 18px; max-width: 65ch; }
ol, ul { padding-left: 24px; display: grid; gap: 10px; margin: 0 0 22px; }
strong { font-weight: 650; }
.contents { position: fixed; inset: 0 auto 0 0; width: 280px; padding: 30px 22px; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--rule); }
.brand { display: inline-flex; }
.brand img, .mobile-header img { object-fit: contain; }
.nav-label, .eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav-label { margin: 24px 10px 12px; }
nav { display: grid; gap: 2px; }
nav a { font-size: 15px; line-height: 1.4; padding: 7px 10px; border-radius: 4px; color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current] { background: var(--paper); color: var(--accent); }
.theme-toggle { font-size: 13px; margin: 24px 10px 0; }
main { margin-left: 280px; max-width: 1060px; padding: 36px 64px; }
section { padding: 42px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 18px; }
section:first-of-type { padding-top: 36px; }
.intro { font-size: 21px; line-height: 1.6; }
.muted { color: var(--muted); font-size: 15px; }
.draft { padding: 12px 18px; color: var(--notice-ink); background: var(--notice); font-size: 14px; border-radius: 4px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin: 28px 0 34px; }
.button { display: inline-block; background: var(--accent); color: var(--paper); padding: 9px 20px; border-radius: 4px; font-weight: 600; text-decoration: none; }
.quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.note { background: var(--surface); padding: 16px 20px; border-radius: 4px; }
.changes { margin: 24px 0; }
.changes dt { font-size: 20px; font-weight: 650; margin-top: 24px; }
.changes dd { margin: 6px 0 0; }
.table-wrap { overflow-x: auto; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
caption { text-align: left; font-size: 14px; color: var(--muted); padding-bottom: 10px; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
thead { background: var(--surface); }
tbody th { width: 30%; font-weight: 600; }
footer { display: flex; justify-content: space-between; gap: 20px; font-size: 14px; color: var(--muted); padding: 28px 0; }
.mobile-header { display: none; }
.skip { position: fixed; top: -100px; left: 12px; z-index: 20; background: var(--paper); padding: 10px; }
.skip:focus { top: 12px; }
@media (max-width: 1000px) { main { padding: 30px 36px; } .contents { width: 250px; } main { margin-left: 250px; } }
@media (max-width: 760px) {
  html { scroll-padding-top: 84px; }
  .mobile-header { display: flex; position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 12px 20px; align-items: center; justify-content: space-between; }
  .contents { display: none; position: fixed; inset: 64px 0 auto 0; width: 100%; max-height: calc(100dvh - 64px); z-index: 9; padding: 12px 20px 24px; }
  .contents.open { display: block; }
  .contents .brand, .contents .nav-label { display: none; }
  .contents nav a { padding: 10px; }
  main { margin: 0; padding: 22px; }
  section { padding: 34px 0; scroll-margin-top: 0; }
  h2 { font-size: 27px; } .intro { font-size: 19px; }
  .quick-links { grid-template-columns: 1fr; }
  th, td { padding: 12px 10px; } table { font-size: 15px; }
  footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
