/* Shared by the store, every checkout state, and the download flow. */
html { scrollbar-gutter: stable; }
.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.page > main { flex: 1; }
.jade-logo { display: block; flex-shrink: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, .9);
  backdrop-filter: blur(8px);
}
.site-header-inner, .site-footer-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-header-inner { min-height: 72px; }
.brand, .ft-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  font-weight: 600;
}
.brand { font-size: 16px; letter-spacing: .2px; }
.nav { display: flex; align-self: stretch; gap: 28px; font-size: 14px; }
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  color: var(--muted);
  transition: color .15s;
}
.nav a:hover, .site-footer a:hover { color: var(--text); }
.nav a.active { color: var(--text); font-weight: 600; }
.nav a.active::after {
  content: "";
  position: absolute;
  height: 2px;
  background: var(--accent);
  left: 2px;
  right: 2px;
  bottom: -1px;
}
.site-header a:focus-visible, .site-footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.site-footer-inner { min-height: 88px; padding-top: 16px; padding-bottom: 16px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 900px) {
  .site-header-inner, .site-footer-inner { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 720px) {
  .site-header-inner, .site-footer-inner { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 520px) {
  .site-header-inner, .site-footer-inner { padding-left: 14px; padding-right: 14px; gap: 12px; }
  .site-header-inner { min-height: 64px; }
  .nav { gap: 8px; font-size: 13px; }
  .nav a { padding-left: 4px; padding-right: 4px; }
  .site-footer { margin-top: 48px; }
}
