/* Navigation in liquid glass.
   The top header (every width) is a floating glass capsule that takes the colour of what is behind it: clear
   frosted glass over the light pages, dark navy glass over the navy hero at the top of the home page. The
   header keeps its structure; a lens of glass follows the pointer and keyboard focus between its items, with a
   soft spotlight from the top edge. The phone dock (up to 768px) is always dark glass: a bubble flows to the
   current destination, a short neon light on the top edge follows it, the tapped icon bounces, and "מכירה"
   floats above the bar.
   Brand colours only: navy #0c2d62, turquoise #0bd3b5 (navy text on it, never white), sky #7cc8ff for light. */
:root{
 --gn-tq:#0bd3b5;--gn-sky:#7cc8ff;--gn-ink:#f7f9fc;
 --gn-glass:rgba(12,45,98,.86);
 --gn-edge:rgba(11,211,181,.30);
 --gn-shine:linear-gradient(180deg,rgba(255,255,255,.13),rgba(255,255,255,.02) 42%,rgba(255,255,255,0) 60%);
 --gn-ease:cubic-bezier(.32,.72,0,1);
 --gn-dock:0px;
}

/* ---- Header: the bar itself is clear; a glass capsule sits inside it. Light glass by default. */
body>header{background:transparent!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;box-shadow:none!important;isolation:isolate}
/* Above and around the capsule the page fades out, so nothing reads through the thin gap at the top. */
body:not(.is-home)>header{background:linear-gradient(180deg,#fff 0,rgba(255,255,255,.92) 30%,rgba(255,255,255,0))!important}
body>header::before{content:"";position:absolute;z-index:-2;pointer-events:none;
 inset:6px max(6px,calc((100% - var(--wrap))/2 + var(--gutter) - 18px));border-radius:24px;
 background:linear-gradient(180deg,rgba(255,255,255,.86),rgba(255,255,255,.70));
 -webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%);
 border:1px solid rgba(12,45,98,.07);
 box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 rgba(11,211,181,.22),0 12px 32px -16px rgba(12,45,98,.30),0 1px 3px rgba(12,45,98,.06);
 transition:background-color .35s ease,border-color .35s ease,box-shadow .35s ease}
@media(max-width:620px){body>header::before{inset:5px 6px;border-radius:22px}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){body>header::before{background:#fff}}
@media(prefers-reduced-transparency:reduce){body>header::before{background:#fff;-webkit-backdrop-filter:none;backdrop-filter:none}}
body>header .home-nav a{background:transparent!important;border-bottom-color:transparent!important;position:relative}
body>header :is(.menu-toggle,.search-toggle,#inbox-btn,#account,.home-nav a):focus-visible{outline:2px solid var(--gn-tq)!important;outline-offset:2px}
/* The header is chrome, not text: a drag or double-click never paints selection over its links. */
body>header :is(.logo,.home-nav,#account,.header-user-area,.menu-toggle){-webkit-user-select:none;user-select:none}

/* Over the navy hero at the top of the home page the capsule turns to dark glass (the hero already sets the
   header's words, icons and logo to their white versions). */
body.is-home:not(.search-docked)>header:not(.compact)::before{
 background:var(--gn-shine),rgba(12,45,98,.55);border-color:var(--gn-edge);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 14px 34px -14px rgba(4,16,42,.55)}
@media(prefers-reduced-transparency:reduce){body.is-home:not(.search-docked)>header:not(.compact)::before{background:#0c2d62}}
/* On the dark glass the account button's hover stays dark too (the light hover left white words on light grey). */
body.is-home:not(.search-docked)>header:not(.compact) #account:hover{background:rgba(255,255,255,.14)!important;color:#fff!important}

/* The lens: a drop of glass that glides to the item under the pointer or focus. */
.gn-lens{position:absolute;left:0;top:0;z-index:-1;pointer-events:none;width:0;height:0;border-radius:999px;opacity:0;
 background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(220,246,241,.75));
 box-shadow:inset 0 0 0 1px rgba(11,211,181,.45),inset 0 1px 0 #fff,0 4px 14px -6px rgba(12,45,98,.30),0 0 16px -6px rgba(11,211,181,.55);
 transition:transform .42s var(--gn-ease),width .42s var(--gn-ease),height .42s var(--gn-ease),opacity .2s ease}
.gn-lens.on{opacity:1}
body.is-home:not(.search-docked)>header:not(.compact) .gn-lens{background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,.05));
 box-shadow:inset 0 0 0 1px rgba(11,211,181,.40),inset 0 1px 0 rgba(255,255,255,.22),0 0 18px -4px rgba(11,211,181,.45)}
/* The spotlight: a soft cone of light from the capsule's top edge onto the item. */
.gn-lens::before{content:"";position:absolute;left:50%;bottom:50%;width:140%;height:220%;transform:translateX(-50%);pointer-events:none;
 background:radial-gradient(50% 60% at 50% 0%,rgba(124,200,255,.26),rgba(11,211,181,.10) 55%,transparent 80%);
 -webkit-mask:linear-gradient(180deg,#000 30%,transparent);mask:linear-gradient(180deg,#000 30%,transparent);opacity:0;transition:opacity .3s ease}
.gn-lens.lit::before{opacity:1}
.gn-lens.stretch{animation:gn-stretch .46s var(--gn-ease)}
@keyframes gn-stretch{0%{scale:1}35%{scale:1.08 .9}70%{scale:.98 1.03}100%{scale:1}}

/* ---- Phone dock. */
.gn-dock{display:none}
@media(max-width:768px){
 :root{--gn-dock:calc(80px + env(safe-area-inset-bottom))}
 /* The dock steps aside where something else owns the bottom of the screen: sign-in, the bid bar, the cookie
    question, or the keyboard. Everything that floats above it then comes back down with it. */
 body:is(.auth-mode,.bid-bar-on),body:has(#cookie-banner:not([hidden])),body:has(#app .auth-card),
 body:has(#app :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),textarea,select):focus){--gn-dock:0px}

 .gn-dock{display:grid;grid-template-columns:repeat(5,1fr);align-items:end;position:fixed;z-index:235;
  left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom));max-width:440px;margin-inline:auto;height:62px;padding:0 4px;border-radius:24px;
  background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,0) 40%),rgba(12,45,98,.92);-webkit-backdrop-filter:blur(20px) saturate(170%);backdrop-filter:blur(20px) saturate(170%);
  border:1px solid var(--gn-edge);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 18px 40px -16px rgba(4,16,42,.6),0 3px 10px -4px rgba(4,16,42,.35);
  transition:transform .32s var(--gn-ease),opacity .22s ease,visibility 0s;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}
 /* Hidden means gone for the keyboard and screen readers too (visibility waits for the slide to finish). */
 body:is(.auth-mode,.bid-bar-on) .gn-dock,body:has(#cookie-banner:not([hidden])) .gn-dock,body:has(#app .auth-card) .gn-dock,
 body:has(#app :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),textarea,select):focus) .gn-dock{transform:translateY(calc(100% + 24px + env(safe-area-inset-bottom)));opacity:0;pointer-events:none;visibility:hidden;transition:transform .32s var(--gn-ease),opacity .22s ease,visibility 0s linear .32s}
 body.nicole-open .gn-dock{opacity:0;pointer-events:none;visibility:hidden}

 .gn-item{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:62px;
  color:rgba(247,249,252,.72);text-decoration:none;font-size:11px;font-weight:600;line-height:1;transition:color .25s ease;touch-action:manipulation}
 .gn-item[aria-current=page]{color:var(--gn-ink)}
 .gn-item:focus-visible{outline:2px solid var(--gn-tq);outline-offset:-6px;border-radius:18px}
 .gn-ic{display:grid;place-items:center;width:28px;height:28px}
 .gn-item:active .gn-ic{scale:.9;transition:scale .1s ease}
 .gn-label{white-space:nowrap}

 /* Bounce: the tapped icon lifts and settles. */
 .gn-ic.pop{animation:gn-pop .5s var(--gn-ease)}
 @keyframes gn-pop{0%{transform:none}30%{transform:translateY(-6px) scale(1.14)}60%{transform:translateY(1px) scale(.97)}100%{transform:none}}

 /* The bubble: liquid glass behind the current destination; it stretches as it flows. */
 .gn-bubble{position:absolute;z-index:0;top:6px;left:0;height:50px;border-radius:18px;pointer-events:none;opacity:0;
  background:linear-gradient(180deg,rgba(255,255,255,.17),rgba(255,255,255,.05));
  box-shadow:inset 0 0 0 1px rgba(11,211,181,.42),inset 0 1px 0 rgba(255,255,255,.24),0 0 22px -6px rgba(11,211,181,.55);
  transition:transform .5s var(--gn-ease),opacity .25s ease}
 .gn-bubble.on{opacity:1}
 .gn-bubble.stretch{animation:gn-flow .5s var(--gn-ease)}
 @keyframes gn-flow{0%{scale:1}40%{scale:1.22 .86}75%{scale:.97 1.04}100%{scale:1}}

 /* Neon: a short light on the top edge that travels with the bubble. */
 .gn-glow{position:absolute;z-index:0;top:-1px;left:0;width:56px;height:2px;border-radius:2px;pointer-events:none;opacity:0;
  background:linear-gradient(90deg,transparent,var(--gn-tq) 30%,#bff7ec 50%,var(--gn-tq) 70%,transparent);
  box-shadow:0 0 10px 1px rgba(11,211,181,.7),0 4px 16px rgba(11,211,181,.35);transition:transform .5s var(--gn-ease),opacity .25s ease}
 .gn-glow.on{opacity:1}

 /* "מכירה" floats above the bar, held to it by a ring of the same glass. */
 .gn-fab .gn-ic{width:52px;height:52px;margin-top:-30px;border-radius:50%;color:#0c2d62;
  background:radial-gradient(120% 90% at 50% 15%,#5ff0d6,var(--gn-tq) 55%,#08b89e);
  box-shadow:0 0 0 5px rgba(12,45,98,.55),0 0 0 6px var(--gn-edge),0 10px 22px -6px rgba(11,211,181,.6),inset 0 1px 0 rgba(255,255,255,.5)}
 .gn-fab .gn-ic svg{stroke-width:2.4}
 .gn-fab[aria-current=page] .gn-ic{box-shadow:0 0 0 5px rgba(12,45,98,.55),0 0 0 6px rgba(11,211,181,.8),0 0 26px 2px rgba(11,211,181,.55),inset 0 1px 0 rgba(255,255,255,.5)}

 /* The phone header no longer carries what the dock now holds. */
 body>header .header-center>.primary,body>header #account,body>header #signup-btn{display:none!important}

 /* Things that float above the bottom edge sit above the dock. */
 html body :is(.a11y-button,.nicole-launch){bottom:calc(var(--gn-dock) + var(--cookie-banner-h,0px) + 14px)!important}
 html body.has-tray :is(.a11y-button,.nicole-launch){bottom:calc(var(--gn-dock) + var(--tray-h,64px) + 22px)!important}
 html body .nicole-tag{bottom:calc(var(--gn-dock) + 18px)!important}
 html body .compare-tray{bottom:calc(var(--gn-dock) + 12px);transition:bottom .32s var(--gn-ease)}
 html body #toast{bottom:calc(var(--gn-dock) + 20px)}
 #app{padding-bottom:calc(84px + var(--gn-dock))}
 /* Scrolling to a control (focus, Tab, a link to an anchor) keeps it above the dock and the floating buttons. */
 html{scroll-padding-bottom:calc(var(--gn-dock) + 76px)}
 html body .site-footer{padding-bottom:calc(132px + var(--gn-dock))!important}
}
@media(max-width:768px) and (prefers-reduced-transparency:reduce){.gn-dock{background:#0c2d62;-webkit-backdrop-filter:none;backdrop-filter:none}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.gn-dock{background:var(--gn-shine),#0c2d62}}

/* ---- Computers: "רוצה להציע מוצר למכירה?" - a turquoise + above the accessibility button; its line opens to the
   right on hover or focus (clipped open, so nothing around it moves). */
.gn-sell{position:fixed;z-index:251;left:18px;bottom:calc(var(--cookie-banner-h,0px) + 92px);display:flex;align-items:center;height:60px;
 padding-inline-start:22px;border-radius:30px;text-decoration:none;color:#0c2d62;font-weight:700;font-size:var(--fs-b,16px);white-space:nowrap;
 background:radial-gradient(120% 120% at 20% 10%,#5ff0d6,var(--gn-tq) 55%,#08b89e);
 box-shadow:0 0 0 1px rgba(255,255,255,.35) inset,0 10px 24px -8px rgba(11,211,181,.65),0 2px 6px -2px rgba(4,16,42,.3);
 clip-path:inset(0 calc(100% - 60px) 0 0 round 30px);transition:clip-path .45s var(--gn-ease),box-shadow .3s ease}
.gn-sell[hidden]{display:none}
.gn-sell-label{opacity:0;transform:translateX(12px);transition:opacity .25s ease,transform .45s var(--gn-ease);padding-inline-end:10px}
.gn-sell-ic{display:grid;place-items:center;width:60px;height:60px;flex:none}
.gn-sell-ic svg{stroke-width:2.4;transition:transform .45s var(--gn-ease)}
.gn-sell:is(:hover,:focus-visible){clip-path:inset(0 0 0 0 round 30px)}
.gn-sell:is(:hover,:focus-visible) .gn-sell-label{opacity:1;transform:none}
.gn-sell:is(:hover,:focus-visible) .gn-sell-ic svg{transform:rotate(90deg)}
.gn-sell:focus-visible{outline:none;box-shadow:inset 0 0 0 3px #0c2d62,inset 0 0 0 5px #fff,0 10px 24px -8px rgba(11,211,181,.65)}
body.bid-bar-on .gn-sell{bottom:168px}
body.has-tray .gn-sell{bottom:158px}
body.auth-mode .gn-sell{display:none}
@media(max-width:768px){.gn-sell{display:none!important}
 /* Nicole's bubble leaves with her button while the page scrolls down. */
 body.floaters-away .nicole-tag{opacity:0;pointer-events:none}}

@media(prefers-reduced-motion:reduce){
 .gn-sell,.gn-sell-label,.gn-sell-ic svg{transition:opacity .15s ease!important}
 .gn-lens,.gn-bubble,.gn-glow,.gn-dock{transition:opacity .15s ease!important}
 .gn-lens.stretch,.gn-bubble.stretch,.gn-ic.pop{animation:none!important}
}
html.a11y-motion :is(.gn-lens,.gn-bubble,.gn-ic){animation:none!important}

/* One navigation on every page (audit 9.11): from 1200px the header always carries "מכירות", "איך זה עובד" and
   "עזרה" beside the logo, plus "מכירת מוצר" where the sell button is not shown (the home page). Below 1200px the
   same places are in the menu (and on phones in the dock). The links never wrap or push the header to two rows. */
@media(min-width:1200px){
 body>header .home-nav{display:flex!important;flex-direction:row;flex-wrap:nowrap;flex:none;gap:2px;white-space:nowrap;margin:0!important;order:-1}
 body:not(.is-home)>header .home-nav a[href="/sell"]{display:none}
 body>header .home-nav a{padding:8px 10px!important;font-size:15px}
 body>header .home-nav a[aria-current=page]{color:var(--navy)!important;font-weight:700}
}
