.site-topbar-root {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: 'Libre Franklin', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.site-topbar-inner {
  width: min(1180px, 94vw);
  min-height: 44px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #0f172a;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-topbar-logo {
  display: block;
  height: 26px;
  width: auto;
}

.site-topbar-by {
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.site-topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
}

.site-topbar-link {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: #334155;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.site-topbar-link:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.site-topbar-cta {
  background: #2C7A7B;
  color: #fff;
}

.site-topbar-cta:hover {
  background: #1a5a5b;
  color: #fff;
}

@media (max-width: 720px) {
  .site-topbar-inner {
    width: 100%;
    padding: 0 10px;
  }

  .site-topbar-by {
    display: none;
  }

  .site-topbar-link {
    font-size: 11px;
    padding: 0 8px;
  }
}

@media (max-width: 560px) {
  .site-topbar-root {
    position: sticky;
  }

  .site-topbar-inner {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 7px 10px 8px;
  }

  .site-topbar-brand {
    max-width: 100%;
  }

  .site-topbar-logo {
    height: 23px;
  }

  .site-topbar-nav {
    width: 100%;
    padding-bottom: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .site-topbar-nav::-webkit-scrollbar {
    display: none;
  }

  .site-topbar-link {
    flex: 0 0 auto;
    height: 32px;
    padding: 0 10px;
  }

  .container,
  .page,
  .page-wrap,
  .content,
  .main,
  .shell {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .top-nav,
  .tabs,
  .actions,
  .nav,
  .modal-actions {
    flex-wrap: wrap;
  }

  .panel,
  .hero,
  .card,
  .chapter-card,
  .blog-card,
  .tool-card {
    max-width: 100%;
  }

  h1,
  h2,
  h3,
  p,
  a,
  li,
  button,
  input,
  textarea,
  select {
    overflow-wrap: anywhere;
  }

  input,
  textarea,
  select,
  button {
    font-size: 16px;
  }

  img,
  svg,
  canvas,
  iframe,
  video {
    max-width: 100%;
  }

  pre,
  code,
  table,
  .output,
  .result,
  .preview,
  .code-block {
    max-width: 100%;
    overflow-x: auto;
  }
}
