/* A refractive dock using the same light/dark glass tokens as the site. */
html.wq-mobile-layout {
  --hdr: 0px !important;
  --wq-control-size: 48px;
  --wq-dock-top-space: calc(82px + env(safe-area-inset-top, 0px));
  --wq-dock-bottom-space: max(24px, env(safe-area-inset-bottom, 0px));
  scroll-padding-top: max(18px, var(--wq-dock-top-space));
  scroll-padding-bottom: var(--wq-dock-bottom-space);
}
html.wq-mobile-layout[data-dock-placement^="b"] {
  --wq-dock-top-space: 0px;
  --wq-dock-bottom-space: calc(96px + env(safe-area-inset-bottom, 0px));
}
body.wq-mobile-ready { padding-top: var(--wq-dock-top-space, 82px); padding-bottom: var(--wq-dock-bottom-space, 24px); }
body.wq-mobile-ready > header.top { display: none; }
body.wq-mobile-ready > main, body.wq-mobile-ready > footer { min-width: 0; }
body.wq-mobile-ready > footer { padding-bottom: 32px; scroll-margin-bottom: var(--wq-dock-bottom-space, 24px); }
body.wq-mobile-ready section { scroll-margin-top: max(18px, var(--wq-dock-top-space, 82px)); }
body.wq-mobile-ready .wf-sticky { top: max(calc(var(--wq-dock-top-space, 82px) + 8px), env(safe-area-inset-top, 0px)); }
body.wq-mobile-ready .slide { scroll-margin-top: calc(var(--wf, 46px) + max(calc(var(--wq-dock-top-space, 82px) + 8px), env(safe-area-inset-top, 0px)) + 12px); }
.wq-mobile-rail[hidden], .wq-mobile-panel[hidden], .wq-mobile-panel [hidden] { display: none !important; }


.wq-mobile-rail, .wq-mobile-panel {
  --wq-dock-active: color-mix(in srgb, var(--glass-input, var(--surface2)) 84%, var(--a1) 16%);
  color-scheme: inherit;
}
html[data-effective-theme="light"] :is(.wq-mobile-rail, .wq-mobile-panel) { color-scheme: light; }
html[data-effective-theme="dark"] :is(.wq-mobile-rail, .wq-mobile-panel) { color-scheme: dark; }
.wq-mobile-rail::before, .wq-mobile-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--glass-glow, #FFFFFF40), transparent 36%, transparent 76%, color-mix(in srgb, var(--glass-edge, #FFFFFF80) 25%, transparent)), linear-gradient(180deg, color-mix(in srgb, var(--glass-edge, #FFFFFF80) 30%, transparent), transparent 32%);
  pointer-events: none;
}

