/* © 2026 Filip Mráček / Chineseffect. The one tab bar of the whole site – Dictionary · Sentence Cards · City ·
   Journey · Grammar – always at the top, the same on every page.
   On phones the bar slides away while scrolling down and returns on the way up (site/tabs.js). */
.cx-tabs {
  position: relative; display: flex; gap: 2px; padding: 3px; min-width: 0;
  border-radius: 999px; background: rgba(20, 22, 26, .72); border: 1px solid rgba(255, 255, 255, .1);
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cx-tabs::-webkit-scrollbar { display: none; }
.cx-tabs > a {
  flex: none; color: #a1a1a6; font: 500 14px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
  padding: 8px 13px; border-radius: 999px; white-space: nowrap; text-decoration: none; background: transparent; box-shadow: none;
  transition: color .2s, background .2s;
}
.cx-tabs > a:hover { color: #f5f5f7; }
.cx-tabs > a.is-on, .cx-tabs > a[aria-current="page"] { color: #f5f5f7; background: rgba(255, 255, 255, .13); }
@media (max-width: 760px) {
  .cx-tabs .tab-long { display: none; }
  .cx-tabs > a { padding: 7px 10px; font-size: 13px; }
}

/* Journey is a whole course, not one page: a small arrow says there's a lot more behind it */
.cx-tabs .tab-more {
  display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 5px; border-radius: 50%; vertical-align: -2px;
  color: rgb(255, 190, 125); background: rgb(255 150 60 / .14); box-shadow: inset 0 0 0 1px rgb(255 160 80 / .4);
}
.cx-tabs .tab-more svg { display: block; transition: transform .25s cubic-bezier(.25, .8, .25, 1); }
.cx-tabs > a:hover .tab-more svg { transform: translateX(1.5px); }
@media (max-width: 760px) { .cx-tabs .tab-more { width: 14px; height: 14px; margin-left: 4px; } .cx-tabs .tab-more svg { width: 9px; height: 9px; } }

/* phones: the bar slides up out of the way while you scroll down (class set by site/tabs.js) */
@media (max-width: 760px) {
  .cx-slide { transition: transform .32s cubic-bezier(.2, .75, .25, 1) !important; }
  .cx-away { transform: translate3d(0, calc(-100% - 8px), 0) !important; }
}
@media (prefers-reduced-motion: reduce) { .cx-slide { transition: none !important; } }
