@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/studio/assets/geist-latin-wght-normal-BgDaEnEv.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --ink: #0f172a;
  --ink-soft: #1e293b;
  --muted: #475569;
  --muted-light: #64748b;
  --navy: #1e337a;
  --navy-deep: #152459;
  --navy-tint: #eef2fb;
  --teal: #0b7261;
  --teal-soft: #ecfdf8;
  --obsidian: #0b1222;
  --obsidian-panel: #111b31;
  --obsidian-border: rgb(255 255 255 / 10%);
  --paper: #f8fafd;
  --white: #ffffff;
  --shell: #e9eef7;
  --hairline: rgb(30 51 122 / 10%);
  --border-strong: rgb(30 51 122 / 18%);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --mono: ui-monospace, 'Cascadia Code', 'SFMono-Regular', Consolas, monospace;
  --content-layer: 1;
  --navigation-layer: 30;
  --overlay-layer: 50;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%231e337a' d='M0 0h160v160H0z' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.menu-open { overflow: hidden; }
main, .site-footer { position: relative; z-index: var(--content-layer); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; }
button:disabled { cursor: default; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; text-wrap: balance; color: var(--ink); }
p { text-wrap: pretty; }
code, pre, kbd, .tabular { font-family: var(--mono); font-variant-numeric: tabular-nums; }
::selection { background: #dbe5f9; color: var(--navy-deep); }
:focus-visible { outline: 3px solid #3b6fd8; outline-offset: 4px; }
[hidden] { display: none !important; }

.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.container { width: min(1260px, calc(100% - 64px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: 14px;
  left: 24px;
  padding: 12px 20px;
  background: var(--white);
  color: var(--navy);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgb(15 23 42 / 14%);
  z-index: var(--overlay-layer);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

/* Unified Floating Navigation Island */
.nav-island {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--navigation-layer);
  padding: 16px 24px 12px;
  background: linear-gradient(180deg, rgb(248 250 253 / 92%) 0%, rgb(248 250 253 / 68%) 65%, transparent 100%);
  pointer-events: none;
}
.navigation {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1260px, 100%);
  min-height: 64px;
  margin-inline: auto;
  padding: 8px 10px 8px 20px;
  border-radius: 100px;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 95%),
    inset 0 0 0 1px rgb(30 51 122 / 9%),
    0 10px 32px -8px rgb(15 23 42 / 10%);
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-lockup img { width: 146px; height: auto; }
.nav-version-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--navy-tint);
  color: var(--navy);
  border: 1px solid rgb(30 51 122 / 12%);
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-inline: auto;
}
.nav-links a {
  color: #334155;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 4px;
  border-radius: 8px;
  transition: color 220ms var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--navy);
  font-weight: 600;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.github-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 550;
  color: var(--ink-soft);
  background: #f1f5f9;
  border: 1px solid rgb(30 51 122 / 10%);
  white-space: nowrap;
  transition: background-color 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease);
}
.github-pill:hover {
  background: #e2e8f0;
  color: var(--navy);
  transform: translateY(-1px);
}
.github-pill .icon { width: 16px; height: 16px; }

/* Signature Pill Button with Nested Trailing Circle */
.button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding: 6px 7px 6px 22px;
  border-radius: 100px;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 16%), 0 8px 22px -4px rgb(30 51 122 / 26%);
  transition: transform 350ms var(--ease), background-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.button:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgb(30 51 122 / 34%);
}
.button:active { transform: scale(.98); }
.button:disabled { opacity: .55; transform: none; }
.button-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgb(255 255 255 / 15%);
  transition: transform 380ms var(--ease);
}
.button-icon .icon { width: 17px; height: 17px; }
.button:hover .button-icon { transform: translate(1px, -1px) scale(1.06); }

.button-small {
  min-height: 40px;
  padding: 4px 5px 4px 16px;
  gap: 12px;
  font-size: 13px;
}
.button-small .button-icon { width: 30px; height: 30px; }
.button-small .button-icon .icon { width: 15px; height: 15px; }

.button-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 100px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
  border: 1px solid var(--border-strong);
  box-shadow: 0 2px 10px rgb(15 23 42 / 4%);
  white-space: nowrap;
  transition: transform 300ms var(--ease), border-color 250ms var(--ease), color 250ms var(--ease), background-color 250ms var(--ease);
}
.button-secondary:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: #f8faff;
  transform: translateY(-2px);
}
.button-secondary .icon { width: 17px; height: 17px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
}
.text-link .icon { width: 17px; height: 17px; transition: transform 350ms var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }
.text-link:hover { color: var(--teal); }

