/* VSSGEO design team: "controls" lane, MAP APP + GEO CHAT (2026-09-28). LOAD LAST on the map page, after door/r2/rhythm.css.
   Pairs with door/r2/controls.js (adds .vgc-go to the send button for ~480 ms on press, so the launch also plays on a quick click).

   A5  NO emboss anywhere. Every control is flat: its surface, a hairline border, and the brand ring on hover/focus.
       · The phone More (⋯) and the zoom box were white glass with a blur and a two-layer "float" shadow. The tight
         1px/2px layer read as a bevel. They now wear the tool chest's surface, which is --vg-panel + hairline + one
         soft ambient shadow, so More, zoom, the chest and its tray are identical.
       · The white highlight sweep ("sheen") is removed from every button that had one: send, sign-in .go, the primary
         .go pills in the library / account / catalog / toolbox / style / tools / mapper, the report primaries and
         "Find with Vista". They keep their colour, glow and brand ring.
   A6  The chat composer controls move like the pricing ×, which turns 90° on hover:
         +     turns 90° on hover (45° while its menu is open)
         mic   a small wobble on hover. The listening state (red + pulse) is unchanged.
         send  the arrow hops and settles a little higher on hover. On press it launches out of the top and a new arrow rises in.
       The brand ring stays on all three. Area (#gbnd) is not touched.
       + and ↑ are text glyphs in Evan's markup, so the glyph is hidden (font-size:0) and redrawn as a stroke icon
       on a pseudo-element (+ on ::before, ↑ on ::after, which used to hold the sheen). They use the same strokes as the
       front door's arrow and the mic, so both composers match.
   A8  The bottom dock never lets the story legend (FEWER ▮▮▮ MORE) or the #1–#100 ladder break out of the pill.
       Evan centres #dock with left:50% + translateX(-50%), so its shrink-to-fit width was capped at HALF the map
       (viewport − left). The legend wrapped or spilled. Now the dock sizes to max-content, capped at the free map
       width (--avail − 24px), and the legends shrink (ramp 144→48px, ladder 160→96px) before anything wraps. When a
       wrap is unavoidable, the radius (21px, which is a perfect pill at one row) becomes a soft rectangle, never a lozenge.
   Tokens only; 8-pt grid. Reduced motion: no turns, hops, wobbles or launches. */


