.sg-top-nav{display:flex;align-items:center;gap:4px;margin:-10px 0 22px;padding:5px;border:1px solid var(--line,#29485a);border-radius:13px;background:var(--panel,#102337);overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;max-width:100%;order:0}
.sg-top-nav::-webkit-scrollbar{display:none}
.sg-top-nav a{flex:1 0 auto;display:flex;align-items:center;justify-content:center;min-height:40px;padding:9px 15px;border-radius:9px;color:var(--sub,#97afbb);font-size:13px;line-height:1.25;font-weight:750;text-decoration:none;white-space:nowrap;transition:background .12s,color .12s}
.sg-top-nav a:hover{background:var(--sg-bg-0e3645,#0e3645);color:var(--text,#f4faff)}
.sg-top-nav a[aria-current="page"]{background:var(--sg-bg-1b6765,#1b6765);color:#fff;box-shadow:inset 0 0 0 1px var(--sg-border-3bb4a7,#3bb4a7)}
.sg-top-nav a:focus-visible{outline:2px solid var(--mint,#49e4cd);outline-offset:-2px}
@media(max-width:780px){.sg-top-nav{margin:0 0 16px;gap:3px;padding:4px;border-radius:11px;scroll-snap-type:x proximity}.sg-top-nav a{flex:0 0 auto;min-height:38px;padding:8px 13px;font-size:12px;scroll-snap-align:start}}
/* The light theme maps the teal token to a pale tint; selected tabs must stay teal across all pages. */
html[data-theme="light"] .sg-top-nav a[aria-current="page"]{background:#08786c;color:#fff;box-shadow:inset 0 0 0 1px #08786c}
