/* Cross-screen navigation chrome - sits OUTSIDE the device frame so DivKit
   cards stay pure. Arrows flank the device on desktop; dot strip under it. */

.screen-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 460px;
}

.nav-arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.25s var(--ease-expo), box-shadow 0.25s var(--ease-expo),
    background 0.25s var(--ease-expo);
}
.nav-arrow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px oklch(0.45 0.05 275 / 0.5);
}
.nav-arrow:active {
  transform: scale(0.94);
}
.nav-arrow[aria-disabled="true"] {
  opacity: 0.35;
  pointer-events: none;
}

.nav-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  box-shadow: 0 8px 24px -16px oklch(0.45 0.05 275 / 0.5);
}
.nav-dots li {
  margin: 0;
}
.nav-dots a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s var(--ease-expo), background 0.25s var(--ease-expo);
}
.nav-dots a:hover {
  color: var(--ink);
  background: var(--page);
}
.nav-dots a[aria-current="page"] {
  color: #fff;
  background: var(--brand);
}

/* Shared legal footer - lives inside the device frame, scrolls with content */
.screen-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 22px 16px calc(28px + env(safe-area-inset-bottom));
  background: transparent;
}
.foot-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 2px 0;
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--hairline);
  cursor: pointer;
  transition: color 0.25s var(--ease-expo);
}
.foot-link:hover {
  color: var(--ink);
}

/* Mobile: nav becomes a compact sticky strip under the full-bleed frame */
@media (max-width: 599px) {
  .screen-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    max-width: none;
    gap: 8px;
    padding: calc(8px + env(safe-area-inset-top)) 10px 8px;
    background: oklch(0.99 0.004 275 / 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hairline);
  }
  .nav-dots {
    flex: 1 1 auto;
    justify-content: space-between;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }
  .nav-dots a {
    padding: 0 8px;
    font-size: 12px;
  }
  .nav-arrow {
    width: 40px;
    height: 40px;
  }
}
