:root {
  --site-tabs-h: 56px;
}

.tabs,
.tabs *,
.site-tabs,
.site-tabs * {
  box-sizing: border-box;
}

.tabs,
.site-tabs {
  position: sticky;
  z-index: 99;
  width: 100%;
  height: var(--site-tabs-h);
  background:
    linear-gradient(90deg, rgba(0, 248, 252, .035), transparent 16%, transparent 84%, rgba(157, 78, 221, .04)),
    rgba(0, 0, 0, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px max(12px, calc((100vw - 1240px) / 2));
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: none;
  scroll-padding-inline: 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tabs {
  top: var(--header-h, 0px);
}

.site-tabs {
  top: var(--site-nav-top, 0px);
}

body > .site-tabs {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.site-tabs--standalone {
  position: fixed;
  inset: 0 0 auto;
}

body.has-site-tabs {
  padding-top: var(--site-tabs-h) !important;
}

body.has-site-tabs > .lang-switch {
  top: calc(var(--site-tabs-h) + 14px);
}

.tabs::-webkit-scrollbar,
.site-tabs::-webkit-scrollbar {
  display: none;
}

.tab,
.site-tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  color: #999;
  font: 600 12px/1.15 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  position: relative;
  scroll-snap-align: center;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}

.tab:hover,
.site-tab:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
  transform: translateY(-1px);
}

.tab.active,
.site-tab.active,
.site-tab[aria-current="page"] {
  color: #fff;
  border-color: rgba(0, 248, 252, .58);
  background: rgba(0, 248, 252, .1);
  box-shadow: 0 0 18px rgba(0, 248, 252, .08);
}

.tab-featured,
.site-tab-featured {
  color: #fff;
  gap: 7px;
  border-color: rgba(157, 78, 221, .38);
  background: linear-gradient(135deg, rgba(0, 248, 252, .07), rgba(157, 78, 221, .09));
}

.tab-featured-copy,
.site-tab-featured-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

.tab-featured-date,
.site-tab-featured-date {
  margin-top: 3px;
  color: #999;
  font-size: 9px;
  font-weight: 500;
}

.tab-featured-dot,
.site-tab-featured-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f8fc, #9d4edd);
  box-shadow: 0 0 10px rgba(0, 248, 252, .6);
}

.tab-static,
.site-tab-static {
  color: #00f8fc;
}

.tab:focus-visible,
.site-tab:focus-visible {
  outline: 2px solid #00f8fc;
  outline-offset: 2px;
}

@media (min-width: 1100px) {
  .tabs,
  .site-tabs {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .tabs,
  .site-tabs {
    gap: 5px;
    padding: 7px 8px;
  }

  .tab,
  .site-tab {
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tab,
  .site-tab {
    transition: none;
  }
}
