/* Apple.com text proportions, adapted for long-form documentation.
   Use the native Apple system face where available and self-hosted Geist elsewhere. */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, Geist, "Segoe UI", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, GeistMono, Menlo, Consolas, monospace;
  --mono: var(--font-mono);
  font-family: var(--font-sans);
  font-size: 17px;
  letter-spacing: -.022em;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

body { font-family: var(--font-sans); font-size: 17px; line-height: 1.470588; letter-spacing: -.022em; }
button, input { font-family: inherit; }
.site-brand { font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: -.022em; }
.search-trigger { font-size: 14px; line-height: 20px; letter-spacing: -.016em; }
.search-trigger kbd { font-size: 11px; letter-spacing: 0; }
.site-switcher > summary { font-size: 11px; line-height: 16px; letter-spacing: .035em; }
.site-switcher a { font-size: 14px; line-height: 20px; letter-spacing: -.016em; }
.current-site { font-size: 10px; letter-spacing: .02em; }
.sidebar-label, .nav-group > details > summary, .outline-title {
  font-size: 11px;
  line-height: 16px;
  letter-spacing: .035em;
}
.sidebar-label, .nav-group > details > summary { color: var(--muted); }
.nav-row > a { font-size: 14px; line-height: 20px; letter-spacing: -.016em; padding-top: 9px; padding-bottom: 9px; }
.nav-row > a[aria-current=page] { font-weight: 500; }
.sidebar-footer { font-family: var(--font-sans); font-size: 12px; line-height: 18px; letter-spacing: -.01em; }
.outline a { font-size: 13px; line-height: 19px; letter-spacing: -.01em; }
.page-kicker { font-size: 11px; line-height: 17px; letter-spacing: .035em; padding-right: 78px; }
.page-number { font-size: 11px; }
.page-heading h1 { font-size: 48px; line-height: 1.083333; font-weight: 600; letter-spacing: -.003em; }
.page-description { font-size: 21px; line-height: 1.381; letter-spacing: .011em; font-weight: 400; margin-top: 20px; }
.copy-page { font-family: var(--font-sans); font-size: 12px; line-height: 18px; letter-spacing: -.01em; }

.prose { font-size: 17px; line-height: 1.470588; letter-spacing: -.022em; }
.prose strong { font-weight: 600; }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { font-weight: 600; }
.prose h2 { font-size: 32px; line-height: 1.125; letter-spacing: .004em; margin: 48px 0 18px; }
.prose h3 { font-size: 24px; line-height: 1.166667; letter-spacing: .009em; margin: 36px 0 16px; }
.prose h4 { font-size: 21px; line-height: 1.190476; letter-spacing: .011em; margin: 28px 0 14px; }
.prose h5, .prose h6 { font-size: 17px; line-height: 25px; letter-spacing: -.022em; }
.prose p { margin-bottom: 22px; }
.prose li { margin-top: 10px; margin-bottom: 10px; }
.prose li > p { margin: 8px 0; }
.prose td p { margin: 0; }
.prose .heading-anchor { font-size: 14px; top: 3px; }
.prose .link-card { font-size: 15px; line-height: 22px; letter-spacing: -.016em; }
.link-card-title { font-weight: 500; }
.link-card-domain, .prose figcaption, .prose .embed-caption, .file-size {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: -.01em;
}
.prose blockquote { font-size: 19px; line-height: 1.421053; letter-spacing: -.012em; }
.prose table { font-size: 15px; line-height: 22px; letter-spacing: -.016em; }
.prose th { font: 600 14px/20px var(--font-sans); letter-spacing: -.016em; }
.prose input[type=text] { font: 15px/22px var(--font-sans); letter-spacing: -.016em; }
.table-empty { font: 13px/19px var(--font-sans); letter-spacing: -.01em; }
.prose code { font-family: var(--font-mono); font-size: .85em; line-height: inherit; letter-spacing: 0; }
.prose pre code { font-size: 14px; line-height: 22px; letter-spacing: 0; }
.code-copy { font: 11px/16px var(--font-sans); letter-spacing: -.01em; }
.file-info > div > a { font: 500 15px/22px var(--font-sans); letter-spacing: -.016em; }
.file-actions > a { font: 12px/18px var(--font-sans); letter-spacing: -.01em; }
.prose summary { font-size: 17px; line-height: 25px; font-weight: 500; letter-spacing: -.022em; }
.prose summary:before { line-height: 25px; top: 20px; }
.callout { font-size: 15px; line-height: 22px; letter-spacing: -.016em; }
.page-pagination small { font-size: 11px; line-height: 16px; letter-spacing: .035em; }
.page-pagination strong { font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: -.016em; }
.page-updated { font: 12px/18px var(--font-sans); letter-spacing: -.01em; }
.search-top input { font: 17px/25px var(--font-sans); letter-spacing: -.022em; }
.search-result strong { font-size: 16px; line-height: 22px; font-weight: 600; letter-spacing: -.022em; }
.search-result small { font-size: 14px; line-height: 20px; letter-spacing: -.016em; }
.search-footer, .search-status, .search-close, .toast { font: 12px/18px var(--font-sans); letter-spacing: -.01em; }

/* The local directory shares the same scale as the five documentation sites. */
body > header > a { font-size: 17px; line-height: 22px; letter-spacing: -.022em; }
body > header > span, .eyebrow { font-size: 12px; line-height: 18px; letter-spacing: .035em; }
body > main > h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.0625; font-weight: 600; letter-spacing: -.009em; }
.intro { font-size: 21px; line-height: 29px; letter-spacing: .011em; }
.collection-label, .card-meta, .card-bottom, body > main > footer { font-size: 11px; line-height: 17px; letter-spacing: .02em; }
.card h2 { font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: .007em; }
.card { min-width: 0; }
.card h2 { min-width: 0; overflow-wrap: anywhere; }
.card-title img { flex-shrink: 0; }
.card-meta > span { min-width: 0; overflow-wrap: anywhere; }
.card p { font-size: 17px; line-height: 25px; letter-spacing: -.022em; min-height: 50px; }
.card-bottom { flex-wrap: wrap; }

@media (max-width: 1199px) {
  .page-heading h1 { font-size: 40px; line-height: 1.1; letter-spacing: 0; }
}
@media (max-width: 900px) {
  .site-brand { font-size: 16px; }
  .site-switcher > summary { font-size: 11px; }
}
@media (max-width: 650px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .intro { font-size: 19px; line-height: 27px; letter-spacing: -.012em; }
  .card h2 { font-size: 28px; }
  .card p { min-height: 0; }
  .collection-label { flex-wrap: wrap; gap: 8px; }
  body > main > h1 { font-size: 40px; line-height: 1.1; letter-spacing: 0; }
}
@media (max-width: 600px) {
  .site-brand { font-size: 15px; letter-spacing: -.016em; }
  .site-switcher > summary { font-size: 0; }
  .page-kicker { font-size: 11px; line-height: 17px; letter-spacing: .025em; padding-right: 78px; }
  .page-heading h1 { font-size: 32px; line-height: 1.125; letter-spacing: .004em; }
  .page-description { font-size: 19px; line-height: 27px; letter-spacing: -.012em; }
  .prose h2 { font-size: 28px; line-height: 32px; letter-spacing: .007em; margin-top: 40px; }
  .prose h3 { font-size: 24px; line-height: 28px; }
  .page-pagination { grid-template-columns: 1fr; }
  .page-pagination strong { font-size: 14px; }
  .page-pagination small { font-size: 11px; }
}
@media print {
  .prose { font-size: 11pt; line-height: 1.5; }
}
