/* The dock for velocityrefl.com, ported from the CRC / MSD dock (clients/metropolitan-medical/website/crc-redesign-2026-09/site/css/dock.css,
   MSD DESIGN.md "The dock"). One capsule bottom right with the accessibility and chat buttons. Phones: past the first screen it opens leftwards
   around a Book / call row, everything on one line. Desktop: the chat label folds away past the first screen and Book stays in the header.
   The dock lives INSIDE .vhome so it reads the page's own themed tokens (--text, --surface, --line, --accent, --f-*): the capsule, the panel and
   the chat window read right in the day and the night theme. Inlined into chrome/head.html by apply.py; scripts: dock.js, a11y.js. */
:root{--vd-m:10px;--vd-p:6px;--vd-b:44px;--vd-util:calc(var(--vd-b)*2 + var(--vd-p)*2);--vd-t:.4s}
.vd-dock,.vd-bar{--vd-e:cubic-bezier(.2,0,0,1);--vd-ei:cubic-bezier(.3,0,1,1);--vd-ground:#0a2540;--vd-ink:#fff;--vd-hair:rgba(255,255,255,.2);--vd-rim:rgba(169,186,210,.6);--vd-shadow:rgba(5,15,28,.34);--vd-disc:#0d5baa;--vd-halo:#42b5d6;--vd-focus:#5cc4e8}
.vhome[data-theme="dark"] :is(.vd-dock,.vd-bar){--vd-ground:#0d2439;--vd-rim:rgba(92,196,232,.62);--vd-shadow:rgba(0,0,0,.6);--vd-disc:#1a76c7}
.vd-dock{position:fixed;right:var(--vd-m);bottom:calc(var(--vd-m) + env(safe-area-inset-bottom,0px));z-index:9981;pointer-events:none;animation:vd-in var(--vd-t) var(--vd-e) .25s backwards}
@keyframes vd-in{from{opacity:0;transform:translateY(20px)}}
/* the capsule; the rim and the shadow are drop-shadows so they follow the phone's clip */
.vd-dock__ground{position:absolute;inset:0;filter:drop-shadow(0 0 .7px var(--vd-rim)) drop-shadow(0 10px 20px var(--vd-shadow))}
.vd-dock__ground::before{content:"";position:absolute;inset:0;border-radius:999px;background:var(--vd-ground)}
.vd-dock__row{position:relative;display:flex;align-items:center;width:max-content;margin-left:auto;padding:var(--vd-p);pointer-events:auto}
.vd-dock__rule{flex:none;width:1px;height:24px;margin:0 6px;background:var(--vd-hair)}
.vd-dock__chat{display:flex;align-items:center;height:var(--vd-b);padding:0;border:0;border-radius:999px;background:none;color:var(--vd-ink);font:500 15px/1 var(--f-body);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.vd-dock__disc{position:relative;flex:none;display:grid;place-items:center;width:var(--vd-b);height:var(--vd-b);border-radius:50%;background:var(--vd-disc);color:#fff;transition:transform .24s var(--vd-e)}
.vd-dock__disc svg{grid-area:1/1;width:26px;height:26px;transition:transform .2s var(--vd-e),opacity .2s var(--vd-e)}
.vd-dock__dots{fill:var(--vd-disc)}
.vd-dock__disc .vd-dock__x{width:20px;height:20px;opacity:0;transform:rotate(-45deg) scale(.8)}
html.vd-chat-open .vd-dock__ic{opacity:0;transform:scale(.8)}
html.vd-chat-open .vd-dock__x{opacity:1;transform:none}
.vd-dock__chat:active .vd-dock__disc,.vd-a11y__btn:active svg{transform:scale(.97);transition-duration:.12s}
@media(hover:hover){.vd-dock__chat:hover .vd-dock__ic{transform:translateY(-2px)}.vd-a11y__btn:hover{background:rgba(255,255,255,.12)}}
.vhome .vd-dock__chat:focus-visible,.vhome .vd-a11y__btn:focus-visible,.vhome .vd-cta:focus-visible{outline:2px solid var(--vd-focus);outline-offset:2px}
/* the page's own focus rule rounds every button to 2px; the dock keeps its shapes */
.vhome .vd-dock__chat:focus-visible,.vhome .vd-cta:focus-visible,.vhome .vd-a11y__reset:focus-visible{border-radius:999px}
.vhome .vd-a11y__btn:focus-visible,.vhome .vd-a11y__x:focus-visible{border-radius:50%}
.vhome .vd-a11y__opt:focus-visible{border-radius:8px}
/* the halo leaves the disc twice and rests: under the 5 s WCAG 2.2.2 allows without a pause control */
.vd-dock__disc::after{content:"";position:absolute;inset:0;border-radius:50%;box-shadow:0 0 0 2px var(--vd-halo);opacity:0;pointer-events:none;animation:vd-halo 2.4s var(--vd-e) .8s 2}
@keyframes vd-halo{from{opacity:.5;transform:scale(1)}to{opacity:0;transform:scale(1.5)}}
/* first tap before the widget has loaded */
.vd-dock__chat.is-busy .vd-dock__disc::before{content:"";position:absolute;inset:3px;border:2px solid transparent;border-top-color:currentColor;border-radius:50%;animation:vd-spin .8s linear infinite}
@keyframes vd-spin{to{transform:rotate(360deg)}}
/* the phone menu covers the dock (js/dock.js sets vd-menu while the burger drawer is open) */
html.vd-menu .vd-dock,html.vd-menu .vd-bar{visibility:hidden}
/* the booking row: phones only, once the first screen is passed. Book and call, 44 px tall like every other target */
.vd-bar{display:none}
@media(max-width:820px){
:root{--vd-t:.32s}
html.vd-has .vhome{padding-bottom:84px}
/* the header's Book button ran to the screen edge (and past it at 320) and the same action is now in the dock: once the row shows it steps out */
html.vd-on .vhome .nav-in>.btn{display:none}
.vd-dock{left:var(--vd-m);transition:transform .224s var(--vd-ei),visibility 0s}
/* the capsule opens from the chat pair; a clip, not a width, so nothing shifts while the page scrolls */
.vd-dock__ground::before{clip-path:inset(0 0 0 calc(100% - var(--vd-util)) round 999px);transition:clip-path .224s var(--vd-ei)}
html.vd-on:not(.vd-menu) .vd-dock__ground::before{clip-path:inset(0 round 999px);transition:clip-path .32s var(--vd-e)}
.vd-dock__rule{display:none}
.vd-dock__row::before{content:"";position:absolute;left:-1px;top:16px;width:1px;height:24px;background:var(--vd-hair);opacity:0;transition:opacity .2s var(--vd-e)}
html.vd-on:not(.vd-menu) .vd-dock__row::before{opacity:1}
.vd-dock__lbl{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html.vd-chat-open .vd-dock{transform:translateY(calc(100% + var(--vd-m) + 8px));visibility:hidden;transition:transform .224s var(--vd-ei),visibility 0s .224s}
.vd-bar{position:fixed;left:calc(var(--vd-m) + var(--vd-p));right:calc(var(--vd-m) + var(--vd-util) + 2px);bottom:calc(var(--vd-m) + var(--vd-p) + env(safe-area-inset-bottom,0px));z-index:9982;display:flex;transform:translateY(150%);visibility:hidden;transition:transform .224s var(--vd-ei),visibility 0s .224s}
html.vd-on .vd-bar{transform:none;visibility:visible;transition:transform .32s var(--vd-e)}
html.vd-menu .vd-bar,html.vd-chat-open .vd-bar{transform:translateY(150%);visibility:hidden}
.vd-cta{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;height:var(--vd-b);border-radius:999px;font:500 15px/1 var(--f-body);text-decoration:none;opacity:0;transition:opacity .15s var(--vd-ei);touch-action:manipulation;-webkit-tap-highlight-color:transparent}
html.vd-on .vd-cta{opacity:1;transition:opacity .256s var(--vd-e)}
html.vd-on .vd-cta-call{transition-delay:.05s}
.vd-cta:active{transform:scale(.97)}
.vd-cta-book{flex:1;min-width:0;margin-right:4px;padding:0 6px;background:var(--vd-disc);color:#fff;white-space:nowrap}
.vd-cta-call{flex:none;width:var(--vd-b);color:var(--vd-ink)}
.vd-cta-lbl{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.vd-cta-ic{display:grid;flex:none;width:18px;height:18px}.vd-cta-call .vd-cta-ic{width:20px;height:20px}
.vd-cta svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
}
@media(min-width:821px){
.vd-dock{right:20px;bottom:20px}
.vd-dock__lbl{display:grid;grid-template-columns:1fr;transition:grid-template-columns .36s var(--vd-e),opacity .25s var(--vd-e)}
.vd-dock__lbl>span{min-width:0;overflow:hidden}
.vd-dock__lbl b{display:block;padding:0 12px 0 4px;font-weight:500;white-space:nowrap}
html.vd-on .vd-dock__lbl{grid-template-columns:0fr;opacity:0;transition:grid-template-columns .25s var(--vd-ei),opacity .15s var(--vd-ei)}
html.vd-on .vd-dock__chat:is(:hover,:focus-visible) .vd-dock__lbl,html.vd-chat-open.vd-chat-open .vd-dock__lbl{grid-template-columns:1fr;opacity:1;transition:grid-template-columns .36s var(--vd-e),opacity .25s var(--vd-e)}
}
@media(prefers-reduced-motion:reduce){.vd-dock,.vd-dock__disc::after,.vd-dock__disc::before,.vd-a11y__panel{animation:none}.vd-dock,.vd-dock *,.vd-dock *::before,.vd-bar,.vd-bar *{transition:none!important}.vd-dock__chat.is-busy .vd-dock__disc{opacity:.6}}
@media(forced-colors:active){.vd-dock__ground::before{outline:1px solid CanvasText}.vd-dock__disc,.vd-cta-book{outline:1px solid ButtonText}}
@media print{.vd-dock,.vd-bar{display:none}}

/* The chat window in Velocity's colours and faces (outer rules beat the widget's own :host block); shapes: SKIN in dock.js. The widget host stays
   hidden until the skin is in, so the default look never flashes. Every rule starts with html.vd-has, which only a running dock sets: a page that
   still has the stock bubble (older plugin, half-finished deploy) keeps it exactly as it was. */
/* the greeting's tail points at the chat button, which sits at the right of the dock (GHL places it from its own left-side setting) */
html.vd-has chat-widget{--chat-widget-prompt-arrow-left:unset;--chat-widget-prompt-arrow-right:18px}
html.vd-has chat-widget{--chat-widget-font-family:"Plus Jakarta Sans",system-ui,sans-serif;--ion-font-family:"Plus Jakarta Sans",system-ui,sans-serif;--chat-widget-bubble-color:#0a2540;--chat-widget-primary-color:#0d5baa;--chat-widget-primary-solid-color:#0d5baa;--chat-widget-active-color:#0d5baa;--chat-widget-button-color:#0a2540;--ion-color-primary:#0d5baa;--color:#0d5baa;--chat-widget-header-color:#0d5baa;--chat-widget-header-darken-color:#0a2540;--chat-widget-avatar-border-color:#a9bad2;--chat-widget-received-message-color:#eef3fb;--chat-widget-received-message-text-color:#0a2540;--chat-widget-sender-message-color:#0d5baa;--chat-widget-welcome-message-text-color:#0a2540;--chat-widget-system-message-text-color:#0a2540}
html.vd-has chat-widget:not(.vd-ready),html.vd-a11y-open:not(.vd-chat-open) chat-widget{visibility:hidden}

/* Accessibility preferences (a11y.js): the button lives in the dock, the panel opens above it. The panel wears the page theme. */
.vd-a11y{flex:none}
.vd-a11y__btn{display:grid;place-items:center;width:var(--vd-b);height:var(--vd-b);padding:0;border:0;border-radius:50%;background:none;color:var(--vd-ink);cursor:pointer;touch-action:manipulation;transition:background-color .18s var(--vd-e);-webkit-tap-highlight-color:transparent}
.vd-a11y__btn svg{width:25px;height:25px;transition:transform .24s var(--vd-e)}
.vd-a11y__panel{position:absolute;right:0;bottom:calc(100% + var(--vd-p) + 10px);width:min(300px,calc(100vw - 20px));padding:18px;border-radius:12px;background:var(--surface);color:var(--text);box-shadow:0 0 0 1px var(--line),0 24px 50px var(--vd-shadow);font:400 14px/1.4 var(--f-body);animation:vd-pop .22s var(--vd-e)}
@keyframes vd-pop{from{opacity:0;transform:translateY(8px)}}
.vd-a11y__panel[hidden]{display:none}
.vhome .vd-a11y__panel :is(button,a):focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.vd-a11y__t{margin:0 44px 12px 0;font:400 14px/1.3 var(--f-display);letter-spacing:.02em;color:var(--text)}
.vd-a11y__opts{display:flex;flex-direction:column;gap:6px}
.vd-a11y__opt{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:0 14px;border:0;border-radius:8px;background:var(--page-2);box-shadow:inset 0 0 0 1px var(--line);font:500 14.5px/1.2 var(--f-body);color:var(--text);text-align:left;cursor:pointer}
.vd-a11y__opt i{display:grid;place-items:center;min-width:22px;height:22px;border-radius:11px;box-shadow:inset 0 0 0 2px var(--text-3);font:700 10px/1 var(--f-mono);font-style:normal;color:#fff}
.vd-a11y__opt[aria-pressed="true"]{background:#0d5baa;box-shadow:none;color:#fff}
.vd-a11y__opt[aria-pressed="true"] i{background:#fff;box-shadow:none;color:#0d5baa}
.vd-a11y__opt[aria-pressed="true"] i:empty::after{content:"";width:8px;height:4px;margin-top:-2px;border:solid #0d5baa;border-width:0 0 2px 2px;transform:rotate(-45deg)}
.vd-a11y__foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
.vd-a11y__reset{min-height:44px;padding:0 16px;border:0;border-radius:999px;background:transparent;box-shadow:inset 0 0 0 1.5px var(--line);font:500 13px/1 var(--f-body);color:var(--text);cursor:pointer}
.vd-a11y__foot a{display:inline-flex;align-items:center;min-height:44px;font:500 13px/1.3 var(--f-body);color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.vd-a11y__help{margin:6px 0 0;font-size:12.5px;line-height:1.5;color:var(--text-2)}.vd-a11y__help a{color:var(--accent);white-space:nowrap;text-decoration:underline;text-underline-offset:3px}
.vd-a11y__x{position:absolute;top:4px;right:4px;width:44px;height:44px;border:0;border-radius:50%;background:transparent;font:400 26px/1 var(--f-body);color:var(--text-2);cursor:pointer}

/* The choices. Text blocks grow, layouts keep their width. The page scripts read the same switch (apply.py patches the three
   reduced-motion tests in the shared tail), so "Stop animations" stops the hero parallax, the image drift, the stack-card recede, the band
   parallax, the reveals and the count-ups, plus every CSS animation and transition. The scroll handler still follows the visitor's own
   scrolling (progress line, header state). */
html.a11y-text .vhome :is(main,footer,.closing) :is(p,li,dd,dt,td,th,figcaption,label,summary,blockquote,.eyebrow){zoom:1.14}
html.a11y-text2 .vhome :is(main,footer,.closing) :is(p,li,dd,dt,td,th,figcaption,label,summary,blockquote,.eyebrow){zoom:1.28}
html.a11y-text .vhome :is(main,footer,.closing) :is(p,li,dd,td,label,summary) :is(p,li,dd,td,label,summary,.eyebrow){zoom:1}
/* contrast darkens the page tokens in either theme instead of forcing text black, so white type on the dark sections and on photos stays white */
html.a11y-contrast .vhome[data-theme="light"]{--text:#000;--text-2:#14253b;--text-3:#22344d;--accent:#084a85;--line:#66768c}
html.a11y-contrast .vhome[data-theme="dark"]{--text:#fff;--text-2:#f2f6fc;--text-3:#dde7f5;--accent:#a5e2f6;--line:rgba(225,235,248,.62)}
html.a11y-contrast .vhome .btn-primary{background:#0a4f95;background-image:none;color:#fff}
html.a11y-links .vhome a:not(.btn):not(.nav-logo):not(.vd-cta){text-decoration:underline!important;text-underline-offset:3px!important}
html.a11y-still{scroll-behavior:auto!important}
html.a11y-still *,html.a11y-still *::before,html.a11y-still *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
html.a11y-still .vhome.vh-anim [data-reveal]{opacity:1!important}
html.a11y-still .vhome .ph-plane{transform:translate3d(-50%,0,0)!important}
html.a11y-still .vhome .ph-in{transform:none!important;opacity:1!important}
html.a11y-still .vhome .ph-cue{display:none}
html.a11y-still .vhome .vs-step{opacity:1}
html.a11y-space .vhome :is(main,footer,.closing) :is(p,li,dd){line-height:1.95!important;letter-spacing:.02em!important;word-spacing:.1em!important}