.wq-mobile-rail {
  --wq-dock-height: 58px;
  --wq-dock-width: 302px;
  --wq-dock-ease: cubic-bezier(.2, .8, .2, 1);
  position: fixed;
  z-index: 45;
  inset: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) auto auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  box-sizing: border-box;
  width: var(--wq-dock-width);
  max-width: calc(100vw - 20px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  height: var(--wq-dock-height);
  margin: 0;
  padding: 6px;
  overflow: visible;
  border: 1px solid var(--glass-line, var(--line));
  border-radius: 999px;
  background: var(--glass-control, var(--surface));
  color: var(--muted);
  color-scheme: inherit;
  box-shadow: var(--glass-shadow, 0 12px 38px #163C5414);
  -webkit-backdrop-filter: blur(var(--glass-blur, 28px)) saturate(165%);
  backdrop-filter: blur(var(--glass-blur, 28px)) saturate(165%);
  transform: none;
  transition: width 220ms var(--wq-dock-ease), height 220ms var(--wq-dock-ease), border-radius 220ms var(--wq-dock-ease), opacity 220ms var(--wq-dock-ease);
  font-family: var(--f-body, system-ui, sans-serif);
  isolation: isolate;
}
.wq-mobile-rail .wq-mobile-action {
  position: relative;
  z-index: 1;
  display: block;
  box-sizing: border-box;
  flex: 0 0 var(--wq-item-width, var(--wq-control-size));
  width: var(--wq-item-width, var(--wq-control-size));
  min-width: 0;
  height: var(--wq-item-height, var(--wq-control-size));
  margin: 0 2px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 500 15px/1 var(--f-body, system-ui, sans-serif);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: width 220ms var(--wq-dock-ease), height 220ms var(--wq-dock-ease), flex-basis 220ms var(--wq-dock-ease), margin 220ms var(--wq-dock-ease), opacity 220ms var(--wq-dock-ease), color 180ms ease, visibility 220ms;
}
.wq-dock-options { display: contents; }
.wq-mobile-rail[data-placement^="b"] { top: auto; bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
.wq-mobile-rail:is([data-placement="tl"], [data-placement="bl"]) { right: auto; left: max(16px, env(safe-area-inset-left, 0px)); transform: none; }
.wq-mobile-rail:is([data-placement="tc"], [data-placement="bc"]) { right: auto; left: 50%; transform: translateX(-50%); }
.wq-mobile-rail[data-orientation="vertical"] {
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  max-height: calc(100vh - max(16px, env(safe-area-inset-top, 0px)) - max(16px, env(safe-area-inset-bottom, 0px)));
  max-height: calc(100dvh - max(16px, env(safe-area-inset-top, 0px)) - max(16px, env(safe-area-inset-bottom, 0px)));
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 29px;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.wq-mobile-rail[data-orientation="vertical"]::-webkit-scrollbar { display: none; }
.wq-mobile-rail[data-orientation="vertical"] .wq-mobile-action {
  flex-basis: var(--wq-item-height, var(--wq-control-size));
  width: var(--wq-item-width, var(--wq-control-size));
  height: var(--wq-item-height, var(--wq-control-size));
  margin: 0;
  transition-property: width, height, opacity, color, visibility;
}
.wq-mobile-rail[data-relocating="true"],
.wq-mobile-rail[data-relocating="true"] :is(.wq-mobile-action, .wq-dock-highlight, .wq-dock-label) { transition: none !important; }
.wq-mobile-action > svg {
  position: absolute;
  top: 50%;
  left: 12px;
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
  pointer-events: none;
}
.wq-mobile-home > img {
  position: absolute;
  top: 50%;
  left: 5px;
  display: block;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
  transform: translateY(-50%);
  pointer-events: none;
}
.wq-dock-label {
  position: absolute;
  top: 50%;
  left: 40px;
  display: block;
  width: max-content;
  max-width: none;
  margin: 0;
  padding: 0;
  opacity: 0;
  color: inherit;
  font: inherit;
  letter-spacing: -.015em;
  line-height: 1.2;
  white-space: nowrap;
  transform: translateY(-50%);
  pointer-events: none;
  transition: opacity 180ms ease;
}
.wq-mobile-home > .wq-dock-label { left: 48px; }
.wq-mobile-home::after { content: ""; position: absolute; pointer-events: none; opacity: 0; transition: opacity 220ms var(--wq-dock-ease); }
.wq-mobile-rail[data-dock-expanded="true"] .wq-mobile-home > img {
  background: var(--glass-control, var(--surface));
  box-shadow: 0 0 0 3px var(--glass-control, var(--surface)), 0 0 0 4px var(--glass-line, var(--line)), 0 2px 5px #10273812;
}
.wq-mobile-rail[data-dock-expanded="true"] .wq-mobile-home > .wq-dock-label { color: var(--muted); }
.wq-mobile-rail[data-dock-expanded="true"][data-orientation="vertical"] .wq-mobile-home {
  background: var(--glass-panel, var(--surface));
  box-shadow: inset 0 1px 0 var(--glass-edge, var(--line));
}
.wq-mobile-rail[data-dock-expanded="true"][data-orientation="vertical"] .wq-mobile-home::after {
  right: 12px;
  bottom: 3px;
  left: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-separator, var(--line)) 24%, var(--glass-separator, var(--line)) 76%, transparent);
  opacity: 1;
}
@media screen and (min-width: 761px) {
  .wq-mobile-rail[data-dock-expanded="true"][data-orientation="horizontal"] .wq-mobile-home::after {
    top: 10px;
    right: 0;
    bottom: 10px;
    width: 1px;
    background: linear-gradient(transparent, var(--glass-separator, var(--line)) 25%, var(--glass-separator, var(--line)) 75%, transparent);
    opacity: 1;
  }
}
.wq-mobile-action[data-dock-label="true"] > .wq-dock-label,
.wq-mobile-rail[data-orientation="vertical"] .wq-dock-label { opacity: 1; }
.wq-mobile-rail .wq-mobile-action[data-dock-hidden="true"] {
  flex-basis: 0;
  width: 0;
  height: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.wq-mobile-rail .wq-mobile-action:is([aria-current], [aria-expanded="true"], .wq-dock-target) { color: var(--ink); }
.wq-mobile-rail .wq-mobile-action:disabled:not([data-dock-hidden="true"]) { opacity: .4; cursor: default; }
.wq-mobile-rail .wq-mobile-action:focus-visible { outline: 2px solid var(--a1, var(--a2)); outline-offset: -3px; }
.wq-mobile-rail .wq-mobile-action:active { filter: brightness(1.2); }
.wq-dock-highlight {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: var(--wq-control-size);
  height: var(--wq-control-size);
  box-sizing: border-box;
  border: 1px solid var(--glass-line, var(--line));
  border-radius: 999px;
  background: var(--wq-dock-active, var(--surface2));
  box-shadow: inset 0 1px 0 var(--glass-edge, var(--line)), 0 3px 12px color-mix(in srgb, var(--a1) 10%, transparent);
  transform: translate(9px, 6px);
  pointer-events: none;
  transition: width 360ms cubic-bezier(.2, .85, .25, 1.06), height 360ms cubic-bezier(.2, .85, .25, 1.06), transform 360ms cubic-bezier(.2, .85, .25, 1.06), opacity 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .wq-mobile-rail .wq-mobile-action:hover { color: var(--ink); }
}

/* The extra destinations stay close to the dock without covering its controls. */
.wq-mobile-panel {
  --wq-panel-shift: 0px;
  position: fixed;
  z-index: 46;
  inset: calc(max(16px, env(safe-area-inset-top, 0px)) + var(--wq-control-size, 48px) + 14px + 12px) max(16px, env(safe-area-inset-right, 0px)) auto auto;
  display: block;
  box-sizing: border-box;
  width: min(360px, calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  max-height: min(64vh, 560px, max(44px, calc(100vh - 120px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))));
  max-height: min(64dvh, 560px, max(44px, calc(100dvh - 120px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))));
  margin: 0;
  padding: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
  border: 1px solid var(--glass-line, var(--line));
  border-radius: 25px;
  background: var(--glass-soft, var(--surface));
  color: var(--ink);
  color-scheme: inherit;
  box-shadow: var(--glass-raised, var(--glass-shadow));
  -webkit-backdrop-filter: blur(var(--glass-blur, 28px)) saturate(165%);
  backdrop-filter: blur(var(--glass-blur, 28px)) saturate(165%);
  transform: translateX(var(--wq-panel-shift));
  font-family: var(--f-body, system-ui, sans-serif);
  isolation: isolate;
  animation: wq-dock-panel-in 200ms cubic-bezier(.2, .8, .2, 1) both;
}
.wq-mobile-panel[data-placement^="b"] { top: auto; bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + var(--wq-control-size, 48px) + 14px + 12px); }
.wq-mobile-panel:is([data-placement="tl"], [data-placement="bl"]) { right: auto; left: max(16px, env(safe-area-inset-left, 0px)); }
.wq-mobile-panel:is([data-placement="tc"], [data-placement="bc"]) { --wq-panel-shift: -50%; right: auto; left: 50%; }
.wq-mobile-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 0 6px 10px; }
.wq-mobile-panel-head h2 { margin: 0; color: var(--muted); font: 500 11px/1.4 var(--f-mono, monospace); letter-spacing: .03em; }
.wq-mobile-close { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; border: 1px solid var(--glass-separator, var(--line)); border-radius: 50%; background: var(--glass-control, var(--surface)); color: var(--ink); cursor: pointer; }
.wq-mobile-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.wq-mobile-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
.wq-mobile-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; box-sizing: border-box; min-width: 0; min-height: 44px; padding: 10px 11px; border: 1px solid transparent; border-radius: 13px; background: transparent; color: var(--ink); font: 500 13px/1.4 var(--f-body, system-ui, sans-serif); text-decoration: none; overflow-wrap: anywhere; }
.wq-mobile-link > span { min-width: 0; }
.wq-mobile-link > svg { flex: 0 0 13px; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; opacity: .5; }
.wq-mobile-link:is([aria-current], :hover) { border-color: var(--glass-separator, var(--line)); background: var(--glass-input, var(--surface2)); color: var(--ink); }
.wq-mobile-settings { margin-top: 8px; padding: 10px 3px 1px; border-top: 1px solid var(--glass-separator, var(--line)); }
.wq-mobile-languages { display: flex; gap: 5px; }
.wq-mobile-languages > * { display: flex; align-items: center; justify-content: center; flex: 1 1 0; min-width: 0; min-height: 40px; padding: 6px; border: 1px solid var(--glass-separator, var(--line)); border-radius: 12px; background: var(--glass-control, var(--surface)); color: var(--muted); font: 500 12px/1.2 var(--f-mono, monospace); text-decoration: none; cursor: pointer; }
.wq-mobile-languages > :is([aria-pressed="true"], [aria-current="page"]) { border-color: var(--glass-line, var(--line)); background: var(--wq-dock-active, var(--surface2)); color: var(--ink); }
.wq-mobile-theme { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; margin-top: 5px; padding: 10px 11px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--ink); font: 500 13px/1.3 var(--f-body, system-ui, sans-serif); text-align: left; cursor: pointer; }
.wq-mobile-theme > svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wq-mobile-theme:hover, .wq-mobile-close:hover { background: var(--glass-input, var(--surface2)); color: var(--ink); }
.wq-mobile-panel :is(a, button, select):focus-visible { outline: 2px solid var(--a1, var(--a2)); outline-offset: -3px; }
.wq-dock-placement-label { display: block; margin: 10px 0 0; color: var(--muted); font: 500 12px/1.45 var(--f-body, system-ui, sans-serif); }
.wq-dock-placement { display: block; box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--glass-line, var(--line)); border-radius: 12px; background: var(--glass-control, var(--surface)); color: var(--ink); color-scheme: inherit; font: 500 14px/1.35 var(--f-body, system-ui, sans-serif); cursor: pointer; }
.wq-dock-placement option { background: var(--surface); color: var(--ink); }
@keyframes wq-dock-panel-in { from { opacity: 0; transform: translate(var(--wq-panel-shift), 7px) scale(.985); } to { opacity: 1; transform: translate(var(--wq-panel-shift), 0) scale(1); } }

