/* PMOVES tenant template — public community page shell
 * Hosts the A2UI message stream + applies persona theming tokens.
 * Per A2UI v0.1 spec §6 (persona theming).
 */

:root {
  /* Persona theming — these are the default A2UI v0.1 tokens.
     The tenant's persona runtime overrides these at the surface level
     based on tenant.theme. The A2UI components read these same names. */
  --pm-accent: #7C3AED;
  --pm-accent-soft: #A78BFA;
  --pm-accent-strong: #5B21B6;
  --pm-bg: #050508;
  --pm-bg-elevated: #13131a;
  --pm-fg: #FFFFFF;
  --pm-fg-muted: #9ca3af;
  --pm-border: rgba(255, 255, 255, 0.08);
  --pm-radius: 12px;
  --pm-radius-sm: 6px;
  --pm-font-display: 'Orbitron', system-ui;
  --pm-font-body: system-ui, -apple-system, sans-serif;
  --pm-spacing-unit: 8px;
  --pm-motion-fast: 120ms cubic-bezier(0.2, 0, 0, 1);
  --pm-motion-slow: 400ms cubic-bezier(0.2, 0, 0, 1);
}

/* theme variants — set via [data-theme] on the surface element */
[data-theme="armor"] { --pm-accent: #7C3AED; --pm-accent-soft: #A78BFA; }
[data-theme="darkxside"] { --pm-accent: #E11D48; --pm-accent-soft: #FB7185; }
[data-theme="skin"] { --pm-accent: #0D9488; --pm-accent-soft: #5EEAD4; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--pm-bg);
  color: var(--pm-fg);
  font-family: var(--pm-font-body);
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  background: var(--pm-accent);
  color: white;
  padding: 8px 12px;
  border-radius: var(--pm-radius-sm);
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}

.tenant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--pm-border);
}

.tenant-home {
  color: var(--pm-accent-soft);
  text-decoration: none;
  font-family: var(--pm-font-display);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--pm-motion-fast);
}
.tenant-home:hover { color: var(--pm-fg); }
.tenant-home:focus-visible {
  outline: 2px solid var(--pm-accent);
  outline-offset: 2px;
}

.tenant-signature {
  color: var(--pm-accent);
  font-size: 18px;
}

.tenant-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.tenant-title {
  font-family: var(--pm-font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px 0;
  color: var(--pm-fg);
}

.tenant-tagline {
  font-size: 16px;
  color: var(--pm-fg-muted);
  margin: 0 0 32px 0;
  max-width: 640px;
  line-height: 1.5;
}

.tenant-surface {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Agent cards often render as a 2-column grid at desktop */
.tenant-surface > pm-space-agent-card {
  display: block;
}

.tenant-footer {
  border-top: 1px solid var(--pm-border);
  padding: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--pm-fg-muted);
}
.tenant-footer a {
  color: var(--pm-fg-muted);
  text-decoration: underline;
}
.tenant-footer a:hover { color: var(--pm-accent-soft); }
.tenant-footer a:focus-visible {
  outline: 2px solid var(--pm-accent);
  outline-offset: 2px;
}

/* Loading state */
.tenant-surface:empty::before {
  content: 'Composing…';
  display: block;
  color: var(--pm-fg-muted);
  font-style: italic;
  padding: 24px;
  text-align: center;
}
