/* Shared homepage navigation, scoped so documentation content keeps its theme. */
header.site-header,
body.page-kube > header.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  margin: 0;
  padding: 0;
  color: #fff;
  background: rgba(31, 17, 66, .92);
  backdrop-filter: blur(18px);
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  box-shadow: none;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: auto;
}
header.site-header:lang(zh),
body.page-kube > header.site-header:lang(zh) {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.site-header, .site-header * {
  box-sizing: border-box;
  font-feature-settings: normal;
  text-size-adjust: 100%;
}
.site-header .wrap.nav {
  width: min(1160px, calc(100% - 40px));
  height: 76px;
  min-height: 76px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header a { text-decoration: none; }
/* Shared three-site lock-up: Speedle mark + wordmark | product word (#203, header standard v2). */
.site-header .brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  line-height: 1;
}
.site-header .brand img {
  display: block;
  width: 152px;
  max-width: none;
  height: auto;
  margin: 0;
}
.site-header .brand-divider {
  display: block;
  flex: 0 0 1px;
  width: 1px;
  height: 26px;
  margin: 0;
  background: currentColor;
  opacity: .4;
}
.site-header .brand-product {
  display: block;
  margin: 0;
  color: #01e7cb;
  font-family: inherit;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}
.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  color: rgba(255,255,255,.82);
  font-family: inherit;
  font-size: 15.04px;
  font-weight: 600;
  line-height: 1.65;
}
.site-header .nav-links a {
  margin: 0;
  color: inherit;
  font: inherit;
  white-space: nowrap;
  text-decoration: none;
}
.site-header .nav-links a:hover,
.site-header .nav-links a:focus-visible,
.site-header .nav-links a[aria-current="page"] { color: #01e7cb; }
.site-header a:focus-visible,
.site-header .menu:focus-visible { outline: 2px solid #01e7cb; outline-offset: 4px; }
.site-header .nav-links .nav-github {
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  color: #fff !important;
}
.site-header .menu {
  display: none;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 2px 6px;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: 400 24.8px Arial, sans-serif;
  line-height: normal;
  appearance: auto;
  vertical-align: baseline;
  cursor: pointer;
}
@media (max-width: 1160px) {
  .site-header .wrap.nav {
    height: auto;
    flex-wrap: wrap;
  }
  .site-header .nav-links {
    flex-basis: 100%;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: #25134e;
  }
  .site-header.navigation-ready .wrap.nav {
    height: 76px;
    flex-wrap: nowrap;
  }
  .site-header.navigation-ready .menu { display: block; }
  .site-header.navigation-ready .nav-links {
    display: none;
    position: absolute;
    inset: 76px 0 auto;
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
  }
  .site-header.navigation-ready .nav-links.open { display: flex; }
}
@media (max-width: 700px) {
  .site-header .wrap.nav { width: min(100% - 28px, 1160px); }
  .site-header .brand img { width: 128px; }
  .site-header .brand-divider { height: 22px; }
  .site-header .brand-product { font-size: 19px; }
}
/* Speedle family cross-links shared by the three sites (header standard v3). */
.site-header .products { position: relative; }
.site-header .products-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
}
.site-header .products-button:hover,
.site-header .products-button:focus-visible,
.site-header .products-button[aria-expanded="true"] { color: #01e7cb; }
.site-header .products-button:focus-visible { outline: 2px solid #01e7cb; outline-offset: 4px; }
.site-header .products-chevron { display: block; flex: 0 0 10px; transition: transform .2s; }
.site-header .products-button[aria-expanded="true"] .products-chevron { transform: rotate(180deg); }
.site-header .products-heading { display: none; }
.site-header .products-panel {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  z-index: 30;
  width: 340px;
  padding: 10px;
  background: #25134e;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.site-header .products.open .products-panel { display: block; }
.site-header .nav-links a.product-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #fff;
  white-space: normal;
}
.site-header .nav-links a.product-row:hover,
.site-header .nav-links a.product-row:focus-visible { color: #fff; background: rgba(255,255,255,.08); }
.site-header .nav-links a.product-row:focus-visible { outline-offset: 0; }
.site-header .nav-links a.product-row[aria-current="page"] { color: #fff; }
.site-header .product-mark { display: block; flex: 0 0 20px; width: 20px; height: 20px; margin: 0; }
.site-header .product-text { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.site-header .product-name { font-size: 15px; font-weight: 600; line-height: 1.4; }
.site-header .product-desc { color: rgba(255,255,255,.72); font-size: 13px; font-weight: 400; line-height: 1.4; }
.site-header .product-check { display: block; flex: 0 0 16px; color: #01e7cb; }
.site-header .product-badge,
.site-footer .product-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  color: #01e7cb;
  border: 1px solid rgba(1,231,203,.5);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  vertical-align: 1px;
  white-space: nowrap;
}
@media (max-width: 1160px) {
  .site-header .products { width: 100%; }
  .site-header .products-button { display: none; }
  .site-header .products-heading { display: block; color: rgba(255,255,255,.72); }
  .site-header .products-panel,
  .site-header .products.open .products-panel {
    display: block;
    position: static;
    width: auto;
    margin: 8px 0 0 -12px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
}
/* Shared three-site footer (header standard v6): brand lock-up, Speedle family, social row. */
footer.site-footer,
body.page-kube > footer.site-footer {
  display: block;
  width: auto;
  min-height: 0;
  margin: 104px 0 0;
  padding: 0;
  color: rgba(255,255,255,.7);
  background: #171022;
  border: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-align: left;
}
footer.site-footer:lang(zh) {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.site-footer, .site-footer * { box-sizing: border-box; }
.site-footer .footer-inner {
  width: min(1160px, calc(100% - 40px));
  min-height: 190px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  align-items: center;
}
.site-footer .footer-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: #fff;
  line-height: 1;
}
.site-footer .footer-lockup img { display: block; width: 132px; max-width: none; height: auto; margin: 0; }
.site-footer .footer-lockup .brand-divider { display: block; flex: 0 0 1px; width: 1px; height: 22px; background: currentColor; opacity: .4; }
.site-footer .footer-lockup .brand-product { display: block; color: #01e7cb; font-size: 19px; font-weight: 600; letter-spacing: 0; line-height: 1; white-space: nowrap; }
.site-footer .footer-brand p { margin: 0; font-size: .88rem; line-height: 1.65; }
.site-footer .footer-family { font-size: .88rem; line-height: 1.65; }
.site-footer .footer-family-title { margin: 0 0 8px; padding: 0; color: #fff; font-family: inherit; font-size: .88rem; font-weight: 600; line-height: 1.65; letter-spacing: 0; text-transform: none; }
.site-footer .footer-family ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer .footer-family li { margin: 0; padding: 0; line-height: 1.4; }
/* Sphere before each product name: same geometry as the ai.speedle.io footer (header standard v8). */
.site-footer .sphere-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
html .site-footer .footer-family li > a { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 10px; color: #fff; font-size: .88rem; text-decoration: none; }
html .site-footer .footer-family li > a:hover .footer-family-name,
html .site-footer .footer-family li > a:focus-visible .footer-family-name { color: #01e7cb; }
.site-footer .product-sphere { display: block; width: 20px; height: 20px; flex: none; }
.site-footer .product-engine { color: #ff9a45; }
.site-footer .product-cloud { color: #4da3ff; }
.site-footer .product-ai { color: #8b5cf6; }
.site-footer .footer-family-copy { min-width: 0; }
.site-footer .footer-family-name { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; line-height: 1.65; white-space: nowrap; }
.site-footer .footer-family-name .product-badge { margin-left: 0; }
.site-footer .footer-family-desc { display: block; color: rgba(255,255,255,.7); font-size: .88rem; font-weight: 400; line-height: 1.65; }
html .site-footer .social { display: flex; justify-content: flex-start; gap: 12px; margin: 0; padding: 0; }
html .site-footer .social a { width: 44px; height: 44px; margin: 0; padding: 0; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; }
html .site-footer .social img { width: 24px; height: 24px; margin: 0; }
.site-footer a:focus-visible { outline: 2px solid #01e7cb; outline-offset: 4px; }
@media (max-width: 900px) {
  .site-footer .footer-inner { grid-template-columns: 1fr; padding: 48px 0; }
}
@media (max-width: 700px) {
  .site-footer .footer-inner { width: min(100% - 28px, 1160px); }
}
