:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --quiet: #86868b;
  --line: #d2d2d7;
  --page: #f5f5f7;
  --link: #0066cc;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, Pretendard, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--page);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.47059;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid rgba(0, 125, 250, 0.45); outline-offset: 3px; }

.site-header { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.92); }

.site-nav {
  display: flex;
  width: min(calc(100% - 40px), 760px);
  min-height: 98px;
  align-items: center;
  margin: 0 auto;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.18182;
  text-decoration: none;
  white-space: nowrap;
}

.site-brand:hover { text-decoration: none; }
.site-brand img { display: block; width: 44px; height: 44px; }

main {
  overflow: hidden;
  width: min(calc(100% - 40px), 820px);
  margin: 24px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.document-hero { padding: 42px 48px 0; }
.document-hero h1 { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.33337; }
.updated { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.33337; }

.language-nav {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  color: var(--quiet);
  font-size: 12px;
}

.document-layout { padding: 26px 48px 48px; }
.document-content { scroll-margin-top: 24px; font-size: 15px; line-height: 1.46667; }
.document-content h2 { margin: 32px 0 8px; font-size: 18px; font-weight: 600; line-height: 1.33337; }
.document-content h2:first-child { margin-top: 0; }
.document-content p, .document-content ul { margin: 8px 0; }
.document-content ul { padding-left: 22px; }
.document-content li + li { margin-top: 8px; }
.document-content code { padding: 1px 4px; border-radius: 3px; background: #f2f4f6; font-size: 0.92em; }

.language-divider { height: 1px; margin: 48px 0; border: 0; background: var(--line); }

.site-footer {
  width: min(calc(100% - 40px), 820px);
  margin: 24px auto 0;
  padding: 17px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  text-align: left;
}

.site-footer nav { display: flex; gap: 18px; font-size: 12px; line-height: 1.33337; }
.site-footer a { color: var(--quiet); }
.site-footer p { margin: 10px 0 0; font-size: 12px; line-height: 1.33337; }

@media (max-width: 600px) {
  body { background: #ffffff; }
  .site-nav { width: 100%; min-height: 0; padding: 14px 20px; }
  .site-brand { font-size: 17px; }
  .site-brand img { width: 36px; height: 36px; }
  main { width: 100%; margin-top: 0; border: 0; border-radius: 0; box-shadow: none; }
  .document-hero { padding: 32px 24px 0; }
  .document-layout { padding: 22px 24px 44px; }
  .language-divider { margin: 40px 0; }
  .site-footer { width: 100%; margin-top: 16px; padding: 17px 24px 28px; background: var(--page); }
}