@media screen and (max-width: 760px) {
  html.wq-mobile-layout { --wq-control-size: 44px; }
  .wq-dock-placement { font-size: 16px; }
  body.wq-mobile-ready { margin-inline: 0; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
  body.wq-mobile-ready .hero, body.wq-mobile-ready .hero > div { min-width: 0; }
  body.wq-mobile-ready .hero h1 { font-size: clamp(1.45rem, 5.7vw, 2rem); overflow-wrap: anywhere; }
  body.wq-mobile-ready .hero .seal.wq-seal-enhanced { width: min(100%, 310px); max-width: 100%; }
  .wq-mobile-rail .wq-mobile-action { font-size: 14px; margin-inline:0; }
}
@media screen and (min-width: 420px) { .wq-mobile-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) {
  .wq-mobile-rail, .wq-mobile-rail .wq-mobile-action, .wq-dock-label, .wq-dock-highlight, .wq-mobile-home::after { transition: none; }
  .wq-mobile-panel { animation: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .wq-mobile-rail, .wq-mobile-panel { background: var(--surface); }
  .wq-mobile-rail::before, .wq-mobile-panel::before { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .wq-mobile-rail, .wq-mobile-panel { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .wq-mobile-rail::before, .wq-mobile-panel::before { display: none; }
}
@media (forced-colors: active) {
  .wq-mobile-rail::before, .wq-mobile-panel::before { display: none; }
  .wq-mobile-rail, .wq-mobile-panel { border-color: CanvasText; background: Canvas; color: CanvasText; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; animation: none; transition: none; }
  .wq-dock-highlight { display: none; }
  .wq-mobile-rail .wq-mobile-action { color: ButtonText; transition: none; }
  .wq-mobile-rail .wq-mobile-action[aria-current] { color: LinkText; text-decoration: underline; }
  .wq-mobile-rail .wq-mobile-action:is(.wq-dock-target, [aria-expanded="true"]) { background: Highlight; color: HighlightText; forced-color-adjust: none; }
  .wq-mobile-link, .wq-mobile-languages > *, .wq-mobile-theme, .wq-mobile-close, .wq-dock-placement { border-color: ButtonText; background: Canvas; color: CanvasText; }
  .wq-mobile-link[aria-current], .wq-mobile-languages > :is([aria-pressed="true"], [aria-current="page"]) { border-color: Highlight; background: Highlight; color: HighlightText; forced-color-adjust: none; }
  .wq-mobile-rail .wq-mobile-action:focus-visible, .wq-mobile-panel :is(a, button, select):focus-visible { outline-color: Highlight; }
  .wq-dock-label { transition: none; }
  .wq-dock-placement-label { color: CanvasText; }
  .wq-dock-placement option { background: Canvas; color: CanvasText; }
  .wq-mobile-rail[data-dock-expanded="true"] .wq-mobile-home { background: Canvas !important; box-shadow: inset 0 0 0 1px ButtonText !important; }
  .wq-mobile-rail[data-dock-expanded="true"] .wq-mobile-home > img { background: Canvas; box-shadow: none; }
  .wq-mobile-rail[data-dock-expanded="true"] .wq-mobile-home > .wq-dock-label { color: CanvasText; }
  .wq-mobile-rail[data-dock-expanded="true"] .wq-mobile-home::after { background: ButtonText !important; transition: none; }
}
@media print {
  .wq-mobile-rail, .wq-mobile-panel { display: none !important; }
  body.wq-mobile-ready { margin: 0; padding-inline: 0 !important; padding-block: 0 !important; }
  body.wq-mobile-ready > footer { padding-bottom: 20px !important; }
}
