/* Sailor Gay · bottom navigation, modern look and motion (overrides sg-collection90/nav165.css). */
html body nav.meetups-nav166:not(#sgdock-x){
 --dock-bg:rgba(255,255,255,.74);
 --dock-line:rgba(255,255,255,.85);
 --dock-shadow:0 14px 34px -14px rgba(10,20,55,.42),0 2px 8px rgba(10,20,55,.07);
 --dock-hi:inset 0 1px 0 rgba(255,255,255,.7);
 background:var(--dock-bg)!important;
 -webkit-backdrop-filter:blur(22px) saturate(1.8)!important;backdrop-filter:blur(22px) saturate(1.8)!important;
 border:1px solid var(--dock-line)!important;
 box-shadow:var(--dock-shadow),var(--dock-hi)!important;
 isolation:isolate;
 transition:height .35s cubic-bezier(.2,.8,.2,1),width .35s cubic-bezier(.2,.8,.2,1),background-color .3s,box-shadow .3s!important;
}
/* Stories (dark) */
html body #mobile-root :is(.view-home,.view-post) nav.meetups-nav166:not(#sgdock-x){
 --dock-bg:rgba(15,21,35,.8);
 --dock-line:rgba(255,255,255,.09);
 --dock-shadow:0 16px 36px -12px rgba(0,0,0,.7),0 2px 8px rgba(0,0,0,.35);
 --dock-hi:inset 0 1px 0 rgba(255,255,255,.06);
 background:var(--dock-bg)!important;border:1px solid var(--dock-line)!important;box-shadow:var(--dock-shadow),var(--dock-hi)!important;
}

