:root {
  --ink: #1e2634;
  --soft-ink: #647185;
  --blue: #0a84ff;
  --blue-dark: #0567cb;
  --blue-pale: #e9f3ff;
  --surface: #ffffff;
  --canvas: #f4f5fa;
  --canvas-2: #eceff7;
  --line: rgba(26, 42, 66, .11);
  --shadow-soft: 0 18px 42px rgba(32, 48, 74, .10);
  --radius-lg: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.7;
}
a { color: var(--blue-dark); text-decoration-thickness: .08em; text-underline-offset: .14em; }
a:hover { color: var(--blue); }
img { display: block; max-width: 100%; }
.wrap { width: min(900px, calc(100% - 44px)); margin: 0 auto; }
.skip-link {
  position: fixed;
  left: 14px;
  top: -70px;
  z-index: 99;
  padding: 11px 14px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.skip-link:focus { top: 14px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, .62);
  background: rgba(244, 245, 250, .76);
  backdrop-filter: blur(18px) saturate(1.18);
}
.nav-inner { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 820; letter-spacing: -.05em; color: var(--ink); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; }
.brand-mark img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 24px; color: #536278; font-size: 13px; font-weight: 720; }
.nav-links a { color: #536278; text-decoration: none; }
.nav-links a:hover { color: var(--blue); }
.nav-links .contact { padding: 10px 14px; border: 1px solid rgba(10, 132, 255, .18); border-radius: 12px; background: rgba(255, 255, 255, .72); color: var(--blue-dark); }

main { padding: 52px 0 80px; }
.doc-hero,
.doc-toc,
.doc-content {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.doc-hero { padding: clamp(28px, 5vw, 46px); margin-bottom: 20px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; color: #1b72d2; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(10, 132, 255, .12); }
h1 { margin: 0; font-size: clamp(36px, 6vw, 52px); font-weight: 820; line-height: 1.08; letter-spacing: -.05em; color: var(--ink); }
.lead { max-width: 700px; margin: 18px 0 0; color: var(--soft-ink); font-size: 18px; line-height: 1.68; }
.meta { margin: 18px 0 0; color: var(--soft-ink); font-size: 14px; }

.doc-toc { padding: clamp(22px, 4vw, 34px); margin-bottom: 20px; }
.doc-toc h2 { margin: 0 0 16px; padding: 0; border: 0; font-size: 17px; font-weight: 820; letter-spacing: -.03em; color: var(--ink); }
.contents { margin: 0; padding-left: 22px; columns: 2 260px; column-gap: 46px; }
.contents li { break-inside: avoid; margin: 5px 0; }
.contents a { border-radius: 5px; font-weight: 650; }
.contents a[aria-current="location"] { color: var(--ink); background: var(--blue-pale); text-decoration-thickness: .12em; }

.doc-content { padding: clamp(28px, 5vw, 46px); }
.doc-content section { scroll-margin-top: 90px; }
h2,
h3 { color: var(--ink); }
.doc-content h2 {
  margin: 46px 0 14px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
  font-size: clamp(21px, 3.5vw, 27px);
  font-weight: 820;
  line-height: 1.18;
  letter-spacing: -.04em;
}
.doc-content > section:first-child > h2 { margin-top: 0; padding-top: 0; border-top: none; }
h3 { margin: 25px 0 8px; font-size: 18px; font-weight: 780; letter-spacing: -.025em; }
p { margin: 0 0 15px; }
ul,
ol { margin: 8px 0 16px; padding-left: 24px; }
li { margin: 5px 0; }
.fine { color: var(--soft-ink); font-size: 14px; }

.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; }
.summary-item { padding: 17px 18px; border: 1px solid rgba(10, 132, 255, .15); border-radius: 18px; background: var(--blue-pale); }
.summary-item strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 14px; }
.summary-item span { display: block; color: var(--soft-ink); font-size: 14px; line-height: 1.5; }

.notice { margin: 22px 0; padding: 18px 20px; border: 1px solid rgba(255, 179, 0, .38); border-radius: 17px; background: #fffbee; color: #5a4000; }
.notice strong { color: inherit; }
.notice p:last-child { margin-bottom: 0; }

.table-wrap { margin: 18px 0 8px; border: 1px solid var(--line); border-radius: 18px; overflow-x: auto; background: var(--surface); }
table { width: 100%; min-width: 680px; border-collapse: collapse; }
th,
td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--soft-ink); background: var(--canvas); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td { color: var(--soft-ink); font-size: 14px; line-height: 1.55; }
td:first-child { color: var(--ink); font-weight: 750; }
code { padding: 2px 6px; border-radius: 6px; background: var(--canvas-2); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em; }

.contact-box { margin-top: 18px; padding: 23px; border: 1px solid rgba(10, 132, 255, .18); border-radius: 18px; background: linear-gradient(135deg, var(--blue-pale), #f0f5ff); }
.contact-box p { margin-bottom: 8px; }
.contact-box p:last-child { margin-bottom: 0; }

.version-history .fine { margin-bottom: 12px; }
.version-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.version-list li { margin: 0; border-bottom: 1px solid var(--line); }
.version-list li:last-child { border-bottom: 0; }
.version-list a { display: block; padding: 13px 16px; background: var(--canvas); font-weight: 650; text-decoration: none; }
.version-list a:hover,
.version-list a:focus-visible { background: var(--blue-pale); }

footer { padding: 30px 0 34px; color: #9aa7bb; background: #131c2b; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; font-size: 12px; }
.footer-brand { color: #fff; font-weight: 770; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: #9aa7bb; text-decoration: none; }
.footer-links a:hover { color: #fff; }

@media (max-width: 640px) {
  .wrap { width: min(100% - 30px, 900px); }
  .nav-inner { min-height: 65px; }
  .nav-links a:not(.contact) { display: none; }
  .nav-links { gap: 0; }
  main { padding: 36px 0 60px; }
  h1 { font-size: clamp(32px, 10vw, 44px); }
  .lead { font-size: 16px; }
  .summary-grid { grid-template-columns: 1fr; }
  .contents { columns: 1; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