/* Mobile Menu */
.menu-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  background: #eef2fa;
  border-radius: 50%;
  color: var(--navy);
  flex-shrink: 0;
}
.menu-toggle span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 1.75px;
  background: currentColor;
  transition: transform 450ms var(--ease);
}
.menu-toggle span:first-child { transform: translateY(-3.5px); }
.menu-toggle span:last-child { transform: translateY(3.5px); }
.menu-toggle[aria-expanded='true'] span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:last-child { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px 28px;
  border: 0;
  background: rgb(248 250 253 / 97%);
  color: var(--ink);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.mobile-menu::backdrop { background: rgb(15 23 42 / 25%); }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.mobile-menu-head img { width: 150px; }
.menu-close {
  background: #eef2fa;
  padding: 8px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.mobile-menu nav { display: grid; margin-block: 36px; }
.mobile-menu nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  box-shadow: 0 1px 0 var(--hairline);
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 600;
  letter-spacing: -.03em;
}
.mobile-menu nav a span { color: var(--muted-light); font-family: var(--mono); font-size: 12px; letter-spacing: 0; }
.mobile-menu[open] nav a { animation: menu-reveal 550ms var(--ease) both; animation-delay: calc(var(--order, 0) * 50ms); }
.mobile-menu nav a:nth-child(2) { --order: 1; }
.mobile-menu nav a:nth-child(3) { --order: 2; }
.mobile-menu nav a:nth-child(4) { --order: 3; }
.mobile-menu nav a:nth-child(5) { --order: 4; }
.mobile-menu nav a:nth-child(6) { --order: 5; }
.mobile-menu nav a:nth-child(7) { --order: 6; }
.mobile-menu nav a:nth-child(8) { --order: 7; }
.mobile-menu > p { color: var(--muted); font-size: 13px; }
@keyframes menu-reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* Shared Double-Bezel Shell & Eyebrow */
.bezel {
  padding: 7px;
  background: var(--shell);
  border-radius: 28px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 92%), inset 0 0 0 1px rgb(30 51 122 / 7%);
  min-width: 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 100px;
  background: var(--navy-tint);
  color: var(--navy);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Unified Subpage Content Shell (Docs, Download, Tutorial, Cookbook, Edge, TAP Guide) */
.page-hero {
  padding: 124px 0 44px;
  border-bottom: 1px solid var(--hairline);
  background:
    radial-gradient(ellipse at 85% 0%, rgb(30 51 122 / 7%) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 10%, rgb(11 114 97 / 6%) 0%, transparent 45%),
    var(--paper);
}
.page-hero h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.06;
  letter-spacing: -.04em;
  max-width: 820px;
  margin: 18px 0 16px;
}
.page-hero .lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 68ch;
}
.page-hero .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.page-hero .facts span {
  padding: 6px 12px;
  border: 1px solid var(--hairline);
  background: var(--white);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 550;
}
.page-main {
  max-width: 1160px;
  margin-inline: auto;
  padding: 36px 32px 96px;
}
.page-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--hairline);
}
.page-section:last-of-type { border-bottom: 0; }
.page-section h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  letter-spacing: -.03em;
  margin-bottom: 16px;
}
.page-section h3 {
  font-size: 20px;
  margin: 24px 0 10px;
}
.page-section p,
.page-section li {
  max-width: 74ch;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.72;
}
.page-section p + p { margin-top: 12px; }
.page-section a:not(.button):not(.button-secondary):not(.dl-btn) {
  color: var(--navy);
  font-weight: 550;
  text-decoration: underline;
  text-decoration-color: rgb(30 51 122 / 28%);
  text-underline-offset: 3px;
}
.page-section a:not(.button):not(.button-secondary):not(.dl-btn):hover { color: var(--teal); text-decoration-color: var(--teal); }
.page-section :not(pre) > code {
  background: #eaf0f8;
  color: var(--navy-deep);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: .88em;
}

.callout {
  margin: 22px 0;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid rgb(11 114 97 / 20%);
  border-left: 4px solid var(--teal);
  background: #f0faf7;
}
.callout.warn {
  border-color: rgb(180 109 26 / 24%);
  border-left-color: #b46d1a;
  background: #fff9ee;
}
.callout strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 15px; }
.callout p { margin: 4px 0; font-size: 14.5px; }

.code {
  margin: 18px 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--obsidian);
  border: 1px solid rgb(255 255 255 / 9%);
  box-shadow: 0 14px 36px -14px rgb(15 23 42 / 28%);
}
.code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--obsidian-panel);
  color: #cbd5e1;
  font-size: 12px;
  font-family: var(--mono);
  border-bottom: 1px solid var(--obsidian-border);
}
.copy {
  background: rgb(255 255 255 / 8%);
  color: #f8fafc;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 550;
  transition: background-color 200ms var(--ease);
}
.copy:hover { background: rgb(255 255 255 / 16%); }
.code pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  color: #e2e8f0;
  font-size: 13.5px;
  line-height: 1.68;
}
.page-section pre:not(.code pre) {
  margin: 16px 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--obsidian);
  color: #e2e8f0;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.68;
}

.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgb(15 23 42 / 3%);
}
.table-wrap table {
  border-collapse: collapse;
  width: 100%;
  min-width: 580px;
  font-size: 14px;
}
.table-wrap th,
.table-wrap td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap th {
  background: #f3f6fc;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
}

/* Unified 4-Column Enterprise Footer */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand img { width: 148px; }
.footer-brand p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  max-width: 34ch;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 12px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted-light);
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-col a {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 200ms var(--ease);
}
.footer-col a:hover { color: var(--navy); }
.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted-light);
  font-size: 13px;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-legal a:hover { color: var(--navy); }

/* Responsive Navigation & Footer Breakpoints */
@media (max-width: 1120px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
  .github-pill { display: none; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-version-badge { display: none; }
  .menu-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 767px) {
  html { scroll-padding-top: 94px; }
  .container { width: calc(100% - 32px); }
  .nav-island { padding: 10px 14px; }
  .navigation { min-height: 58px; padding: 6px 8px 6px 16px; gap: 10px; }
  .brand-lockup img { width: 130px; }
  .nav-actions .button-small { min-height: 38px; padding: 4px 4px 4px 12px; gap: 8px; font-size: 12px; }
  .nav-actions .button-small .button-icon { width: 28px; height: 28px; }
  .page-hero { padding: 104px 0 34px; }
  .page-main { padding: 24px 16px 72px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 390px) {
  .nav-actions .button-small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }
}

