/* Shared top bar — identical on the landing page and the blog.
   Mirrors the Flutter landing navbar (Padding all: 24). */

.sbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.sbar__left {
  display: flex;
  align-items: center;
  /* Same 8px rhythm as the right group so Docs · Blog match Sign in · Sign Up. */
  gap: 8px;
}

.sbar__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  /* Uniform 8px gap; combined with each link's 10px side padding this yields
     an identical 28px visual space between Docs · Blog · Sign in · Sign Up. */
  gap: 8px;
}

/* Brand: 3×3 logo (32) + 12px gap + wordmark. Extra right margin pushes the
   Docs link well clear of the wordmark. */
.sbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: 32px;
}
.sbar__logo {
  display: block;
  width: 32px;
  height: 32px;
  flex: none;
}
.sbar__word {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

/* The four nav links (Docs / Blog / Sign in / Sign Up) — identical font,
   size, weight, padding and alignment so they read as one even row. */
.sbar__link {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  padding: 10px;
  border-radius: 4px;
  transition: background 0.12s;
}
.sbar__link:hover { background: rgba(255, 255, 255, 0.08); }

/* Icon buttons (home / profile / language) — white */
.sbar__iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 6px;
  border: none;
  background: transparent;
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s;
}
.sbar__iconbtn:hover { background: rgba(255, 255, 255, 0.1); }
.sbar__iconbtn svg { display: block; }

/* Language selector menu */
.sbar__lang { position: relative; }
.sbar__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  padding: 6px;
  z-index: 50;
}
.sbar__lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 15px;
  color: #1f2937;
  cursor: pointer;
  text-align: left;
}
.sbar__lang-item:hover { background: #f1f5f9; }
.sbar__lang-item.is-active { font-weight: 700; color: #0f172a; }
.sbar__flag { font-size: 18px; line-height: 1; }

/* Narrow screens: centered logo on its own line, then all four links
   (Docs · Blog · Sign in · Sign Up) on one centered row below it.
   `display: contents` flattens the left/right groups so every link becomes a
   direct flex child of `.sbar` and they can share a single wrapping row. */
@media (max-width: 480px) {
  .sbar {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 12px;
  }
  .sbar__left,
  .sbar__right {
    display: contents;
  }
  .sbar__brand {
    flex-basis: 100%;
    justify-content: center;
    margin-right: 0;
  }
}
