/* A small navigation dock stays in the page flow; only the dock follows scrolling. */
html {
  scroll-padding-top: calc(82px + env(safe-area-inset-top, 0px));
}
.market-nav,
.market-home .market-nav {
  min-height: 88px;
  margin-bottom: 8px;
}
.market-dock-anchor {
  height: 1px;
  pointer-events: none;
}
.market-dock-wrap {
  position: sticky;
  top: calc(12px + env(safe-area-inset-top, 0px));
  z-index: 25;
  height: 60px;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  pointer-events: none;
}
.market-dock {
  display: flex;
  flex-direction: row;
  direction: rtl;
  align-items: stretch;
  gap: 4px;
  width: min(100%, 520px);
  height: 56px;
  padding: 4px;
  border: 0;
  border-radius: 12px;
  background: #fdfcf8;
  box-shadow:
    0 2px 3px #27392d05,
    0 7px 24px #27392d0b;
  pointer-events: auto;
  transition:
    width 0.25s ease,
    height 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}
.market-dock a {
  flex: 1 1 0;
  min-width: max-content;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #344137;
  border-radius: 8px;
  white-space: nowrap;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    flex-grow 0.25s cubic-bezier(0.22, 0.65, 0.3, 1),
    color 0.2s ease,
    background 0.2s ease;
}
.market-dock .ui-icon {
  width: 19px;
  height: 19px;
}
.market-dock a[aria-current='page'] {
  flex-grow: 1.6;
  background: #2d382e;
  color: #faf7ed;
}
.market-dock:has(a:focus-visible) a {
  flex-grow: 1;
  background: transparent;
  color: #344137;
}
.market-dock:has(a:focus-visible) a:focus-visible {
  flex-grow: 2;
  background: #2d382e;
  color: #faf7ed;
  outline: 2px solid #6b8c7a;
  outline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .market-dock:has(a:hover) a {
    flex-grow: 1;
    background: transparent;
    color: #344137;
  }
  .market-dock:has(a:hover) a:hover {
    flex-grow: 2;
    background: #2d382e;
    color: #faf7ed;
  }
}
.market-dock a:active {
  flex-grow: 2;
  background: #2d382e;
  color: #faf7ed;
}
.market-dock-wrap.is-stuck .market-dock {
  width: min(100%, 480px);
  height: 52px;
  background: #fdfcf8f2;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 3px 6px #27392d08,
    0 10px 30px #27392d12;
}
@media (max-width: 760px) {
  .market-nav,
  .market-home .market-nav {
    min-height: 80px;
    margin-bottom: 6px;
  }
  .market-dock-wrap {
    height: 56px;
    margin-bottom: 22px;
  }
  .market-dock,
  .market-dock-wrap.is-stuck .market-dock {
    width: 100%;
    height: 52px;
    gap: 2px;
  }
  .market-dock a {
    gap: 5px;
    padding: 0 8px;
    font-size: 12px;
  }
  .market-dock .ui-icon {
    width: 16px;
    height: 16px;
  }
}
@media (max-width: 400px) {
  .market-dock a {
    font-size: 11px;
    gap: 4px;
    padding: 0 6px;
  }
  .market-dock .ui-icon {
    width: 15px;
    height: 15px;
  }
}
@media (max-width: 340px) {
  .market-dock a {
    font-size: 10px;
    gap: 3px;
    padding: 0 4px;
  }
  .market-dock .ui-icon {
    width: 14px;
    height: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .market-dock,
  .market-dock a {
    transition: none;
  }
}
@media print {
  .market-dock-wrap {
    position: static;
  }
  .market-dock {
    box-shadow: none;
  }
}
