/* =============================================================
   Common defaults for every prototype.
   Each variant ships its own scoped stylesheet on top — this is
   just baseline resets and a few shared helpers (visually-hidden,
   small chips, screen-reader text, the safe-area below the dock).
   ============================================================= */

/* The prototype canvas — wraps every variant's content inside the real
   site's main-content area. Resets a few things so variants behave
   predictably regardless of what app_docs/base.html injects around them. */
.rvt-proto-canvas, .rvt-proto-canvas * { box-sizing: border-box; }
.rvt-proto-canvas {
  color: var(--text-1);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Cancel the p-4 padding on #main-content so variants fully own the
     canvas. Each variant adds its own padding if desired. */
  margin: -1rem;
  padding: 1rem;
  min-height: calc(100vh - 80px);
}
.rvt-proto-canvas a { color: var(--accent); text-decoration: none; }
.rvt-proto-canvas a:hover { text-decoration: underline; }
.rvt-proto-canvas img { max-width: 100%; height: auto; }

/* Safe area at the bottom so content never sits underneath the dock */
.proto-safe-bottom { padding-bottom: 120px; }

/* Tiny shared visually-hidden helper */
.proto-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Gallery index ------------------------------------------------- */

.proto-gallery {
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px 28px 140px;
}
.proto-gallery-hd { margin-bottom: 28px; }
.proto-gallery-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-mono);
}
.proto-gallery-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  margin: 8px 0 6px;
  color: var(--text-0);
  font-weight: 400;
}
.proto-gallery-lede {
  color: var(--text-2);
  max-width: 620px;
  font-size: 15px;
  line-height: 1.55;
}

.proto-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.proto-gallery-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 18px 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  min-height: 160px;
  overflow: hidden;
}
.proto-gallery-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}
.proto-gallery-card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.proto-gallery-card-name {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-0);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.proto-gallery-card-tag {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.45;
  flex: 1;
}
.proto-gallery-card-cta {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* A subtle decorative shape on each card, varied by slot */
.proto-gallery-card::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 90px;
  height: 90px;
  background: var(--accent-glow);
  border-radius: 50%;
  opacity: 0.5;
  filter: blur(20px);
  pointer-events: none;
  transition: opacity 300ms ease;
}
.proto-gallery-card:hover::after { opacity: 0.9; }
