/* Shared storefront theme — used by index / how / support */
:root {
  --bg: #f6f5f2;
  --bg2: #e8eef5;
  --text: #111111;
  --muted: #6b6b6b;
  --line: #d9d9d6;
  --accent: #111111;
  --content-max: 380px;
  --logo-h: 36px;
}

body.tenant-themed {
  position: relative;
  background: var(--bg);
}

body.tenant-bg-gradient {
  background: linear-gradient(145deg, var(--bg), var(--bg2));
  background-size: 200% 200%;
}

body.tenant-bg-image {
  background-color: var(--bg);
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body.tenant-anim-gradient {
  animation: tenantGradientShift 14s ease infinite;
}

body.tenant-anim-pulse {
  animation: tenantPulse 8s ease-in-out infinite;
}

body.tenant-anim-aurora::before,
body.tenant-anim-grid::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body.tenant-anim-aurora::before {
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, color-mix(in srgb, var(--bg2) 55%, transparent), transparent 65%);
  animation: tenantAurora 16s ease-in-out infinite alternate;
}

body.tenant-anim-grid::before {
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 12%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 12%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: tenantGrid 24s linear infinite;
  opacity: 0.55;
}

@keyframes tenantGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes tenantPulse {
  0%, 100% { filter: saturate(1); }
  50% { filter: saturate(1.15) brightness(1.03); }
}
@keyframes tenantAurora {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.05); }
}
@keyframes tenantGrid {
  from { background-position: 0 0, 0 0; }
  to { background-position: 48px 48px, 48px 48px; }
}

.wrap.tenant-wrap,
body.tenant-themed .wrap {
  max-width: var(--content-max);
  position: relative;
  z-index: 1;
}

body.tenant-header-sticky header.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
}

body.tenant-header-bar header.site-header {
  border-bottom: 1px solid var(--line);
}

body.tenant-header-centered header.site-header {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

body.tenant-header-minimal .brand .tagline {
  display: none;
}

.brand-logo {
  display: block;
  height: var(--logo-h);
  width: auto;
  max-width: 220px;
  object-fit: contain;
  margin-bottom: 0.35rem;
}

.brand h1.has-logo {
  font-size: 0.95rem;
}

.cms-footer {
  margin-top: 1.25rem;
  font-size: 0.6875rem;
  color: var(--muted);
  line-height: 1.65;
  white-space: pre-wrap;
}

.cms-footer .cms-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-top: 0.65rem;
}

.cms-footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hidden { display: none !important; }