/* Old indicators off: tinted box and top line. */
html body nav.meetups-nav166:not(#sgdock-x) a[aria-label]{background:none!important;box-shadow:none!important;-webkit-tap-highlight-color:transparent;position:relative;z-index:1}
html body nav.meetups-nav166:not(#sgdock-x) .dock-mark165{display:none!important}

/* Sliding highlight */
html body nav.meetups-nav166:not(#sgdock-x) .sgdock-ind{
 position:absolute;z-index:0;left:0;top:var(--y,5px);height:var(--h,56px);width:var(--w,0);
 transform:translateX(var(--x,0));border-radius:22px;pointer-events:none;
 background:color-mix(in srgb,var(--c,#0a1437) 15%,transparent);
 box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c,#0a1437) 22%,transparent),inset 0 1px 0 rgba(255,255,255,.35);
 transition:transform .5s cubic-bezier(.32,1.32,.52,1),width .5s cubic-bezier(.32,1.32,.52,1),top .35s,height .35s,background-color .35s,box-shadow .35s,opacity .2s;
}
html body #mobile-root :is(.view-home,.view-post) nav.meetups-nav166:not(#sgdock-x) .sgdock-ind{
 background:color-mix(in srgb,var(--c,#fff) 24%,transparent);
 box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c,#fff) 34%,transparent),inset 0 1px 0 rgba(255,255,255,.08);
}
html body nav.meetups-nav166:not(#sgdock-x) .sgdock-ind.sgdock-noanim{transition:none!important}

/* Tabs: inactive slightly quieter, active full; press squeeze; activation pop */
html body nav.meetups-nav166:not(#sgdock-x) a[aria-label] :is(.dock-icon165,.dock-label165){transition:opacity .25s,transform .35s cubic-bezier(.3,1.6,.5,1)!important}
html body nav.meetups-nav166:not(#sgdock-x) a[aria-label]:not([aria-current=page]):not(.sgdock-on) :is(.dock-icon165,.dock-label165){opacity:.72}
html body nav.meetups-nav166:not(#sgdock-x) a[aria-label]:active .dock-icon165{transform:scale(.84)}
html body nav.meetups-nav166:not(#sgdock-x) a.sgdock-pop .dock-icon165{animation:sgdockPop .55s cubic-bezier(.3,1.6,.5,1)}
@keyframes sgdockPop{0%{transform:scale(.84)}45%{transform:scale(1.16) translateY(-2px)}100%{transform:none}}

/* Shrink on scroll: labels fade rather than jump */
html body nav.meetups-nav166:not(#sgdock-x) .dock-label165{transition:opacity .22s,max-height .3s cubic-bezier(.2,.8,.2,1),transform .3s!important}
html.dock-compact165 body nav.meetups-nav166:not(#sgdock-x) .dock-label165{opacity:0!important;transform:translateY(4px)}

@media (prefers-reduced-motion:reduce){
 html body nav.meetups-nav166:not(#sgdock-x),html body nav.meetups-nav166:not(#sgdock-x) *{transition:none!important;animation:none!important}
}

/* Liquid stretch phase (quick), then the spring snap from the base transition. */
html body nav.meetups-nav166:not(#sgdock-x) .sgdock-ind.sgdock-stretch{transition:transform .17s cubic-bezier(.4,0,.6,1),width .17s cubic-bezier(.4,0,.6,1),background-color .2s!important}

/* Tap ripple in the tab's own color */
html body nav.meetups-nav166:not(#sgdock-x) a[aria-label]{overflow:hidden;border-radius:22px!important}
html body nav.meetups-nav166:not(#sgdock-x) .sgdock-ripple{position:absolute;z-index:-1;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;pointer-events:none;background:color-mix(in srgb,var(--nav-color,#0a1437) 30%,transparent);animation:sgdockRipple .6s cubic-bezier(.2,.8,.2,1) forwards}
@keyframes sgdockRipple{to{transform:scale(9);opacity:0}}

/* Soft glow on the active icon */
html body nav.meetups-nav166:not(#sgdock-x) a.sgdock-on .dock-icon165 svg{filter:drop-shadow(0 2px 6px color-mix(in srgb,var(--nav-color,#0a1437) 50%,transparent))!important;transition:filter .35s}
html body #mobile-root :is(.view-home,.view-post) nav.meetups-nav166:not(#sgdock-x) a.sgdock-on .dock-icon165 svg{filter:drop-shadow(0 0 8px color-mix(in srgb,var(--nav-color,#fff) 75%,transparent))!important}

/* Labels: black on light bars, white on the dark Stories bar; the selected tab keeps its color on light bars. */
html body nav.meetups-nav166:not(#sgdock-x) a[aria-label]:not(.sgdock-on) .dock-label165{color:#0b0f1a!important;-webkit-text-fill-color:#0b0f1a!important;opacity:1}
html body #mobile-root :is(.view-home,.view-post) nav.meetups-nav166:not(#sgdock-x) a[aria-label] .dock-label165{color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1}
html body #mobile-root :is(.view-home,.view-post) nav.meetups-nav166:not(#sgdock-x) a[aria-label]:not(.sgdock-on) .dock-label165{opacity:.82}

/* Stories tab: no back arrow (space kept so the logo stays centered). */
html body #mobile-root .view-home .app-header .icon-button[data-action="back"]{visibility:hidden!important;pointer-events:none!important}

/* Meetups: same yellow-orange as the app menu. */
html body nav.meetups-nav166:not(#sgdock-x) a[aria-label="MEETUPS"]{--nav-color:#f59a00!important}

/* Geometry: even padding so the highlight and icons sit dead-center. */
html body nav.meetups-nav166:not(#sgdock-x){padding:4px!important;height:66px!important;box-sizing:border-box!important}
html body nav.meetups-nav166:not(#sgdock-x) a[aria-label]{height:56px!important;padding:0!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:1px!important}
html body nav.meetups-nav166:not(#sgdock-x) a[aria-label] .dock-label165{margin:0!important;line-height:16px!important;max-height:18px;overflow:hidden}

/* Small state (after scrolling down): thinner, icons centered, nearly transparent surface. */
html.dock-compact165 body nav.meetups-nav166:not(#sgdock-x){height:44px!important;padding:3px!important;background:rgba(255,255,255,.16)!important;border-color:rgba(255,255,255,.4)!important;box-shadow:0 8px 20px -12px rgba(10,20,55,.3)!important;-webkit-backdrop-filter:blur(10px) saturate(1.4)!important;backdrop-filter:blur(10px) saturate(1.4)!important}
html.dock-compact165 body #mobile-root :is(.view-home,.view-post) nav.meetups-nav166:not(#sgdock-x){background:rgba(15,21,35,.22)!important;border-color:rgba(255,255,255,.08)!important;box-shadow:0 8px 20px -12px rgba(0,0,0,.5)!important}
html.dock-compact165 body nav.meetups-nav166:not(#sgdock-x) a[aria-label]{height:36px!important;gap:0!important}
html.dock-compact165 body nav.meetups-nav166:not(#sgdock-x) a[aria-label] .dock-icon165{height:22px!important;margin:0!important}
html.dock-compact165 body nav.meetups-nav166:not(#sgdock-x) a[aria-label] .dock-label165{max-height:0!important;line-height:0!important}

/* Stories (dark): selected icon in white with a neon glow in its color, richer highlight. */
html body #mobile-root :is(.view-home,.view-post) nav.meetups-nav166:not(#sgdock-x) a.sgdock-on .dock-icon165{color:#fff!important}
html body #mobile-root :is(.view-home,.view-post) nav.meetups-nav166:not(#sgdock-x) a.sgdock-on .dock-icon165 svg{stroke:#fff!important;filter:drop-shadow(0 0 4px color-mix(in srgb,var(--nav-color,#a855f7) 90%,#fff)) drop-shadow(0 0 12px color-mix(in srgb,var(--nav-color,#a855f7) 85%,transparent))!important}
html body #mobile-root :is(.view-home,.view-post) nav.meetups-nav166:not(#sgdock-x) .sgdock-ind{background:color-mix(in srgb,var(--c,#a855f7) 42%,transparent)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c,#a855f7) 70%,transparent),0 0 18px -4px color-mix(in srgb,var(--c,#a855f7) 80%,transparent)!important}

/* Stories landing: shorter hero so the stories start sooner (crop from the top, keep the sailors and title). */
html body #mobile-root .view-home .feed-hero{aspect-ratio:963/1180!important;height:auto!important}
html body #mobile-root .view-home .feed-hero>img{object-position:50% 72%!important}

/* v1.7.1 · Long pill shape with slanted dividers between tabs (the user's preferred look, 2026-11-14). Icon and label sizes unchanged. */
html body nav.meetups-nav166:not(#sgdock-x){--dock-width:min(600px,94vw)!important}
html body nav.meetups-nav166:not(#sgdock-x) a{position:relative}
html body nav.meetups-nav166:not(#sgdock-x) a~a::before{content:"";position:absolute;left:-1px;top:16%;height:68%;width:1.5px;border-radius:2px;background:rgba(31,111,178,.6);transform:rotate(14deg);pointer-events:none;z-index:0}
html body #mobile-root :is(.view-home,.view-post) nav.meetups-nav166:not(#sgdock-x) a~a::before{background:rgba(255,255,255,.32)}
/* v1.7.2 · Active MEETUPS label in black (the orange was hard to read); the sun icon stays orange */
html body nav.meetups-nav166:not(#sgdock-x) a.sgdock-on[href$="/meetups/"] .dock-label165{color:#0a1437!important}
/* v1.7.3 · Splash screen: icon lines as thick as everywhere else (2px, were 1.7px) */
html body .mobile-shell:is(.view-arrival,.view-discovery) nav.meetups-nav166:not(#sgdock-x) .dock-icon165 svg{stroke-width:2px!important}
/* Splash screen: the artwork already has the SAILORGAY logo painted in, so hide the overlaid copy (the button stays tappable) */
html body .mobile-shell.view-arrival .app-header .brand-home .app-logo{opacity:0!important}
/* v1.7.4 · All home-app screens (splash, The Sailors, Stories…): icons the same size and line thickness as Shop/Meetups (28px, 2px) */
html body .mobile-shell nav.meetups-nav166:not(#sgdock-x) .dock-icon165 svg{height:28px!important;width:28px!important;max-height:none!important;stroke-width:2px!important}
/* v1.7.5 · MEET THE SAILORS list: no back arrow top left (profiles keep theirs) */
html body .mobile-shell.view-crew .app-header [data-action="back"]{visibility:hidden!important;pointer-events:none!important}
/* v1.7.6 · Selected highlight follows the slanted dividers: same 14deg slant, 6px clear of each divider, light + dark + small bar. */
html body nav.meetups-nav166:not(#sgdock-x) .sgdock-ind{--g:6px;width:calc(var(--w,0px) - 2*var(--g))!important;transform:translateX(calc(var(--x,0px) + var(--g))) skewX(-14deg)!important;border-radius:14px!important}
