/* Page tabs: a bar of links between sister pages (the JLCPCB parts pages, the vibration pages ...),
   placed right under the banner. Separate pages, but they switch like tabs: the bar sticks to the top,
   stays put during the cross-fade, and keeps its place when you switch (js/kc-tabs.js).

   <nav class="kc-tabs" aria-label="…" data-pagefind-ignore><div class="kc-tabs-in">
     <a href="A.html" aria-current="page"><svg viewBox="0 0 24 24" …/><span>Short<span class="kc-tabs-x"> extra words</span></span></a>
     …
   </div></nav>
   <script src="js/kc-tabs.js"></script>      (not deferred)

   .kc-tabs-x words hide on phones, and on any screen where the full labels do not fit (class kc-short, js/kc-tabs.js). The tabs are centred; when they do not fit they scroll sideways
   inside the bar (no scroll bar, faded edges), never the page. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
.kc-tabs { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid #c5d0d3; box-shadow: 0 2px 6px rgba(20,44,53,.08); view-transition-name: kc-tabs; }
.kc-tabs-in { max-width: 1500px; margin: 0 auto; padding: 0 16px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.kc-tabs-in::-webkit-scrollbar { display: none; }
/* centred with auto margins, not justify-content: they drop to zero when the tabs overflow, so the first tab can still be scrolled to */
.kc-tabs-in > a:first-child { margin-left: auto; }
.kc-tabs-in > a:last-child { margin-right: auto; }
.kc-tabs a { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; padding: 13px 16px 10px; border-bottom: 3px solid transparent;
  font: 600 15px Roboto, Arial, sans-serif; color: #4a5a5f; text-decoration: none; white-space: nowrap; transition: color .15s, border-color .15s, background .15s; }
.kc-tabs a:hover { color: #1a6475; background: #f0f6f8; border-bottom-color: #a9c9d1; text-decoration: none; }
.kc-tabs a[aria-current="page"] { color: #1a6475; border-bottom-color: #1a6475; }
.kc-tabs a:focus-visible { outline: 2px solid #2f8fa3; outline-offset: -2px; }
.kc-tabs svg { width: 18px; height: 18px; flex: 0 0 auto; }
.kc-tabs a:not([aria-current]) svg { opacity: .7; }
@media (max-width: 600px) { .kc-tabs-in { padding: 0 4px; gap: 0; } .kc-tabs a { padding: 12px 8px 9px; font-size: 14px; gap: 5px; } .kc-tabs svg { width: 15px; height: 15px; } .kc-tabs-x { display: none; } }
.kc-tabs.kc-short .kc-tabs-x { display: none; }
@media (min-width: 601px) { .kc-tabs.kc-short a { padding-left: 11px; padding-right: 11px; gap: 5px; } }
@media (max-width: 420px) { .kc-tabs svg { display: none; } }
/* faded edges show there are more tabs to scroll to */
.kc-tabs-in.kc-fade-r { -webkit-mask-image: linear-gradient(to right, #000 80%, transparent); mask-image: linear-gradient(to right, #000 80%, transparent); }
.kc-tabs-in.kc-fade-l { -webkit-mask-image: linear-gradient(to left, #000 80%, transparent); mask-image: linear-gradient(to left, #000 80%, transparent); }
.kc-tabs-in.kc-fade-l.kc-fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent); }
@media print { .kc-tabs { display: none; } }
