.site-dock {
  position: fixed;
  z-index: 20;
  inset-inline-start: 50%;
  inset-block-end: .8rem;
  margin-block: env(safe-area-inset-top, 0px) env(safe-area-inset-bottom, 0px);
  transform: translateX(-50%);
  max-width: calc(100vw - 1.5rem);
  width: max-content;
  isolation: isolate;
}
body:has(.site-dock:not([hidden])) { --dock-clearance: calc(55px + env(safe-area-inset-bottom, 0px)); }
.site-dock[data-edge="top"] { inset-block-end: auto; inset-block-start: .8rem; }
body:has(.site-dock:not([hidden])) > .site-footer { margin-block-end: var(--dock-clearance); }
.dock-track {
  position: relative;
  display: flex;
  justify-content: center;
  gap: .1rem;
  padding: .23rem;
  border: 1px solid #9aacc840;
  border-radius: 999px;
  background: #080d17e8;
  box-shadow: 0 8px 26px #0008, inset 0 1px #ffffff0f;
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
}
.dock-track a, .dock-track button {
  z-index: 1;
  position: relative;
  min-height: 41px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .3rem;
  padding: .36rem clamp(.52rem, 1.45vw, 1.12rem);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #b4c1d5;
  font-size: .79rem;
  line-height: 1.2;
  font-weight: 680;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease;
}
.dock-track a:hover, .dock-track button:hover { color: #f0f5ff; background: #aac3ef13; }
.dock-track [aria-current="location"] { color: #f4f7ff; }
.dock-track :focus-visible { outline-offset: -2px; }
.dock-marker {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  inset: .23rem auto .23rem 0;
  width: var(--dock-mark-width, 0px);
  transform: translateX(var(--dock-mark-x, 0px));
  border-radius: 999px;
  background: linear-gradient(180deg, #324158, #212c40);
  box-shadow: inset 0 0 0 1px #b1caff24;
  transition: width .28s cubic-bezier(.2,.7,.2,1), transform .28s cubic-bezier(.2,.7,.2,1);
}
.dock-chevron { width: .37rem; height: .37rem; border: solid currentColor; border-width: 1px 1px 0 0; transform: translateY(1px) rotate(-45deg); transition: transform .18s ease; }
.dock-track [aria-expanded="true"] .dock-chevron { transform: translateY(-1px) rotate(135deg); }
.dock-examples {
  position: absolute;
  z-index: 3;
  inset: auto auto calc(100% + .55rem) 50%;
  transform: translateX(-50%);
  width: min(250px, calc(100vw - 2rem));
  max-height: min(58svh, 380px);
  overflow: auto;
  list-style: none;
  border: 1px solid #51637f9c;
  border-radius: 13px;
  margin: 0;
  padding: .3rem;
  color: #e0e9fa;
  background: #111a2bf5;
  box-shadow: 0 18px 58px #000a;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  animation: dock-appear .2s ease-out both;
}
.site-dock[data-edge="top"] .dock-examples { bottom: auto; top: calc(100% + .55rem); }
@keyframes dock-appear { from { opacity: 0; } to { opacity: 1; } }
.dock-examples a { display: flex; padding: .62rem .72rem; color: inherit; text-decoration: none; font-size: .84rem; line-height: 1.35; border-radius: 7px; }
.dock-examples a:hover, .dock-examples a[aria-current="location"] { background: #263754; color: #fff; }
.dock-examples a:focus-visible { outline-offset: -2px; }
@media (max-width: 480px) {
  .site-dock { inset-block-end: .6rem; }
  .dock-track a, .dock-track button { min-height: 44px; padding-inline: clamp(.49rem, 2.4vw, .75rem); font-size: .74rem; }
}
@media (max-width: 759px) and (max-height: 709px) {
  body:has(.site-dock:not([hidden])) .story-canvas {
    padding-block-start: calc(4.5rem + env(safe-area-inset-top, 0px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .dock-track a, .dock-track button, .dock-marker, .dock-chevron { transition: none; }
  .dock-examples { animation: none; }
}
