:root {
  color-scheme: light dark;
  --paper: #fff;
  --ink: #202629;
  --muted: #657075;
  --line: #e4e7e6;
  --accent: #146f68;
  --accent-soft: #e8f2ef;
  --surface: #f7f8f7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { max-width: 1240px; margin: auto; min-height: 72px; padding: 10px 24px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand img, .gateway img { border-radius: 8px; }
.document-nav { display: flex; gap: 24px; flex: 1; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.document-nav::-webkit-scrollbar { display: none; }
.document-nav a, .languages a { color: var(--muted); text-decoration: none; font-size: .875rem; }
.document-nav a:hover, .languages a:hover { color: var(--accent); }
.document-nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.languages { display: flex; flex: none; gap: 10px; padding-left: 18px; border-left: 1px solid var(--line); }
.languages a[aria-current="true"] { color: var(--accent); font-weight: 700; }
.mobile-menu { display: none; }
.page-shell { max-width: 1240px; margin: auto; padding: 54px 24px 112px; }
.page-shell.with-contents { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 220px); gap: clamp(38px, 7vw, 100px); }
.document { min-width: 0; max-width: 760px; }
.eyebrow { color: var(--accent); font-size: .8125rem; font-weight: 700; }
h1 { margin: 12px 0 34px; font-size: 2.4rem; line-height: 1.23; font-weight: 720; }
.prose { line-height: 1.82; overflow-wrap: anywhere; }
.prose h2 { margin: 2.5rem 0 .75rem; font-size: 1.35rem; line-height: 1.4; scroll-margin-top: 24px; }
.prose h3 { margin: 2rem 0 .65rem; font-size: 1.1rem; scroll-margin-top: 24px; }
.prose p { margin: 0 0 1.2rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose strong { font-weight: 700; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .875rem; }
.prose th, .prose td { min-width: 115px; padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--surface); }
.prose blockquote { padding-left: 18px; border-left: 3px solid var(--accent); color: var(--muted); margin-left: 0; }
.prose code { font-size: .9em; background: var(--surface); padding: 2px 4px; }
.release-notes h2 { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 34px; }
.release-notes h2:first-child { margin-top: 0; }
.release-notes h3 { color: var(--accent); font-size: .9rem; margin: 24px 0 8px; }
.release-notes ul { margin-bottom: 18px; }
.contents { position: sticky; top: 30px; align-self: start; max-height: calc(100vh - 60px); overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-left: 20px; border-left: 1px solid var(--line); }
.contents-title { color: var(--ink); font-size: .8rem; font-weight: 700; margin-bottom: 4px; }
.contents a { font-size: .78rem; line-height: 1.5; color: var(--muted); text-decoration: none; }
.contents a:hover { color: var(--accent); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-size: 1.04rem; font-weight: 640; line-height: 1.5; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 3px; top: 18px; color: var(--accent); font-size: 1.4rem; font-weight: 400; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details[open] summary { color: var(--accent); }
.answer { padding: 0 20px 16px 0; color: var(--ink); }
.answer p:last-child { margin-bottom: 0; }
.site-footer { max-width: 1240px; margin: auto; padding: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .8125rem; }
.gateway { max-width: 540px; margin: 12vh auto; padding: 24px; }
.gateway h1 { margin: 16px 0; }
@media (max-width: 980px) {
  .header-inner { min-height: 64px; flex-wrap: nowrap; gap: 10px; padding: 10px 20px; }
  .brand { flex: 1; min-width: 0; }
  .languages { border: 0; padding: 0; }
  .document-nav { display: none; }
  .mobile-menu { display: block; position: relative; flex: none; }
  .mobile-menu summary { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; list-style: none; border-radius: 6px; color: var(--ink); }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary:hover, .mobile-menu[open] summary { background: var(--surface); }
  .mobile-menu summary span { font-size: 1.4rem; line-height: 1; }
  .mobile-menu nav { position: absolute; z-index: 10; top: calc(100% + 8px); right: 0; width: min(230px, calc(100vw - 40px)); padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); box-shadow: 0 12px 28px rgb(0 0 0 / .12); display: grid; }
  .mobile-menu nav a { min-height: 44px; display: flex; align-items: center; padding: 8px 12px; border-radius: 4px; color: var(--ink); text-decoration: none; font-size: .9375rem; }
  .mobile-menu nav a:hover, .mobile-menu nav a[aria-current="page"] { background: var(--surface); }
  .mobile-menu nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }
  .page-shell { padding: 34px 20px 72px; }
  .page-shell.with-contents { display: block; }
  .contents { display: none; }
  h1 { margin-bottom: 28px; font-size: 2rem; }
  .site-footer { padding: 22px 20px; flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .brand span { display: none; }
  .languages { gap: 8px; }
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171d20;
    --ink: #eff3f1;
    --muted: #a8b4b1;
    --line: #36403f;
    --accent: #70d4c5;
    --accent-soft: #263934;
    --surface: #21292b;
  }
}
