:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --fg: #1d1d1f;
  --fg-2: #424245;
  --muted: #6e6e73;
  --meta: #86868b;
  --border: #d2d2d7;
  --border-soft: #e8e8ed;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-active: #0066cc;
  --font-display:
    "SF Pro Display", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:
    "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: 32px;
  --container: 760px;
  --focus-ring: 0 0 0 4px color-mix(in oklab, var(--accent), transparent 65%);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

img { display: block; max-width: 100%; }

a { color: var(--accent-active); }
a:hover { color: var(--accent-hover); }
a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 50;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--fg);
  text-decoration: none;
}
.skip-link:focus { left: 12px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklch, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1120px;
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo img { width: 30px; height: 30px; object-fit: contain; }
.topbar-contact {
  color: var(--fg);
  text-decoration: none;
  font-size: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.doc {
  max-width: var(--container);
  margin-inline: auto;
  padding: 48px var(--gutter) 72px;
  scroll-margin-top: 72px;
}
.doc a { text-underline-offset: 2px; }

h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-wrap: balance;
}

h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 36px 0 12px;
  text-wrap: balance;
}

.kicker,
.updated {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.updated { margin-top: 6px; }

p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 1.25em; }
li + li { margin-top: 6px; }

.table-wrap { overflow-x: auto; margin: 0 0 14px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: 8px;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
}
th { color: var(--fg-2); font-weight: 600; }
th[scope="row"] { width: 38%; }

.pagefoot {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  padding: 48px var(--gutter) 28px;
}
.pagefoot-inner { max-width: 1120px; margin-inline: auto; }
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px 48px;
  padding-bottom: 28px;
}
.foot-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.foot-logo img { width: 30px; height: 30px; object-fit: contain; }
.foot-blurb {
  max-width: 36ch;
  margin: 14px 0 0;
  color: var(--muted);
}
.foot-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
}
.foot-contact a { color: var(--fg); text-decoration: none; }
.foot-contact a:hover { color: var(--accent); }
.foot-place { margin: 0; color: var(--meta); }
.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}
.foot-bottom p { margin: 0; font-size: 13px; }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
}
.foot-links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.foot-links a:hover,
.foot-links a[aria-current="page"] { color: var(--fg); }
.pagefoot a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

@media (max-width: 720px) {
  .foot-top { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  th[scope="row"], td { display: block; width: auto; }
  th[scope="row"] { padding-bottom: 0; border-bottom: 0; }
  thead { display: none; }
  .data-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    color: var(--fg-2);
    margin-bottom: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
