/* One top bar for the story and the feature guide. */
.snav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
  padding: 0 max(28px, calc((100% - 1160px) / 2));
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.snav.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  background: rgba(5, 5, 7, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.snav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: #f4f5f7;
  text-decoration: none;
}
.snav .brand img { width: 26px; height: 26px; border-radius: 7px; display: block; }
.snav .w-edit { color: #e8b650; }
.snav .w-name { color: #f4f5f7; }
.snav-right { display: flex; gap: 22px; align-items: center; font-size: 14px; font-weight: 600; }
.snav-right a { color: #b4b8c2; text-decoration: none; }
.snav-right a:hover { color: #f4f5f7; }
.snav-right a[aria-current="page"] { color: #f4f5f7; }
.snav .pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f4f5f7;
  font-weight: 600;
}
.snav .pill:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

@media (max-width: 860px) {
  .snav { padding: 0 16px; }
  .snav .brand { font-size: 15px; gap: 8px; }
  .snav .brand img { width: 22px; height: 22px; }
  .snav-right { gap: 14px; }
  .snav-right a[data-download] { display: none; }
  .snav .pill { padding: 7px 12px; font-size: 12px; white-space: nowrap; }
}