/* ══ A5 · flat map controls: one surface, one hairline, one soft shadow ═════════════════════════════════════════ */
:root{--vgc-float:0 4px 14px rgba(0,0,0,.35)}
:root[data-theme="light"]{--vgc-float:0 4px 14px rgba(0,0,0,.14)}
html:root body.door .pm-more,
html:root body.door .maplibregl-ctrl-group{
  background:var(--vg-panel)!important;border:1px solid var(--vg-rule)!important;box-shadow:var(--vgc-float)!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html:root body.door #gmapc .vg-chest,
html:root body.door #gmapc .vg-tray>button,
html:root body.door #gmapc>button{box-shadow:var(--vgc-float)!important}
/* the "on" More keeps its accent tint (parity-map.css) */
html:root body.door .pm-more:is(.on,[aria-expanded="true"]){background:color-mix(in srgb,var(--vg-accent) 16%,var(--vg-panel))!important}

/* no highlight sweeps (the sheen) on any button */
html:root body.door #auth .go::after,
html:root body.door :is(#lib,#set,#catalog,#toolbox,#stybox,#gtools,.mapper) .go::after,
html:root body.door .go:has(~ #impmsg)::after,
html:root body.door #panel .go::before,
html:root body.door :is(#panel .lx-primary,#panel .lsflow .go,#panel .likecta .go,#panel .ostats~p>.go,#lib .lsearch .go,#lib .ldet .acts .go,#avbar .av-ai)::before{
  background:none!important;animation:none!important}
/* credit packs: Evan's top-to-bottom gradient (a raised tile) -> the flat card surface */
html:root body.door #set .cpack{background-image:none}


/* ══ A6 · the chat composer: +, mic, send ═══════════════════════════════════════════════════════════════════════ */
/* + : the glyph becomes a stroke icon that turns */
html:root body.door .gbrow .gplus{font-size:0;display:grid;place-items:center;transform:none!important}   /* door.css turned the whole button 45° */
html:root body.door .gbrow .gplus::before{
  content:"";display:block;width:18px;height:18px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/18px 18px no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/18px 18px no-repeat;
  transition:transform .3s var(--vg-spring)}
html:root body.door .gbrow .gplus[aria-expanded="true"]::before{transform:rotate(45deg)}
@media (hover:hover){
  html:root body.door .gbrow .gplus:hover::before{transform:rotate(90deg)}
  html:root body.door .gbrow .gplus[aria-expanded="true"]:hover::before{transform:rotate(135deg)}
}
html:root body.door .gbrow .gplus:is(:active,.vgp-press)::before{transform:rotate(90deg) scale(.88)}

/* mic: a small wobble on hover; listening (.vg-mic-on) keeps its red + pulse only */
html:root body.door .gbrow .vg-mic svg{transform-origin:50% 70%}
@media (hover:hover){
  html:root body.door .gbrow .vg-mic:not(.vg-mic-on):hover svg{animation:vgc-wobble .6s ease-in-out both}
}
html:root body.door .gbrow .vg-mic:not(.vg-mic-on):is(:active,.vgp-press) svg{transform:scale(.9)}

/* send: ::after (was the sheen) now draws the arrow, so the arrow can move on its own */
html:root body.door .gbrow .gsend{font-size:0;overflow:hidden}
html:root body.door .gbrow .gsend::after{
  content:""!important;position:absolute;inset:0;left:0;top:0;width:auto;height:auto;margin:auto;z-index:1;pointer-events:none;
  background:currentColor!important;animation:none;transform:none;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center/17px 17px no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center/17px 17px no-repeat;
  transition:transform .35s var(--vg-spring),opacity .2s ease}
@media (hover:hover){
  html:root body.door .gbrow .gsend:hover::after{animation:vgc-hop .55s var(--vg-spring) both!important}
  html:root body.door .gbrow .gsend:hover{transform:scale(1.06)}
}
html:root body.door .gbrow .gsend:active::after{transform:translateY(-4px)}                                   /* fallback without the JS */
html:root body.door .gbrow .gsend.vgc-go::after{animation:vgc-launch .48s cubic-bezier(.3,.7,.2,1) both!important}
html:root body.door .gbrow .gsend:active{transform:scale(.94)}


/* ══ keyframes (same names and values as door/phone/controls-front.css) ══════════════════════════════════════════ */
@keyframes vgc-hop{0%{transform:none}45%{transform:translateY(-4px)}72%{transform:translateY(-1px)}100%{transform:translateY(-2px)}}
@keyframes vgc-launch{0%{transform:translateY(-2px);opacity:1}40%{transform:translateY(-150%);opacity:0}41%{transform:translateY(150%);opacity:0}100%{transform:none;opacity:1}}
@keyframes vgc-wobble{0%,100%{transform:none}25%{transform:rotate(-12deg) scale(1.08)}55%{transform:rotate(9deg) scale(1.08)}80%{transform:rotate(-4deg) scale(1.04)}}


/* ══ A8 · the bottom dock: always inside its pill, 390 → 1440 ═══════════════════════════════════════════════════
   Desktop layout only (.vgsh is the phone sheet; parity-map.css sizes that dock). */
html:root body.door.geo:not(.vgsh) #dock{width:max-content;max-width:calc(var(--avail,100vw) - 24px)!important;box-sizing:border-box}
html:root body.door.geo:not(.vgsh) #dock:not(:has(>#toolbox:not(:empty))){border-radius:21px}   /* 42px tall = a pill; two rows = a soft card */
html:root body.door.geo:not(.vgsh) #dock .drow{min-width:0;flex-wrap:wrap;justify-content:center;row-gap:4px}   /* wraps only below ~325px of dock */
html:root body.door.geo:not(.vgsh) #dock .layers{flex:none}
html:root body.door.geo:not(.vgsh) #dock .layers button{white-space:nowrap}
/* the story legend: FEWER ▮▮▮▮▮▮ MORE shrinks its ramp before anything else gives */
html:root body.door.geo:not(.vgsh) #dock .gheat{flex:1 1 136px;min-width:0;justify-content:center}   /* basis = its smallest honest size (labels + a 48px ramp) */
html:root body.door.geo:not(.vgsh) #dock .gheat>span:not(.vgs-ramp):not(.vgs-read){flex:none}
html:root body.door.geo:not(.vgsh) #dock .gheat .vgs-ramp{width:144px!important;flex:0 1 144px;min-width:48px}   /* a real width: the dock's max-content counts it */
/* the #1–#100 ladder: shrinks to 96px of blocks before it wraps under the buttons */
html:root body.door.geo.lseg:not(.vgsh) #dock>#ladder{flex:1 1 160px;min-width:0}   /* wrap is decided on the basis, so keep it small; it still grows to fill */
html:root body.door.geo:not(.vgsh) #dock #lbar{width:160px;flex:1 1 160px;min-width:96px!important}
html:root body.door.geo.lseg:not(.vgsh) #dock>.drow{margin-left:auto}
/* if it still has to wrap (a very narrow map with a report open), the legend gets its own row and the buttons centre */
html:root body.door.geo.lseg:not(.vgsh) #dock{justify-content:center}


/* ══ reduced motion ══════════════════════════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion:reduce){
  html:root body.door .gbrow .gplus::before,html:root body.door .gbrow .gplus:hover::before,html:root body.door .gbrow .gplus[aria-expanded="true"]::before{transition:none}
  html:root body.door .gbrow .gplus:hover::before{transform:none}
  html:root body.door .gbrow .gplus[aria-expanded="true"]:hover::before{transform:rotate(45deg)}
  html:root body.door .gbrow .vg-mic svg,html:root body.door .gbrow .vg-mic:hover svg{animation:none!important;transform:none!important}
  html:root body.door .gbrow .gsend::after,html:root body.door .gbrow .gsend:hover::after,html:root body.door .gbrow .gsend.vgc-go::after{animation:none!important;transform:none!important}
  html:root body.door .gbrow .gsend:hover,html:root body.door .gbrow .gsend:active{transform:none}
}
