:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #fff;
  color: #1d1d1f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #fff;
}

a {
  color: inherit;
}

.page {
  width: min(760px, calc(100vw - 32px));
  margin: 0 auto;
}

.site-header {
  padding: 28px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link,
.nav-link {
  color: #515154;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.brand-link:hover,
.nav-link:hover {
  color: #1d1d1f;
}

.doc-hero {
  text-align: center;
  padding: 64px 0 48px;
}

.doc-hero h1 {
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: #1d1d1f;
}

.doc-hero p {
  font-size: clamp(19px, 3vw, 28px);
  line-height: 1.35;
  font-weight: 400;
  color: #86868b;
  margin: 0;
}

.doc-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.doc-nav a {
  color: #06c;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.doc-nav a:hover {
  text-decoration: underline;
}

.doc-panel {
  background: #fbfbfd;
  border-radius: 32px;
  padding: 44px;
  margin: 0 0 28px;
}

.doc-panel h2 {
  font-size: 25px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 24px;
  color: #1d1d1f;
}

.doc-panel h3 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0;
  margin: 30px 0 12px;
  color: #1d1d1f;
}

.doc-panel p,
.doc-panel li {
  font-size: 17px;
  line-height: 1.55;
  color: #515154;
}

.doc-panel p {
  margin: 0 0 16px;
}

.doc-panel ul,
.doc-panel ol {
  margin: 0;
  padding-left: 22px;
}

.doc-panel li + li {
  margin-top: 9px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.quick-item {
  border-top: 1px solid #d2d2d7;
  padding-top: 16px;
}

.quick-item strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #86868b;
  margin-bottom: 8px;
}

.quick-item span {
  display: block;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  color: #1d1d1f;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 15px;
  line-height: 1.45;
  color: #515154;
}

.spec-table th,
.spec-table td {
  border-top: 1px solid #d2d2d7;
  padding: 13px 10px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.spec-table th {
  color: #86868b;
  font-weight: 600;
}

.code-block {
  margin: 18px 0 0;
  padding: 18px;
  background: #f5f5f7;
  border-radius: 18px;
  overflow-x: auto;
}

code,
pre {
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

code {
  color: #1d1d1f;
  font-size: 0.94em;
}

pre {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #1d1d1f;
}

.site-footer {
  width: min(760px, calc(100vw - 32px));
  padding: 40px 0 60px;
  text-align: center;
  border-top: 1px solid #e5e5ea;
  margin: 40px auto 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #515154;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.footer-links a:hover {
  color: #1d1d1f;
}

.footer-copyright {
  color: #86868b;
  font-size: 12px;
  margin: 0;
}

@media (max-width: 768px) {
  .site-header {
    padding-top: 22px;
  }

  .doc-hero {
    padding: 46px 0 34px;
  }

  .doc-panel {
    border-radius: 24px;
    padding: 30px 24px;
  }

  .doc-panel h2 {
    font-size: 23px;
  }

  .doc-panel p,
  .doc-panel li {
    font-size: 16px;
  }

  .spec-table th,
  .spec-table td {
    padding: 12px 6px;
  }
}
