@import url("/docs/app-theme.css");
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --bg: var(--background);
  --surface: var(--card);
  --surface-soft: var(--muted);
  --text: var(--foreground);
  --muted-text: var(--muted-foreground);
  --primary-soft: var(--accent);
  --link: var(--primary);
  --document-radius: 12px;
}
[data-theme="dark"] {
  color-scheme: dark;
  --link: color-mix(in srgb, var(--primary) 45%, var(--foreground));
  --primary-soft: color-mix(in srgb, var(--primary) 14%, var(--card));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --link: color-mix(in srgb, var(--primary) 45%, var(--foreground));
    --primary-soft: color-mix(in srgb, var(--primary) 14%, var(--card));
  }
  :root:not([data-theme]) .brand-logo-light { display: none; }
  :root:not([data-theme]) .brand-logo-dark { display: block; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 100px; }
body {
  margin: 0;
  font-family: var(--document-font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a, button, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--accent-foreground); }
.page-shell { min-height: 100vh; }
.skip-link {
  position: fixed;
  z-index: 50;
  inset: 12px auto auto 12px;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 17px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand-link { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.brand-logo { display: block; width: auto; height: 32px; }
.brand-logo-dark { display: none; }
[data-theme="dark"] .brand-logo-light { display: none; }
[data-theme="dark"] .brand-logo-dark { display: block; }
.brand { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: .02em; }
.brand-description { display: block; font-size: 11px; line-height: 1.4; color: var(--muted-text); }
.topbar-actions { display: flex; align-items: center; gap: 24px; }
.back-link { font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.theme-control { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted-text); }
.theme-control select {
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 27px 5px 10px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  cursor: pointer;
}
.main { max-width: 1160px; margin: 0 auto; padding: 46px 32px 64px; }
.hero { padding: 0 0 30px; margin-bottom: 30px; border-bottom: 1px solid var(--border); }
.hero .eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 600; color: var(--link); }
.hero h1 { margin: 0; max-width: 32ch; font-size: clamp(28px, 3vw, 38px); line-height: 1.25; font-weight: 500; letter-spacing: -.025em; text-wrap: balance; }
.hero p { margin: 14px 0 0; max-width: 70ch; line-height: 1.7; color: var(--muted-text); }
.document-layout { min-width: 0; }
.document-layout.has-contents { display: grid; grid-template-columns: 228px minmax(0, 1fr); align-items: start; gap: 36px; }
.contents { position: sticky; top: 102px; max-height: calc(100svh - 128px); overflow-y: auto; scrollbar-width: thin; }
.contents summary { padding: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; }
.contents summary::marker { color: var(--muted-text); }
.contents nav { display: grid; gap: 3px; padding-right: 8px; }
.contents nav a { padding: 8px 11px; border-radius: 6px; color: var(--muted-text); font-size: 13px; line-height: 1.5; text-decoration: none; }
.contents nav a:hover { color: var(--text); background: var(--surface-soft); }
.contents nav a[aria-current] { color: var(--text); background: var(--primary-soft); font-weight: 600; }
.policy { min-width: 0; margin: 0; padding: 8px 36px; border: 1px solid var(--border); border-radius: var(--document-radius); background: var(--surface); }
.section { padding: 28px 0; scroll-margin-top: 100px; overflow-wrap: anywhere; }
.section + .section { border-top: 1px solid var(--border); }
.section h2 { margin: 0 0 14px; font-size: 20px; line-height: 1.4; font-weight: 600; letter-spacing: -.015em; color: var(--text); text-wrap: balance; }
.section h3 { margin: 22px 0 10px; font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--text); }
.section p { margin: 12px 0; }
.section p:last-child { margin-bottom: 0; }
.section ul, .section ol { margin: 14px 0; padding-left: 23px; }
.section li { margin: 7px 0; padding-left: 3px; }
.section li::marker { color: var(--link); }
.section strong { font-weight: 600; }
.callout, .contact { margin: 18px 0; padding: 17px 20px; border: 1px solid var(--border); border-radius: 8px; background: var(--primary-soft); color: var(--text); }
.callout p:first-child, .contact p:first-child { margin-top: 0; }
.callout p:last-child, .contact p:last-child { margin-bottom: 0; }
.contact a { font-size: 18px; font-weight: 600; }
code { padding: 3px 6px; border-radius: 4px; font-family: "SFMono-Regular", Consolas, monospace; font-size: .88em; color: var(--text); background: var(--surface-soft); overflow-wrap: anywhere; }
.endpoint { display: block; margin: 16px 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; text-align: left; }
.steps { list-style: none; padding-left: 0 !important; counter-reset: step; }
.steps > li { position: relative; counter-increment: step; min-height: 30px; padding-left: 42px; margin: 18px 0; }
.steps > li::before { content: counter(step); position: absolute; inset: 0 auto auto 0; display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--link); background: var(--primary-soft); }
.qa { color: var(--muted-text); font-style: italic; }
.document-footer { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border); }
.document-footer p { margin: 0 0 12px; font-size: 12px; color: var(--muted-text); }
.document-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.document-links a { font-size: 13px; line-height: 1.6; color: var(--muted-text); text-decoration: none; }
.document-links a:hover, .document-links a[aria-current] { color: var(--link); }
.document-links a[aria-current] { font-weight: 600; }
@media (max-width: 860px) {
  .document-layout.has-contents { display: block; }
  .contents { position: static; max-height: none; margin-bottom: 22px; overflow: visible; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
  .contents summary { padding: 14px 18px; }
  .contents nav { padding: 0 8px 10px; }
  .policy { padding: 4px 26px; }
}
@media (max-width: 540px) {
  .topbar-inner { padding: 14px 18px; gap: 12px; }
  .topbar-actions { gap: 12px; }
  .theme-control > span { display: none; }
  .brand-description { display: none; }
  .brand-logo { width: auto; height: 28px; }
  .brand { font-size: 16px; }
  .main { padding: 30px 18px 42px; }
  .hero { padding-bottom: 24px; margin-bottom: 22px; }
  .hero p { font-size: 15px; }
  .policy { padding: 0 20px; }
  .section { padding: 24px 0; font-size: 15px; }
  .section h2 { font-size: 18px; }
  .callout, .contact { padding: 14px; }
}
@media print {
  body { background: white; color: black; --text: black; --muted-text: #444; --surface: white; --border: #ddd; --link: black; --primary-soft: #f4f4f4; --surface-soft: #f4f4f4; }
  .topbar, .contents, .document-footer, .skip-link { display: none !important; }
  .main { max-width: none; padding: 0; }
  .document-layout.has-contents { display: block; }
  .policy { padding: 0; border: 0; }
  .section h2, .section h3 { break-after: avoid; }
  .section { padding: 18px 0; }
}
