/* Unlock page scroll. Keep the workbench as the first full screen,
   and place product links plus the ICP record in a real footer below. */
html, body {
  width: 100%;
  min-width: 320px;
  height: auto;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

#root {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
}

.site-footer {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 22px 32px calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgb(80 70 58 / 12%);
  background: #e9dfd1;
  color: #6a635a;
  font: 12px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.site-footer-products {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 20px;
  min-width: 0;
}

.site-footer-label {
  color: #8a8378;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer-products a {
  color: #2b2723;
  letter-spacing: 0.06em;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:focus-visible {
  outline: 2px solid #b05a21;
  outline-offset: 3px;
}

.site-icp {
  margin: 0;
  color: #6a635a;
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .site-footer {
    padding: 18px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  }
}
